joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5089c2
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x5999b2
call fcn.00569ad3
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004056d0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5a9ff8
call fcn.00437b83
cmp eax, 0xffffffff
jne 0x508a9c
push 0
push 0x5b2ab8
lea ecx, [ebp - 0x4d0]
call fcn.00437b83
cmp eax, 0xffffffff
jne 0x508a9c
push 0
push 0x5acb1c
lea ecx, [ebp - 0x4d0]
call fcn.00437b83
cmp eax, 0xffffffff
jne 0x508a9c
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004056d0
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x508a6b
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x59ea04]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.004267cb
jmp 0x508ad5
lea eax, [ebp - 0x218]
push eax
call fcn.00579702
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00405dd0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004267cb
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x508ac2
mov edi, dword [ebp - 0x4cc]
jmp 0x508ad5
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x59ea04]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004267cb
mov eax, edi
call fcn.00569a7d
ret

Function at 0x52254b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0057dc9b
pop ecx
test eax, eax
jne 0x52258d
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00433174
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x522553
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x4078cd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x6f63d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x4078d7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x40791d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x4078fc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40793c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00437450
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x4079cc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x407982
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x407998
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x4079bf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x407971
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x449842
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push edx
push 0x4a8630
mov dword [ebp + 0xc], 0
call fcn.00441a7c
test al, al
jne 0x4497b5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [0x4a8690]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
mov ecx, dword [0x4a86a4]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ecx + edx*4]
push ebx
mov ebx, dword [eax]
push edi
mov edi, dword [ebx]
cmp esi, 0xffffffff
je 0x44985b
movzx eax, byte [ebx + 0x88]
add eax, 0xfffffffe
cmp eax, 0x14
ja case.0x4497f3.4
movzx ecx, byte [eax + 0x44991f]
jmp dword [ecx*4 + 0x449903]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
or esi, 0xe
jmp case.0x4497f3.4
or esi, 3
jmp case.0x4497f3.4
or esi, 4
push 0
test esi, 0x800
je 0x44982c
push 1
push 0xcf
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4497f3.4
push 0
push 0xcf
push edi
or esi, 0x10000
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4497f3.4
or esi, 0x4000000
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x449899
push esi
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [0x4a86a4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx]
cmp byte [edx + 0x88], 0x13
jne 0x449899
push esi
push 0
push 0x1036
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0xc], eax
mov al, byte [ebx + 0x8b]
cmp al, 0xff
je 0x4498bc
mov ecx, dword [ebp - 4]
movzx eax, al
cmp eax, dword [ecx + 0x194]
je 0x4498bc
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4498c8
mov edx, dword [ebp - 4]
push 1
push ebx
push edx
call fcn.00430af4
mov al, byte [ebx + 0x88]
cmp al, 2
je 0x4498db
cmp al, 3
je 0x4498db
cmp esi, 0xffffffff
je 0x4498f0
mov eax, dword [ebx]
push 0x27
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
cmp dword [ebp + 0xc], eax
pop edi
pop ebx
setne al
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44af66
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.00442b7b
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.00442ad5
xor esi, esi
test edi, edi
je 0x44afae
lea eax, [ebp - 0xdc]
push eax
call fcn.00442b4a
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x44af9a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44b27b
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x49205c]
jne 0x44b28c
call fcn.00442d2d
mov ecx, dword [0x4a753c]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4a753c], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
jns 0x44b2d3
fadd qword [0x48cd00]
fmul qword [0x48cd08]
mov esp, ebp
pop ebp
ret

Function at 0x44b2dd
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x49205c]
jne 0x44b2ea
call fcn.00442d2d
mov eax, dword [0x4a753c]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4a753c], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x44b415
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00422160
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x34]
push 0x1f5
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffff
mov dword [esi + 0x10], 0xffff
call fcn.004114f7
mov edx, dword [esi + 0x2c]
add esp, 4
push 0
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0xffff
lea ecx, [ebp - 0x10010]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44b53e
push ebx
cmp dword [ebp - 4], 0
jbe 0x44b53d
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x44b4f2
mov ecx, dword [esi + 0xc]
add ecx, dword [ebp - 4]
mov edi, dword [esi + 8]
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
jns 0x44b4ab
fadd qword [0x48cd00]
fmul qword [0x48cd38]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 8], eax
fldcw word [ebp - 8]
fistp qword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
push eax
mov dword [esi + 0x10], eax
fldcw word [ebp + 0xa]
call fcn.004114f7
mov edx, dword [esi + 0xc]
push edx
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
push edi
push eax
call fcn.00410d80
push edi
call fcn.004110fc
mov edi, dword [ebp - 0x10]
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push ecx
lea edx, [ebp - 0x10010]
push edx
push eax
call fcn.00410d80
mov ecx, dword [ebp - 4]
add dword [esi + 0xc], ecx
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x2c]
push 0
lea edx, [ebp - 4]
push edx
push 0xffff
lea eax, [ebp - 0x10010]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44b475
pop ebx
push 0x1f6
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
mov eax, 0x1f6
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x44b5c7
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x30], 0
lea esi, [edi + 0x30]
je 0x44b631
mov eax, dword [edi + 0x34]
push ebx
lea ebx, [edi + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 0x1f6
je 0x44b630
add edi, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi]
push 0x1f6
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.004325e5
add esp, 4
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x44b637
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x30], 0
jne 0x44b65d
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x44b557
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
pop esi
pop ebp
ret 4
Function at 0x44babc
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x22c
lea eax, [ebp - 0x22c]
call fcn.0040f220
lea eax, [ebp - 0x22c]
push eax
call fcn.0043397d
add esp, 4
test al, al
jne 0x44baea
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
jne 0x44bb09
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x22c]
push edx
call fcn.004110e1
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
add esp, 4
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x22c]
mov eax, 0x614
push ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44bb5e
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x438
push ebx
mov bl, byte [ebp + 0x10]
lea eax, [ebp - 0x438]
call fcn.0040f220
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040f220
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x44bbd8
test bl, bl
je 0x44bc02
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.0041305c
add esp, 8
test eax, eax
je 0x44bbd1
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x438]
push eax
call fcn.0043397d
add esp, 4
test al, al
je 0x44bc02
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0043397d
add esp, 4
test al, al
je 0x44bc09
test bl, bl
jne 0x44bc2f
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x22c]
push edx
call fcn.004335b2
add esp, 4
test al, al
je 0x44bc02
lea eax, [ebp - 0x22c]
push eax
call fcn.0043397d
add esp, 4
test al, al
je 0x44bc02
lea ecx, [ebp - 0x438]
push str..
push ecx
call fcn.00411456
lea edx, [ebp - 0x438]
push edx
call fcn.004110e1
lea edx, [ebp - 0x22c]
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x436], cx
call fcn.004110e1
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea edx, [ebp - 0x438]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], edx
add esp, 0x10
mov dword [ebp - 0x14], eax
xor eax, eax
lea edx, [ebp - 0x20]
mov ecx, 0x614
push edx
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, 0x404418
mov al, byte [ebx + esi + 0x404418]
push ebp
xor al, 1
mov byte [esi + 0x404418], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + 0x404418], 0
pop edi
pop esi
mov eax, 0x404418
pop ebp
ret

Function at 0x43b659
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop eax
and edx, edx
call fcn.0043b6a2
dec ecx
sub edx, 0xa706c977
mov ecx, ecx
xor dword [edi], eax
mov ecx, 0x9b2f987e
dec ecx
inc edi
sub ecx, 0x7218d5da
sub ecx, 1
add edx, edx
cmp edi, esi
jne fcn.0043b659
sub edx, 1
push 0xdc593e10
pop ecx
inc edx
ret

Function at 0x43cf58
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43ccda
sub ebx, eax
call fcn.0043cf7d
dec ebx
xor dword [edi], ecx
add ebx, 0x8ecf5fc
and eax, eax
inc edi
add eax, 0xc50fe047
push eax
pop eax
cmp edi, edx
jne fcn.0043cf58
ret
Function at 0x401a4e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jne 0x401bc2
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x401bc2
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [edi + 4]
push 0x4c1cf4
push 0
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x401a9a
mov ecx, dword [esi + 0x3c]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
mov ecx, edi
call 0x40008e
jmp 0x401a9e
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
mov edx, dword [esi + 0x3c]
lea eax, [esp + 0x68]
push eax
push 0
push 0x1115
push ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0x4275b0
mov dword [esp + 0x80], 0
call dword [0x4ba5b8]
jmp 0x401bc2
mov ecx, dword [eax]
lea eax, [esp + 8]
push ecx
push eax
mov ecx, esi
call 0x5c401bf9
not bl
push ecx
and bl, 1
call 0x44409e
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401be3
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x56], dx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
movzx eax, bl
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, 0x40
lea ecx, [esp + 0x54]
push edx
mov dword [esp + 0x14], 3
mov word [esp + 0x20], ax
mov dword [esp + 0x18], ecx
call dword [0x4ba41c]
movzx eax, byte [esi + 8]
push eax
mov ecx, esi
call fcn.00401a4e
pop ebx
mov ecx, dword [esp + 0x1054]
pop edi
pop esi
xor ecx, esp
call 0x47df31
add esp, 0x1050
ret
Function at 0x4044b0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov dword [ebp - 0x84], 0x4016f0
mov dword [ebp - 0x80], 0x4016f8
mov dword [ebp - 0x7c], 0x401700
mov dword [ebp - 0x78], 0x401708
mov dword [ebp - 0x74], 0x401710
mov dword [ebp - 0x70], 0x401718
mov dword [ebp - 0x6c], 0x401720
mov dword [ebp - 0x68], 0x401728
mov dword [ebp - 0x64], 0x401730
mov dword [ebp - 0x60], 0x401738
mov dword [ebp - 0x5c], 0x401740
mov dword [ebp - 0x58], 0x401748
mov dword [ebp - 0x54], 0x401750
mov dword [ebp - 0x50], 0x401758
mov dword [ebp - 0x4c], 0x401760
mov dword [ebp - 0x48], 0x401768
mov dword [ebp - 0x44], 0x401770
mov dword [ebp - 0x40], 0x401778
mov dword [ebp - 0x3c], 0x401780
mov dword [ebp - 0x38], 0x401788
mov dword [ebp - 0x34], 0x401790
mov dword [ebp - 0x30], 0x401798
mov dword [ebp - 0x2c], 0x4017a0
mov dword [ebp - 0x28], 0x4017a8
mov dword [ebp - 0x24], 0x4017b0
mov dword [ebp - 0x20], 0x4017b8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x78
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
jmp 0x404599
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1a
jge 0x4045d4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x4045d2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
mov dword [ebp + eax*4 - 0xec], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x404590
mov ecx, 2
imul ecx, ecx, 0
xor edx, edx
mov word [ebp + ecx - 0x2f4], dx
push 0x10000
call fcn.00412df0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4046d4
push 0x10000
call fcn.00412df0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4046c8
push 0x8000
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], 0
jbe 0x404695
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x2f4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x404675
lea edx, [ebp - 0x2f4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x404675
mov eax, 2
imul eax, eax, 0
xor ecx, ecx
mov word [ebp + eax - 0x2f4], cx
jmp 0x404697
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*4 - 0xec]
push edx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
jmp 0x404697
jmp 0x4046b2
push 0x8000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40462c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, dword [ebp - 0x10]
push eax
call fcn.00412e20
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00412e20
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4046e0
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
call fcn.00404ae0
test eax, eax
je 0x404723
push 0x4017e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
push 0x4017f0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404723
lea ecx, [ebp - 8]
push ecx
call dword [ebp - 4]
push 0
push 0
push 0x401810
push 0x401868
push 0x401878
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00404ae0
test eax, eax
je 0x404774
push 0x401884
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
push 0x401894
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404774
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4049c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404a7c
mov dword [ebp - 4], 0
jmp 0x404a0e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1f
jae 0x404a64
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x4140b0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404a62
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404a60
push 9
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404a64
jmp 0x404a05
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x10], eax
jmp 0x4049f2
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x404a90
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404ad4
push 0xf0000008
push 0x18
push 0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404ad4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret