joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5285c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5918ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0xc], ebx
lea edi, [esi + 0x10]
mov byte [esp + 0x18], 1
mov ecx, edi
call fcn.004e0c90
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 2
call fcn.004e0c90
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 3
call fcn.004e0c90
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 4
call fcn.004e0c90
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 5
call fcn.004e0c90
lea eax, [esp + 0x20]
mov ecx, edi
push eax
mov byte [esp + 0x1c], 6
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0x38], bl
call fcn.004b1580
mov ecx, esi
call fcn.00528950
test al, al
jne 0x528658
mov dword [esi], 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004b1570
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x528697
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x591937
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
mov dword [esi], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], ebx
call fcn.004e0c90
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 1
call fcn.004e0c90
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 2
call fcn.004e0c90
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 3
call fcn.004e0c90
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 4
call fcn.004e0c90
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0x38], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x5de2f8
jmp 0x528680

Function at 0x528710
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x591987
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 4
call fcn.004b1570
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.004b1570
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 2
call fcn.004b1570
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call fcn.004b1570
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 0
call fcn.004b1570
mov eax, dword [esi + 0xc]
add esi, 0xc
test eax, eax
mov dword [esp + 0x10], 0xffffffff
je 0x52878b
push eax
mov ecx, esi
call fcn.00411610
mov ecx, dword [esp + 8]
mov dword [esi], 0
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5287b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5919e2
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
lea ebx, [esi + 0xc]
mov dword [esi], 0
mov dword [ebx], 0
lea ebp, [esi + 0x10]
mov dword [esp + 0x1c], 0
mov ecx, ebp
call fcn.004e0c90
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 1
call fcn.004e0c90
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 2
call fcn.004e0c90
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 3
call fcn.004e0c90
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 4
call fcn.004e0c90
mov edi, dword [esp + 0x24]
mov byte [esp + 0x1c], 5
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
lea eax, [edi + 0xc]
mov dword [esi + 8], ecx
cmp ebx, eax
je 0x52885a
mov eax, dword [ebx]
test eax, eax
je 0x52884f
push eax
mov ecx, ebx
call fcn.00411610
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [ebx], eax
je 0x52885a
inc dword [eax]
lea edx, [edi + 0x10]
mov ecx, ebp
push edx
call fcn.004b1580
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
call fcn.004b1580
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x20]
call fcn.004b1580
lea edx, [edi + 0x28]
lea ecx, [esi + 0x28]
push edx
call fcn.004b1580
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
call fcn.004b1580
mov cl, byte [edi + 0x38]
mov eax, esi
mov byte [esi + 0x38], cl
mov edx, dword [edi]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x52b770
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x591f9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi], ebx
call fcn.004e0c90
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 1
call fcn.004e0c90
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 2
call fcn.004e0c90
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x20], ebx
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 4
call fcn.004e0c90
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
mov dword [esi + 0x48], ecx
push edx
mov ecx, edi
mov byte [esp + 0x1c], 5
mov dword [esi + 0x44], eax
mov byte [esi + 0x34], bl
mov byte [esi + 0x35], bl
mov byte [esi + 0x4c], bl
mov dword [esi + 0x50], ebx
call fcn.004b1580
mov ecx, esi
call fcn.0052b8c0
test al, al
jne 0x52b816
mov dword [esi], 1
or eax, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esi + 0x38], eax
mov dword [esp + 0x18], eax
call fcn.004b1570
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x52be60
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5920b8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
jbe 0x52bf53
lea edi, [ebp + 0x1c]
push esi
mov ecx, edi
call fcn.0052b620
cmp dword [eax + 4], ebx
jne 0x52bea8
test ebx, ebx
jne 0x52bf53
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x52bef3
mov eax, dword [ecx + 8]
test eax, eax
je 0x52bef3
dec eax
test eax, eax
je 0x52bef3
push esi
mov ecx, edi
call fcn.0052b620
add eax, 0xc
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.004124b0
cmp eax, 3
jne 0x52beef
test ebx, ebx
jne 0x52beef
push esi
mov ecx, edi
call fcn.0052b620
cmp dword [eax + 8], 0xcb
jne 0x52bf53
jmp 0x52bf41
mov ecx, dword [esp + 0x24]
cmp ebx, 0x41b
jne 0x52bf45
test ecx, ecx
je 0x52bf0b
mov eax, dword [ecx + 8]
test eax, eax
je 0x52bf0b
dec eax
test eax, eax
jne 0x52bf45
mov al, byte [esp + 0x28]
test al, al
je 0x52bf45
mov al, byte [ebp + 0x4c]
test al, al
je 0x52bf45
cmp esi, dword [ebp + 0x50]
jne 0x52bf45
push esi
mov ecx, edi
call fcn.0052b620
cmp dword [eax + 8], 0xc9
je 0x52bf53
push esi
mov ecx, edi
call fcn.0052b620
cmp dword [eax + 8], 0xcc
je 0x52bf53
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0x28]
inc esi
cmp esi, eax
jb 0x52be93
jmp 0x52bf57
mov ecx, dword [esp + 0x24]
cmp esi, dword [ebp + 0x28]
jb 0x52bfc6
mov al, byte [ebp + 0x34]
test al, al
je 0x52bfaa
cmp ebx, 0x41b
jne 0x52bfaa
push 0
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401ed0
push 0x433
mov ecx, ebp
call fcn.0052be60
mov bl, al
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x18], 0xffffffff
je 0x52bfa6
push eax
lea ecx, [esp + 0x28]
call fcn.00411610
mov al, bl
jmp 0x52bfe1
or eax, 0xffffffff
test ecx, ecx
mov dword [ebp + 0x38], eax
mov dword [esp + 0x18], eax
je 0x52bfc2
push ecx
lea ecx, [esp + 0x28]
call fcn.00411610
xor al, al
jmp 0x52bfe1
test ecx, ecx
mov dword [ebp + 0x38], esi
mov dword [esp + 0x18], 0xffffffff
je 0x52bfdf
push ecx
lea ecx, [esp + 0x28]
call fcn.00411610
mov al, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x533b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x592b13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
lea esi, [ebx + 4]
xor edi, edi
mov ecx, esi
mov dword [esp + 0x2c], edi
mov dword [ebx], edi
call fcn.004e0c90
lea eax, [esp + 0x34]
mov ecx, esi
push eax
mov byte [esp + 0x30], 1
call fcn.0051e9c0
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0xc], ecx
lea ecx, [esp + 0x1c]
call fcn.004e0c90
mov ecx, esi
mov byte [esp + 0x2c], 2
call fcn.0051ecc0
test eax, eax
jbe 0x533c62
lea ecx, [esp + 0x14]
call fcn.004e0c90
sub esp, 8
mov ecx, esi
mov edx, esp
mov dword [esp + 0x44], esp
push edi
push edx
mov byte [esp + 0x3c], 3
call fcn.0051ecd0
lea ecx, [esp + 0x1c]
call fcn.0051efd0
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.0051ecc0
test eax, eax
jbe 0x533c48
sub esp, 8
lea ecx, [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x44], esp
push ebp
push eax
call fcn.0051ecd0
lea ecx, [esp + 0x24]
call fcn.0051ef20
lea ecx, [esp + 0x14]
inc ebp
call fcn.0051ecc0
cmp ebp, eax
jb 0x533c1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.0051e9b0
mov ecx, esi
inc edi
call fcn.0051ecc0
cmp edi, eax
jb 0x533be5
sub esp, 8
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0046f270
mov ecx, esi
call fcn.0051eb30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.0051e9b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0051e9b0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0xc
Function at 0x540ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5942b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x5d2ad0
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
call fcn.00411a30
mov al, byte [esi + 0xc]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x24], 1
call fcn.004122c0
mov cl, byte [esi + 0xd]
push ecx
lea ecx, [esp + 0x10]
call fcn.004122c0
mov al, byte [esi + 0x14]
lea ecx, [esp + 0xc]
cmp al, bl
setne dl
add edx, 0x30
push edx
call fcn.004122c0
cmp dword [esi + 4], ebx
je 0x540ba2
xor edi, edi
cmp word [esi + 0xa], bx
jbe 0x540ba2
xor eax, eax
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [eax + edx*4]
call fcn.0053f900
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.00412320
mov eax, dword [esp + 0x10]
mov byte [esp + 0x20], 1
cmp eax, ebx
je 0x540b90
push eax
lea ecx, [esp + 0x14]
call fcn.00411610
inc edi
xor ecx, ecx
mov cx, word [esi + 0xa]
mov dword [esp + 0x10], ebx
movsx eax, di
cmp eax, ecx
jl 0x540b57
push 0x3e
lea ecx, [esp + 0x10]
call fcn.004122c0
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
cmp eax, ebx
mov dword [esi], eax
je 0x540bc4
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], 1
cmp eax, ebx
mov byte [esp + 0x20], bl
je 0x540bde
push eax
lea ecx, [esp + 0x10]
call fcn.00411610
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x549cb8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x549cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054b8f7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x549cfb
test byte [esp + 8], 2
je 0x549cfb
call fcn.0054b96a
mov dword [eax], 0xd
call fcn.0054b973
mov dword [eax], 5
jmp 0x549cd4
xor eax, eax
ret
Function at 0x54eb7e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5d7718
cmp edx, dword [eax]
je 0x54eba0
add eax, 8
inc ecx
cmp eax, 0x5d77a8
jl 0x54eb91
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5d7718]
jne 0x54ecce
mov eax, dword [0x5e6b2c]
cmp eax, 1
je 0x54eca8
test eax, eax
jne 0x54ebd1
cmp dword [0x5d6c74], 1
je 0x54eca8
cmp edx, 0xfc
je 0x54ecce
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x54ec08
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0054d290
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0054b3c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x54ec4b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0054b3c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5d2ac8
push edi
call fcn.00548b90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0054d290
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0054d2a0
lea eax, [ebp - 0xa0]
push 0x5c92dc
push eax
call fcn.0054d2a0
push dword [esi + 0x5d771c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0054d2a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00550d99
add esp, 0x2c
pop edi
jmp 0x54ecce
lea eax, [ebp + 8]
lea esi, [esi + 0x5d771c]
push 0
push eax
push dword [esi]
call fcn.0054b3c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x555e00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00549da0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x555ecb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x555ecb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x555e7e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x555e89
or bh, 8
and edi, 0x8000000
je 0x555ea4
mov eax, dword [0x5e849c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x555ecb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5562a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5562cb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x5562ef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x55630a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x5568d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59577c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x10], 3
mov dword [esi + 8], eax
call fcn.00556970
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x559cd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push esi
call fcn.00559c90
test ax, ax
je 0x559cef
pop edi
mov ax, 0x23
pop esi
ret 0x18
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp word [esp + 0xc], 0
push edi
push ecx
push esi
jne 0x559d3b
call fcn.00551cad
mov esi, dword [esp + 0x2c]
add esp, 0xc
cmp eax, edi
mov dword [esi], eax
je 0x559d74
call fcn.0054b96a
mov dx, word [eax]
mov eax, dword [0x5e6fac]
mov word [eax + 0x1e], dx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x559d32
mov dword [esi], 0
pop edi
mov ax, 0x24
pop esi
ret 0x18
call fcn.0054f2b0
mov esi, dword [esp + 0x2c]
add esp, 0xc
cmp eax, edi
mov dword [esi], eax
je 0x559d74
call fcn.0054b96a
mov dx, word [eax]
mov eax, dword [0x5e6fac]
mov word [eax + 0x1e], dx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x559d6b
mov dword [esi], 0
pop edi
mov ax, 0x25
pop esi
ret 0x18
pop edi
xor ax, ax
pop esi
ret 0x18
Function at 0x565edc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x565f14
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005693e6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005693be
jmp 0x565f20
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5676b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5676fa
call fcn.0056f621
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5676fa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5676f1
xor eax, eax
jmp 0x567702
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00567708
pop edi
pop esi
pop ebx
ret 4

Function at 0x56fbbf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x56fbed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x56fc0b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0056fb25
jmp 0x56fc0b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x56fc0b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0056fb25
test edi, edi
mov eax, edi
jne 0x56fbf5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x570187
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x570237
mov ecx, 0x5e6b08
call fcn.0056fcac
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x570215
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x5701f3
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5701f3
push ebx
push edi
push eax
call fcn.0056a430
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.005691e3
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x10019330
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001936f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001936f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001936f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001936f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001936f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret