joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403580
Capabilities:
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x844
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
push 0
push 2
push 2
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push 0x20
push 0xffff
push esi
mov dword [esp + 0x2c], 1
call edi
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov ecx, 2
push 0
mov word [esp + 0x24], cx
call ebx
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
push 0
mov word [esp + 0x26], ax
call ebp
push 0x10
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x403617
push str.Cant_bind_socket_to_local_port_Program_stop._n
call fcn.00451a63
add esp, 4
or eax, 0xffffffff
jmp 0x4036e8
mov eax, 2
push 0xffffffffffffffff
mov word [esp + 0x34], ax
call ebp
push 0x4e1f
mov dword [esp + 0x38], eax
call ebx
push str.NETBAR_SERVER
lea ecx, [esp + 0x54]
push 0x46ea2c
push ecx
mov word [esp + 0x3e], ax
call fcn.00402f90
add esp, 0xc
push 0x10
lea edx, [esp + 0x34]
push edx
push 0
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x60]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
push 4
lea edx, [esp + 0x14]
push edx
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0x3e8
call edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x400
lea edx, [esp + 0x460]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x4036bd
mov eax, 1
jmp 0x4036e8
mov byte [esp + eax + 0x450], 0
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 8
push 0x46ec64
push ecx
call fcn.00401f50
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x850]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004517f0
add esp, 0x844
ret
Function at 0x403820
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x467c50
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00402600
mov dword [esp + 0x18], 0
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403875
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x30]
push edx
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push str._s:_s:_s:_s:_s:_s:_s:_s:_s
push ecx
mov byte [esp + 0x44], 1
call fcn.00401f50
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov eax, dword [esi - 0xc]
add esp, 0x2c
push 0x10
push edx
push 0
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push esi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403902
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40392a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x403940
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x467c7b
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x5c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x5dc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, ecx
mov eax, dword [edi + 0x14]
push eax
call esi
lea ecx, [esp + 0x48]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4039b9
mov ecx, edi
call fcn.00403580
test eax, eax
jne 0x4039c0
mov edx, dword [edi + 0x14]
push edx
mov dword [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x403b1b
mov eax, dword [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x58]
push ecx
call esi
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov edx, 2
push 0x4e1f
mov dword [esp + 0x18], esi
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x2e], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x2c], eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x403a22
or eax, 0xffffffff
jmp 0x403b1b
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x2c], 0x3e8
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x58]
push 0x3ff
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x403a94
lea ecx, [esp + 0x14]
call fcn.00401850
mov dword [esp + 0x5e4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push str.CW3MFCServer::ListenSocketFunction__Failed_in_call_to_WSAEventSelect__GetLastError:_d
push edx
call fcn.00401f50
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.004018a0
xor eax, eax
jmp 0x403b1b
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x58]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebp, dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x28]
push edx
push 2
call ebx
test eax, eax
je 0x403b10
cmp eax, 1
jne 0x403ab6
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0x400
lea edx, [esp + 0x1e8]
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x403ab6
mov byte [esp + eax + 0x1d8], 0
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00403820
jmp 0x403ab6
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov ecx, dword [esp + 0x5dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c4]
xor ecx, esp
call fcn.004517f0
add esp, 0x5d4
ret
Function at 0x403fb0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 4
push 0
push 0
push esi
push 0x4186e0
call fcn.00434f49
mov dword [esi + 0x10], eax
test eax, eax
jne 0x403fe7
pop esi
ret
mov dword [eax + 0x28], 0
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x2c]
pop esi
ret

Function at 0x404340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x467e1c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CTQWBWEBSERVER.0
lea edi, [esi + 4]
call fcn.00432e51
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40438f
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push ebx
push ebx
push 1
lea ecx, [esi + 0x14]
mov dword [esp + 0x2c], ebx
call fcn.0043743f
push ebx
push ebx
push ebx
push ebx
lea ecx, [esi + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.0043743f
mov byte [esp + 0x1c], 2
call fcn.00432e51
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4043de
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x24]
push ecx
push 0x46ea2c
push edi
mov byte [esp + 0x28], 3
mov dword [esi + 0x10], ebx
call fcn.00401f50
mov edx, dword [esp + 0x34]
mov dword [esi + 8], ebx
mov dword [esi + 0x24], ebx
mov dword [0x48ca84], ebx
mov dword [0x48ca4c], edx
add esp, 0xc
mov dword [esi + 0xc], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x406140
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x20
push esi
lea esi, [ecx + 4]
test eax, eax
je 0x40615b
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi], 0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
push esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
pop esi
add esp, 0x20
ret 0x18

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

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x406315
push 0
call fcn.00406240
ret 0xc

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

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x406345
push 0
call fcn.00406240
ret 0xc

Function at 0x406370
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x114]
mov eax, 0x10624dd3
mul esi
mov eax, dword [ecx + 4]
shr edx, 6
mov dword [esp + 4], edx
imul edx, edx, 0x3e8
sub esi, edx
lea ecx, [esp + 4]
imul esi, esi, 0x3e8
push ecx
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
pop esi
cmp eax, 0xffffffff
jne 0x4063d0
push 0
call fcn.00406240
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add esp, 0x10c
ret 4
Function at 0x406cb0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x46820b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
push edi
push edi
push 1
mov dword [esi], vtable.CThreadPoolClient.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
push edi
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], edi
call fcn.0043743f
push edi
push edi
push edi
push edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x28], edi
call fcn.0043743f
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x407050
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4682a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x34]
call fcn.004331f2
xor edi, edi
mov dword [ebx + 0x18], eax
cmp eax, edi
je 0x4070c9
push 1
lea eax, [ebx + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00437500
mov ecx, dword [ebx + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x3c]
mov edx, dword [edx + 0xc]
push eax
mov dword [esp + 0x2c], edi
call edx
test eax, eax
jne 0x4070d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004374af
xor eax, eax
jmp 0x4071f6
mov esi, dword [esp + 0x38]
cmp esi, edi
mov dword [esp + 0x34], 1
lea ebp, [ebx + 4]
jl 0x4070e6
mov dword [ebp + 0x10], esi
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x4070f9
push eax
call fcn.004318cb
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
test esi, esi
jle 0x4071ad
cmp dword [esp + 0x34], 0
je 0x40719d
mov ecx, dword [esp + 0x30]
call fcn.004331f2
mov esi, eax
test esi, esi
jne 0x407127
mov dword [esp + 0x34], eax
jmp 0x40718b
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0
push 4
push eax
push ecx
push esi
push 0x406dc0
mov dword [esi + 8], ebx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
call fcn.00434f49
mov dword [esi + 4], eax
test eax, eax
jne 0x407168
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x34], 0
jmp 0x40718b
mov dword [eax + 0x28], 0
test edi, edi
jl 0x4071a8
cmp edi, dword [ebp + 8]
jl 0x407185
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, ebp
call fcn.00403e30
mov ecx, dword [ebp + 4]
mov dword [ecx + edi*4], esi
inc edi
cmp edi, dword [esp + 0x38]
jl 0x407107
cmp dword [esp + 0x34], 0
jne 0x4071ad
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
jmp 0x4071e1
call fcn.00431a0d
cmp dword [esp + 0x40], 0
jne 0x4071e1
xor esi, esi
cmp dword [ebx + 0xc], esi
jle 0x4071e1
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
test esi, esi
jl 0x4071a8
cmp esi, dword [ebp + 8]
jge 0x4071a8
mov ecx, dword [ebp + 4]
lea eax, [ecx + esi*4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x2c]
push edx
call edi
inc esi
cmp esi, dword [ebx + 0xc]
jl 0x4071c1
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004374af
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
Function at 0x407320
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x44], edi
je 0x407357
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x44]
cmp ecx, edi
je 0x407354
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x44], edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ecx
cmp eax, edi
je 0x4073ac
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
je 0x407395
push edi
push 4
push edi
push 0xfffffffffffffff1
push esi
push 0x406eb0
call fcn.00434f49
mov dword [esi + 0x44], eax
cmp eax, edi
jne 0x40739c
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
xor eax, eax
pop esi
ret 8
mov dword [eax + 0x28], edi
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x407460
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x468308
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x20]
call fcn.00437500
mov edx, dword [esi]
mov eax, dword [esi + 0x50]
mov edx, dword [edx + 0xc]
xor ebp, ebp
push eax
mov ecx, esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x18], 1
call edx
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push ecx
call ebx
neg eax
sbb eax, eax
inc eax
cmp eax, ebp
jne 0x407501
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x18]
push 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push edx
call eax
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x2c]
push 0xffffffffffffffff
push edx
call ebx
mov ecx, dword [edi + 4]
cmp ecx, ebp
je 0x40751c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x24]
push ebp
push 4
push eax
push ecx
push edi
push 0x406dc0
call fcn.00434f49
mov dword [edi + 4], eax
cmp eax, ebp
je 0x40754d
mov dword [eax + 0x28], ebp
mov edi, dword [edi + 4]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0xc]
inc eax
cdq
idiv ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
mov dword [esi + 0x50], edx
call fcn.004374af
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x407e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468529
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CW3MFCServer.0
mov dword [esi + 4], 0
call fcn.00403bf0
push 0
push 0
push 0
push 1
lea ecx, [esi + 0x28]
mov dword [esp + 0x24], 0
call fcn.0043743f
push 0
push 0
push 0
push 0
lea ecx, [esi + 0x30]
mov byte [esp + 0x24], 1
call fcn.0043743f
push 0
push 0
push 0
push 0
lea ecx, [esi + 0x38]
mov byte [esp + 0x24], 2
call fcn.0043743f
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 3
call fcn.00406fc0
mov dword [esi + 0x9c], 0
mov byte [esp + 0x14], 5
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407ed5
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xa0], eax
mov byte [esp + 0x14], 6
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407f06
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xa4], eax
mov byte [esp + 0x14], 7
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407f37
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xa8], eax
mov byte [esp + 0x14], 8
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407f68
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xac], eax
mov byte [esp + 0x14], 9
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407f99
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xb0], eax
mov byte [esp + 0x14], 0xa
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407fca
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xb4], eax
mov ecx, esi
mov byte [esp + 0x14], 0xb
call fcn.004079a0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x408220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.00437e8e
mov edi, dword [eax + 0xc]
movzx eax, word [esp + 0x18]
push 0x17
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4082e2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4082e2
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
lea ebx, [esi + 1]
sub edx, ebx
or ecx, edx
jge 0x40828e
push ebx
mov ecx, ebp
call fcn.004017a0
mov eax, dword [esp + 0x18]
mov edi, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4082b8
push esi
push eax
push ebx
push edi
call fcn.004535f6
add esp, 0x10
mov byte [edi + esi], 0
mov dword [esp + 0x10], 1
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4082d0
push ecx
push eax
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x4082ee
mov ecx, dword [ebp]
cmp eax, dword [ecx - 8]
jg 0x4082ee
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push 0x80070057
call fcn.00401090
int3
Function at 0x408300
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x468560
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00437500
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x80]
xor ebx, ebx
push esi
mov dword [esp + 0x28], ebx
call fcn.00411e20
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x44], edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
mov dword [esi + 0x40], ebx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
push ebx
push 4
push ebx
push ebx
push esi
push 0x407ad0
call fcn.00434f49
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x40841b
call fcn.00432e51
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40839a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
push str.CW3MFCServer::Start__Failed_to_create_listener_thread__please_check_settings
push ecx
mov byte [esp + 0x2c], 1
call fcn.00401f50
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
add esp, 8
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004374af
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
mov dword [eax + 0x28], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 0x40]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004374af
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x409220
Capabilities:
Write file on windows

Disassembly:
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x44]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8