joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001200
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027a08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10031018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
test eax, eax
je 0x100013d3
cmp word [eax], 0
je 0x100013d3
push eax
lea esi, [ebp - 0x24]
call fcn.1001cb20
mov eax, dword [ebp + 8]
push eax
mov eax, esi
mov dword [ebp - 4], 0
call fcn.10001400
mov edi, eax
xor eax, eax
cmp edi, eax
jle 0x100013ba
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
jmp 0x10001280
push 0x1002b2bc
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x100012c1
test edi, edi
js 0x100012c1
mov ecx, dword [ebp - 0x20]
cmp edi, ecx
jge 0x100012c1
add eax, edi
cmp eax, ecx
jg 0x100012c1
mov ebx, dword [ebp - 0x24]
lea eax, [ebx + edi*2]
push 0x1002b2bc
push eax
call fcn.1001d582
add esp, 8
test eax, eax
je 0x100012c1
sub eax, ebx
sar eax, 1
mov esi, eax
xor ebx, ebx
mov edi, esi
cmp esi, ebx
jle 0x10001305
lea ecx, [ebp - 0x30]
push ecx
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.1001cbd0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.1001ce50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
lea edi, [esi + 1]
cmp eax, ebx
je 0x10001310
push eax
call fcn.1001cf93
add esp, 4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
jmp 0x10001310
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.1001ce50
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10001379
cmp word [ebx], 0
je 0x10001379
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000136a
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], 0
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10001386
mov dword [esi], 2
mov eax, ebx
test ebx, ebx
jne 0x1000134d
mov eax, 0x1002b2b8
xor bl, bl
test eax, eax
je 0x10001394
cmp word [eax], 0
je 0x10001394
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000138a
mov bl, 1
jmp 0x1000139a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov esi, edx
jmp 0x10001342
mov eax, dword [ebp + 8]
mov dword [eax], 0x57
mov esi, eax
jmp 0x10001342
mov bl, 1
jmp 0x1000139e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x1000139a
mov dword [esi], 0x57
test bl, bl
je 0x100013a6
test edi, edi
jg 0x10001280
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100013ba
push eax
call fcn.1001cf93
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100013dc
push eax
call fcn.1001cf93
add esp, 4
jmp 0x100013dc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x57
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10001850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001868
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000189a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10001896
cmp esi, eax
jae 0x1000189a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001888
cmp esi, eax
jb 0x100018a0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x1000f0a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100281db
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10031018]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
mov eax, dword [0x10031018]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov byte [esp + 0x17], 0
test ecx, ecx
jne 0x1000f107
mov dword [esi + 0x650], 2
xor al, al
jmp 0x1000f280
cmp word [esi + 0x21c], 0
lea eax, [esi + 0x21c]
je 0x1000f131
push eax
mov edx, esi
call fcn.10012890
test al, al
je 0x1000f27c
mov byte [esp + 0x17], 1
jmp 0x1000f27c
cmp dword [esi + 0x210], 0
je 0x1000f272
lea ecx, [esp + 0x24]
push ecx
xor eax, eax
push 0x104
mov word [esp + 0x2c], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1000f266
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x22], 0x5c
je 0x1000f183
push 0x1002b2bc
mov esi, 0x208
lea ebx, [esp + 0x28]
call fcn.1000d1d0
mov eax, dword [0x10031dc0]
mov edx, dword [eax + 0xc]
mov ecx, 0x10031dc0
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea edx, [esp + 0x24]
lea edi, [esp + 0x18]
mov dword [esp + 0x448], 0
call fcn.1000aa00
mov edi, dword [esp + 0x1c]
lea edx, [edi + 4]
lea eax, [esp + 0x18]
call fcn.10011400
mov edx, str..xml
lea eax, [esp + 0x18]
call fcn.10011400
lea eax, [esp + 0x18]
push eax
mov ecx, 0x1002b2b8
call fcn.1000ab10
mov esi, dword [esp + 0x1c]
add esp, 4
test al, al
je 0x1000f233
mov ecx, dword [edi + 0x214]
mov edx, dword [edi + 0x218]
mov eax, dword [edi + 0x210]
push ecx
push edx
push eax
mov ecx, esi
mov edx, edi
call fcn.10010080
test al, al
je 0x1000f227
mov ecx, dword [esp + 0x20]
push esi
mov edx, edi
call fcn.10012890
test al, al
je 0x1000f220
mov byte [esp + 0x17], 1
call fcn.10010cf0
jmp 0x1000f23d
mov dword [edi + 0x650], 0x1f
jmp 0x1000f23d
mov dword [edi + 0x650], 7
lea eax, [esi - 0x10]
mov dword [esp + 0x448], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000f27c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1000f27c
mov dword [esi + 0x650], 7
jmp 0x1000f27c
mov dword [esi + 0x650], 3
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.1001cf84
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f2b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002819b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x10031018]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x10031018]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebx, ecx
xor al, al
cmp dword [ebx + 0x210], 0
mov byte [esp + 0x17], al
je 0x1000f4b5
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000f4a9
cmp word [ebx + 0x21c], 0
lea edi, [ebx + 0x21c]
je 0x1000f35b
push edi
mov edx, ebx
call fcn.10015230
test al, al
je 0x1000f473
mov eax, dword [ebx + 0x218]
mov ecx, dword [ebx + 0x210]
mov edx, dword [ebx + 0x214]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.100107e0
test al, al
je 0x1000f473
mov al, 1
jmp 0x1000f477
lea eax, [esp + 0x1c]
push eax
xor edx, edx
push 0x104
mov word [esp + 0x24], dx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1000f49d
mov edx, dword [0x10031dc0]
mov eax, dword [edx + 0xc]
mov ecx, 0x10031dc0
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea edx, [esp + 0x1c]
lea edi, [esp + 0x18]
mov dword [esp + 0x238], 0
call fcn.1000aa00
lea edx, [ebx + 4]
mov eax, edi
call fcn.10011400
mov edx, str..xml
mov eax, edi
call fcn.10011400
mov ecx, edi
push ecx
mov ecx, 0x1002b2b8
call fcn.1000ab10
mov esi, dword [esp + 0x1c]
add esp, 4
test al, al
je 0x1000f442
mov edx, dword [ebx + 0x214]
mov eax, dword [ebx + 0x218]
mov ecx, dword [ebx + 0x210]
push edx
push eax
push ecx
mov ecx, esi
mov edx, ebx
call fcn.10010080
test al, al
je 0x1000f436
mov ecx, dword [ebp + 8]
push esi
mov edx, ebx
call fcn.10015230
test al, al
je 0x1000f42d
mov edx, dword [ebx + 0x218]
mov eax, dword [ebx + 0x210]
push edx
mov edx, dword [ebx + 0x214]
push eax
push ebx
mov ecx, esi
call fcn.100107e0
test al, al
je 0x1000f42d
mov byte [esp + 0x17], 1
mov edi, ebx
call fcn.10010cf0
jmp 0x1000f44c
mov dword [ebx + 0x650], 0x1f
jmp 0x1000f44c
mov dword [ebx + 0x650], 7
lea eax, [esi - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000f473
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1001cf84
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x650], 7
jmp 0x1000f473
mov dword [ebx + 0x650], 2
jmp 0x1000f477
mov dword [ebx + 0x650], 3
jmp 0x1000f477
Function at 0x1000fbd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027832
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x10031018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov edx, dword [0x10031dc0]
mov edi, ecx
mov dword [ebp - 0x220], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x10031dc0
mov dword [ebp - 0x228], edi
call eax
add eax, 0x10
mov dword [edi], eax
xor ecx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 1
mov word [ebp - 0x21c], cx
test esi, esi
je 0x1000fca0
cmp word [esi], cx
je 0x1000fca0
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1000fcb0
lea edx, [ebp - 0x21c]
call fcn.1000aa00
mov edx, esi
mov eax, edi
call fcn.10011400
cmp byte [ebp + 0xc], 1
mov eax, edi
jne 0x1000fc94
mov edx, 0x1002c650
call fcn.10011400
jmp 0x1000fcb0
mov edx, str._PT.xml
call fcn.10011400
jmp 0x1000fcb0
mov eax, dword [ebp - 0x220]
mov dword [eax + 0x650], 2
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001cf84
mov esp, ebp
pop ebp
ret 8
Function at 0x10010cf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x10031018]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
xor bl, bl
test esi, esi
je 0x10010daa
cmp word [esi], 0
je 0x10010daa
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x10010d8b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10010d61
mov ecx, dword [esp + 4]
push ecx
mov bl, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.1001cf84
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 4]
push ecx
mov dword [edi + 0x650], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.1001cf84
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x650], 0xd
mov al, 1
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.1001cf84
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
mov al, bl
pop ebx
xor ecx, esp
mov dword [edi + 0x650], 2
call fcn.1001cf84
mov esp, ebp
pop ebp
ret

Function at 0x1001cf84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10031018]
jne 0x1001cf8e
repz ret
jmp fcn.1001d95b
Function at 0x10023c29
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10031018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10021041
and dword [ebp - 0x14], 0
cmp dword [0x10032c90], 0
mov dword [ebp - 0x18], eax
jne 0x10023cdc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10023d84
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10023d84
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10032c90], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10032c94], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10032c98], eax
call edi
push eax
call esi
mov dword [0x10032ca0], eax
test eax, eax
je 0x10023cdc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10032c9c], eax
mov eax, dword [0x10032c9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10023d35
cmp dword [0x10032ca0], ecx
je 0x10023d35
push eax
call esi
push dword [0x10032ca0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10023d35
test ebx, ebx
je 0x10023d35
call edi
test eax, eax
je 0x10023d2c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10023d2c
test byte [ebp - 8], 1
jne 0x10023d35
or dword [ebp + 0x10], 0x200000
jmp 0x10023d68
mov eax, dword [0x10032c94]
cmp eax, dword [ebp - 0x18]
je 0x10023d68
push eax
call esi
test eax, eax
je 0x10023d68
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10023d68
mov eax, dword [0x10032c98]
cmp eax, dword [ebp - 0x18]
je 0x10023d68
push eax
call esi
test eax, eax
je 0x10023d68
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10032c90]
call esi
test eax, eax
je 0x10023d84
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10023d86
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001cf84
leave
ret
Function at 0x4019c0
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x401f40
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 0x401f59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401f90
lea ebx, [ebx]
cmp esi, eax
jae 0x401f94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f80
cmp esi, eax
jb 0x401f9a
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 0x40a2b1
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 0x40a2f8
call fcn.004114f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a2f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40a314
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00409e2b
mov esi, eax
test edi, edi
je 0x40a312
test ebx, ebx
je 0x40a312
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40b23a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51b697
call fcn.005020ba
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40b25f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40b2a5
lea ecx, [ebp - 0x10]
call fcn.00403908
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.0040aa37
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.00401ff0
mov eax, esi
call fcn.00502192
ret 8
Function at 0x40e618
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 0x40e660
call fcn.004114f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e660
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40e6a3
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 0x40e68c
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 0x40e68c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40e6a0
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 0x40fa8b
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.004114f6
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 0x40fac4
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.0040f6dc
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 0x4220e5
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 [0x570670]
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 0x42211e
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x422145
cmp dword [0x5741e0], 0
jne 0x422145
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x422138
push 0x12
call esi
test bx, ax
je 0x42213c
mov eax, edi
jmp 0x4221b0
push edi
call fcn.0050581b
pop ecx
jmp 0x4221b0
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.0040fb96
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.00500cb0
leave
ret 4
Function at 0x43220a
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 0x432224
call fcn.00413828
call fcn.004114f6
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x432244
xor eax, eax
jmp 0x43235f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x43223d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43223d
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.004025c3
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x43221f
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 0x4322a1
mov ecx, edi
call fcn.0042ace3
jmp 0x4322a6
call fcn.0042abcd
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x4322b8
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x4322d3
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x43234b
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x432322
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 0x432315
test eax, eax
jbe 0x432315
push eax
mov ecx, 0x56d4c4
call fcn.004cdc1a
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 0x4322ec
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 0x43234b
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.004025f2
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
Function at 0x437d51
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x437e92
push esi
push edi
push 0x52f4b0
call fcn.004142ec
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x437de1
mov esi, dword [ebx + 0x168]
jmp 0x437dcd
mov eax, esi
mov edi, dword [eax + 8]
mov esi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x437dcd
push edi
call fcn.00406e1c
push eax
push 0x56de10
call fcn.0041430a
pop ecx
pop ecx
test eax, eax
je 0x437dcd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x437dcd
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x437d8d
lea ecx, [ebx + 0x164]
call fcn.004cf1b3
jmp 0x437e90
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x437e90
jmp 0x437df7
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.0040d2bc
mov esi, dword [eax]
test esi, esi
jne 0x437e10
xor ebx, ebx
jmp 0x437e13
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x437e86
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x437e86
test edi, edi
je 0x437e58
push esi
push 0x56de10
call fcn.0041430a
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x538854
call fcn.0041430a
pop ecx
pop ecx
test eax, eax
je 0x437e86
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 4]
push 0
lea eax, [ebp + 8]
add esi, 0x164
push eax
mov ecx, esi
call fcn.00437308
test eax, eax
jne 0x437e86
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0043729c
cmp dword [ebp - 8], 0
jne 0x437df4
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43c15c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret