joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x10005936
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10005945
pop dword [ebp - 0x4c]
mov eax, 0xf802b429
sub eax, 0xe8025ae4
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xd8d0f694
sub dword [ebp - 0x5c], 0x8a7eb149
mov dword [ebp - 0x58], 0x318c3af1
sub dword [ebp - 0x58], 0xff58eeac
mov dword [ebp - 0x54], 0xa0f5db0
add dword [ebp - 0x54], 0x423ce67e
mov dword [ebp - 0x50], 0x91d0192c
sub dword [ebp - 0x50], 0x91d0192c
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xed67aa76
add dword [ebp - 0x5c], 0x870abee0
mov dword [ebp - 0x58], 0xfd68d677
add dword [ebp - 0x58], 0x44038afe
mov dword [ebp - 0x54], 0x6d0dd7f7
add dword [ebp - 0x54], 0xf6619475
mov dword [ebp - 0x50], 0x6b525b4b
sub dword [ebp - 0x50], 0x6b525b4b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x27ee0219
add eax, 0xe813fde7
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d5f1
push 0
call eax
mov ecx, 0x6e819059
sub ecx, 0x6e81452b
xor edi, edi
add edi, eax
mov esi, 0xff3a2b6f
add esi, 0x10c89091
add esi, dword [ebp - 0x4c]
mov ebx, 0xd618f34b
sub ebx, 0x8d6c31ae
xor dword [ebp - 4], edx
mov edx, dword [esi]
sub dword [ebp - 0x34], eax
xor edx, ebx
sub dword [ebp - 0x24], edi
mov dword [edi], edx
add edi, 0xa38d9ff3
sub edi, 0xa38d9fef
add esi, 0xf0f72f16
sub esi, 0xf0f72f12
loop 0x10005a64
add eax, 0xd5da8341
sub eax, 0xd5d963b6
xor ebx, ebx
add ebx, eax
add eax, 0x9d9d13a0
add eax, 0x6262ec65
mov ecx, 0x221fdd0b
add ecx, 0xede022f5
add ecx, dword [ebp - 0x4c]
push dword [edx - 2]
invalid
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40596d
pop dword [ebp - 0x34]
mov eax, 0x492b1d60
add eax, 0xb7153c0d
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xfb87f6f2
sub dword [ebp - 0x44], 0xad35b1a7
mov dword [ebp - 0x40], 0x67c90d38
sub dword [ebp - 0x40], 0x3595c0f3
mov dword [ebp - 0x3c], 0x5dc91ee0
add dword [ebp - 0x3c], 0xee83254e
mov dword [ebp - 0x38], 0x3ed01a33
add dword [ebp - 0x38], 0xc12fe5cd
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xa119faa0
add dword [ebp - 0x44], 0xd3586eb6
mov dword [ebp - 0x40], 0x5e89f46f
add dword [ebp - 0x40], 0xe2e26d06
mov dword [ebp - 0x3c], 0xb8ef3e86
sub dword [ebp - 0x3c], 0x557fd21a
mov dword [ebp - 0x38], 0x22d0062e
sub dword [ebp - 0x38], 0x22d0062e
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x1eabf937
add eax, 0xe19477c9
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3627f
push 0
call eax
mov ecx, 0x5f5edd57
sub ecx, 0x5f5e9795
mov edi, eax
mov ebx, 0xefb9eefe
sub ebx, 0xef78eefe
add ebx, dword [ebp - 0x34]
mov edx, 0xda54fbdb
sub edx, 0x55dc1bb2
add dword [ebp - 0x24], 0xaa0c07a1
mov esi, dword [ebx]
sub dword [ebp - 0xc], edx
xor esi, edx
xor dword [ebp - 4], ecx
mov dword [edi], esi
add dword [ebp - 4], 0xd264eee0
add edi, 4
add ebx, 0x945e552f
sub ebx, 0x945e552b
loop 0x405a8a
add eax, 0xb46d3c42
sub eax, 0xb46c3267
xor ebx, ebx
add ebx, eax
add eax, 0x42b8202d
add eax, 0xbd47dfd8
mov ecx, 0x64e586ea
add ecx, 0x9b5a7916
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401030
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52389d
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
push esi
push edi
mov eax, dword [0x56e188]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.004095a8
push 0x54eaa4
mov ecx, edi
call fcn.0040b185
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x40113d
mov edx, dword [esi + 4]
push 0x54eac4
push edx
call fcn.004fd499
add esp, 8
test eax, eax
jne 0x4010fb
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.00401a10
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push 0x54eacc
push edx
call fcn.004fd499
add esp, 8
test eax, eax
jne 0x40113d
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push eax
call fcn.00401f10
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004014d0
lea edx, [esp + 0x1c]
mov dword [esp + 0x1f8], 0
mov ecx, edx
mov dword [edi + 0x20], edx
call fcn.0040bb59
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1fc], 0xffffffff
call fcn.004011a0
xor eax, eax
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402d40
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10098
call fcn.004fee80
mov eax, dword [0x56e188]
xor eax, esp
mov dword [esp + 0x10090], eax
push esi
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], str.EB781AAF_9C70_4523_A5DF_642A87ECA567
mov dword [esp + 0x18], str.FCUsb_Install_Disk
mov dword [esp + 0x1c], str.FCUsb
mov dword [esp + 0x20], str.FirstChip
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 8], 0
test esi, esi
je 0x402eb0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x402eb0
cmp dword [esp + 8], 0
je 0x402eb0
push 0x44
lea ecx, [esp + 0x4c]
push 0
push ecx
call fcn.004fed30
xor edx, edx
add esp, 0xc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov word [esp + 0x78], dx
call fcn.004068e0
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x402e0b
mov eax, dword [eax + 4]
jmp 0x402e0e
add eax, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push edi
push eax
push str.__sPackageAppDrv.exe___i___s____s____s____s____s_
lea edx, [esp + 0xac]
call fcn.00404470
add esp, 0x1c
cmp dword [esp + 0x44], esi
jb 0x402e4b
mov eax, dword [esp + 0x30]
push eax
call fcn.00408d8a
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xb0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402e8d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10090]
xor ecx, esp
call fcn.004fd1b4
add esp, 0x10098
ret
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
jmp 0x402eca
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push 4
push edi
call dword [sym.imp.DIFXAPI.dll_DriverPackageInstallW]
cmp dword [esp + 4], 0
jne 0x402e75
mov ecx, dword [esp + 0x10094]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004fd1b4
add esp, 0x10098
ret
Function at 0x402ef0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10098
call fcn.004fee80
mov eax, dword [0x56e188]
xor eax, esp
mov dword [esp + 0x10090], eax
push esi
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], str.EB781AAF_9C70_4523_A5DF_642A87ECA567
mov dword [esp + 0x14], str.FCUsb_Install_Disk
mov dword [esp + 0x18], str.FCUsb
mov dword [esp + 0x1c], str.FirstChip
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 4], 0
test esi, esi
je 0x403060
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x403060
cmp dword [esp + 4], 0
je 0x403060
push 0x44
lea ecx, [esp + 0x4c]
push 0
push ecx
call fcn.004fed30
xor edx, edx
add esp, 0xc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov word [esp + 0x78], dx
call fcn.004068e0
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x402fbb
mov eax, dword [eax + 4]
jmp 0x402fbe
add eax, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
push eax
push str.__sPackageAppDrv.exe___u___s____s____s____s____s_
lea edx, [esp + 0xac]
call fcn.00404470
add esp, 0x1c
cmp dword [esp + 0x44], esi
jb 0x402ffb
mov eax, dword [esp + 0x30]
push eax
call fcn.00408d8a
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xb0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40303d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10090]
xor ecx, esp
call fcn.004fd1b4
add esp, 0x10098
ret
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
jmp 0x403077
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push edi
call dword [sym.imp.DIFXAPI.dll_DriverPackageUninstallW]
test eax, eax
jne 0x403025
mov ecx, dword [esp + 0x10094]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004fd1b4
add esp, 0x10098
ret

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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4067fe
pop edi
pop esi
xor eax, eax
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4067f8
mov edi, esi
test ebx, ebx
je 0x406845
lea ecx, [ebp + 2]
add eax, 2
mov edi, ebp
cmp ecx, esi
jbe 0x40683a
lea edi, [esi - 2]
push edi
push eax
push ebx
call fcn.004fefc0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
ret
push ebp
push eax
push ebx
call fcn.004fefc0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4068e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x523292
mov eax, dword fs:[0]
push eax
mov eax, 0x10024
call fcn.004fee80
mov eax, dword [0x56e188]
xor eax, esp
mov dword [esp + 0x10020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56e188]
xor eax, esp
push eax
lea eax, [esp + 0x10038]
mov dword fs:[0], eax
push 0x8000
lea eax, [esp + 0x38]
xor edi, edi
push eax
mov dword [esp + 0x10048], edi
mov esi, ecx
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebp, [esi + 4]
xor ecx, ecx
lea eax, [esp + 0x34]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [ebp], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406960
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
call fcn.004037a0
mov dword [esp + 0x10040], edi
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x24], 1
cmp ecx, 8
jb 0x406995
mov edx, dword [ebp]
jmp 0x406997
mov edx, ebp
mov eax, dword [esi + 0x14]
add eax, eax
add edx, eax
mov dword [esp + 0x20], edx
cmp edx, edi
je 0x4069c8
cmp ecx, 8
jb 0x4069b0
mov edi, dword [ebp]
jmp 0x4069b2
mov edi, ebp
cmp edi, edx
ja 0x4069c8
cmp ecx, 8
jb 0x4069c0
mov ecx, dword [ebp]
jmp 0x4069c2
mov ecx, ebp
add eax, ecx
cmp edx, eax
jbe 0x4069cd
call fcn.004fd947
lea edi, [esp + 0x18]
mov ebx, esi
mov dword [esp + 0x18], 0x5c
call fcn.00408170
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ecx, 8
jb 0x4069f3
mov edi, dword [ebp]
jmp 0x4069f5
mov edi, ebp
test edi, edi
je 0x406a1f
cmp ecx, 8
jb 0x406a03
mov eax, dword [ebp]
jmp 0x406a05
mov eax, ebp
cmp eax, edi
ja 0x406a1f
cmp ecx, 8
jb 0x406a13
mov eax, dword [ebp]
jmp 0x406a15
mov eax, ebp
mov edx, dword [esi + 0x14]
lea eax, [eax + edx*2]
cmp edi, eax
jbe 0x406a24
call fcn.004fd947
mov dword [esp + 0x30], edi
cmp esi, 0xfffffffc
je 0x406a5e
mov edx, dword [esi + 0x18]
cmp edx, 8
jb 0x406a3a
mov eax, dword [ebp]
jmp 0x406a3c
mov eax, ebp
lea ecx, [edi + ebx*2]
mov ebx, dword [esi + 0x14]
lea eax, [eax + ebx*2]
cmp ecx, eax
ja 0x406a55
cmp edx, 8
jb 0x406a51
mov ebp, dword [ebp]
cmp ecx, ebp
jae 0x406a5a
call fcn.004fd947
mov ebx, dword [esp + 0x18]
lea edi, [edi + ebx*2]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
cmp esi, 0xfffffffc
je 0x406aa5
test esi, esi
jne 0x406a77
call fcn.004fd947
mov ebx, dword [esi + 0x18]
lea eax, [esi + 4]
cmp ebx, 8
jb 0x406a86
mov ecx, dword [eax]
jmp 0x406a88
mov ecx, eax
mov ebp, dword [esi + 0x14]
lea edx, [edi + 2]
lea ecx, [ecx + ebp*2]
cmp edx, ecx
ja 0x406aa0
cmp ebx, 8
jb 0x406a9c
mov eax, dword [eax]
cmp edx, eax
jae 0x406aa5
call fcn.004fd947
mov edx, dword [esp + 0x20]
push edx
push esi
lea eax, [edi + 2]
push eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.00407af0
mov eax, esi
mov ecx, dword [esp + 0x10038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10020]
xor ecx, esp
call fcn.004fd1b4
add esp, 0x10030
ret
Function at 0x40bd52
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.00418246
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40bd8b
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.0040b99e
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 0x40bde9
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 0x40be0d
cmp dword [edi + 0x54], 0
jne 0x40be0d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00418246
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0040bdaa
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 0x417447
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 0x41748e
call fcn.00418246
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41748e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4174aa
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416fbf
mov esi, eax
test edi, edi
je 0x4174a8
test ebx, ebx
je 0x4174a8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x417879
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51f2af
call fcn.004fe840
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41789e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4178e4
lea ecx, [ebp - 0x10]
call fcn.00404a60
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.00442cf9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401290
mov eax, esi
call fcn.004fe918
ret 8
Function at 0x41eadb
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x56e188]
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 0x41eb14
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x41eb3b
cmp dword [0x571a10], 0
jne 0x41eb3b
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x41eb2e
push 0x12
call esi
test bx, ax
je 0x41eb32
mov eax, edi
jmp 0x41ebaa
push edi
call fcn.00501ef8
pop ecx
jmp 0x41ebaa
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004fed30
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x41eb64
call fcn.00410cac
call fcn.0040f2bf
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fd1b4
leave
ret 4
Function at 0x42ebaf
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 0x42ebc9
call fcn.00410cac
call fcn.00418246
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x42ebe9
xor eax, eax
jmp 0x42ed04
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42ebe2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42ebe2
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.00408d50
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x42ebc4
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 0x42ec46
mov ecx, edi
call fcn.004276e4
jmp 0x42ec4b
call fcn.004275ce
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x42ec5d
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x42ec78
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x42ecf0
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x42ecc7
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 0x42ecba
test eax, eax
jbe 0x42ecba
push eax
mov ecx, 0x56af04
call fcn.0041e29d
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 0x42ec91
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 0x42ecf0
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.00408d8a
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