joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427dff
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x593e04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004216b1
pop ecx
cmp eax, esi
je 0x427ee9
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x427ee9
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0051d4c0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x427ee9
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x427ee9
cmp esi, 0x14
jge 0x427ee9
push 0x10
push 0
push edi
call fcn.00522053
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x427ed8
call fcn.005204fe
cmp dword [eax], 0x22
je 0x427ed8
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0051fea8
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x427eae
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x596e6c], 0
jne 0x427f74
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x427f9d
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00427d0f
pop ecx
pop ecx
test eax, eax
jne 0x427f9f
inc edi
cmp edi, esi
jl 0x427f7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d4a4
leave
ret 8
Function at 0x42e5b3
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 0x42e5fb
call fcn.0042f8d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42e5fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42e63e
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 0x42e627
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 0x42e627
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x42e63b
mov ecx, dword [esi + 0x68]
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 0x43051e
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004301dd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x430568
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041ea08
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404330
jmp 0x430573
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00433726
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x430579
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00426886
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4305b6
call fcn.004301dd
mov dword [esi + 0xc], 1
jmp 0x4305bb
call fcn.004301dd
cmp dword [esi], 0
je 0x430604
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4305dc
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041ea08
jmp 0x4305ee
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004013f0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404330
jmp 0x430628
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x430628
push dword [esi]
push dword [ebp + 8]
call fcn.00433726
pop esi
pop ebp
ret 0xc
Function at 0x435788
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x593e04]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4357bd
xor eax, eax
jmp 0x435810
lea eax, [ebp - 0x210]
push eax
call fcn.0051fea8
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4357ee
push 0x54bf6c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00523cc0
add esp, 0xc
test eax, eax
jne 0x4357b9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00523cc0
add esp, 0xc
test eax, eax
jne 0x4357b9
lea eax, [ebp - 0x210]
push eax
call fcn.00421737
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051d4a4
leave
ret
Function at 0x44aa86
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00483423
call fcn.0042f305
cmp dword [eax + 0x14], 0
jne 0x44aaa3
mov ecx, esi
pop esi
jmp fcn.0044a58b
pop esi
ret

Function at 0x44e0d9
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004ccc1b
call fcn.0042f305
cmp dword [eax + 0x14], 0
jne 0x44e0f6
mov ecx, esi
pop esi
jmp fcn.0044daac
pop esi
ret

Function at 0x486d88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x486da2
call fcn.0042f8d4
mov esi, dword [eax + 0xc]
push dword [0x598ca0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x486dc0
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x486db8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x486ded
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x486dba
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00486cb6
mov esi, eax
jmp 0x486ddf

Function at 0x502f42
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x502f5a
mov edi, dword [esi + 0xc]
jmp 0x502f9a
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x502f73
call fcn.0042a41d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x502f88
call fcn.0042a41d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x502f9a
call fcn.0042a41d
call fcn.0042f8d4
cmp dword [eax + 0x3c], 0
je 0x502faf
push edi
mov ecx, ebx
call fcn.00501e08
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00502e5c
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x502fcd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x502fd9
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x51d4a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x593e04]
jne 0x51d4ae
repz ret
jmp fcn.00526dac
Function at 0x531b87
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x593e04]
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.005267a9
and dword [ebp - 0x14], 0
cmp dword [0x59b70c], 0
mov dword [ebp - 0x18], eax
jne 0x531c3a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x531ce2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x531ce2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x56fd14
push ebx
mov dword [0x59b70c], eax
call edi
push eax
call esi
push 0x56fd00
push ebx
mov dword [0x59b710], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x59b714], eax
call edi
push eax
call esi
mov dword [0x59b71c], eax
test eax, eax
je 0x531c3a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x59b718], eax
mov eax, dword [0x59b718]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x531c93
cmp dword [0x59b71c], ecx
je 0x531c93
push eax
call esi
push dword [0x59b71c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x531c93
test ebx, ebx
je 0x531c93
call edi
test eax, eax
je 0x531c8a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x531c8a
test byte [ebp - 8], 1
jne 0x531c93
or dword [ebp + 0x10], 0x200000
jmp 0x531cc6
mov eax, dword [0x59b710]
cmp eax, dword [ebp - 0x18]
je 0x531cc6
push eax
call esi
test eax, eax
je 0x531cc6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x531cc6
mov eax, dword [0x59b714]
cmp eax, dword [ebp - 0x18]
je 0x531cc6
push eax
call esi
test eax, eax
je 0x531cc6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x59b70c]
call esi
test eax, eax
je 0x531ce2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x531ce4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d4a4
leave
ret
Function at 0x4016f6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [0x4041c0], eax
mov dword [0x4041c4], eax
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x4041c4], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401725
mov eax, 0x30
mov edx, dword [0x4041c0]
mov dword [ebp - 0x48], edx
mov ecx, str.swithlend
mov dword [ebp - 0x34], ecx
mov edx, section..text
mov dword [ebp - 0x54], edx
lea ecx, [ebp - 0x5c]
mov dword [ecx], eax
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor esi, esi
push esi
push dword [0x4041c0]
push esi
push esi
push 0x12c
push 0x78
push 0x348
push 0x2a8
push 0x40000
lea eax, str.khife
push eax
mov eax, str.swithlend
push eax
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4041d0], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041d0]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor esi, esi
lea edi, [ebp - 0x50]
jmp 0x4017b7
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4017a9
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esp, ebp
pop ebp
ret
Function at 0x406302
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d74], 0
push esi
jne 0x406339
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406313
mov dword [ecx*4 + 0x426d70], eax
inc ecx
cmp ecx, 0x100
jl 0x40630e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40636a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d70]
xor eax, esi
inc ecx
dec edx
jne 0x40634c
pop edi
not eax
pop esi
ret 0xc
Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
mov ecx, 0x852e57d0
mov edx, ecx
add edx, edx
call fcn.0043b688
add ecx, 1
sub ecx, 0x7eb88e2c
xor dword [ebx], edi
mov edx, 0x10e9b7b6
sub ecx, 0xb0c45712
inc ebx
add edx, ecx
cmp ebx, eax
jne fcn.0043b649
sub ecx, edx
inc edx
ret
Function at 0x407ac2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407ae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004099c8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x407b05
test byte [esp + 8], 2
je 0x407b05
call fcn.00409a3b
mov dword [eax], 0xd
call fcn.00409a44
mov dword [eax], 5
jmp 0x407ade
xor eax, eax
ret

Function at 0x40dce1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x452670
cmp edx, dword [eax]
je 0x40dd03
add eax, 8
inc ecx
cmp eax, 0x452700
jl 0x40dcf4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x452670]
jne 0x40de31
mov eax, dword [0x4561a0]
cmp eax, 1
je 0x40de0b
test eax, eax
jne 0x40dd34
cmp dword [0x452044], 1
je 0x40de0b
cmp edx, 0xfc
je 0x40de31
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40dd6b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407dc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407eb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ddae
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407eb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x449124
push edi
call fcn.0040b7a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407dc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407dd0
lea eax, [ebp - 0xa0]
push 0x449104
push eax
call fcn.00407dd0
push dword [esi + 0x452674]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407dd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041051d
add esp, 0x2c
pop edi
jmp 0x40de31
lea eax, [ebp + 8]
lea esi, [esi + 0x452674]
push 0
push eax
push dword [esi]
call fcn.00407eb0
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 0x418a60
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.00407d90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x418b2b
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 0x418b2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x418ade
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418ae9
or bh, 8
and edi, 0x8000000
je 0x418b04
mov eax, dword [0x45847c]
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 0x418b2b
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 0x418f00
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 0x418f2b
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 0x418f4f
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 0x418f6a
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 0x428cf9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x428d31
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.0042c69b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042c673
jmp 0x428d3d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42aafb
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 0x42ab3d
call fcn.0043f533
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42ab3d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42ab34
xor eax, eax
jmp 0x42ab45
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042ab4b
pop edi
pop esi
pop ebx
ret 4
Function at 0x401450
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
mov ebp, dword [esp + 0x18]
mov edi, ebx
nop
mov ecx, dword [edi + 0x30]
mov esi, dword [0x45a0d4]
push ecx
call fcn.00422440
movzx ecx, word [eax]
add esp, 4
test ecx, ecx
je 0x40149f
lea esp, [esp]
imul esi, esi, 0x21
add eax, 2
add esi, ecx
movzx ecx, word [eax]
test ecx, ecx
jne 0x401490
cmp esi, ebp
je 0x4014b1
mov edi, dword [edi]
cmp edi, ebx
jne 0x401470
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4017a0
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 0x4017b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4017cd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4017ee
cmp esi, eax
jae 0x4017c7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4017e0
cmp esi, eax
jae 0x4017c7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4055c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x445d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
xor esi, esi
mov dword [esp + 4], esi
call fcn.0043be8d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x24], esi
call fcn.0043be8d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
fld qword [0x4489c0]
add eax, 0x10
fstp qword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push 1
push eax
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
call fcn.00405190
mov eax, dword [esp + 0xc]
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 0x40565a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405678
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8