joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10138670
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10201bac], 0
mov byte [0x10201bb0], 0
mov dword [0x10201ba0], 0x719
mov dword [0x10201ba8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101386cb
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x10201ba8], 0
jmp 0x10138702
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10201ba4]
add eax, 0xfffff13a
mov dword [0x10201ba0], eax
mov eax, dword [0x10201ba8]
add eax, 1
mov dword [0x10201ba8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101386cb
jmp 0x101386bf
mov eax, 0x100
mov dword [0x10201bb4], 0
mov ecx, dword [0x10201bac]
mov edx, dword [0x10201ba8]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x10201bb4], edi
mov dword [0x10201ba4], 0xde7
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x10201bac], edx
mov edx, dword [0x10201ba8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov dl, byte [eax + ecx]
mov byte [0x10201bb0], dl
mov esi, dword [0x10201ba0]
add esi, 0x17b0
mov dword [0x10201ba0], esi
mov esi, dword [0x10201bac]
mov dl, byte [eax + esi]
mov esi, dword [0x10201ba8]
mov byte [eax + esi], dl
mov dword [0x10201ba0], 0x20e9
mov dl, byte [0x10201bb0]
mov esi, dword [0x10201bac]
mov byte [eax + esi], dl
mov esi, dword [0x10201ba8]
add esi, 1
mov dword [0x10201ba8], esi
cmp esi, 0x100
jl 0x10138702
jmp 0x101386b7
Function at 0x10138880
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [0x10201ba0], 0x1c02
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jmp 0x101388ca
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10138915
jmp 0x1013898c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x101388f7
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x101388ca
mov eax, dword [ebp - 0x1c]
mov dword [0x10201ba0], 0x848
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x101388b6
jmp 0x1013898c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1013898c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
sete dl
mov byte [ebp - 0x1d], dl
mov al, byte [ebp - 0x1d]
test al, 1
jne 0x10138940
jmp 0x1013898c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1013898c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
sete dl
mov byte [ebp - 0x1e], dl
mov al, byte [ebp - 0x1e]
test al, 1
jne 0x1013896b
jmp 0x1013898c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff9
mov dword [ebp - 0x24], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2], 0x6c
mov dword [ebp - 0x28], eax
je 0x10138993
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x10138993
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret
Function at 0x45bf20
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [0x633ccc], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x45bf95
test edi, edi
je 0x45bf95
mov eax, dword [0x633cd0]
test eax, eax
jne 0x45bf8f
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.0045bd20
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.004d3f86
add esp, 4
push eax
call fcn.00464f30
push dword [0x633cc8]
call fcn.004db834
add esp, 0x18
call fcn.004d9713
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x633cd0], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test edi, edi
je 0x45bfc8
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call fcn.0045bd20
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

Function at 0x45c000
Capabilities:
Send data
Send data on socket

Disassembly:
cmp byte [0x633ccc], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x45c075
test edi, edi
je 0x45c075
mov eax, dword [0x633cd0]
test eax, eax
jne 0x45c06f
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.0045bd20
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.004d3f86
add esp, 4
push eax
call fcn.00464f30
push dword [0x633cc8]
call fcn.004db834
add esp, 0x18
call fcn.004d9713
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x633cd0], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x45c0a8
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.0045bd20
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x46bac0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x631c7c]
xor eax, esp
mov dword [esp + 0x1c0], eax
cmp byte [0x633da4], 0
push ebx
mov ebx, dword [esp + 0x1cc]
mov dword [esp + 0x10], ebx
jne 0x46baf9
call fcn.004fcdf0
test eax, eax
je 0x46bb11
mov byte [0x633da4], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.004cf5ff
add esp, 0x1c4
ret
mov eax, dword [ebx + 0x9f8]
test eax, eax
je 0x46bb32
push 0x400
push eax
call fcn.004fdab0
add esp, 8
call fcn.004fcdf0
test eax, eax
jne 0x46baf9
push ebp
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.0044ebd0
push 0
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x2c], xmm0
call fcn.00455390
lea eax, [esp + 0x5c]
push eax
call fcn.0044ebd0
mov esi, dword [eax + 8]
lea eax, [esp + 0x70]
push eax
call fcn.0044ebd0
add esp, 0x14
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, esi
cdq
push 0
add eax, dword [ecx]
push ebp
adc edx, dword [ecx + 4]
push edx
push eax
call fcn.004cfec0
movups xmm1, xmmword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.004cfec0
xor edi, eax
xor ebx, edx
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x28], ebx
call fcn.0044ebd0
lea esi, [eax + 8]
lea eax, [esp + 0x84]
push eax
call fcn.0044ebd0
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [esp + 0x28]
imul ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, edx
mov dword [esp + 0x28], ecx
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x46bb60
movsd xmm0, qword [0x5bb2f8]
lea eax, [esp + 0x90]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.004fcc20
add esp, 0x10
call fcn.004fcdf0
test eax, eax
je 0x46bb40
lea eax, [esp + 0xd0]
mov byte [esp + 0xd0], 0
push 0x100
push eax
call fcn.004fd8f0
add esp, 8
cmp byte [esp + 0xd0], 0
pop edi
pop esi
pop ebp
je 0x46bcc4
lea eax, [esp + 0xc4]
push 0x400
push eax
call fcn.004fdab0
add esp, 8
call fcn.004fcdf0
test eax, eax
jne 0x46baf9
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x14]
call fcn.00455570
add esp, 8
call fcn.004fcdf0
mov ecx, dword [esp + 0x1c4]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.004cf5ff
add esp, 0x1c4
ret
Function at 0x470bb0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x5bb300
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call fcn.0045be50
mov edi, eax
add esp, 0x10
test edi, edi
je 0x470c0d
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x470c2b
cmp esi, ebx
je 0x470c2b
cmp esi, 0x8000
ja 0x470c2b
cmp esi, ebx
jb 0x470c24
push 0x5bb300
push 0x2d
push esi
push edi
call fcn.0045be50
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x470bd0
push 0x5bb300
push 0x2f
push ebp
call fcn.0045bce0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x5bb300
push 0x3a
push edi
call fcn.0045bce0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4e5e7f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e5cfe

Function at 0x4e9134
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e8df4

Function at 0x560030
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x560044
mov dword [esp + 0x18], fcn.0055e810
jmp fcn.00557b80
mov dword [esp + 0x18], fcn.0055dab0
jmp fcn.00557880
Function at 0x401c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c79
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401c6a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401c66
cmp esi, ecx
jae 0x401c6a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401c54
cmp esi, ecx
jb 0x401c6e
xor eax, eax
jmp 0x401c78
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401efa
Capabilities:
Get user security identifier

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 8
mov eax, 0x456d54
call fcn.004240b6
mov esi, ecx
mov edi, dword [ebp + 0xd4]
call fcn.0040205b
test edi, edi
je 0x402034
and dword [ebp], 0
and dword [ebp - 4], 0
lea ecx, [ebp]
push 0x100
call fcn.004053f0
mov ebx, dword [ebp]
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x44
push eax
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x80
push eax
lea eax, [ebp + 0x84]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x401fd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40201d
cmp dword [ebp - 0x14], 0x44
jbe 0x401f99
push 0x80004005
call fcn.00401ce6
cmp dword [ebp - 0x10], 0x80
jbe 0x401fb0
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.00404003
mov ebx, dword [ebp]
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x84]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40201d
lea eax, [ebp + 0x84]
mov byte [esi + 0x48], 1
push eax
lea eax, [esi + 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x40201d
push ebx
lea ecx, [esi + 0x54]
call fcn.004073eb
push edi
lea ecx, [esi + 0x50]
call fcn.004073eb
push 0
lea ecx, [esi + 0x5c]
call fcn.004073eb
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x402019
lea ecx, [ebp]
call fcn.004053b6
mov al, 1
jmp 0x402036
mov ecx, esi
call fcn.0040205b
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x402034
lea ecx, [ebp]
call fcn.004053b6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.00423822
lea esp, [ebp + 0xcc]
pop ebp
ret 8
Function at 0x4027cc
Capabilities:
Get file version info

Disassembly:
push 0x34
mov eax, 0x456e45
call fcn.004240ea
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00403deb
push str.System32_ntdll.dll
lea ecx, [ebp - 0x2c]
call fcn.00403e68
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x402813
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
jne 0x402823
mov esi, edi
jmp 0x40289d
push eax
lea ecx, [ebp - 0x40]
call fcn.00403e93
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x40283d
mov eax, dword [eax]
push dword [ebp - 0x40]
push ecx
push edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x402893
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], edi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], edi
push eax
push 0x4668d8
push dword [ebp - 0x40]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x402893
mov ecx, dword [ebp - 0x30]
xor esi, esi
inc esi
mov ax, word [ecx + 0x12]
mov word [0x477338], ax
mov ax, word [ecx + 0x10]
mov word [0x47733c], ax
mov ax, word [ecx + 0x16]
mov word [0x477340], ax
jmp 0x402895
mov esi, edi
lea ecx, [ebp - 0x40]
call fcn.00401130
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004016ce
mov eax, esi
call fcn.00424094
ret

Function at 0x402a4d
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
lea eax, [esp + 0xc]
push esi
mov esi, dword [esp + 0x244]
mov ebx, ecx
push 0x228
push 0
push eax
call fcn.004262f0
add esp, 0xc
mov dword [esp + 0xc], 0x22c
lea eax, [esp + 0xc]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402b36
push edi
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.0042c92b
pop ecx
pop ecx
test eax, eax
jne 0x402b06
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
cmp ecx, eax
jae 0x402ae8
cmp dword [esi], ecx
ja 0x402ae8
mov edi, ecx
sub edi, dword [esi]
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x402ada
push ecx
mov ecx, esi
call fcn.004043d3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x402b02
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
jmp 0x402b00
cmp eax, dword [esi + 8]
jne 0x402af5
push ecx
mov ecx, esi
call fcn.004043d3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x402b02
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
add dword [esi + 4], 4
lea eax, [esp + 0x10]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x402b32
cmp dword [esp + 0x18], 0
jne 0x402b2a
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00402a25
test eax, eax
jne 0x402aa6
xor eax, eax
inc eax
pop edi
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423822
add esp, 0x230
ret 8
Function at 0x402b50
Capabilities:
Get process image filename

Disassembly:
push 0xc
mov eax, 0x456e99
call fcn.004240b6
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push ecx
push ecx
mov dword [ebp - 4], ebx
call fcn.004028b0
pop ecx
pop ecx
push dword [ebp + 8]
test eax, eax
mov edx, 0x1000
mov ecx, 0x400
push ebx
cmovne ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x402bd9
cmp esi, 0xffffffff
je 0x402bc9
mov ecx, dword [ebp + 0xc]
mov edx, 0x104
push edx
call fcn.00401877
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov ecx, dword [ebp + 0xc]
mov edi, eax
call fcn.00401b2d
test edi, edi
je 0x402bc9
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
call fcn.00402be8
mov ebx, eax
test esi, esi
je 0x402bd9
cmp esi, 0xffffffff
je 0x402bd9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.0042407f
ret 8
Function at 0x402c65
Capabilities:
Get disk information

Disassembly:
push 0x28c
mov eax, 0x456ee0
call fcn.004240ea
mov dword [ebp - 0x298], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edi, edi
push edi
push edi
call ebx
mov esi, eax
xor eax, eax
test esi, esi
je 0x402e48
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], edi
mov word [ebp - 0x24c], ax
mov edx, esi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x24c]
call fcn.00401877
mov edi, eax
push edi
push esi
call ebx
xor ebx, ebx
test eax, eax
jne 0x402ccc
mov esi, ebx
jmp 0x402e38
push 0x208
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004262f0
mov esi, dword [ebp - 0x298]
add esp, 0xc
push dword [esi + 8]
push dword [esi + 4]
call fcn.004043a8
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
jmp 0x402e2c
xor eax, eax
mov word [edi + 4], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea ecx, [ebp - 0x264]
call fcn.0040110e
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
jne 0x402d60
mov eax, ebx
jmp 0x402d6d
lea eax, [ebp - 0x21c]
push eax
call fcn.004293b5
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00401419
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x294]
call fcn.00405766
pop ecx
mov ebx, eax
mov byte [ebp - 4], 3
mov ecx, dword [esi + 8]
cmp ebx, ecx
jae 0x402dcf
cmp dword [esi + 4], ebx
ja 0x402dcf
sub ebx, dword [esi + 4]
mov eax, ebx
push 0x30
pop ebx
cdq
idiv ebx
mov ebx, eax
cmp ecx, dword [esi + 0xc]
jne 0x402dc6
push ecx
lea ecx, [esi + 4]
call fcn.0040433d
imul eax, ebx, 0x30
add eax, dword [esi + 4]
push eax
jmp 0x402dde
cmp ecx, dword [esi + 0xc]
jne 0x402ddd
push ecx
lea ecx, [esi + 4]
call fcn.0040433d
push ebx
push dword [esi + 8]
call fcn.00405bce
push 0x30
pop eax
add dword [esi + 8], eax
lea ecx, [ebp - 0x27c]
xor ebx, ebx
push ebx
push 1
call fcn.004016ce
push ebx
push 1
lea ecx, [ebp - 0x294]
call fcn.004016ce
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.004016ce
push ebx
push 1
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], bl
call fcn.004016ce
add edi, 8
cmp word [edi], bx
jne 0x402cfd
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp - 0x24c]
call fcn.004016ce
mov eax, esi
call fcn.00424094
ret
Function at 0x402e6a
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push 0x44
mov eax, 0x456f20
call fcn.004240ea
mov edi, ecx
test edi, edi
jne 0x402e85
xor eax, eax
inc eax
call fcn.00424094
ret
push edi
push 0x402fb1
call dword [sym.imp.USER32.dll_EnumWindows]
and dword [ebp - 4], 0
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x402f2a
cmp esi, 0xffffffff
je 0x402f2a
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402f46
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x402f0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x4c]
push str.TerminateProcess_pid:_u_failed
push eax
call fcn.0040577f
add esp, 0xc
push eax
push esi
sub esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00402638
push 0x47258c
lea eax, [ebp - 0x34]
push eax
call fcn.004265a7
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
push esi
sbb edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
jmp 0x402e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x402f52
test esi, esi
je 0x402e7c
cmp esi, 0xffffffff
je 0x402e7c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e7c
push eax
push edi
lea eax, [ebp - 0x4c]
push str.OpenProcess_pid:_u_failed__err:_u
push eax
call fcn.0040577f
add esp, 0x10
push eax
sub esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0040270c
jmp 0x402efd

Function at 0x4031ba
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4031db
mov eax, dword [esi]
jmp 0x4031dd
mov eax, esi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebp - 0x20c], 0
jne 0x4031fe
xor eax, eax
jmp 0x40320b
lea eax, [ebp - 0x20c]
push eax
call fcn.004293b5
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401419
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00423822
mov esp, ebp
pop ebp
ret 4
Function at 0x403911
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
sub edi, dword [eax]
mov eax, dword [ebx]
sub edi, 0x10
cdq
push edx
push eax
mov edx, 0xfff0b9d8
sar edi, 4
call fcn.0040a86d
mov ecx, dword [ebx + 4]
mov edx, esi
call fcn.00406940
mov ecx, dword [ebx + 4]
push 0
push dword [ebp + 0xc]
call fcn.0040a535
add esp, 0x10
call fcn.0040446c
xor eax, eax
inc eax
push eax
push 2
push dword [ebx + 4]
mov dword [esp + 0x18], eax
call fcn.00450428
test eax, eax
je 0x403a00
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00406c46
mov esi, str.hwang
mov dword [esp], 0x7f2
lea edi, [esp + 0x2c]
lea eax, [esp + 0x3a]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004262f0
add esp, 0xc
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._s_r_n
push eax
call fcn.00406ba3
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
add dword [eax + 0xc], 0xfffffff0
xor eax, eax
inc eax
push eax
call fcn.004016ce
xor al, al
jmp 0x403a31
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
call fcn.0040a2be
test eax, eax
je 0x403a23
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
call fcn.0040a446
test eax, eax
setne al
mov byte [esp + 0xc], al
mov ecx, dword [ebx + 4]
mov edx, edi
call fcn.0040a19d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423822
mov esp, ebp
pop ebp
ret 8