joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db2d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4db336
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4db336
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4db317
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4de510
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6291e0]
xor edx, edx
cmp eax, edx
jne 0x4de536
xor eax, eax
mov byte [eax + 0x6290e0], al
inc eax
cmp eax, 0x100
jl 0x4de51e
mov dword [0x6291e0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6290e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4de5c7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4de59a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4de568
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4de5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4de623
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4de60a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e4fa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5277ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004e58c0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x58e3f4
call fcn.00517dc6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4e5033
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00517dc6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4e502c
push 0
mov ecx, eax
call fcn.004dc140
mov dword [esi + 0xc], eax
jmp 0x4e5035
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4e5035
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x5062d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x5063f5
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x5063d9
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x50632b
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x506309
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x506e3d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x506e94
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x506e94
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x506e94
xor eax, eax
inc eax
jmp 0x506e96
xor eax, eax
leave
ret 0x10

Function at 0x506ebf
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x506f2d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x5950d4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x506f24
cmp dword [ebp - 0xc], 4
jne 0x506f24
cmp dword [ebp - 0x10], edi
je 0x506f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5c8688], edi
xor eax, eax
jmp 0x506f6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5c8688], edi
jge 0x506f67
lea eax, [ebp - 0x34]
push eax
mov dword [0x5c8688], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x506f67
cmp word [ebp - 0x14], 5
jb 0x506f67
call fcn.00506e9a
test eax, eax
je 0x506f67
emms
mov dword [0x5c8688], 1
mov eax, dword [0x5c8688]
pop edi
leave
ret

Function at 0x51a453
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51a48b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005184e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005184b8
jmp 0x51a497
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x51bb44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x51bb86
call fcn.00521700
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51bb86
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x51bb7d
xor eax, eax
jmp 0x51bb8e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051bb94
pop edi
pop esi
pop ebx
ret 4
Function at 0x521c30
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x521c5e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x521c7c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00521b96
jmp 0x521c7c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x521c7c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00521b96
test edi, edi
mov eax, edi
jne 0x521c66
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x405d7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x405db5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d8f
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d8a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405de6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x405dc8
pop edi
not eax
pop esi
ret 0xc

Function at 0x42811e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x42813e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x42812a
add dl, dl
jne 0x428149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x42819a
xor eax, eax
add dl, dl
jne 0x428156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x42823b
add dl, dl
jne 0x428165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x428170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x42817b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x428186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x428190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x428135
mov eax, 1
add dl, dl
jne 0x4281a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4281b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x42819f
sub eax, ebx
mov ebx, 1
jne 0x4281e6
mov ecx, 1
add dl, dl
jne 0x4281cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4281d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4281c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x428135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4281fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x428208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4281f4
cmp eax, 0x7d00
jae 0x42822b
cmp eax, 0x500
jb 0x428226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x428135
cmp eax, 0x7f
ja 0x42822e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x428135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x42825c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x428135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401c6d
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 0x401cc6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401cb7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401cb3
cmp esi, ecx
jae 0x401cb7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401ca1
cmp esi, ecx
jb 0x401cbb
xor eax, eax
jmp 0x401cc5
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401f47
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, 0x456c14
call fcn.00423f6e
mov esi, ecx
mov edi, dword [ebp + 0xd4]
call fcn.004020a8
test edi, edi
je 0x402081
and dword [ebp], 0
and dword [ebp - 4], 0
lea ecx, [ebp]
push 0x100
call fcn.004052d4
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 0x40201e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40206a
cmp dword [ebp - 0x14], 0x44
jbe 0x401fe6
push 0x80004005
call fcn.00401d33
cmp dword [ebp - 0x10], 0x80
jbe 0x401ffd
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.00403eb6
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 0x40206a
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 0x40206a
push ebx
lea ecx, [esi + 0x54]
call fcn.004072cf
push edi
lea ecx, [esi + 0x50]
call fcn.004072cf
push 0
lea ecx, [esi + 0x5c]
call fcn.004072cf
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x402066
lea ecx, [ebp]
call fcn.0040529a
mov al, 1
jmp 0x402083
mov ecx, esi
call fcn.004020a8
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x402081
lea ecx, [ebp]
call fcn.0040529a
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.00423710
lea esp, [ebp + 0xcc]
pop ebp
ret 8
Function at 0x40290b
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.00426130
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 0x4029f4
push edi
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.0042c7ab
pop ecx
pop ecx
test eax, eax
jne 0x4029c4
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
cmp ecx, eax
jae 0x4029a6
cmp dword [esi], ecx
ja 0x4029a6
mov edi, ecx
sub edi, dword [esi]
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x402998
push ecx
mov ecx, esi
call fcn.00404286
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4029c0
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
jmp 0x4029be
cmp eax, dword [esi + 8]
jne 0x4029b3
push ecx
mov ecx, esi
call fcn.00404286
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4029c0
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 0x4029f0
cmp dword [esp + 0x18], 0
jne 0x4029e8
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.004028e3
test eax, eax
jne 0x402964
xor eax, eax
inc eax
pop edi
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423710
add esp, 0x230
ret 8

Function at 0x402a0e
Capabilities:
Get process image filename

Disassembly:
push 4
mov eax, 0x456d05
call fcn.00423f6e
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x402a80
cmp esi, 0xffffffff
je 0x402a70
mov ecx, dword [ebp + 0xc]
mov edx, 0x104
push edx
call fcn.004018c4
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov ecx, dword [ebp + 0xc]
mov edi, eax
call fcn.00401b7a
test edi, edi
je 0x402a70
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00402a8f
mov ebx, eax
test esi, esi
je 0x402a80
cmp esi, 0xffffffff
je 0x402a80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.00423f37
ret 8
Function at 0x402b0c
Capabilities:
Get disk information

Disassembly:
push 0x28c
mov eax, 0x456d4c
call fcn.00423fa2
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 0x402cef
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.004018c4
mov edi, eax
push edi
push esi
call ebx
xor ebx, ebx
test eax, eax
jne 0x402b73
mov esi, ebx
jmp 0x402cdf
push 0x208
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00426130
mov esi, dword [ebp - 0x298]
add esp, 0xc
push dword [esi + 8]
push dword [esi + 4]
call fcn.0040425b
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
jmp 0x402cd3
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 0x402c07
mov eax, ebx
jmp 0x402c14
lea eax, [ebp - 0x21c]
push eax
call fcn.00429215
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00401466
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x294]
call fcn.0040564a
pop ecx
mov ebx, eax
mov byte [ebp - 4], 3
mov ecx, dword [esi + 8]
cmp ebx, ecx
jae 0x402c76
cmp dword [esi + 4], ebx
ja 0x402c76
sub ebx, dword [esi + 4]
mov eax, ebx
push 0x30
pop ebx
cdq
idiv ebx
mov ebx, eax
cmp ecx, dword [esi + 0xc]
jne 0x402c6d
push ecx
lea ecx, [esi + 4]
call fcn.004041f0
imul eax, ebx, 0x30
add eax, dword [esi + 4]
push eax
jmp 0x402c85
cmp ecx, dword [esi + 0xc]
jne 0x402c84
push ecx
lea ecx, [esi + 4]
call fcn.004041f0
push ebx
push dword [esi + 8]
call fcn.00405ab2
push 0x30
pop eax
add dword [esi + 8], eax
lea ecx, [ebp - 0x27c]
xor ebx, ebx
push ebx
push 1
call fcn.0040171b
push ebx
push 1
lea ecx, [ebp - 0x294]
call fcn.0040171b
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.0040171b
push ebx
push 1
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], bl
call fcn.0040171b
add edi, 8
cmp word [edi], bx
jne 0x402ba4
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp - 0x24c]
call fcn.0040171b
mov eax, esi
call fcn.00423f4c
ret
Function at 0x402d11
Capabilities:
Acquire debug privileges
Enumerate gui resources
Terminate process

Disassembly:
push 0x54
mov eax, 0x456d94
call fcn.00423fa2
mov edi, ecx
test edi, edi
jne 0x402d2c
xor eax, eax
inc eax
call fcn.00423f4c
ret
push edi
push 0x402ee5
call dword [sym.imp.USER32.dll_EnumWindows]
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
and dword [ebp - 4], 0
xor edx, edx
inc edx
mov ecx, str.SeDebugPrivilege
call fcn.0040283c
push edi
push 0
push 0x100001
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x402e2f
cmp esi, 0xffffffff
je 0x402e2f
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402db1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [ebp - 0x58]
call fcn.00403cdc
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x402d23
cmp ecx, 0xffffffff
je 0x402d23
push ecx
call esi
jmp 0x402d23
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x402df7
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.00405663
add esp, 0xc
push eax
push esi
sub esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00402685
push 0x472534
lea eax, [ebp - 0x34]
push eax
call fcn.004263e7
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
sbb edi, edi
call esi
lea ecx, [ebp - 0x58]
call fcn.00403cdc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x402e27
cmp eax, 0xffffffff
je 0x402e27
push eax
call esi
lea eax, [edi + 1]
jmp 0x402d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x402e70
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x402e4c
cmp esi, 0xffffffff
je 0x402e4c
push esi
call edi
lea ecx, [ebp - 0x58]
call fcn.00403cdc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x402d23
cmp eax, 0xffffffff
je 0x402d23
push eax
call edi
jmp 0x402d23
push eax
push edi
lea eax, [ebp - 0x4c]
push str.OpenProcess_pid:_u_failed__err:_u
push eax
call fcn.00405663
add esp, 0x10
push eax
sub esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00402759
jmp 0x402de9

Function at 0x4030eb
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 0x40310c
mov eax, dword [esi]
jmp 0x40310e
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 0x40312f
xor eax, eax
jmp 0x40313c
lea eax, [ebp - 0x20c]
push eax
call fcn.00429215
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401466
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00423710
mov esp, ebp
pop ebp
ret 4