joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4475f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447623
push esi
call fcn.0044a700
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44761c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4476a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447692
mov eax, dword [esi + 8]
test eax, eax
je 0x447647
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44768e
cmp eax, 2
je 0x447692
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44763a
cmp eax, 3
je 0x44766d
cmp eax, 1
jne 0x44763a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44763a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44763a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004476d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4476b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004476d0
add esp, 4
pop esi
ret

Function at 0x4533e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x453483
test eax, eax
jbe 0x453483
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x453483
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45342e
xor esi, esi
jmp 0x453434
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45345f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00409ff0
add esi, eax
push esi
mov ebx, esi
call fcn.00409ff0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x453440
pop ebp
test edi, edi
pop edi
jne 0x453483
test ebx, ebx
je 0x453483
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00468560
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4535c5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4536dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4536dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00479ef1
mov esi, eax
test esi, esi
je 0x4536dd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4536dd
mov ecx, esi
call fcn.00453530
cmp edi, eax
jge 0x4536dd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x453663
mov dword [esp + 0x34], 1
jmp 0x4536be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4536dd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00452b30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x455460
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4554c6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4554c6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4554a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x455850
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x455888
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x456550
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x456599
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x456a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004565c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00456640
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00456640
lea ecx, [esi + 0xc]
call fcn.0047842f
lea ecx, [esi + 0x10]
call fcn.0047842f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00457bd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00457bd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00457bd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004784a4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004784a4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47a894
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47a8cc
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.0047894b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00478923
jmp 0x47a8d8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47bf89
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 0x47bfcb
call fcn.00481f2c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47bfcb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47bfc2
xor eax, eax
jmp 0x47bfd3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047bfd9
pop edi
pop esi
pop ebx
ret 4

Function at 0x48245c
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 0x48248a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4824a8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004823c2
jmp 0x4824a8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4824a8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004823c2
test edi, edi
mov eax, edi
jne 0x482492
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401fa0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
test edi, edi
jne 0x401fb9
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret 8
mov eax, dword [esi + 0x908]
test eax, eax
je 0x401fca
mov ecx, esi
call sym.thnav.exe_public:_int___thiscall_CHttpSocket::CloseSocket_void_
mov eax, dword [esp + 0x28]
push edi
mov dword [esi + 0x804], eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
mov dword [esi + 0x910], eax
jne 0x401fed
pop edi
pop esi
add esp, 0x18
ret 8
mov ecx, dword [eax + 0xc]
xor eax, eax
push 0x50
mov edx, dword [ecx]
mov edi, dword [edx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x14], 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0xb]
mov edx, dword [esp + 0xa]
mov word [esp + 0x12], ax
mov eax, dword [esp + 9]
and ecx, 0xff
and edx, 0xff
mov dword [esp + 0x14], edi
push ecx
and eax, 0xff
push edx
and edi, 0xff
push eax
push edi
lea ecx, [esi + 0x808]
push str._d._d._d._d
push ecx
call fcn.0040de20
mov eax, dword [esi + 0x90c]
add esp, 0x18
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x40207f
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret 8
mov eax, 1
pop edi
mov dword [esi + 0x908], eax
pop esi
add esp, 0x18
ret 8

Function at 0x402610
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x908]
test eax, eax
jne 0x402623
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 8]
test edx, edx
jne 0x40262e
lea edx, [esi + 4]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x402645
push edi
lea edi, [esi + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, dword [esi + 0x90c]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x402661
xor eax, eax
pop esi
ret 8
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sym.thnav.exe_public:_char_const____thiscall_CHttpSocket::GetResponseHeader_int__
mov eax, 1
pop esi
ret 8

Function at 0x402680
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x908]
test eax, eax
jne 0x402693
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x90c]
push edi
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
test edi, edi
jg 0x4026ba
mov ecx, esi
call sym.thnav.exe_public:_int___thiscall_CHttpSocket::CloseSocket_void_
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x402750
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
lea edx, [esp + 4]
neg eax
sbb eax, eax
push 4
add eax, 0x1006
push edx
push eax
mov eax, dword [ecx + 0x90c]
push 0xffff
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
neg eax
sbb eax, eax
inc eax
ret 8
Function at 0x402780
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x918]
test eax, eax
jne 0x402804
push ebx
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_recv]
push esi
mov byte [esp + 0x13], 0
xor esi, esi
mov bl, 0xa
cmp esi, 0x400
jge 0x4027f1
mov ecx, dword [edi + 0x90c]
push 0
lea eax, [esp + 0x17]
push 1
push eax
push ecx
call ebp
mov dl, byte [esp + 0x13]
mov byte [esi + edi + 0x404], dl
inc esi
cmp esi, 4
jl 0x4027a0
cmp byte [esi + edi + 0x400], 0xd
jne 0x4027a0
cmp byte [esi + edi + 0x401], bl
jne 0x4027a0
cmp byte [esi + edi + 0x402], 0xd
jne 0x4027a0
cmp byte [esi + edi + 0x403], bl
jne 0x4027a0
mov dword [edi + 0x91c], esi
pop esi
pop ebp
mov dword [edi + 0x918], 1
pop ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x91c]
mov dword [ecx], eax
lea eax, [edi + 0x404]
pop edi
pop ecx
ret 4

Function at 0x404360
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x42af43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
xor edi, edi
push 5
mov dword [esp + 0x128], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
mov eax, dword [0x438ae8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
push esi
mov byte [esp + 0x128], 1
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404432
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
call ebp
mov edx, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push edx
push ecx
push esi
call ebx
lea ecx, [esp + 0x10]
call fcn.0041fb0f
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 0x438450
push eax
call fcn.0041b8fa
mov ecx, dword [esp + 0x138]
add esp, 0xc
push ecx
lea ecx, [esp + 0x14]
call fcn.0041b5b9
cmp eax, 0xffffffff
jne 0x40442e
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4043c5
jmp 0x404432
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 0
call fcn.0041fb84
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.0041fb84
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x404480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
or eax, 0xffffffff
mov ecx, dword [ecx]
test edx, edx
je 0x4044b5
push ebx
push esi
lea esi, [edx]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x438458]
xor eax, edx
inc ecx
dec esi
jne 0x404495
pop esi
pop ebx
not eax
ret
Function at 0x4044c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42af60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
mov eax, dword [esp + 0x1c]
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocStringLen
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x404528
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041fb84
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esp + 8]
push esi
push 0x20
call fcn.0041b432
lea ecx, [esp + 0xc]
push 0
push ecx
push esi
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0041fe66
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0041feb5
lea edx, [esp + 8]
push esi
push edx
call fcn.00404480
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.0041fb84
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041fb84
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4045c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42af80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0
call fcn.0040ce89
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
mov esi, 1
call fcn.0040cf4c
test eax, eax
jne 0x40460a
xor esi, esi
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.0040cec6
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041fb84
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x413f5a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43a1d8
cmp edx, dword [eax]
je 0x413f7c
add eax, 8
inc ecx
cmp eax, 0x43a268
jl 0x413f6d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43a1d8]
jne 0x4140aa
mov eax, dword [0x43cbd0]
cmp eax, 1
je 0x414084
test eax, eax
jne 0x413fad
cmp dword [0x43985c], 1
je 0x414084
cmp edx, 0xfc
je 0x4140aa
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413fe4
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414f80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415070
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414027
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415070
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43032c
push edi
call fcn.00415ef0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414f80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414f90
lea eax, [ebp - 0xa0]
push 0x43030c
push eax
call fcn.00414f90
push dword [esi + 0x43a1dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414f90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415e60
add esp, 0x2c
pop edi
jmp 0x4140aa
lea eax, [ebp + 8]
lea esi, [esi + 0x43a1dc]
push 0
push eax
push dword [esi]
call fcn.00415070
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 0x41ad90
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.0040e470
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41ae5b
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 0x41ae5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41ae0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41ae19
or bh, 8
and edi, 0x8000000
je 0x41ae34
mov eax, dword [0x43e33c]
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 0x41ae5b
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 0x41b230
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 0x41b25b
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 0x41b27f
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 0x41b29a
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 0x41ea20
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 0x41ea62
call fcn.004274ff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41ea62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ea59
xor eax, eax
jmp 0x41ea6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ea70
pop edi
pop esi
pop ebx
ret 4

Function at 0x4211ee
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 0x421210
cmp dword [edi + 0x3c], 0
jne 0x421210
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004274ff
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.0042123d
pop edi
pop esi
pop ebx
ret 8

Function at 0x42128b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004274ff
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4212bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004212cf
pop edi
pop esi
pop ebx
ret 8