joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402320
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40c
mov eax, dword [0x406018]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push edi
push 0x400
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
lea ebx, [esi + 0x400]
push 0
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.kernel.ini
push ecx
call fcn.004021e0
add esp, 4
push eax
push str._s_s
mov eax, 0x400
lea edi, [esp + 0x14]
call fcn.00401000
add esp, 0xc
mov ecx, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push 0x400
push esi
push str.QQPenguin
push str.productname
push str.kernel
call edi
lea edx, [esp + 8]
push edx
push 0x400
push ebx
push 0x40435c
push str.fullname
push str.kernel
call edi
mov ecx, dword [esp + 0x40c]
pop edi
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004025ac
add esp, 0x40c
ret

Function at 0x4025ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x4025b6
repz ret
jmp fcn.004029d1

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x401850
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x544643
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00525bec
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4018a1
mov eax, dword [esi + 0x1c]
push eax
call fcn.0041264d
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4049e0
Capabilities:
Print debug messages

Disassembly:
push esi
push 0x9c
call fcn.0041261e
add esp, 4
mov esi, eax
push esi
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
cmp edi, dword [esi + 0x68]
jne 0x404a1b
push esi
call fcn.0041264d
add esp, 4
push str.Msg:setBits_false__current_bits_perpel_is_equal_to_set._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
ret
push 0x9c
call fcn.0041261e
mov esi, eax
add esp, 4
push 1
mov eax, 0x9c
push esi
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x68], edi
mov dword [esi + 0x78], 0
mov dword [esi + 0x28], 0x5c0000
mov word [esi + 0x24], ax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
call fcn.0041264d
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x406a30
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x544ed8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406a72
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
mov ecx, dword [edi + 0x154]
mov edx, dword [edi + 0xe8]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.0040de30
mov esi, dword [esp + 0x20]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406b18
push 0x5c
push esi
call fcn.00506452
add esp, 8
test eax, eax
jne 0x406acd
or eax, 0xffffffff
jmp 0x406acf
sub eax, esi
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a5b0
mov ebx, dword [esp + 0x14]
mov edi, dword [edi + 0x158]
push 1
push ebx
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x407ed0
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x54533b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x591d64]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xor ebx, ebx
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x407f35
push 0x56f8a7
mov ecx, edi
call fcn.0040d8a0
jmp 0x408062
push 0x103
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00507960
add esp, 0xc
push esi
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407f72
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x13c], ebx
push edx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
cmp ebp, ebx
je 0x408029
push ebp
push 2
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push edi
push ebp
push eax
lea ecx, [esp + 0x34]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x56f0ec
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x18]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx edx, dx
movzx eax, cx
push edx
push eax
lea ecx, [esp + 0x24]
push str._d._d._d._d
push ecx
call fcn.0040de30
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.0040e260
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x138], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x408062
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.005043e7
add esp, 0x128
ret
Function at 0x4085e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
mov eax, dword [0x591d64]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00507960
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edx, 0x44
push esi
xor ecx, ecx
test eax, eax
jle 0x40863e
jmp 0x408630
movsx esi, byte [esp + ecx + 4]
cmp esi, edx
je 0x40865b
inc ecx
cmp ecx, eax
jl 0x408630
cmp edx, 0x5b
jl 0x40867d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005043e7
add esp, 0x108
ret
cmp ecx, eax
jge 0x40863e
inc edx
cmp edx, 0x5b
jl 0x408622
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005043e7
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
mov eax, edx
call fcn.005043e7
add esp, 0x108
ret
Function at 0x40abf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5451a2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x56f808
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.0040bd70
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040c740
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x59a450]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov ebx, esi
mov byte [esp + 0x24], 2
call fcn.0040be50
test eax, eax
jne 0x40acf3
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x40ace3
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x40acf3
call fcn.00401f90
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x40c740
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x54472b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0052610a
push 4
mov dword [esp + 0x20], 0
call fcn.0041261e
mov edi, eax
add esp, 4
test edi, edi
je 0x40c7be
call fcn.00525ce7
mov dword [edi], eax
call fcn.00525bbc
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00522f23
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c7b3
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00522f4b
jmp 0x40c7c0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40d670
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 0x40d689
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d6c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40d6c0
lea ebx, [ebx]
cmp esi, eax
jae 0x40d6c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d6b0
cmp esi, eax
jb 0x40d6ca
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 0x4104b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00416a40

Function at 0x4116f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x544fa3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411737
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x59a3b0]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.0040de30
mov ebp, dword [esp + 0x24]
add esp, 0x10
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4117a7
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x411829
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x24], 1
test esi, esi
je 0x4117f3
push ebp
lea ebx, [esp + 0x30]
call fcn.00412540
mov eax, dword [eax]
mov ebx, 1
test eax, eax
je 0x4117d6
mov ecx, dword [eax]
jmp 0x4117d8
xor ecx, ecx
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esi + 8], eax
jmp 0x4117f5
xor esi, esi
test bl, 1
je 0x411803
lea edi, [esp + 0x2c]
call fcn.004124f0
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411827
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x4169a9
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.00421443
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 0x4169e2
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.004165fa
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 0x41f2d1
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 0x41f318
call fcn.00421443
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f318
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41f334
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041ee4b
mov esi, eax
test edi, edi
je 0x41f332
test ebx, ebx
je 0x41f332
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41f70f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x537937
call fcn.00507191
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41f734
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41f77a
lea ecx, [ebp - 0x10]
call fcn.0040dfa0
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.00412855
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.0040e370
mov eax, esi
call fcn.00507269
ret 8
Function at 0x4268f9
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 [0x591d64]
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 0x426932
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x426959
cmp dword [0x596508], 0
jne 0x426959
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x42694c
push 0x12
call esi
test bx, ax
je 0x426950
mov eax, edi
jmp 0x4269c4
push edi
call fcn.0050b51b
pop ecx
jmp 0x4269c4
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.0041fe9e
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.005043e7
leave
ret 4
Function at 0x436a97
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 0x436ab1
call fcn.0041359b
call fcn.00421443
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x436ad1
xor eax, eax
jmp 0x436bec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x436aca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x436aca
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.0041261e
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x436aac
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 0x436b2e
mov ecx, edi
call fcn.0042f5c9
jmp 0x436b33
call fcn.0042f4b3
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x436b45
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x436b60
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x436bd8
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x436baf
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 0x436ba2
test eax, eax
jbe 0x436ba2
push eax
mov ecx, 0x58ed4c
call fcn.00426094
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 0x436b79
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 0x436bd8
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.0041264d
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