joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bad3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44b034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CTLogSysW.0
call fcn.00401fb0
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.004041f0
mov eax, dword [0x42d334]
mov dword [edi + 0x40], eax
lea esi, [edi + 0x44]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
lea ecx, [esi + 4]
mov dword [esi], vtable.CTLogToFileW.0
call fcn.00401fb0
mov eax, dword [0x42d334]
lea ecx, [esi + 0x28]
mov dword [ecx], eax
mov byte [ebp - 4], 5
mov dword [esi + 0x24], 0xffffffff
call fcn.00401360
mov dword [edi + 0x70], vtable.CTLogToDbgViewW.0
mov dword [edi + 0x74], vtable.CTLogToConsoleW.0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xffffffff
lea eax, [edi + 0x84]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.CTLogToMsgboxW.0
lea ecx, [eax + 4]
mov eax, dword [0x42d334]
mov dword [ecx], eax
mov byte [ebp - 4], 0xa
call fcn.00401360
mov dword [edi + 4], 0
mov eax, edi
mov dword [edi + 8], 2
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4065f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
jne 0x40661a
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret
push esi
push 0x1c
call fcn.004144e5
mov esi, eax
add esp, 4
lea eax, [ebp - 8]
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0x1c]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi], vtable.CXINetSocket.0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
push eax
push dword [edi + 0xc]
mov dword [ebp - 8], 0x10
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x406691
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
push 1
push 6
mov dword [ebp - 0xc], 1
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.00414033
mov esp, ebp
pop ebp
ret
Function at 0x4066c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
jne 0x4066ec
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x20000000]
cmp eax, 0xfffffff
ja 0x406709
mov dword [esi + 0x18], edi
xor edi, edi
mov dword [esi + 0x14], 1
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [ebp - 0x1a], ax
call edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x40677a
cmp dword [esi + 0x14], 0
je 0x40678e
push dword [esi + 0x18]
xor eax, eax
mov byte [ebp - 0xc], 0
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call edi
push 0
mov dword [ebp - 0xc], eax
call edi
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x40678e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00414033
mov esp, ebp
pop ebp
ret 8

Function at 0x4067b0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x44b034]
xor eax, esp
mov dword [esp + 0x1a0], eax
cmp dword [0x44f1ec], 0
push edi
mov edi, ecx
jne 0x4067ed
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [0x44f1ec], eax
cmp dword [edi + 0xc], 0xffffffff
je 0x4067fa
mov ecx, edi
call fcn.00406940
mov eax, dword [ebp + 8]
sub eax, 1
je 0x40684c
sub eax, 1
jne 0x406860
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x406860
push 0
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push 0
push 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
push ecx
push 0x9800000c
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x4068a8
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x406877
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.00414033
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 1
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0xc]
push eax
push 1
push 6
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0x1a4]
mov eax, 1
pop edi
xor ecx, esp
call fcn.00414033
mov esp, ebp
pop ebp
ret 4
Function at 0x4068d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 8]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
mov esi, ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00414033
mov esp, ebp
pop ebp
ret 8

Function at 0x406940
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
je 0x4069e2
cmp dword [edi + 0x14], 0
je 0x4069b2
push dword [edi + 0x18]
xor eax, eax
mov byte [ebp - 0xc], 0
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xd
push 0
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4069b2
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret
push 1
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.00414033
mov esp, ebp
pop ebp
ret

Function at 0x406aa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0x10
push eax
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x406ae8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [ebp - 0x16]
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 4]
mov word [edi], ax
xor ecx, ebp
pop edi
mov eax, 1
pop esi
call fcn.00414033
mov esp, ebp
pop ebp
ret 8

Function at 0x406b60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 0x10
Function at 0x406bd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_send]
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
pop ebp
ret 8

Function at 0x406c10
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x14], 0xff
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
jne 0x406c4f
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
jne 0x406c4f
push 4
push eax
push 0x20
push 0xffff
push dword [esi + 0xc]
mov dword [eax], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0x10]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x14]
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00414033
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x44b034]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
mov ecx, dword [ebp + 0x10]
push esi
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], ecx
nop dword [eax]
nop dword [eax + eax]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push dword [ebp + 0xc]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
je 0x406d53
jns 0x406d14
call edi
cmp eax, 0x2746
jne 0x406d53
test esi, esi
jg 0x406d1c
mov eax, dword [esp + 0xc]
jmp 0x406ce0
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x1e]
mov dword [ecx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406d70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
jne 0x406d93
mov dword [ebp + 8], 1
jmp 0x406da0
xor ecx, ecx
cmp eax, 0x7fffffff
cmova eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x406ddf
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
je 0x406e03
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x406dcc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00414033
mov esp, ebp
pop ebp
ret 8

Function at 0x406e40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44fda8], 0
push esi
mov esi, ecx
jne 0x406ec2
push 0x110
lea eax, [ebp - 0x114]
mov dword [0x44fda8], 1
push 0
push eax
call fcn.00417840
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x406eb5
cmp dword [ebp - 0x114], 5
jb 0x406eb5
mov ecx, 0x433014
mov dword [0x44fda4], ecx
jmp 0x406ec8
mov ecx, str.OCULAR_
mov dword [0x44fda4], ecx
jmp 0x406ec8
mov ecx, dword [0x44fda4]
test esi, esi
mov eax, str.OCULAR_
pop esi
cmove eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret
Function at 0x40a540
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov dword [edi + 4], 0
test eax, eax
je 0x40a5aa
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [edi + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x40a594
push eax
call ecx
push dword [edi + 8]
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40a5aa
push eax
call ecx
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], 0
call fcn.004095f0
mov esi, eax
test esi, esi
je 0x40a6d4
push 0x230
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00417840
lea ecx, [ebp - 0x234]
add esp, 0xc
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x40a5e0
test ebx, ebx
je 0x40a609
push 0x104
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.004198b6
add esp, 0xc
call fcn.00403330
push eax
push 0
push 0x8000
push 0x8000
push 1
push 0
push 0x40000003
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40a645
mov dword [edi + 4], 0
jmp 0x40a6d4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x18], 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 8], eax
call esi
cmp dword [edi + 8], 0
mov dword [edi + 0xc], eax
je 0x40a6cd
test eax, eax
je 0x40a6cd
lea ecx, [edi + 0x1c]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov eax, dword [edi + 8]
push ecx
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a6ae
cmp eax, 0x3e5
je 0x40a6ae
cmp eax, 0x217
jne 0x40a6d4
mov dword [edi + 0x10], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0040a6f0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414033
mov esp, ebp
pop ebp
ret 8
Function at 0x40a820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x40a970
cmp dword [edi + 8], 0
je 0x40a970
push ecx
call fcn.0040a750
test eax, eax
je 0x40a977
push ebx
push dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
call ebx
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a8c1
cmp dword [ebp - 8], 0
je 0x40a8c1
push dword [edi + 8]
call ebx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
jne 0x40a8fb
test eax, eax
je 0x40a8fb
cmp eax, 0x3e5
je 0x40a8fb
cmp eax, 0x217
je 0x40a8fb
mov dword [edi + 0x14], 0xf0000001
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40a92b
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
cmp ebx, 0x102
sete cl
lea ecx, [ecx*2 - 0xfffffff]
mov dword [edi + 0x14], ecx
jmp 0x40a8e6
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 8]
mov esi, eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
test esi, esi
pop ebx
cmovne eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x14], 0xf0000001
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x40aae0
cmp dword [edi + 0xc], 0
je 0x40aae0
push ecx
call fcn.0040a750
test eax, eax
je 0x40aae7
push ebx
push dword [edi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
call ebx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40aa31
cmp dword [ebp - 8], 0
jbe 0x40aa31
push dword [edi + 0xc]
call ebx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
jne 0x40aa6b
test eax, eax
je 0x40aa6b
cmp eax, 0x3e5
je 0x40aa6b
cmp eax, 0x217
je 0x40aa6b
mov dword [edi + 0x14], 0xf0000001
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40aa9b
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
cmp ebx, 0x102
sete cl
lea ecx, [ecx*2 - 0xfffffff]
mov dword [edi + 0x14], ecx
jmp 0x40aa56
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 0xc]
mov esi, eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
test esi, esi
pop ebx
cmovne eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x14], 0xf0000001
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00414033
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c3c1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44b034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.0040cec0
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x10], 1
mov ecx, dword [eax]
mov eax, dword [0x44fdb8]
mov dword [ebp - 0x14], ecx
cmp eax, dword [ecx + 4]
jle 0x40d7ce
push 0x44fdb8
call fcn.0041466e
add esp, 4
cmp dword [0x44fdb8], 0xffffffff
jne 0x40d7ce
mov dword [ebp - 4], 1
call fcn.0040dce0
push 0x44fdb8
mov dword [0x44fdbc], eax
mov byte [ebp - 4], 0
call fcn.0041462f
add esp, 4
mov eax, dword [0x44fdbc]
push 0
push 9
push 1
mov eax, dword [eax + 0x228]
push esi
call eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40d896
xor edi, edi
nop
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x44fdb8]
cmp eax, dword [ecx + 4]
jle 0x40d879
push 0x44fdb8
call fcn.0041466e
add esp, 4
cmp dword [0x44fdb8], 0xffffffff
jne 0x40d879
mov dword [ebp - 4], 2
mov eax, dword [0x44fdb4]
test eax, eax
jne 0x40d863
push 0x43330c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40d857
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d850
call eax
mov dword [0x44fdb4], eax
jmp 0x40d85c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x44fdb4]
test eax, eax
je 0x40d8aa
mov esi, dword [ebp - 0x18]
push 0x44fdb8
mov dword [0x44fdbc], eax
mov byte [ebp - 4], 0
call fcn.0041462f
add esp, 4
mov eax, dword [0x44fdbc]
push ebx
push edi
push esi
mov eax, dword [eax + 0x24c]
call eax
inc edi
add ebx, 0x10
cmp edi, 1
jb 0x40d7f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00419bb0
int3
Function at 0x40f8e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c848
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44b034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x44fdd4]
cmp eax, dword [ecx + 4]
jle 0x40f94d
push 0x44fdd4
call fcn.0041466e
add esp, 4
cmp dword [0x44fdd4], 0xffffffff
jne 0x40f94d
push 0x42cef0
call fcn.00414297
push 0x44fdd4
call fcn.0041462f
add esp, 8
mov ecx, dword [0x44fddc]
mov eax, 0x2aaaaaab
sub ecx, dword [0x44fdd8]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40fa01
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40fa01
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x40f9fa
mov edx, dword [edi + esi*4]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
je 0x40f9c1
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f9b2
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040ef30
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call fcn.0040fa60
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40f9f4
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.0040f030
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40f991
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x44fdd8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414033
mov esp, ebp
pop ebp
ret