joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f0fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x1003f153
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1003f12c
call fcn.10036409
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1003f141
call fcn.10036409
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1003f153
call fcn.10036409
call fcn.100330d6
cmp dword [eax + 0x3c], 0
je 0x1003f168
push edi
mov ecx, ebx
call fcn.1003e820
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1003f34e
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1003f191
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1003f19d
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1004c71f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x1004c738
call fcn.100330d6
mov esi, dword [eax + 0xc]
push 0x1019848c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1004c77a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004c77a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1004c77a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1004c783
jmp 0x1004c77c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100ceaad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10018c3e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x100ceae9
call fcn.100cecca
mov dword [esi + 0xc], 1
jmp 0x100ceaee
call fcn.100cecca
cmp dword [esi], 0
je 0x100ceb39
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x100ceb14
push edi
call fcn.100171f1
lea ecx, [edi + 1]
push ecx
jmp 0x100ceb23
push 0xff
call fcn.10004fd1
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100090df
pop edi
jmp 0x100ceb5d
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x100ceb5d
push dword [esi]
push dword [ebp - 4]
call fcn.1003d63c
pop esi
leave
ret 0xc
Function at 0x100cec21
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.100cecca
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100cec69
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100171f1
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100090df
jmp 0x100cec74
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1003d63c
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100dcab4
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x1018a0e9
call fcn.1015ea5b
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.1000511f
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x101c7e10
call fcn.100057b3
cmp eax, 0xffffffff
jne 0x100dcb8f
push 0
push 0x101c848c
lea ecx, [ebp - 0x278]
call fcn.100057b3
cmp eax, 0xffffffff
jne 0x100dcb8f
push 0
push 0x101c9634
lea ecx, [ebp - 0x278]
call fcn.100057b3
cmp eax, 0xffffffff
jne 0x100dcb8f
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.1000511f
add eax, 0x10
pop ecx
mov dword [ebp - 0x280], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x100dcb5e
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x10191a68]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.10003bf1
jmp 0x100dcbc8
lea eax, [ebp - 0x114]
push eax
call fcn.1016ca90
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.10005241
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.10003bf1
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x100dcbb5
mov edi, dword [ebp - 0x274]
jmp 0x100dcbc8
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x10191a68]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.10003bf1
mov eax, edi
call fcn.1015ea0a
ret

Function at 0x101245ca
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.1016e980
pop ecx
test eax, eax
jne 0x1012460c
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10010c31
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101245d2
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x101786d1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1017834e
Function at 0x401060
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov eax, dword [eax]
push edi
push 0
push 0
mov ebp, 1
push 2
push 0
push ebp
push 0xc0000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x40109c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
mov ecx, dword [esp + 0x38]
push ebx
push 0
push 0
mov eax, dword [ecx]
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4010cf
push edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x24
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0x3c], eax
mov edi, eax
mov dword [esp + 0x2c], eax
call fcn.00421eb6
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
add eax, 0x800
push eax
mov dword [esp + 0x40], eax
call fcn.00421eb6
mov esi, eax
mov eax, dword [esp + 0x44]
add esp, 8
test eax, eax
je 0x4011ea
test esi, esi
je 0x4011dd
lea edx, [esp + 0x18]
push 0
push edx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40112e
xor ebp, ebp
cmp edi, dword [esp + 0x18]
je 0x401136
xor ebp, ebp
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x3c]
push eax
push ecx
push esi
call fcn.00408cc0
add esp, 0x10
test eax, eax
je 0x401150
xor ebp, ebp
mov eax, dword [esp + 0x38]
push eax
push esi
push 0
mov dword [esp + 0x38], eax
call fcn.00401000
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x30], eax
lea edx, [ecx + 0x18]
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x24], edx
add edx, eax
add edx, ecx
mov ecx, dword [esp + 0x14]
add edx, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x24]
push 0x18
push eax
push ecx
call edi
test eax, eax
jne 0x4011aa
xor ebp, ebp
cmp dword [esp + 0x10], 0x18
jne 0x4011db
test ebp, ebp
je 0x4011dd
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push esi
push ecx
call edi
test eax, eax
jne 0x4011cf
xor ebp, ebp
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x4011dd
xor ebp, ebp
mov eax, dword [esp + 0x3c]
push eax
call fcn.00421edf
add esp, 4
test esi, esi
je 0x4011f7
push esi
call fcn.00421edf
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x401220
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
mov dword [esp + 0x24], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x40125e
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x20]
push ebx
push 0
push 0
mov eax, dword [ecx]
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401298
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
add esp, 0x10
ret
push ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0x24], eax
mov ebp, eax
je 0x40138a
push eax
call fcn.00421eb6
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0x800
push eax
mov dword [esp + 0x2c], eax
call fcn.00421eb6
add esp, 8
mov esi, eax
test edi, edi
je 0x40137b
test esi, esi
je 0x401372
lea edx, [esp + 0x18]
push 0
push edx
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4012f8
mov dword [esp + 0x10], eax
cmp ebp, dword [esp + 0x18]
je 0x401306
mov dword [esp + 0x10], 0
push ebp
lea eax, [esp + 0x28]
push edi
push eax
push esi
call fcn.00408cc0
add esp, 0x10
test eax, eax
je 0x401322
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push esi
push 0
mov dword [ecx], eax
call fcn.00401000
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [edx], eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40135e
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x401372
mov dword [esp + 0x10], 0
push edi
call fcn.00421edf
add esp, 4
test esi, esi
je 0x40139e
push esi
call fcn.00421edf
add esp, 4
jmp 0x40139e
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [ecx], 0
mov dword [edx], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x402070
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
movsx ecx, al
add ecx, 0x7d8
inc esi
test al, al
je 0x4020ae
lea edx, [ecx*8]
mov al, byte [esi]
sub edx, ecx
lea edx, [ecx + edx*4]
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*8]
movsx edx, al
lea ecx, [edx + ecx*2 - 0x3039]
xor ecx, 0x55aa55aa
inc esi
test al, al
jne 0x402085
mov eax, ecx
pop esi
shr eax, 0x10
xor eax, ecx
ret
Function at 0x405a70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebp, dword [esp + 0x11c]
mov esi, eax
push ebp
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
lea eax, [esp + 0x18]
push 0x100
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x120]
mov dword [esp + 0x14], eax
push esi
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add ecx, 0xf0
lea edi, [esp + 0x18]
mov dword [esi + 8], ecx
or ecx, 0xffffffff
xor eax, eax
add edx, 0xf0
repne scasb al, byte es:[edi]
not ecx
push 0x430
dec ecx
push esi
lea eax, [esp + 0x20]
push ecx
push eax
push ebx
mov dword [esi + 0xc], edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esi + 0xc]
inc ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x406e60
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1034
call fcn.00413e00
push ebx
mov ebx, dword [esp + 0x103c]
push ebp
push esi
mov eax, dword [ebx]
push edi
xor edi, edi
xor ebp, ebp
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406ea2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1034
ret
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x4c]
push 0x1000
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406ed7
lea edx, [esp + 0x44]
push eax
push edx
push edi
call fcn.00401000
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
add ebp, eax
cmp eax, 0x1000
jae 0x406ea2
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [ebx + 0xc]
mov dword [ebx + 0x1c], edi
pop edi
mov dword [ebx + 0x20], ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
pop ebx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, 1
add esp, 0x1034
ret
Function at 0x407cf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407d47
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x407d47
mov eax, 1
ret
xor eax, eax
ret

Function at 0x407d50
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407db7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x407db7
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x407e80
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
sub esp, 0x10
mov word [eax + 4], cx
mov word [eax + 0xe], cx
mov word [eax + 0xc], cx
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp]
lea edx, [esp]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 4]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
add esp, 0x10
ret
Function at 0x418399
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43f430
cmp edx, dword [eax]
je 0x4183bb
add eax, 8
inc ecx
cmp eax, 0x43f4c0
jl 0x4183ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43f430]
jne 0x4184e9
mov eax, dword [0x441ff4]
cmp eax, 1
je 0x4184c3
test eax, eax
jne 0x4183ec
cmp dword [0x43ed24], 1
je 0x4184c3
cmp edx, 0xfc
je 0x4184e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418423
lea eax, [ebp - 0x1a4]
push 0x434da4
push eax
call fcn.004197d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004198c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x418466
lea eax, [ebp - 0x1a4]
push eax
call fcn.004198c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43d25c
push edi
call fcn.0041a8f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x434d88
push eax
call fcn.004197d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004197e0
lea eax, [ebp - 0xa0]
push 0x434d84
push eax
call fcn.004197e0
push dword [esi + 0x43f434]
lea eax, [ebp - 0xa0]
push eax
call fcn.004197e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x434d5c
push eax
call fcn.0041a85e
add esp, 0x2c
pop edi
jmp 0x4184e9
lea eax, [ebp + 8]
lea esi, [esi + 0x43f434]
push 0
push eax
push dword [esi]
call fcn.004198c0
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 0x41fb70
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.00413e00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41fc3b
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 0x41fc3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41fbee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41fbf9
or bh, 8
and edi, 0x8000000
je 0x41fc14
mov eax, dword [0x4437bc]
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 0x41fc3b
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 0x420010
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 0x42003b
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 0x42005f
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 0x42007a
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 0x42354d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x423585
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.00422607
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004225df
jmp 0x423591
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x424b27
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 0x424b69
call fcn.0042adfe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x424b69
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x424b60
xor eax, eax
jmp 0x424b71
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00424b77
pop edi
pop esi
pop ebx
ret 4

Function at 0x4253c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4253e5
cmp dword [edi + 0x3c], 0
jne 0x4253e5
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042adfe
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00425412
pop edi
pop esi
pop ebx
ret 8