joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f645
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f676
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40f67d
cmp ebx, dword [ebp + 8]
jae 0x40f67d
xor eax, eax
jmp 0x40f863
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f68e
xor eax, eax
inc eax
jmp 0x40f862
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f6a0
cmp ecx, edx
jae 0x40f704
cmp dword [eax + 4], 0
je 0x40f6a9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f695
cmp dword [ebp + 8], 0
je 0x40f6c3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f704
cmp eax, esi
jae 0x40f704
mov ecx, dword [0x41a300]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40f6e5
cmp dword [eax*4 + 0x41a308], esi
je 0x40f70b
inc eax
cmp eax, ecx
jl 0x40f6d7
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x40f77b
mov eax, dword [ebp + 8]
jmp 0x40f77d
xor eax, eax
jmp 0x40f862
test eax, eax
jle 0x40f686
xor edx, edx
mov ebx, 0x41a348
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40f686
cmp dword [eax*4 + 0x41a308], esi
je 0x40f75a
lea eax, [ecx - 1]
test eax, eax
jl 0x40f747
cmp dword [eax*4 + 0x41a308], esi
je 0x40f743
dec eax
jns 0x40f737
test eax, eax
jge 0x40f758
cmp ecx, 0x10
jge 0x40f753
inc ecx
mov dword [0x41a300], ecx
lea eax, [ecx - 1]
jmp 0x40f75a
je 0x40f772
xor edx, edx
test eax, eax
jl 0x40f772
lea ecx, [edx*4 + 0x41a308]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x40f760
xor eax, eax
xchg dword [ebx], eax
jmp 0x40f686
xor eax, eax
test eax, eax
je 0x40f860
cmp dword [ebp - 8], 0x1000000
jne 0x40f860
test byte [ebp - 0xc], 0xcc
je 0x40f7f2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f860
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f860
cmp word [eax + 0x18], 0x10b
jne 0x40f860
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f860
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f7f2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f7f2
test byte [ecx + 0x27], 0x80
jne 0x40f704
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x41a348
xchg dword [edx], ecx
test ecx, ecx
jne 0x40f862
mov ecx, dword [0x41a300]
test ecx, ecx
mov edx, ecx
jle 0x40f821
lea eax, [ecx*4 + 0x41a304]
cmp dword [eax], esi
je 0x40f821
dec edx
sub eax, 4
test edx, edx
jg 0x40f815
test edx, edx
jne 0x40f852
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f82e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f846
lea eax, [edx*4 + 0x41a308]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x40f834
cmp ecx, 0x10
jge 0x40f852
inc ecx
mov dword [0x41a300], ecx
xor eax, eax
mov ecx, 0x41a348
xchg dword [ecx], eax
jmp 0x40f686
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404210
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4043ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042c0
xor eax, eax
push ebp
push 0x4042b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4042a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4043cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4043a1
cmp byte [ebp - 0xd], 0
jne 0x404302
cmp byte [ebp - 0x12], 0
je 0x4043a1
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40431b
dec ebx
cmp byte [ebx], 0x2e
je 0x40432a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40431a
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4043a1
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404357
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4043a1
cmp byte [ebp - 0xd], 0
je 0x4043a1
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4043a1
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406fbc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406ff5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403614
jmp 0x406ffe
mov eax, ebx
mov edx, esi
call fcn.004035c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407008
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407029
mov al, byte [esp]
jmp 0x40702b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41099c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4109a2
ret

Function at 0x412cec
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x412d3d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x412d24
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x412d14
jmp 0x412d3d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x412d25
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c7f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x41c80c
cmp dword [esi + 4], 0
je 0x41c833
mov eax, ebx
call fcn.0041ba24
test eax, eax
jne 0x41c825
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41c943
mov edx, esi
mov eax, ebx
call fcn.0041c494
jmp 0x41c943
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41c93c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041ddf0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0041a92c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041c7f0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041ddf0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c943
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f91c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403530
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41f97d
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x41f97d
cmp byte [ebp - 0x102], 0
je 0x41f97d
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040375c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420d0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x420d8d
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x420d3e
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x420d50
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x420d5c
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00420b98
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x420d81
push ebp
mov eax, dword [ebp - 4]
call fcn.00420c7c
pop ecx
mov ebx, eax
cmp bl, 2
je 0x420d5c
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422b84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x430714
cmp dword [edi], 0
jne 0x422c00
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x430710]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x42f700
mov ecx, 2
call fcn.00402690
mov edx, 0x422b5c
lea eax, [esi + 5]
call fcn.00422b7c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422b7c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x422bd5
mov dword [0x430710], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x422d24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x422d74]
test si, 4
je 0x422d38
or bl, 1
test si, 8
je 0x422d42
or bl, 4
test si, 1
je 0x422d4c
or bl, 8
test si, 2
je 0x422d56
or bl, 0x10
test si, 0x10
je 0x422d60
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x422d6f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4271c0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x427365
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a10c]
call fcn.00402aa4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403530
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x42733b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0041f0bc
test al, al
je 0x42732e
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x427374
lea eax, [ebp - 0x254]
call fcn.00406e2c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42732e
xor eax, eax
push ebp
push 0x427327
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4273ac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x427310
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040375c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x427310
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040375c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42732e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x427231
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ca48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42736c
lea eax, [ebp - 0x260]
call fcn.00403530
ret

Function at 0x4275e0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4306e8]
cmp byte [eax + 0x85], 0
jne 0x427651
cmp dword [0x430720], 0
jne 0x427612
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x42759c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x430720], eax
cmp dword [0x43071c], 0
jne 0x42762d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x43071c], eax
cmp dword [0x430724], 0
jne 0x427651
push esp
push 0
push 0
push 0x427540
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x430724], eax
pop edx
ret
Function at 0x427740
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x427757
add esp, 0xfffffff0
call fcn.00402c98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040f2f8
mov dl, 1
mov eax, dword [0x409e50]
call fcn.00402aa4
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x409e50]
call fcn.00402aa4
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x41086c]
call fcn.004173cc
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x4278b0
mov eax, dword [0x42f974]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00417764
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x428f04
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x42f974]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00408464
test eax, eax
je 0x427838
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00406880
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040848c
test eax, eax
je 0x42784c
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040375c
mov eax, dword [0x42f8f8]
cmp byte [eax], 0
jne 0x42787d
mov eax, ebx
call fcn.00427994
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x4278a5
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427be8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4306e8]
cmp dword [eax + 0x24], 0
je 0x427c78
cmp dword [ebx + 0x74], 0
jne 0x427c75
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x427b7c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x427c75
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x427c44
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x427c75
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040aed0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x427c50
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x428560
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x428595
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403614
jmp 0x42859f
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.004035c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x429188
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x4291c0
mov eax, esi
call fcn.0041df88
test al, al
je 0x4291c0
mov eax, dword [ebx + 0x64]
call fcn.0041ddf0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4291c0
push 0
mov eax, dword [ebx + 0x64]
call fcn.0041ddf0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401010
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov eax, 0x12a4
call fcn.0040d330
mov eax, dword [esp + 0x12a8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x12b4]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [esi + 4], eax
je 0x401038
mov eax, ecx
mov dword [esi + 8], eax
lea eax, [esp + 0x1c]
mov edi, 1
push eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 5
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0xf01ff
mov dword [esi + 0x50], 0x10
mov dword [esi + 0x54], 2
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi], 0x4292c0
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp edx, 2
sete cl
mov dword [esi + 0x44], ecx
mov dword [0x430388], edi
mov dword [0x43038c], esi
mov eax, dword [esi + 0x44]
cmp eax, ebx
mov dword [esi + 0x1c], 0x10
mov dword [esi + 0x2c], ebx
je 0x401190
mov eax, 0xff
mov ecx, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x2b0]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xb0]
push edx
push eax
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x2bc]
push ecx
lea eax, [esp + 0xc0]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x401190
lea ecx, [esp + 0x2b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x401190
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x2b0]
mov dword [esi + 0x40], eax
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x12a4
ret 8
Function at 0x401380
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x44], ebx
jne 0x401402
mov ecx, dword [0x42e024]
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401456
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebx
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4013ee
cmp dword [esp + 0x10], ebx
jbe 0x4013ee
mov ebx, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xc
ret
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
je 0x401456
mov ecx, dword [esi + 4]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, ebx
je 0x401443
push eax
call esi
push edi
mov ebx, 1
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x401453
mov ebx, 1
push edi
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0xc
ret