joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004530
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
cmp edx, 0x40
jb 0x1000467e
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1000467e
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x1000467e
mov eax, 0x20b
cmp word [esi + 0x18], ax
jne 0x1000467e
mov eax, dword [0x10031f08]
test eax, eax
jne 0x10004598
mov ecx, 0x8d58a494
call fcn.10003860
mov edx, 0x17190902
mov ecx, eax
call fcn.100037c0
mov dword [0x10031f08], eax
push edi
push 4
push 0x3000
push dword [esi + 0x50]
push 0
call eax
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10004675
movzx ecx, word [esi + 0x14]
lea eax, [esi + 0x18]
add eax, ecx
movzx ecx, word [esi + 6]
mov esi, dword [esi + 0x54]
mov dword [ebp - 0xc], eax
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
mov dword [ebp - 8], eax
mov eax, dword [0x10031e70]
test eax, eax
jne 0x100045f4
mov ecx, 0xd00862f2
call fcn.10003860
mov edx, 0x1375703f
mov ecx, eax
call fcn.100037c0
mov dword [0x10031e70], eax
push esi
push ebx
push edi
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp eax, ecx
jae 0x10004675
sub ecx, eax
lea esi, [eax + 8]
dec ecx
mov eax, 0xcccccccd
mul ecx
mov edi, edx
shr edi, 5
inc edi
lea esp, [esp]
mov eax, dword [esi + 4]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
add eax, ebx
mov ebx, dword [esi + 8]
cmp dword [esi], ebx
mov dword [ebp - 0xc], eax
cmovb ebx, dword [esi]
mov eax, dword [0x10031e70]
test eax, eax
jne 0x1000465d
mov ecx, 0xd00862f2
call fcn.10003860
mov edx, 0x1375703f
mov ecx, eax
call fcn.100037c0
mov dword [0x10031e70], eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call eax
mov ebx, dword [ebp - 0x10]
add esp, 0xc
add esi, 0x28
dec edi
jne 0x10004620
mov edi, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100054a0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x100054aa
add dword [esp], 5
retf

Function at 0x10005540
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x1000554a
add dword [esp], 5
retf

Function at 0x100055d0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x100055da
add dword [esp], 5
retf
Function at 0x40434a
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
push edi
push 0x401530
push 1
xor edi, edi
mov esi, edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x411bd0], eax
test eax, eax
jne 0x40436d
xor eax, eax
jmp 0x40439f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40438e
push dword [0x411bd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x411bd0], edi
jmp 0x404369
push edi
push esi
push 1
call dword [sym.imp.PlaySndSrv.DLL_PlaySoundServerInitialize]
test eax, eax
js 0x40437a
xor eax, eax
inc eax
pop edi
pop esi
ret 4
Function at 0x404f4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404fa3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404fa3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x404f95
cmp esi, ecx
jae 0x404fa3
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x404f83
cmp esi, ecx
jae 0x404fa3
cmp word [esi], 0
je 0x404fa3
mov eax, esi
jmp 0x404fa5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40547a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00404d42
test eax, eax
je 0x4054de
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x4054d5
cmp eax, 3
jbe 0x4054bd
cmp eax, 4
je 0x4054b1
cmp eax, 5
jne 0x4054d5
push eax
xor eax, eax
push eax
push 0x401880
push 0x401868
jmp 0x4054c8
push 5
xor eax, eax
push eax
push 0x401798
jmp 0x4054aa
push 1
xor eax, eax
push eax
push eax
push 0x401750
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4054de
push ecx
push ecx
mov ecx, esi
call fcn.004054e6
pop esi
ret

Function at 0x405a9a
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x411304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.004058ab
test eax, eax
jne 0x405afb
push 0xc
pop ecx
push eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x420]
push eax
push ecx
push 0x42
mov dword [ebp - 0x420], ecx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x405af2
call fcn.0040599c
test eax, eax
js 0x405bc1
mov bl, byte [ebp - 0x41c]
and bl, 1
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test bl, bl
jne 0x405b30
call fcn.004058ab
test eax, eax
je 0x405b29
call fcn.00405a1f
test eax, eax
je 0x405b30
mov eax, 0x4019f0
jmp 0x405b35
mov eax, 0x401a70
push eax
push 0x401a28
push 0x4019cc
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00405844
add esp, 0x14
test eax, eax
js 0x405bc0
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
dec eax
cmp eax, 0x103
jbe 0x405b8f
mov eax, 0x8000ffff
jmp 0x405bc0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405ba7
mov eax, 0x80070002
jmp 0x405bc0
push 0
push 0x401a0c
push 0x4019d8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.UxTheme.dll_Ordinal_65]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ed00
leave
ret
Function at 0x40643c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4064a7
cmp dword [ebp - 4], 1
je 0x40647c
cmp dword [ebp - 4], 2
jne 0x406497
mov ecx, dword [ebp - 8]
test esi, esi
je 0x4064a1
test ecx, ecx
je 0x40649c
test cl, 1
jne 0x406497
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x4064a1
push 0xd
pop eax
jmp 0x4064a7
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4064f5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
je 0x40653a
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40650d
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, 0x80004005
call fcn.004040a9
int3
Function at 0x407fc4
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x220
mov eax, 0x40fc71
call fcn.0040f815
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
push eax
xor ebx, ebx
mov dword [ebp - 0x220], esi
push 0x402048
mov dword [ebp - 0x21c], ebx
call fcn.0040a145
mov dword [ebp - 4], ebx
test edi, edi
je 0x408178
cmp word [edi], bx
je 0x408178
mov eax, dword [esi + 0x10]
mov ecx, edi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x218], ebx
call fcn.0040986a
test eax, eax
js 0x408171
mov eax, dword [ebp - 0x218]
lea ebx, [eax + 0x104]
cmp ebx, eax
jb 0x408171
and dword [ebp - 0x218], 0
push ebx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.00408d17
mov esi, dword [ebp - 0x218]
test al, al
jne 0x408076
mov edi, 0x8007000e
jmp 0x408163
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x408092
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40814b
cmp edi, ebx
jbe 0x4080a0
mov edi, 0x8007007a
jmp 0x408163
mov eax, dword [ebp - 0x220]
mov ecx, 0x40151c
mov ebx, 0x401c18
cmp byte [eax + 0x32], 0
jne 0x4080b8
mov ebx, ecx
cmp byte [eax + 0x31], 0
mov edx, 0x401bf4
jne 0x4080c5
mov edx, ecx
cmp byte [eax + 0x30], 0
mov eax, 0x401bc8
jne 0x4080d2
mov eax, ecx
mov ecx, dword [ebp - 0x224]
test ecx, ecx
jne 0x4080e1
mov ecx, 0x40151c
push ebx
push edx
push eax
push ecx
push 0x402080
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.00405844
add esp, 0x1c
lea eax, [ebp - 0x214]
xor ecx, ecx
push 5
push ecx
push eax
push esi
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
jg 0x408161
mov eax, dword [0x411038]
cmp eax, 0x411038
je 0x40813c
test byte [eax + 0x1c], 8
je 0x40813c
push ebx
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.00406b3a
cmp ebx, 2
jl 0x40815a
cmp ebx, 3
jle 0x40814b
cmp ebx, 0xb
jne 0x40815a
test edi, edi
jle 0x408163
movzx edi, di
or edi, 0x80070000
jmp 0x408163
mov edi, 0x80004005
jmp 0x408163
xor edi, edi
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x40817d
mov edi, 0x80004005
jmp 0x40817d
mov edi, 0x80070057
lea ecx, [ebp - 0x22c]
call fcn.0040a18d
mov eax, edi
call fcn.0040f7b2
ret 0xc
Function at 0x40871e
Capabilities:
Set registry value

Disassembly:
push 0xc4
mov eax, 0x40fd0f
call fcn.0040f7dc
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push 0x2001f
push 0x401b48
mov word [edi], ax
push 0x80000001
mov word [ebx], ax
call fcn.0040654b
test eax, eax
jne 0x408887
lea ecx, [ebp - 0xd0]
call fcn.00406093
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.0040619c
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40887c
lea eax, [ebp - 0x18]
push eax
call fcn.004092e8
mov esi, dword [eax]
mov eax, dword [esi + 0x14]
mov ecx, 0x401eb8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4087bd
test dx, dx
je 0x4087b9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4087bd
add eax, 4
add ecx, 4
test dx, dx
jne 0x408797
xor eax, eax
jmp 0x4087c2
sbb eax, eax
or eax, 1
test eax, eax
je 0x408872
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call fcn.004064b4
test eax, eax
jne 0x408872
mov eax, dword [ebp - 0x10]
test al, 2
je 0x408872
mov ecx, dword [ebp - 0x1c]
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
xor eax, eax
mov dword [ecx + 0x98], 1
push eax
mov eax, dword [ebp + 0x18]
push dword [esi]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test byte [ebp - 0x10], 1
je 0x408846
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x408824
sub ecx, edx
sar ecx, 1
je 0x408842
push 0x401ed4
mov ecx, edi
call fcn.004094dc
mov ecx, edi
jmp 0x40886b
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x40884b
sub ecx, edx
sar ecx, 1
je 0x408869
push 0x401ed4
mov ecx, ebx
call fcn.004094dc
mov ecx, ebx
push dword [esi]
call fcn.004094dc
cmp dword [ebp - 0x18], 0
jne 0x408784
lea ecx, [ebp - 0xd0]
call fcn.0040611a
call fcn.0040f798
ret 0x14
Function at 0x409545
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x411304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0xa2
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov eax, 0xa3
push eax
shr ebx, 0xf
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
push 2
pop edx
jae 0x409587
or ebx, edx
mov eax, 0xa4
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x40959d
or ebx, 4
mov eax, 0xa5
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x4095b3
or ebx, 8
mov eax, 0xa0
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x4095c9
or ebx, 0x10
mov eax, 0xa1
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x4095df
or ebx, 0x20
push 0x1c0
lea eax, [ebp - 0x1c4]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor edi, edi
xor ecx, ecx
inc edi
mov edx, 0x1000
push 2
pop esi
test bl, 1
je 0x409627
mov eax, 0xa2
mov dword [ebp - 0x1c4], edi
mov ecx, edi
mov word [ebp - 0x1c0], ax
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x1b4], edx
test bl, 2
je 0x409659
imul eax, ecx, 0x1c
mov esi, 0xa3
push 2
inc ecx
mov word [ebp + eax - 0x1c0], si
mov dword [ebp + eax - 0x1c4], edi
mov dword [ebp + eax - 0x1bc], 3
mov dword [ebp + eax - 0x1b4], edx
pop esi
test bl, 4
je 0x409687
imul eax, ecx, 0x1c
mov esi, 0xa4
push 2
inc ecx
mov word [ebp + eax - 0x1c0], si
pop esi
mov dword [ebp + eax - 0x1c4], edi
mov dword [ebp + eax - 0x1bc], esi
mov dword [ebp + eax - 0x1b4], edx
test bl, 8
je 0x4096b9
imul eax, ecx, 0x1c
mov esi, 0xa5
push 2
inc ecx
mov word [ebp + eax - 0x1c0], si
mov dword [ebp + eax - 0x1c4], edi
mov dword [ebp + eax - 0x1bc], 3
mov dword [ebp + eax - 0x1b4], edx
pop esi
test bl, 0x10
je 0x4096e7
imul eax, ecx, 0x1c
inc ecx
mov dword [ebp + eax - 0x1c4], edi
mov edi, 0xa0
mov word [ebp + eax - 0x1c0], di
xor edi, edi
mov dword [ebp + eax - 0x1bc], esi
inc edi
mov dword [ebp + eax - 0x1b4], edx
test bl, 0x20
je 0x409712
imul eax, ecx, 0x1c
mov ebx, 0xa1
inc ecx
mov dword [ebp + eax - 0x1c4], edi
mov word [ebp + eax - 0x1c0], bx
mov dword [ebp + eax - 0x1bc], esi
mov dword [ebp + eax - 0x1b4], edx
imul eax, ecx, 0x1c
mov ebx, 0x1000
push 0x5b
pop esi
inc ecx
push 0x55
and dword [ebp + eax - 0x1bc], 0
mov dword [ebp + eax - 0x1b4], edx
mov dword [ebp + eax - 0x1c4], edi
mov word [ebp + eax - 0x1c0], si
imul eax, ecx, 0x1c
inc ecx
pop edx
push 2
and dword [ebp + eax - 0x1bc], 0
mov word [ebp + eax - 0x1c0], dx
mov dword [ebp + eax - 0x1c4], edi
mov dword [ebp + eax - 0x1b4], ebx
imul eax, ecx, 0x1c
inc ecx
mov word [ebp + eax - 0x1c0], dx
mov dword [ebp + eax - 0x1c4], edi
pop edx
mov dword [ebp + eax - 0x1bc], edx
mov dword [ebp + eax - 0x1b4], ebx
imul eax, ecx, 0x1c
push 0x1c
mov dword [ebp + eax - 0x1c4], edi
mov word [ebp + eax - 0x1c0], si
mov dword [ebp + eax - 0x1bc], edx
mov dword [ebp + eax - 0x1b4], ebx
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ecx + 1]
push eax
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ed00
leave
ret
Function at 0x409edb
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x222c
call fcn.0040f8d0
mov eax, dword [0x411304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov dword [ebp - 0x2224], ecx
push edi
mov dword [ebp - 0x2228], eax
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 0x2210]
push eax
push 0x2000
lea eax, [ebp - 0x220c]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x40a051
mov eax, dword [ebp - 0x2210]
mov ecx, 0x800
shr eax, 2
mov dword [ebp - 0x2210], eax
cmp eax, ecx
jbe 0x409f47
mov dword [ebp - 0x2210], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [ebp - 0x2214], edi
lea eax, [ebp - 0x2214]
mov dword [ebp - 0x2218], ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40a051
push esi
mov esi, edi
cmp dword [ebp - 0x2210], esi
jbe 0x40a04c
lea eax, [ebp - 0x221c]
push eax
push dword [ebp + esi*4 - 0x220c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40a02e
mov eax, dword [ebp - 0x221c]
cmp eax, dword [ebp - 0x2214]
jne 0x40a02e
cmp ebx, dword [ebp + esi*4 - 0x220c]
je 0x40a02e
push dword [ebp + esi*4 - 0x220c]
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40a028
lea eax, [ebp - 0x222c]
push eax
push 4
lea eax, [ebp - 0x2220]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x40a021
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2220]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x40a021
push dword [ebp - 0x2224]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40a03d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x2218]
inc esi
cmp esi, dword [ebp - 0x2210]
jb 0x409f80
jmp 0x40a04c
mov eax, dword [ebp - 0x2228]
mov edi, dword [ebp + esi*4 - 0x220c]
mov dword [eax], ebx
mov eax, edi
pop esi
jmp 0x40a053
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ed00
leave
ret 4

Function at 0x40a09a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 2
push dword [ebp + 8]
mov dword [ebp - 4], 0x208
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x40a0d8
xor ecx, ecx
mov word [esi], cx
test eax, eax
jle 0x40a0d8
movzx eax, ax
or eax, 0x80070000
pop esi
leave
ret 0xc
Function at 0x40a64e
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x40ffef
call fcn.0040f815
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ebx
push eax
push 0x402864
push 0x17
push ebx
push 0x403108
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40a710
mov eax, dword [ebp - 0x21c]
push 2
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x41244c]
call esi
mov esi, eax
test esi, esi
js 0x40a710
mov ecx, dword [ebp - 0x21c]
mov edx, 0x1c0
call fcn.0040a543
test eax, eax
jns 0x40a70e
mov edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x402738
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40a6ea
call fcn.0040599c
mov esi, eax
test esi, esi
js 0x40a710
mov eax, dword [edi]
push ebx
push 0x1c0
mov esi, dword [eax + 0x50]
lea eax, [ebp - 0x218]
push eax
push ebx
push edi
mov ecx, esi
call dword [0x41244c]
call esi
mov esi, eax
test esi, esi
js 0x40a710
mov esi, ebx
lea ecx, [ebp - 0x21c]
call fcn.0040a87a
mov eax, esi
call fcn.0040f7b2
ret
Function at 0x40b94b
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x411304]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [ebp - 0x214], eax
push ecx
lea ecx, [ebp - 0x20c]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0040a8ce
push 0x402c98
lea ecx, [ebp - 0x20c]
call fcn.0040acb2
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40b9c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b9f1
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.0040b6e6
mov edi, eax
jmp 0x40b9f1
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov ecx, esi
call fcn.0040b831
mov ebx, eax
test ebx, ebx
jns 0x40b9f7
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.0040b6c9
mov edi, ebx
test esi, esi
je 0x40ba0f
jmp 0x40ba09
mov ecx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.0040b73b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ed00
leave
ret 8

Function at 0x40c569
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, cl
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push esi
test cl, cl
je 0x40c5b6
xor esi, esi
push esi
push eax
push esi
push 3
push 1
push esi
push esi
push 0x402dd8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c5e9
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x402cac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40c5e0
push eax
push 0xf003f
push 0
push 0x402d00
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c5e9
push 0x402e90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x40c5f2
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0040c2ca
test al, al
lea eax, [ebp - 4]
je 0x40c641
xor esi, esi
push esi
push eax
push esi
push 3
push 1
push esi
push esi
push 0x402dd8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c674
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x402cbc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40c66b
push eax
push 0xf003f
push 0
push 0x402d00
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c674
push 0x402e90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x40e316
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x411304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x434], 0x202
push eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x430], 0x111
push eax
push 2
xor esi, esi
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x40e371
lea eax, [ebp - 0x42c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea esi, [eax + 2]
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push 2
push 0x402ffc
push 0x401c40
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jle 0x40e3a6
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x40e3c7
test esi, esi
je 0x40e3c7
xor ebx, ebx
lea eax, [ebp - 0x208]
inc ebx
push ebx
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
je 0x40e3c9
xor bl, bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ed00
leave
ret

Function at 0x40e4f2
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40e516
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x40e55f
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
mov esi, ebx
neg esi
and esi, edi
lea ecx, [ebx - 1]
mov eax, ecx
and ecx, dword [ebp - 4]
and eax, edi
dec ecx
add eax, ebx
add eax, ecx
div ebx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x40e55d
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x40e551
pop esi
pop ebx
pop edi
leave
ret