joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe890
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004fe870
push ebp
push 0x414f80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4fe8e3
jmp 0x4fe960
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.004747e0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.00474730
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.00474ef0
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.00476100
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4fe9b7
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004fe850
push ebp
push 0x414f80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004fe850
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004fe870
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52b1a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x52b1bb
jmp 0x52b1c8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x52b1d0
jmp 0x52b1d8
jmp 0x52b28a
xor eax, eax
push 0x52b267
push ebp
push 0x415300
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, 0
call fcn.0040d610
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x52b249
jmp 0x52b25c
cmp dword [ebp - 8], 0
jne 0x52b251
jmp 0x52b25c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x52b28a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x569400
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.005693e0
push ebp
push 0x414f80
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x5f5498]
lea eax, [ebp - 0x10]
call fcn.0040a4f0
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a900
cmp dword [ebp - 0xc], 0
jg 0x56945a
jmp 0x56947c
mov eax, dword [ebp - 0xc]
lea eax, [eax + 1]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x56946d
mov eax, 0x6042f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
lea esi, [esi]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a900
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040b260
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x5694a5
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x5694b1
mov eax, 0x6042f0
call fcn.00444cf0
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005693e0
mov esp, ebp
pop ebp
ret
Function at 0x56abe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x5f5b90
call fcn.0040ee20
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0056abd0
push ebp
push 0x414f80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408a40
mov eax, dword [ebp - 0xc]
mov edx, fcn.004fb2b0
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.004093a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408a40
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.005689d0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0056b280
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x56ace5
jmp 0x56ad04
mov eax, dword [ebp - 4]
call fcn.0051e990
test al, al
je 0x56acf3
jmp 0x56ad04
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0056abd0
mov esp, ebp
pop ebp
ret

Function at 0x587780
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x11103d9c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x11103da6
pushal
call 0x11103dac
pop ebp
sub ebp, 0x10
sub ebp, 0x1103d9c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x11103dd0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x11103dd9
mov eax, 0x1103d9c
add eax, ebp
add eax, 0x63
mov ecx, 0x5d7
mov edx, 0x97e89407
xor byte [eax], dl
inc eax
dec ecx
jne 0x11103df0
jmp 0x11103e03
mov edx, cs
mov word [esi + 0x707073b], cs
xchg dh, al
inc dword [edi]
pop es
pop es
add al, 0xca
mov edi, 0x7070701
mov ebp, 0x707072f
invalid
Function at 0x401120
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b678
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
push eax
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401196
mov ecx, dword [edi + 4]
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], str.WindowsService_in_OnStart
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push 8
call fcn.0041227d
add esp, 4
test eax, eax
je 0x4011af
mov dword [eax], 0x401210
mov dword [eax + 4], edi
jmp 0x4011b1
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x10
push eax
push 0x4019c0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x4011ea
push 0
call fcn.00412221
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push 0x431b9c
lea eax, [ebp - 0x10]
push eax
call fcn.00414e8b
int3

Function at 0x401380
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, ebx
je 0x4013cc
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 8]
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push 4
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], str.WindowsService_in_OnStop
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [esi + 0x30]
mov ecx, 1
mov dword [esi + 0x28], ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4013fd
mov ebx, str.Stop
mov edi, str.Socket_Service
mov byte [eax + 1], cl
call fcn.00410060
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
test eax, eax
je 0x401427
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x431b9c
lea eax, [ebp - 4]
push eax
call fcn.00414e8b
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [edi + 4]
push esi
push eax
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x402e15
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x402e20
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push ecx
push eax
push str._s_failed_w_err_0x_08lx
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004026c0
mov edx, dword [edi + 4]
add esp, 0xc
xor ebx, ebx
push edx
push ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, ebx
je 0x402ea4
mov eax, dword [edi + 4]
push ebx
lea edx, [ebp - 0x214]
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push 1
lea ecx, [ebp - 0x20c]
push esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d2c
mov esp, ebp
pop ebp
ret 4
Function at 0x402ec0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x402f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42f768
call fcn.0041269d
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0041269d
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0x42f484
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.Wondershare_Install_Assist_Service
push 0x430030
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x402f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed_w_err_0x_08lx_n
jmp 0x402fd2
lea edx, [ebp - 0x210]
push edx
push 1
push esi
mov dword [ebp - 0x210], str.Wondershare_Install_Assist_Service
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x430030
push str._s_is_installed._n
call fcn.0041269d
add esp, 8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_failed_w_err_0x_08lx_n
call fcn.0041269d
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x402fea
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x403000
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
push 0xf003f
push eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x403061
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0041269d
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push 0x430030
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40308a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x40313b
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403118
push ebx
push 0x430030
push str.Stopping__s.
call fcn.0041269d
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x4030f5
cmp dword [ebp - 0x1c], 3
jne 0x4030f5
push 0x42f918
call fcn.0041269d
add esp, 4
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x4030d0
cmp dword [ebp - 0x1c], 1
pop ebx
push 0x430030
jne 0x403108
push 0x42f91c
jmp 0x40310d
push str._n_s_failed_to_stop._n
call fcn.0041269d
mov edi, dword [ebp - 0x24]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x403131
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x40313b
push 0x430030
push str._s_is_removed._n
call fcn.0041269d
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x403153
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x404360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b5bb
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x434674]
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 esi, ecx
mov ebx, str.RecvfromSocketThread_start
mov edi, str.SocketService
mov dword [ebp - 0x830], esi
call fcn.00410060
movzx ecx, word [esi + 0x20]
mov eax, 2
push ecx
mov dword [ebp - 0x834], 0x10
mov word [esi + 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esi + 0x42], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp byte [esi + 1], 0
mov dword [esi + 0x44], eax
jne 0x404552
nop
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 0x834]
push edx
lea eax, [esi + 0x40]
push eax
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x404548
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x810]
push edx
push 0
push 0xfde9
mov byte [ebp + eax - 0x810], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea ebx, [edi + edi + 2]
push ebx
call fcn.00413a83
add esp, 4
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.0041d880
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x42fa3d
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
call fcn.004014a0
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push ebx
call fcn.00410964
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4044c1
invalid
Function at 0x408650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ae18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4087fe
cmp byte [ebx + 0x49], 0
je 0x4087fe
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4087f2
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4086c5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4086e2
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x408719
dec eax
je 0x40871d
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4087f9
call fcn.00401470
xor al, al
jmp 0x408800
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40872d
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40875a
cmp edi, 0x10
jae 0x40873c
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004136e1
add esp, 0x10
cmp esi, eax
jne 0x4087ea
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4087f6
test esi, esi
jne 0x4086d6
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40881b
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40881b
cmp edi, esi
jae 0x4087d3
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004017d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4086d6
mov ecx, eax
cmp edi, 0x10
jae 0x4087af
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4087ca
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4086d0
test esi, esi
jne 0x4087a5
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4087e2
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4086d0
lea ecx, [ebp - 0x2c]
call fcn.00401470
xor al, al
jmp 0x408800
lea ecx, [ebp - 0x2c]
call fcn.00401470
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004108a9
int3
Function at 0x40a5b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a8cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00411047
push 4
mov dword [ebp - 4], 0
call fcn.0041227d
mov edi, eax
add esp, 4
test edi, edi
je 0x40a62c
call fcn.00410f1f
mov dword [edi], eax
call fcn.00410cde
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00411008
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a622
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00411030
jmp 0x40a62e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x40a6a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a8cb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00411047
push 4
mov dword [ebp - 4], 0
call fcn.0041227d
mov edi, eax
add esp, 4
test edi, edi
je 0x40a71c
call fcn.00410f1f
mov dword [edi], eax
call fcn.00410cde
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00411008
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a712
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00411030
jmp 0x40a71e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x411d2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434674]
jne 0x411d36
repz ret
jmp fcn.004182e2