joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438a20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov eax, ebp
push edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438850
sub eax, edx
sar eax, 1
mov esi, eax
xor edi, edi
mov dword [esp + 0xc], esi
test esi, esi
jle 0x438908
push ebx
movzx eax, word [ebp + edi*2]
mov ecx, pe_nt_image_headers32
cmp ax, cx
jae 0x4388f5
cmp ax, 0xd
je 0x4388fe
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx ebx, ax
cmp bx, 0xffff
jne 0x43889d
movzx edx, word [ebp + edi*2]
push edx
jmp 0x4388f6
test bx, bx
jge 0x4388a8
not ebx
inc ebx
movzx ebx, bx
mov esi, ebx
sar esi, 8
push 0x14
and esi, 1
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x4388e2
movzx eax, word [ebp + edi*2]
cmp ax, 0x61
jb 0x4388cd
cmp ax, 0x7a
jbe 0x4388d9
cmp ax, 0x41
jb 0x4388e2
cmp ax, 0x5a
ja 0x4388e2
xor eax, eax
test esi, esi
sete al
mov esi, eax
movzx ecx, bl
push esi
push ecx
call fcn.00438700
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x4388fe
push eax
call fcn.00438600
add esp, 4
inc edi
cmp edi, esi
jl 0x438870
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
push ecx
mov eax, dword [0x65f798]
mov edx, dword [esp + 8]
test eax, eax
jne 0x438aa1
movzx eax, word [edx]
mov ecx, edx
test ax, ax
je 0x438a52
movzx eax, ax
jmp 0x438a40
cmp ax, 0x7f
ja 0x438aa1
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x438a40
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call fcn.00403d70
mov esi, dword [esp + 0xc]
add esp, 8
cmp byte [esi], 0
je 0x438ae8
push ebx
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
mov al, byte [esi]
cmp al, 0x7f
jae 0x438ace
cmp al, 0xa
je 0x438aad
cmp al, 0xd
je 0x438acb
movsx cx, al
movzx edx, cx
push edx
call fcn.00404b90
add esp, 4
inc esi
jmp 0x438add
add esp, 4
mov dword [esp + 4], edx
jmp 0x438840
push 0
push 0
push 0
push 0xd
call ebx
push eax
push 0xd
call edi
push 0
push 2
push 0
push 0xd
call ebx
push eax
push 0xd
call edi
inc esi
jmp 0x438add
movzx eax, word [esi]
push eax
call fcn.00404b90
add esp, 4
add esi, 2
cmp byte [esi], 0
jne 0x438a80
mov esi, dword [esp + 0xc]
pop edi
pop ebx
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop esi
pop ecx
ret

Function at 0x4392f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x61cedc
push eax
call fcn.004d0f15
mov esi, eax
add esp, 8
test esi, esi
jne 0x43930b
pop esi
ret
push edi
push esi
push 1
push 2
push 0x61ea5c
call fcn.004d156f
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
add eax, eax
push 1
push eax
push edi
call fcn.004d156f
push esi
call fcn.004d0fa3
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
Function at 0x439350
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x61cedc
push eax
call fcn.004d0f15
mov esi, eax
add esp, 8
test esi, esi
jne 0x43936b
pop esi
ret
push edi
mov edi, dword [esp + 0x10]
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
call fcn.004d156f
push esi
call fcn.004d0fa3
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret

Function at 0x447e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50a679
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], edi
call fcn.004b5c19
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x447edd
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [esp + 0x30]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esi + 0x10]
push 0
push 0x3c
mov dword [esp + 0x30], edi
mov edi, dword [esi + 0xc]
push eax
push edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov ebp, edi
call fcn.004d16a0
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
add ecx, ecx
sub edi, ecx
push edi
mov edi, dword [esi + 0x10]
push 0
push 0xe10
push edi
push ebp
call fcn.004d16a0
mov edx, eax
shl edx, 4
sub edx, eax
push 0
add edx, edx
push 0x3c
add edx, edx
push edi
mov eax, edx
push ebp
mov dword [esp + 0x2c], eax
call fcn.004d16a0
mov ecx, dword [esp + 0x1c]
sub eax, ecx
push eax
push 0
push 0x15180
mov ebp, edi
mov edi, dword [esi + 0xc]
push ebp
push edi
call fcn.004d16a0
lea eax, [eax + eax*2]
push 0
add eax, eax
push 0xe10
add eax, eax
push ebp
add eax, eax
push edi
mov dword [esp + 0x30], eax
call fcn.004d16a0
mov ecx, dword [esp + 0x20]
sub eax, ecx
push eax
push 0
push 0x15180
mov ecx, ebp
push ecx
mov edx, edi
push edx
call fcn.004d16a0
push edx
push eax
push 0x61f3d0
push ebx
call fcn.00401c80
add esp, 0x1c
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x448300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50ea90
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
push edi
call fcn.00478d10
lea ecx, [esp + 0x18]
call fcn.0041ac60
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x30], 0
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0x564152
push edi
call fcn.00438f00
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.0041ac60
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 1
call eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
push 0x56414c
push edi
call fcn.00438f00
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004392c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004392c0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x5061b9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call fcn.004b5c19
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4491cf
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
push str._Rect____d__d__d__d_
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 1
call fcn.00401c80
add esp, 0x18
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x452b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50b5d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040f090
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
lea esi, [edi + 0xc]
push edx
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.00445e70
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452b8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
mov ebp, dword [esi + 0x18]
mov eax, dword [esi]
test ebx, ebx
je 0x452b9c
cmp ebx, eax
je 0x452ba1
call fcn.004cf82e
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x452bbe
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [edi + 0x2c], 1
call fcn.00451e00
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 0x45c1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50c468
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x13]
push ecx
lea ecx, [esi + 0xc]
mov dword [esp + 0x24], edi
mov dword [esi], vtable.ExprItem_NamedData.0
call fcn.00451920
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], 1
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x45c7b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50c468
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x13]
push ecx
lea ecx, [esi + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.ExprItem_WindowHandle.0
call fcn.00451920
mov dword [esi + 0xc], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x478770
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
mov esi, ecx
mov eax, dword [esi + 0xc]
push 0
push eax
call edi
test eax, eax
jne 0x4787d1
push eax
lea ecx, [esp + 0x10]
push ecx
push 2
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 2
jne 0x4787c5
cmp byte [esp + 8], 0xff
jne 0x4787c5
cmp byte [esp + 9], 0xfe
je 0x4787d1
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push ecx
call edi
pop edi
pop esi
add esp, 8
ret

Function at 0x4787e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0xffffffff
jne 0x47886a
mov eax, dword [esi + 0xc]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
call edi
push ebx
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x1c]
mov ebp, eax
mov eax, dword [esi + 0xc]
push edx
push eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x478840
cmp eax, 2
jne 0x47885b
cmp byte [esp + 0x10], 0xff
jne 0x47885b
cmp byte [esp + 0x11], 0xfe
jne 0x47885b
mov ecx, dword [esi + 0xc]
push ebx
push ebx
push ebp
push ecx
mov dword [esi + 0x10], 1
call edi
mov eax, dword [esi + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
mov ecx, dword [esi + 0xc]
push ebx
push ebx
push ebp
push ecx
mov dword [esi + 0x10], ebx
call edi
pop edi
pop ebp
pop ebx
mov eax, dword [esi + 0x10]
pop esi
add esp, 8
ret

Function at 0x478e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478e49
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x478e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478e89
mov eax, dword [esp + 0xc]
sub eax, 0xb
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x478e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478ec1
mov eax, dword [esp + 0xc]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 0xc
Function at 0x478ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478f46
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x478f15
cmp eax, 2
jne 0x478f31
mov eax, dword [esp + 0x14]
test esi, esi
je 0x478f40
test eax, eax
je 0x478f3b
test al, 1
jne 0x478f31
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x478f40
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x478f50
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x478f64
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x485930
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x50f759
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
cmp ebp, ebx
jne 0x48598f
mov eax, dword [esp + 0x3c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x14]
push ecx
call dword [0x65b97c]
mov esi, dword [eax]
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x4859aa
inc dword [esi + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 1
cmp eax, ebx
je 0x4859d2
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x4859ce
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x14], ebx
xor edi, edi
cmp dword [esp + 0x1c], ebx
jle 0x485a4f
lea ebx, [ebx]
mov ecx, dword [ebp + edi*4]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [0x65b968]
mov eax, dword [eax]
add esp, 4
mov ecx, esp
mov byte [esp + 0x38], 2
mov dword [esp + 0x2c], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x485a09
inc dword [eax + 4]
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], esi
cmp esi, ebx
je 0x485a19
inc dword [esi + 4]
push ebx
call dword [0x65b99c]
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x485a48
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x485a44
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esp + 0x18], ebx
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x4859e0
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x3c]
mov dword [edi], esi
cmp esi, ebx
je 0x485a63
inc dword [esi + 4]
mov dword [esp + 0x20], 1
mov byte [esp + 0x34], bl
cmp esi, ebx
je 0x485a85
dec dword [esi + 4]
cmp dword [esi + 4], ebx
jg 0x485a85
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x495e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x495e9e
push ebx
mov ebx, dword [esp + 0xc]
push esi
lea esi, [edi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x40
mov eax, 0x495d50
mov dword [edi + 4], ebx
sub eax, esi
push 0xd
sub eax, 0xd
push esi
mov dword [esi], 0x42444c7
mov dword [esi + 4], edi
mov byte [esi + 8], 0xe9
mov dword [esi + 9], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xd
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop esi
mov dword [edi + 8], eax
pop ebx
pop edi
ret 4
Function at 0x49c5b0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x50b148
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
test esi, esi
je 0x49c66c
cmp word [esi], 0
je 0x49c66c
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040f090
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0
call fcn.004085c0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
push 0x48cb90
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49c659
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x4a9bb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4a9bba
ret 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004d12bf
add esp, 0x10
ret 0xc

Function at 0x4a9be0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4a9bea
ret 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004d156f
add esp, 0x10
ret 0xc

Function at 0x4aa3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x512b88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x38]
cmp dword [edi], 0
je 0x4aa3e5
lea edi, [esi + 0x44]
mov ecx, 6
mov esi, str.the_buffer_must_be_empty
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4aa468
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.004ade10
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.004ade70
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004a9fa0
lea ecx, [esp + 0xc]
test al, al
je 0x4aa45b
push 1
call fcn.004adeb0
lea ecx, [esp + 0xc]
mov dword [edi], eax
call fcn.004adf90
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
mov dword [edx], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.004ae0b0
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0xc
mov dword [esp + 0x30], 0xffffffff
call fcn.004ae0b0
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0xc

Function at 0x4aeca2
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 0x4aecc6
cmp dword [edi + 0x54], 0
jne 0x4aecc6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004b91f8
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.004aec63
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 0x4b4938
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 0x4b497f
call fcn.004b91f8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b497f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4b499b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004b44b0
mov esi, eax
test edi, edi
je 0x4b4999
test ebx, ebx
je 0x4b4999
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4b57c3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x513102
call fcn.004d44ca
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4b57e8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4b582e
lea ecx, [ebp - 0x10]
call fcn.00401990
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.004aed6f
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.00401020
mov eax, esi
call fcn.004d45a2
ret 8

Function at 0x4b97cd
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 0x4b9815
call fcn.004b91f8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b9815
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4b9858
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 0x4b9841
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 0x4b9841
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4b9855
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