joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0x200
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00511c50
add esp, 0xc
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40d4e4
or eax, 0xffffffff
jmp 0x40d631
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d516
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40d631
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 0x15], al
add dword [ebp - 0x10], 1
cmp byte [ebp - 0x15], 0
jne 0x40d52f
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 2
jbe 0x40d62e
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [ebp - 0x25], dl
add dword [ebp - 0x20], 1
cmp byte [ebp - 0x25], 0
jne 0x40d563
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
jne 0x40d5c1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [edx]
mov byte [ebp - 0x35], al
add dword [ebp - 0x30], 1
cmp byte [ebp - 0x35], 0
jne 0x40d59c
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x3c]
mov byte [edx - 1], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x40]
mov al, byte [edx]
mov byte [ebp - 0x45], al
add dword [ebp - 0x40], 1
cmp byte [ebp - 0x45], 0
jne 0x40d5d0
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x4c]
movsx eax, byte [edx - 1]
cmp eax, 0xd
jne 0x40d62e
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [ebp - 0x55], cl
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x40d609
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x5c]
mov byte [eax - 1], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d670
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x58482c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40d737
push 0x200
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40d737
push str._c_del
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.____NUL
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40d737
push 0
push 0
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x408]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x40d737
mov eax, 1
jmp 0x40d739
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511b60
mov esp, ebp
pop ebp
ret

Function at 0x40d7a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40d7dc
xor eax, eax
jmp 0x40d82b
mov edx, dword [ebp + 0xc]
push edx
call fcn.005111a5
add esp, 4
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x40d81d
mov eax, dword [ebp - 8]
jmp 0x40d82b
mov edx, dword [ebp - 8]
push edx
call fcn.005110c8
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40d830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00511c50
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x8540
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], 0
cmp dword [0x5881a8], 0
je 0x40d871
mov dword [ebp - 0x30], str.runas
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x4e20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x40d8b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x588198], 0
je 0x40d8d3
movzx eax, byte [0x58819d]
test eax, eax
je 0x40d8d3
mov dword [ebp - 8], 0x100
jmp 0x40d8da
mov dword [ebp - 8], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
or edx, 0xf003f
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d946
cmp dword [0x588198], 0
je 0x40d919
movzx edx, byte [0x58819d]
test edx, edx
je 0x40d919
mov dword [ebp - 0xc], 0x100
jmp 0x40d920
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x15], cl
add dword [ebp - 0x10], 1
cmp byte [ebp - 0x15], 0
jne 0x40d955
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40d99d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40d9a9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40d9b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x588198], 0
je 0x40d9d3
movzx eax, byte [0x58819d]
test eax, eax
je 0x40d9d3
mov dword [ebp - 8], 0x100
jmp 0x40d9da
mov dword [ebp - 8], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
or edx, 0xf003f
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40da46
cmp dword [0x588198], 0
je 0x40da19
movzx edx, byte [0x58819d]
test edx, edx
je 0x40da19
mov dword [ebp - 0xc], 0x100
jmp 0x40da20
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40da71
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40da7d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4110e0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b3e3
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x58482c]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], ax
mov byte [ebp - 0x234], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x233]
push ecx
call fcn.00511c50
add esp, 0xc
push 0x53df34
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x23c]
call fcn.0040cde0
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x244]
push ecx
lea edx, [ebp - 0x238]
push edx
call fcn.0040cd30
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004019f0
push 0x200
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.00511c50
add esp, 0xc
lea ecx, [ebp - 0x238]
call fcn.00401730
cmp eax, 0x200
jle 0x4111e4
lea ecx, [ebp - 0x238]
call fcn.004019f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004019f0
jmp 0x4112ec
lea ecx, [ebp - 0x238]
call fcn.00401730
cmp eax, 0x200
jae 0x411262
lea ecx, [ebp - 0x238]
call fcn.00401750
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x248]
mov cl, byte [eax]
mov byte [ebp - 0x251], cl
mov edx, dword [ebp - 0x24c]
mov al, byte [ebp - 0x251]
mov byte [edx], al
mov ecx, dword [ebp - 0x248]
add ecx, 1
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x24c]
add edx, 1
mov dword [ebp - 0x24c], edx
cmp byte [ebp - 0x251], 0
jne 0x41121f
lea ecx, [ebp - 0x238]
call fcn.00401730
mov byte [ebp + eax - 0x233], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 3
lea eax, [ebp - 0x234]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov ecx, 0x414
mov word [ebp - 0x1c], cx
mov dword [ebp - 0x1a], 0
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x12], 0
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp + 8]
call fcn.00401750
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x238]
call fcn.004019f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004019f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00511b60
mov esp, ebp
pop ebp
ret
Function at 0x411310
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x774
mov eax, dword [0x58482c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x418], 1
mov byte [ebp - 0x208], 0
push 0x1ff
push 0
lea eax, [ebp - 0x207]
push eax
call fcn.00511c50
add esp, 0xc
mov byte [ebp - 0x758], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x757]
push ecx
call fcn.00511c50
add esp, 0xc
mov byte [ebp - 0x410], 0
push 0x1ff
push 0
lea edx, [ebp - 0x40f]
push edx
call fcn.00511c50
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.0040f5f0
mov dword [ebp - 0x20c], 0
lea ecx, [ebp + 0xc]
call fcn.00401730
cmp eax, 0x200
jle 0x4113c1
lea ecx, [ebp - 0x210]
call fcn.004019f0
lea ecx, [ebp + 0xc]
call fcn.004019f0
jmp 0x411571
lea ecx, [ebp + 0xc]
call fcn.00401730
cmp eax, 0x200
jae 0x411439
lea ecx, [ebp + 0xc]
call fcn.00401750
mov dword [ebp - 0x760], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x764], eax
mov ecx, dword [ebp - 0x764]
mov dword [ebp - 0x768], ecx
mov edx, dword [ebp - 0x760]
mov al, byte [edx]
mov byte [ebp - 0x769], al
mov ecx, dword [ebp - 0x764]
mov dl, byte [ebp - 0x769]
mov byte [ecx], dl
mov eax, dword [ebp - 0x760]
add eax, 1
mov dword [ebp - 0x760], eax
mov ecx, dword [ebp - 0x764]
add ecx, 1
mov dword [ebp - 0x764], ecx
cmp byte [ebp - 0x769], 0
jne 0x4113f6
lea edx, [ebp - 0x410]
add edx, 0xffffffff
mov dword [ebp - 0x770], edx
mov eax, dword [ebp - 0x770]
mov cl, byte [eax + 1]
mov byte [ebp - 0x771], cl
add dword [ebp - 0x770], 1
cmp byte [ebp - 0x771], 0
jne 0x411448
mov edi, dword [ebp - 0x770]
mov edx, dword [0x53df3c]
mov dword [edi], edx
mov al, byte [0x53df40]
mov byte [edi + 4], al
lea ecx, [ebp - 0x558]
push ecx
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
jne 0x4114b8
lea ecx, [ebp - 0x210]
call fcn.004019f0
lea ecx, [ebp + 0xc]
call fcn.004019f0
jmp 0x411571
mov dword [ebp - 0x75c], 0
cmp dword [ebp - 0x418], 0
je 0x411551
mov eax, dword [ebp - 0x75c]
add eax, 1
mov dword [ebp - 0x75c], eax
lea ecx, [ebp + 0xc]
call fcn.00401730
cmp eax, 0x200
jbe 0x4114ef
jmp 0x411551
lea ecx, [ebp - 0x52c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s_s
lea eax, [ebp - 0x208]
push eax
call fcn.00513906
add esp, 0x10
mov ecx, dword [ebp - 0x558]
and ecx, 0x10
je 0x41151b
jmp 0x411532
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x52c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004077e0
lea edx, [ebp - 0x558]
push edx
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x418], eax
jmp 0x4114c2
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x210]
call fcn.004019f0
lea ecx, [ebp + 0xc]
call fcn.004019f0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511b60
mov esp, ebp
pop ebp
ret
Function at 0x4151a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042185a
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4151de
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00414df6
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41523c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x415260
cmp dword [edi + 0x54], 0
jne 0x415260
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042185a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004151fd
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bf9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41bfe1
call fcn.0042185a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bfe1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41bffd
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041bb14
mov esi, eax
test edi, edi
je 0x41bffb
test ebx, ebx
je 0x41bffb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41cf2a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5323ed
call fcn.00513eeb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41cf4f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41cf95
lea ecx, [ebp - 0x10]
call fcn.0040f5f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041337d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401390
mov eax, esi
call fcn.00513fc3
ret 8
Function at 0x422032
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42207a
call fcn.0042185a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42207a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4220bd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4220a6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4220a6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4220ba
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42bea2
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x58482c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x42bedb
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x42bf02
cmp dword [0x58a5c0], 0
jne 0x42bf02
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x42bef5
push 0x12
call esi
test bx, ax
je 0x42bef9
mov eax, edi
jmp 0x42bf6d
push edi
call fcn.00516ae1
pop ecx
jmp 0x42bf6d
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.0041fb20
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00511b60
leave
ret 4
Function at 0x43c0c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x43c0e3
call fcn.00414104
call fcn.0042185a
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x43c103
xor eax, eax
jmp 0x43c21e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x43c0fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43c0fc
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413146
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x43c0de
cmp dword [ebp + 0x10], 0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 6]
lea edx, [eax + 6]
push ebx
push edx
je 0x43c160
mov ecx, edi
call fcn.004349e7
jmp 0x43c165
call fcn.004348d1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x43c177
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x43c192
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x43c20a
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x43c1e1
lea eax, [esi + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
jne 0x43c1d4
test eax, eax
jbe 0x43c1d4
push eax
mov ecx, 0x5812ac
call fcn.00442253
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, word [esi + 6]
add dword [ebp - 4], 2
inc ebx
cmp ebx, eax
jl 0x43c1ab
mov eax, dword [ebp + 8]
mov dword [edi + 0xbe0], eax
movzx ecx, word [esi + 6]
mov eax, dword [edi]
push 1
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 0x318]
mov ebx, eax
test ebx, ebx
jne 0x43c20a
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.00413175
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc