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

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
cmp esi, 8
push edi
mov edi, ecx
je 0x45b425
cmp esi, 0x21
jb 0x45b3fa
cmp esi, 0x2e
jbe 0x45b425
cmp esi, 0x43
je 0x45b40e
cmp esi, 0x56
je 0x45b40e
cmp esi, 0x58
je 0x45b40e
cmp esi, 0x5a
jne 0x45b41b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x45b425
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0x1c]
lea edx, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov ecx, edi
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
call fcn.00500176
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x1c
ret 8

Function at 0x45b560
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x45b576
xor eax, eax
pop edi
add esp, 0x1c
ret 8
push ebx
mov ebx, dword [esp + 0x28]
cmp ebx, 0x26
je 0x45b58f
cmp ebx, 0x28
je 0x45b58f
cmp ebx, 0x22
je 0x45b58f
cmp ebx, 0x21
jne 0x45b59c
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x45b5a6
pop ebx
xor eax, eax
pop edi
add esp, 0x1c
ret 8
mov eax, dword [edi + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call esi
push 1
push eax
call esi
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
push edx
push eax
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
neg eax
pop esi
sbb eax, eax
pop ebx
neg eax
pop edi
add esp, 0x1c
ret 8

Function at 0x460b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5254a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esi], 0x54c8c0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], 1
mov byte [esi + 0x16], bl
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x18], eax
mov dword [esp + 0x18], ebx
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x18], 1
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x54c8b0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0xa
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 3
call fcn.004c1980
mov ecx, esi
mov byte [esp + 0x18], 4
call fcn.0045fdc0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x462570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
test eax, eax
push edi
mov byte [esi + 0x58], 0
je 0x462591
push eax
call fcn.004fdb8c
mov ebp, eax
mov dword [esp + 0xc], ebp
jmp 0x4625a7
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004fdb8c
mov dword [esp + 0xc], eax
mov ebp, eax
test ebp, ebp
je 0x4625ce
mov edi, dword [esi + 0x1c]
mov ecx, esi
call fcn.00500252
mov ecx, dword [ebp + 0x1c]
movzx eax, ax
push edi
or eax, 0x27390000
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4625ef
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov dword [esi + 0x54], ecx
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004fdb8c
mov ecx, eax
call fcn.00505843
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
add eax, ecx
push 1
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
mov ecx, esi
call fcn.00500290
mov eax, dword [esi + 0x7c]
xor edi, edi
test eax, eax
jle 0x462666
lea ebx, [ebx]
test edi, edi
jl 0x462746
cmp edi, dword [esi + 0x7c]
jge 0x462746
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + edi*4]
push 0
call fcn.005002ce
mov eax, dword [esi + 0x7c]
inc edi
cmp edi, eax
jl 0x462640
mov eax, dword [esi + 0x90]
push ebx
xor ebx, ebx
test eax, eax
jle 0x462717
test ebx, ebx
jl 0x46274b
cmp ebx, dword [esi + 0x90]
jge 0x46274b
mov ecx, dword [esi + 0x8c]
mov edi, dword [ecx + ebx*4]
mov edx, dword [edi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004fdb8c
mov ecx, dword [edi + 0x1c]
mov ebp, eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.00505843
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x28]
sub ecx, eax
sub edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
push 1
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
push ecx
push edx
push eax
mov ecx, edi
mov dword [esp + 0x3c], edx
call fcn.00500290
mov edx, dword [edi + 0x1c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x90]
inc ebx
cmp ebx, eax
jl 0x462677
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x46273e
mov edi, dword [esi + 0x1c]
mov ecx, esi
call fcn.00500252
movzx eax, ax
push edi
or eax, 0x273a0000
push eax
mov eax, dword [ebp + 0x1c]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
jmp fcn.004f9708
jmp fcn.004f9708
Function at 0x465ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.00463b80
mov ecx, eax
jmp fcn.00465070

Function at 0x466dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x525988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00505577
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x34]
push eax
mov dword [esp + 0x20], 0
mov dword [esi], method.CDC.virtual_0
mov dword [esi + 0x10], eax
mov dword [ecx + 0xc], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00505a5f
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
sub eax, edx
mov edx, dword [edi]
push eax
sub ecx, edx
mov edx, dword [esi + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
neg ebp
push ebp
neg ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.0050558b
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x4680a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5259a8
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, dword [esp + 0x54]
test esi, esi
push edi
jne 0x4680c6
xor eax, eax
jmp 0x4680c9
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x74]
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.00467640
test esi, esi
mov dword [esp + 0x50], 0
jne 0x4680e8
xor eax, eax
jmp 0x4680eb
mov eax, dword [esi + 4]
push edi
push eax
lea ecx, [esp + 0x10]
call fcn.00467760
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
push 3
lea eax, [esp + 0x34]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x74]
push eax
push ecx
mov dword [esp + 0x50], edx
call dword [sym.imp.GDI32.dll_Polygon]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
mov dword [esp + 0x10], 0x54d568
call esi
mov edi, vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edi
call fcn.00505db3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x24], 0x54d564
call esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.00505db3
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x468358
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5259e8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x468372
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push edi
mov ecx, esi
call fcn.00468290
mov ecx, dword [esi]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x468416
mov eax, dword [esp + 0x18]
test eax, eax
je 0x468416
mov eax, dword [esp + 0x14]
test eax, eax
je 0x468416
lea ecx, [esp + 8]
call fcn.004facba
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 1
push 0
push 0x19
push edx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0
call fcn.004fae40
mov esi, dword [esi]
push edi
push esi
call fcn.00505d4e
push eax
lea ecx, [esp + 0x10]
call fcn.004670f0
mov ecx, dword [esp + 0xc]
push 0
push 0
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call fcn.004fae35
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x28]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x46b9b0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x44], edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x30]
lea edx, [esi + 0xc]
mov dword [esi], 0x54dae8
mov dword [esi + 8], 0
mov dword [esi + 0x40], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46b9e1
mov eax, dword [esp + 0x34]
lea edx, [esi + 0x20]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46b9f4
mov eax, dword [0x5829d8]
test eax, eax
jne 0x46ba11
call fcn.004fe415
mov dword [0x5829d8], eax
mov ecx, dword [0x5829d4]
test ecx, ecx
jne 0x46ba30
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x10]
mov dword [0x5829d4], ecx
mov eax, dword [esi + 0x40]
cmp eax, ecx
jbe 0x46ba42
cmp byte [eax], 0x68
jne 0x46ba42
mov ecx, dword [eax + 1]
mov dword [esi + 0x40], ecx
mov eax, esi
pop esi
add esp, 0x24
ret 0x14
Function at 0x479540
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5260e0
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
mov edx, dword [eax + 0xc]
sub esp, 0x2c
push ebx
mov ebx, ecx
mov ecx, dword [eax + 4]
push ebp
sub edx, ecx
mov ecx, dword [esp + 0x50]
mov ebp, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0xc]
add esi, ebp
cmp esi, edx
jg 0x4796bc
push edi
mov edi, dword [esp + 0x5c]
cmp edi, 0xffffffff
je 0x47969e
mov edx, dword [ebx + 0xc]
xor esi, esi
cmp edx, esi
jne 0x47969e
push edi
mov ecx, ebx
call fcn.00478800
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CBitmap.0
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x50]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ebp, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 8]
sub ecx, ebp
mov ebp, dword [esp + 0x4c]
push eax
mov eax, dword [ebp + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x14]
call fcn.00505d5c
lea ecx, [esp + 0x10]
push ecx
push ebp
lea ecx, [esp + 0x30]
call fcn.00467810
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 8]
sub ecx, edx
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 1
mov dword [esp + 0x2c], eax
call fcn.00512e11
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, ebx
call fcn.00478e30
mov ecx, dword [esp + 0x2c]
mov ebp, dword [ebp + 4]
push edi
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push ebp
call fcn.00498fe0
mov ecx, eax
call fcn.00499070
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call fcn.00467900
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00505db3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 0x1c
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push edx
push ecx
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x60]
push eax
push ecx
mov ecx, ebx
call fcn.00478e30
pop edi
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x1c
Function at 0x47a720
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x52615b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebx, ecx
push esi
lea esi, [ebx + 0x14]
push edi
mov dword [esp + 0x14], ebx
mov dword [esi], 0x550f10
call fcn.00501205
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
xor eax, eax
xor ebp, ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
test byte [0x582bb4], 1
mov dword [esp + 0x20], ebp
jne 0x47a7af
or dword [0x582bb4], 1
xor eax, eax
mov ecx, 0x45
mov edi, 0x582aa0
rep stosd dword es:[edi], eax
push 0x582aa0
mov dword [0x582aa0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x582ab0], 2
jb 0x47a7c8
cmp dword [0x582aa4], 4
jb 0x47a7c8
mov eax, 1
jmp 0x47a7ca
xor eax, eax
movzx edx, al
push str.User32.dll
mov ecx, esi
mov dword [esp + 0x14], edx
call fcn.0047a450
test eax, eax
jne 0x47a7ed
push str.User32.dll
mov ecx, esi
call fcn.0047a4e0
cmp dword [ebx + 0x1c], ebp
je 0x47a8ae
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47a8ae
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53c274
push eax
call edi
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [ebx], eax
mov eax, ecx
cmp eax, ebp
je 0x47a8ae
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47a8ae
push str.MonitorFromWindow
push eax
call edi
xor edx, edx
cmp eax, ebp
setne dl
mov dword [ebx + 4], eax
mov eax, edx
cmp eax, ebp
je 0x47a8ae
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47a8ae
push str.MonitorFromRect
push eax
call edi
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [ebx + 8], eax
mov eax, ecx
cmp eax, ebp
je 0x47a8ae
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x47a8ae
push str.MonitorFromPoint
push eax
call edi
xor edx, edx
cmp eax, ebp
setne dl
mov dword [ebx + 0xc], eax
mov eax, edx
cmp eax, ebp
je 0x47a8ae
cmp dword [esp + 0x10], ebp
mov eax, str.GetMonitorInfoW
jne 0x47a893
mov eax, str.GetMonitorInfoA
mov esi, dword [esi + 8]
cmp esi, ebp
je 0x47a8ae
push eax
push esi
call edi
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [ebx + 0x10], eax
mov eax, ecx
cmp eax, ebp
jne 0x47a8bc
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x10], ebp
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47b470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x526288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push str.TEXTFILE
mov esi, ecx
mov dword [esp + 8], 0
mov eax, dword [esi + 0xc]
push str.THEMES_INI
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47b4d3
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47b4d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push str._File.
push eax
call fcn.0042c0a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x47b4f7
mov esi, dword [esp + 0x18]
push 0x532850
mov ecx, esi
call fcn.00402aa0
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x5d
push esi
call fcn.0042ec7e
sub eax, esi
sar eax, 1
sub eax, 6
push eax
add esi, 0xc
lea edx, [esp + 0x10]
push esi
push edx
call fcn.0047af60
mov esi, dword [esp + 0x2c]
push 0x551104
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.0050ef43
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x20
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b55a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x480670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5266b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov eax, 0xaa
push edi
mov edi, ecx
mov ecx, 0x55
xor esi, esi
mov word [esp + 0x20], cx
mov word [esp + 0x22], ax
mov word [esp + 0x24], cx
mov word [esp + 0x26], ax
mov word [esp + 0x28], cx
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
mov word [esp + 0x2e], ax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], vtable.CBitmap.0
lea eax, [esp + 0x20]
push eax
push 1
push 1
push 8
push 8
mov dword [esp + 0x4c], esi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.00505d5c
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], vtable.CBrush.0
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x3c], 1
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00505d5c
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00505e38
mov ebx, dword [esi]
push 0xf
mov ecx, edi
mov ebp, eax
call fcn.004477d0
push eax
mov ecx, esi
call dword [ebx + 0x2c]
mov ebx, eax
mov eax, dword [esi]
push 0x14
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.004477d0
push eax
mov eax, dword [esp + 0x44]
mov ecx, esi
call dword [eax + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
push 0xf00021
sub ecx, edx
push ecx
sub eax, edi
push eax
mov eax, dword [esi + 4]
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebp
mov ecx, esi
call fcn.00505e38
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
call fcn.00505db3
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], esi
call fcn.00505db3
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x18], esi
call fcn.00505db3
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x494270
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49429f
xor eax, eax
pop esi
add esp, 0x3c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xe
lea edx, [esp + 0x18]
push edx
push esi
call edi
test eax, eax
je 0x4942fa
cmp dword [esp + 8], 0xe
jne 0x4942fa
push 0
lea eax, [esp + 0xc]
push eax
push 0x28
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
test eax, eax
je 0x4942fa
cmp dword [esp + 8], 0x28
jne 0x4942fa
xor edx, edx
cmp word [esp + 0x2a], 0x20
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x494310
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebp
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4943a4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push ebp
mov byte [esp + 0x18], 0x89
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0x4e
mov byte [esp + 0x1b], 0x47
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49439d
cmp dword [esp + 8], 4
jne 0x49439d
push ebx
push esi
push edi
mov ecx, 4
lea edi, [esp + 0x10]
lea esi, [esp + 0x18]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x494387
sbb ebx, ebx
sbb ebx, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
test ebx, ebx
pop ebx
sete al
pop ebp
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
add esp, 0xc
ret

Function at 0x4943b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0x553f04
push eax
push esi
mov byte [esp + 0x10], 0x89
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x4e
mov byte [esp + 0x13], 0x47
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4943eb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4943f0
xor eax, eax
pop esi
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov eax, dword [eax]
lea ecx, [esp + 4]
sub eax, dword [ecx]
neg eax
sbb eax, eax
inc eax
pop esi
pop ecx
ret