joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cb80
Capabilities:
Terminate process

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x43cba6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push esi
call edi
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x43cbc7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
push str.GetModuleFileNameExA
push esi
call edi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x43cbe2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
mov al, byte [0x493b50]
mov ecx, 0xff
mov byte [esp + 0x20], al
xor eax, eax
lea edi, [esp + 0x21]
mov ebx, dword [esp + 0x424]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
stosw word es:[edi], ax
push 0
push 0x410
stosb byte es:[edi], al
call ebp
mov esi, eax
test esi, esi
jne 0x43cc23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 4
push edx
push esi
mov dword [esp + 0x24], 0x400
call dword [esp + 0x2c]
test eax, eax
jne 0x43cc54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push 0x400
push eax
push ecx
push esi
call dword [esp + 0x28]
test eax, eax
push esi
jne 0x43cc80
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
push 0
push 1
call ebp
mov esi, eax
test esi, esi
jne 0x43ccb3
lea edx, [esp + 0x20]
push edx
call fcn.0043cd00
add esp, 4
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x410
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x43cce1
call edi
lea eax, [esp + 0x20]
push eax
call fcn.0043cd00
add esp, 4
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x410
ret
call edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x43de90
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov edx, dword [ebp + 8]
push edi
mov eax, edx
shr eax, 0x16
mov eax, dword [ecx + eax*4]
mov ecx, eax
and ecx, 0xff
cmp ecx, 1
jb 0x43df49
mov edi, dword [esp + 0x18]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp ecx, 0x80
jae 0x43defa
and eax, 0xfffff000
push 0x1000
push eax
push 0
push 4
push edi
call ebx
mov edx, dword [ebp + 8]
push eax
shr edx, 0xc
and edx, 0x3ff
mov esi, dword [eax + edx*4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and esi, 0xfffff000
jmp 0x43df09
and eax, 0xfffff000
and edx, 0x3ff000
add eax, edx
mov esi, eax
push 0x1000
push esi
push 0
push 4
push edi
call ebx
test eax, eax
pop ebx
je 0x43df49
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
and esi, 0xfff
mov ebp, 0x70
add esi, eax
mov edi, esi
sub edi, ecx
mov dl, byte [edi + ecx]
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x43df33
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x43e700
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
lea eax, [esp]
push esi
mov esi, dword [esp + 0x218]
lea ecx, [esp + 0x110]
push eax
push ecx
lea edx, [esp + 0x14]
push 0
push edx
push 0x40
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x43e764
pop esi
add esp, 0x210
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43e780
mov eax, 1
pop esi
add esp, 0x210
ret
lea ecx, [esp + 0x110]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
or eax, 0xffffffff
pop esi
add esp, 0x210
ret

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

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
ret
Function at 0x43f4c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x43fef0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x3414
call fcn.00457d20
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0
push 3
push 0
push 0
mov ebx, eax
push 0x50
push str.127.0.0.1
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dl, byte [0x493b50]
mov esi, eax
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2421]
mov byte [esp + 0x2420], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x419]
mov byte [esp + 0x418], dl
mov byte [esp + 0x141c], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x141d]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3430]
mov ecx, dword [esp + 0x342c]
push eax
push ecx
lea edx, [esp + 0x420]
push str.cc__s__s_1.0
push edx
mov dword [esp + 0x24], esi
call fcn.00457c43
lea edi, [esp + 0x428]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x428]
push ecx
lea ecx, [esp + 0x1430]
push eax
push ecx
call fcn.00412b10
lea edx, [esp + 0x1438]
lea eax, [esp + 0x243c]
push edx
push 0x490a78
push eax
call fcn.00457c43
add esp, 0x28
lea ecx, [esp + 0x2420]
push 0
push 0x28f500
push 0
push 0
push 0
push ecx
push 0x48f1b4
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
mov ebp, eax
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x44010e
mov dl, byte [0x493b50]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x400
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x44010e
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x141c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x141c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
sub edx, 2
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x141c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x418], al
mov byte [ecx + edx], al
lea eax, [esp + 0x141c]
lea ecx, [esp + 0x418]
push eax
push ecx
call fcn.00412c30
mov byte [esp + eax + 0x420], 0
lea edi, [esp + 0x420]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x342c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3414
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3414
ret
Function at 0x440ce0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x440cd0
push 0
push 0
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, 1
pop esi
ret 4

Function at 0x440da0
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
mov eax, 0x1010
call fcn.00457d20
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov edx, dword [ebx + 4]
push edi
cmp dword [edx + 0xc74], ebp
je 0x440df6
mov al, byte [0x493b50]
mov ecx, 0x400
mov byte [esp + 0x18], al
xor eax, eax
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [edx + 0x868]
push ecx
lea ecx, [edx + 0x468]
push eax
push ecx
add edx, 0x68
push 0x493b50
push edx
call fcn.00419300
add esp, 0x14
mov eax, dword [ebx]
or edi, 0xffffffff
cmp eax, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
je 0x440f8d
push esi
cmp dword [esp + 0x10], ebp
jne 0x440e2d
call fcn.00440130
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 1
call esi
mov dword [esp + 0x14], eax
jmp 0x440e33
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [esp + 0x14]
cmp eax, 0xa4cb80
jbe 0x440e5b
cmp dword [esp + 0x10], 5
jae 0x440e5b
call fcn.00440130
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp edi, 0x1770
jae 0x440e71
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x440f73
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x440eb1
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], 0
je 0x440ea6
cmp ecx, 0xa
jge 0x440ea6
mov edx, dword [edx + ecx*4]
inc ecx
inc ebp
mov edx, dword [edx]
mov dword [ecx*4 + 0x532240], edx
mov edx, dword [eax + 0xc]
cmp dword [edx + ecx*4], 0
jne 0x440e8a
mov dword [ecx*4 + 0x532244], 0xffffffff
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xa9bc]
test ecx, ecx
je 0x440ef9
mov esi, dword [eax + 0x241dc]
mov ecx, ebx
call fcn.00440fe0
mov ecx, dword [ebx + 4]
cmp esi, 1
mov dword [ecx + 0x241dc], eax
jne 0x440f5f
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x241dc]
test eax, eax
jne 0x440f5f
push str.Internet_Disconnect
call fcn.00430470
add esp, 4
jmp 0x440f5f
mov dword [eax + 0x241dc], 1
mov eax, dword [0x532244]
cmp eax, 0xffffffff
je 0x440f4b
mov esi, 0x532244
cmp esi, 0x53226c
jge 0x440f4b
mov edi, dword [ebx + 4]
xor ecx, ecx
lea eax, [edi + 0xa990]
mov edx, dword [eax]
test edx, edx
je 0x440f38
cmp edx, dword [esi]
je 0x440f40
inc ecx
add eax, 4
cmp ecx, 0xa
jl 0x440f25
mov eax, dword [esi]
mov dword [edi + 0xa98c], eax
mov eax, dword [esi + 4]
add esi, 4
cmp eax, 0xffffffff
jne 0x440f12
cmp ebp, 1
jne 0x440f5f
mov ecx, dword [ebx + 4]
mov edx, dword [0x532244]
mov dword [ecx + 0xa98c], edx
mov ecx, dword [ebx + 4]
add ecx, 0x27600
call fcn.004420c0
mov edi, dword [esp + 0x18]
xor ebp, ebp
cmp dword [ebx], ebp
jne 0x440e0c
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1010
ret 0x138
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1010
ret 0x138
Function at 0x440fe0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
mov eax, 0x2034
call fcn.00457d20
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x48d23c
mov eax, dword [esi + 4]
lea ecx, [esp + 0x3c]
add eax, 0xa9c0
mov dword [esp + 0x14], esi
push eax
call fcn.00442a00
lea ecx, [esp + 0x38]
call fcn.00442ac0
test eax, eax
je 0x4410b2
mov ebx, dword [sym.imp.WS2_32.dll_socket]
mov ebp, dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi], 0
je 0x4410b2
push 0
push 1
push 2
call ebx
lea ecx, [esp + 0x38]
mov edi, eax
mov dword [esp + 0x14], 0x10
call fcn.00442a60
push 0x50
mov esi, eax
mov word [esp + 0x1c], 2
call ebp
push esi
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x441084
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x44109d
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4410cc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x38]
call fcn.00442ac0
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x441028
mov ecx, dword [esi + 4]
pop edi
pop esi
pop ebp
mov dword [ecx + 0xa98c], 0
xor eax, eax
pop ebx
add esp, 0x2034
ret
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push edi
mov edx, dword [ecx + 4]
mov dword [edx + 0xa98c], eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2034
ret

Function at 0x441130
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [ecx], eax
inc eax
add ecx, 0x138
cmp eax, 0x5dc
jb 0x441138
mov eax, dword [esp + 0x14]
mov dword [edi + 0x76a70], 0xa
mov dword [edi + 0x76a74], eax
mov dword [edi + 0x76a78], 1
xor ebx, ebx
lea ebp, [edi + 0x72420]
lea esi, [edi + 0x73b90]
lea ecx, [esp + 0x14]
mov dword [esi], edi
push ecx
push 0
push esi
push 0x441110
push 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp], eax
mov eax, dword [edi + 0x76a70]
inc ebx
add ebp, 4
add esi, 8
cmp ebx, eax
jl 0x441174
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x4411c0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x76a78]
push edi
test eax, eax
je 0x4412b7
lea eax, [ebx + 0x76a84]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x76a70]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], ebp
jle 0x441217
mov edx, dword [ebx + 0x76a78]
lea ecx, [ebx + 0x1c]
test edx, edx
je 0x441217
cmp dword [ecx], 0
je 0x4412c2
inc ebp
add ecx, 0x138
cmp ebp, eax
mov dword [esp + 0x10], ebp
jl 0x4411fb
cmp ebp, eax
jne 0x441292
cmp eax, 0x5dc
jge 0x441292
add eax, 0xa
cmp eax, 0x5dc
mov dword [ebx + 0x76a70], eax
jle 0x44123c
mov dword [ebx + 0x76a70], 0x5dc
mov eax, dword [ebx + 0x76a70]
mov edi, ebp
cmp ebp, eax
jge 0x441292
mov eax, dword [esp + 0x10]
lea ebp, [ebx + ebp*4 + 0x72420]
lea esi, [ebx + eax*8 + 0x73b90]
lea ecx, [esp + 0x10]
mov dword [esi], ebx
push ecx
push 0
push esi
push 0x441110
push 0
push 0
mov dword [esp + 0x28], 0
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp], eax
mov eax, dword [ebx + 0x76a70]
inc edi
add ebp, 4
add esi, 8
cmp edi, eax
jl 0x44125a
mov edx, dword [ebx + 0x76a7c]
lea ecx, [ebx + 0x76a7c]
call dword [edx + 0x14]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x76a78]
test eax, eax
jne 0x4411d5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 0x138
lea eax, [ebp + ebp*4]
mov ecx, 0x4e
shl eax, 3
sub eax, ebp
lea esi, [esp + 0x18]
lea eax, [ebx + eax*8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x76a7c]
mov dword [eax], ebp
mov dword [eax + 0x1c], 2
mov edx, dword [ecx]
call dword [edx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 0x138
Function at 0x447e20
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x447e58
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x447e58
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x18]
test edx, edx
je 0x447e83
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x447e93
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
push eax
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret
Function at 0x460bc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x493530
cmp edx, dword [eax]
je 0x460beb
add eax, 8
inc ecx
cmp eax, 0x4935c0
jl 0x460bdc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x493530]
jne 0x460d19
mov eax, dword [0x534710]
cmp eax, 1
je 0x460cf3
test eax, eax
jne 0x460c1c
cmp dword [0x492a94], 1
je 0x460cf3
cmp edx, 0xfc
je 0x460d19
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x460c53
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045eda0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045d500
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x460c96
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045d500
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x482a28
push edi
call fcn.00458800
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045eda0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045edb0
lea eax, [ebp - 0xa0]
push 0x482a08
push eax
call fcn.0045edb0
push dword [esi + 0x493534]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045edb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00463140
add esp, 0x2c
pop edi
jmp 0x460d19
lea eax, [ebp + 8]
lea esi, [esi + 0x493534]
push 0
push eax
push dword [esi]
call fcn.0045d500
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 0x4674c0
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.00457d20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x46758b
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 0x46758b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x46753e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x467549
or bh, 8
and edi, 0x8000000
je 0x467564
mov eax, dword [0x535edc]
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 0x46758b
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 0x467960
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 0x46798b
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 0x4679af
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 0x4679ca
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 0x46b918
Capabilities:
Get graphical window text

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