joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x52286b
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x569f90]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
mov eax, dword [0x569f90]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040e8b1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402624
push 0x80004005
call fcn.00409fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push 0x104
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x160], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402656
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x10]
call fcn.00409d40
push 0x12
push str.System32Main.cpl
lea ecx, [esp + 0x10]
call fcn.00409a30
push 0x38
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004fe520
mov ecx, dword [esi + 0x20]
mov esi, dword [esp + 0x14]
mov eax, 1
add esp, 0xc
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
cmp dword [esi - 4], eax
jle 0x4026c1
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0xc]
call fcn.00409bc0
mov esi, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [esi - 0x10]
mov dword [esp + 0x158], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.004fca4c
add esp, 0x154
ret

Function at 0x402740
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x5715f4], ax
movzx eax, ax
cmp eax, 0x804
jg 0x40289a
je 0x40288f
sub eax, 0x401
cmp eax, 0x23
ja case.0x40276a.1026
jmp dword [eax*4 + 0x4028d4]
mov dword [0x5716d0], 0x83
ret
mov dword [0x5716d0], 0x85
ret
mov dword [0x5716d0], 0x82
ret
mov dword [0x5716d0], 0x86
ret
mov dword [0x5716d0], 0x88
ret
mov dword [0x5716d0], 0x89
ret
mov dword [0x5716d0], 0x8a
ret
mov dword [0x5716d0], 0x8b
ret
mov dword [0x5716d0], 0x8c
ret
mov dword [0x5716d0], 0x8f
ret
mov dword [0x5716d0], 0x8e
ret
mov dword [0x5716d0], 0x91
ret
mov dword [0x5716d0], 0x90
ret
mov dword [0x5716d0], 0x92
ret
mov dword [0x5716d0], 0x93
ret
mov dword [0x5716d0], 0x94
ret
mov dword [0x5716d0], 0x95
ret
mov dword [0x5716d0], 0x96
ret
mov dword [0x5716d0], 0x97
ret
mov dword [0x5716d0], 0x98
ret
mov dword [0x5716d0], 0x99
ret
mov dword [0x5716d0], 0x9a
ret
mov dword [0x5716d0], 0x9b
ret
mov dword [0x5716d0], 0x9c
ret
mov dword [0x5716d0], 0x9e
ret
mov dword [0x5716d0], 0x9f
ret
mov dword [0x5716d0], 0x84
ret
sub eax, 0x816
je 0x4028c7
sub eax, 0x3ee
je 0x4028bc
sub eax, 6
jne case.0x40276a.1026
mov dword [0x5716d0], 0x87
ret
mov dword [0x5716d0], 0x9d
ret
mov dword [0x5716d0], 0x8d
ret
Function at 0x403400
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403437
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret

Function at 0x403440
Capabilities:
Set registry value

Disassembly:
sub esp, 0x204
mov eax, dword [0x569f90]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
mov esi, dword [esp + 0x210]
lea eax, [esp + 4]
mov ecx, eax
mov edx, 0x200
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffdfe]
test ecx, ecx
je 0x40348b
mov cl, byte [esi + eax]
test cl, cl
je 0x40348b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x403470
jmp 0x40348f
test edx, edx
jne 0x403490
dec eax
mov byte [eax], 0
lea eax, [esp + 4]
call fcn.00401120
mov edx, dword [esp + 0x210]
mov eax, dword [edx - 0xc]
mov edx, dword [esp + 0x20c]
push eax
lea ecx, [esp + 8]
push ecx
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x20c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x4034e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403506
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004fca4c
add esp, 0x204
ret

Function at 0x403520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0
or esi, 0xffffffff
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40356f
cmp dword [esp + 4], 4
jne 0x40356f
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40358f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x4035a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5227ba
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x569f90]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x569f90]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov dword [esp + 0x14], edi
mov esi, ecx
mov dword [esp + 0x10], 0
push 0x54c563
mov ecx, edi
mov dword [esp + 0x228], 1
call fcn.00409930
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x230]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push eax
push esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403726
mov eax, dword [esp + 8]
cmp eax, 1
je 0x403650
cmp eax, 2
je 0x403650
cmp eax, 7
jne 0x4036c3
mov ecx, dword [esp + 0xc]
test ecx, ecx
jbe 0x403678
lea eax, [esp + 0x18]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403660
sub eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00409d40
jmp 0x4036bf
jne 0x4036c3
lea eax, [esp + 0x18]
mov esi, 0x54b03c
mov ecx, eax
mov edx, 0x200
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffdfe]
test ecx, ecx
je 0x4036ab
mov cl, byte [esi + eax]
test cl, cl
je 0x4036ab
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x403690
jmp 0x4036af
test edx, edx
jne 0x4036b0
dec eax
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [eax], 0
call fcn.00409e30
mov eax, dword [esp + 8]
test eax, eax
jne 0x403726
lea eax, [esp + 0x18]
mov esi, 0x54b03c
mov ecx, eax
mov edx, 0x200
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffdfe]
test ecx, ecx
je 0x4036fb
mov cl, byte [esi + eax]
test cl, cl
je 0x4036fb
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4036e0
jmp 0x4036ff
test edx, edx
jne 0x403700
dec eax
mov byte [eax], 0
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403710
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00409d40
mov byte [esp + 0x224], 0
mov eax, dword [esp + 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403751
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004fca4c
add esp, 0x220
ret
Function at 0x407320
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5224e7
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x569f90]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.00409550
add eax, 0x10
mov dword [esi + 8], eax
mov dword [esp + 0x14], 0
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
call fcn.00409550
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x18], 1
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
call fcn.00409550
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x1c], 2
mov eax, dword [edi + 0x18]
sub eax, 0x10
push eax
call fcn.00409550
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x20], 3
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
sub eax, 0x10
push eax
call fcn.00409550
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [esp + 0x24], 4
mov eax, dword [edi + 0x24]
sub eax, 0x10
push eax
call fcn.00409550
add esp, 0x18
add eax, 0x10
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x408070
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x571708]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x408097
mov eax, dword [0x57170c]
test eax, eax
je 0x408119
jmp 0x4080d5
push eax
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x4080bf
push 0xffffffffffffffff
push esi
call ebx
cmp eax, 1
jne 0x4080b8
mov dword [0x571708], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
push 3
call dword [0x571214]
mov eax, dword [0x57170c]
add esp, 8
test eax, eax
je 0x40810a
push eax
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x4080fd
push 0xffffffffffffffff
push esi
call ebx
cmp eax, 1
jne 0x4080f6
mov dword [0x57170c], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
push 4
call dword [0x571214]
add esp, 8
push 0
mov ebx, 0x32
call fcn.00407960
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x408160
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x522678
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x569f90]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
call fcn.0040e8b1
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4081a2
push 0x80004005
call fcn.00409fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x18]
mov dword [esp + 0x78], ebx
call fcn.00408380
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 1
call fcn.004095c0
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1b
push str.ElantechETDCtrlHelper.exe
lea ecx, [esp + 0x1c]
call fcn.00409a30
lea ecx, [esp + 0x1c]
call fcn.00418aca
mov byte [esp + 0x78], 2
mov esi, dword [esp + 0x14]
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.00418b5f
mov edi, eax
cmp edi, 1
jne 0x408273
push 0x38
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.004fe520
add esp, 0xc
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], 0x400
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], ebx
cmp dword [esi - 4], edi
jle 0x408264
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00409bc0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], bl
call fcn.00418af0
lea eax, [esi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
Function at 0x4082c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x204
mov eax, dword [0x569f90]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
push edi
mov edi, 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push pe_nt_image_headers32
lea ecx, [esp + 0x10c]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 8]
push str.Microsoft_Word
push edx
call fcn.004fd120
add esp, 8
test eax, eax
jne 0x408334
lea eax, [esp + 8]
push str.Microsoft_Excel
push eax
call fcn.004fd120
add esp, 8
test eax, eax
je 0x40834d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004fca4c
add esp, 0x204
ret
lea ecx, [esp + 8]
push str.Microsoft_PowerPoint
push ecx
call fcn.004fd120
add esp, 8
test eax, eax
jne 0x408334
mov ecx, dword [esp + 0x208]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004fca4c
add esp, 0x204
ret

Function at 0x408380
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x522632
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x569f90]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x569f90]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov dword [esp + 0x220], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.0040e8b1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4083e8
push 0x80004005
call fcn.00409fa0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp + 0x230], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408477
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408456
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00409d40
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004fca4c
add esp, 0x220
ret
Function at 0x4086f0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x569f90]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.004fe520
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, 1
jne 0x40879f
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x408759
cmp dword [esp + 8], 1
jb 0x40879f
mov eax, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004fca4c
add esp, 0xa0
ret
mov ecx, dword [esp + 8]
cmp eax, 6
jne 0x40877e
test ecx, ecx
jne 0x408780
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004fca4c
add esp, 0xa0
ret
jb 0x40879f
cmp ecx, 1
jb 0x40879f
mov eax, 3
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004fca4c
add esp, 0xa0
ret
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor eax, eax
call fcn.004fca4c
add esp, 0xa0
ret

Function at 0x409700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409719
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409754
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x409750
lea ebx, [ebx]
cmp esi, eax
jae 0x409754
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409740
cmp esi, eax
jb 0x40975a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40cbc5
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.00410730
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 0x40cbfe
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.0040c816
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 0x40cc5c
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 0x40cc80
cmp dword [edi + 0x54], 0
jne 0x40cc80
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00410730
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.0040cc1d
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 0x416812
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 0x416859
call fcn.00410730
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416859
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x416875
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041638c
mov esi, eax
test edi, edi
je 0x416873
test ebx, ebx
je 0x416873
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41930c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51de35
call fcn.004fdf0c
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x419331
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x419377
lea ecx, [ebp - 0x10]
call fcn.0040a010
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.0040f1dd
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.00409ff0
mov eax, esi
call fcn.004fdfe4
ret 8
Function at 0x41d4eb
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 [0x569f90]
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 0x41d524
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x41d54b
cmp dword [0x56d6f0], 0
jne 0x41d54b
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x41d53e
push 0x12
call esi
test bx, ax
je 0x41d542
mov eax, edi
jmp 0x41d5b6
push edi
call fcn.00501acb
pop ecx
jmp 0x41d5b6
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.0040d3ec
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.004fca4c
leave
ret 4
Function at 0x42d5c0
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 0x42d5da
call fcn.0040fd4b
call fcn.00410730
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x42d5fa
xor eax, eax
jmp 0x42d715
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42d5f3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42d5f3
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.0040a360
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x42d5d5
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 0x42d657
mov ecx, edi
call fcn.00426098
jmp 0x42d65c
call fcn.00425f82
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x42d66e
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x42d689
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x42d701
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x42d6d8
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 0x42d6cb
test eax, eax
jbe 0x42d6cb
push eax
mov ecx, 0x566ca4
call fcn.0041ceb7
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 0x42d6a2
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 0x42d701
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.0040a38f
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