joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d3d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x82c]
push 0x104
push edx
call fcn.00531f25
xor ecx, ecx
push 0x206
xor eax, eax
push ecx
lea edx, [ebp - 0x212]
push edx
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 0x214], cx
call fcn.00538700
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x622]
push ecx
mov word [ebp - 0x624], ax
call fcn.00538700
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41a]
push eax
mov word [ebp - 0x41c], dx
call fcn.00538700
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push 0x104
lea edx, [ebp - 0x624]
push edx
push 0x104
lea eax, [ebp - 0x214]
push eax
push 3
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x82c]
push edx
call fcn.00536280
add esp, 0x54
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x59c104
push 0x104
push esi
call fcn.005357e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x14
call fcn.0053129a
mov esp, ebp
pop ebp
ret

Function at 0x42d4d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5650e2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 0x21c], 0
push ecx
mov dword [ebp - 0x220], esi
mov word [ebp - 0x218], ax
call fcn.00538700
add esp, 0xc
push 0
push 0x23
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.0043dc32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42d55d
push 0x80004005
call fcn.00403280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
test edi, edi
je 0x42d59d
push edi
push str.ExBC
lea ecx, [ebp - 0x218]
push ecx
push str._s_s_s_
push esi
call fcn.00402a70
add esp, 0x14
jmp 0x42d5b7
push str.ExBC
lea edx, [ebp - 0x218]
push edx
push str._s_s_
push esi
call fcn.00402a70
add esp, 0x10
push esi
call fcn.0042c9d0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
Function at 0x42d5e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.00538700
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x596e98
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42d657
test dx, dx
je 0x42d653
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42d657
add eax, 4
add ecx, 4
test dx, dx
jne 0x42d631
xor eax, eax
jmp 0x42d65c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42d679
push str.C:Program_Files
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00531f25
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00402d80
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0053129a
mov esp, ebp
pop ebp
ret

Function at 0x42dae0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x31
lea eax, [ebp - 0x37]
push 0
push eax
mov byte [ebp - 0x38], 0
call fcn.00538700
add esp, 0xc
lea ecx, [ebp - 0x1c8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x42db29
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x42db9f
push 0x32
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x1cc], edx
test ebx, ebx
je 0x42db93
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
test edi, edi
je 0x42db6f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x42db73
xor eax, eax
jmp 0x42db87
lea eax, [esi + esi]
call fcn.0053b7a0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00406b30
push eax
push 0x10
push ebx
call fcn.00531f25
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x1cc]
lea esp, [ebp - 0x1d4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret

Function at 0x42dbc0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
mov dword [ebp - 4], 4
call edi
cmp eax, 0x6f
jne 0x42dbf6
mov ecx, dword [ebp - 4]
push ecx
call fcn.00533ec0
add esp, 4
lea edx, [ebp - 4]
mov esi, eax
push edx
push esi
call edi
test esi, esi
je 0x42dc3d
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push str._0.2X_0.2X_0.2X_0.2X_0.2X_0.2X
push 0x64
push eax
call fcn.0053450b
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42de10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x234], 0
test edi, edi
jne 0x42de45
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x42de7a
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x42de8c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, edi
lea eax, [ebp - 0x20c]
jmp 0x42dea0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42dec6
test dx, dx
je 0x42dec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42dec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42dea0
xor eax, eax
jmp 0x42decb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42defd
lea ecx, [ebp - 0x230]
push ecx
push esi
call ebx
test eax, eax
jne 0x42de93
mov edi, dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop esi
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0053129a
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x228]
jmp 0x42dee3
Function at 0x42e620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564274
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x5c4920]
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 [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x490], edi
mov dword [ebp - 4], edi
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x42e677
lea eax, [ebp + 0xc]
push 0x596e48
push eax
call fcn.005315b4
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x42e769
lea ecx, [ebp - 0x46c]
push str.Cannot_read_file__
push ecx
lea ebx, [ebp + 0xc]
call fcn.0042a3b0
push eax
mov edx, 0x59d0c0
lea esi, [ebp - 0x48c]
mov byte [ebp - 4], 1
call fcn.004066e0
add esp, 0xc
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x48c]
mov byte [ebp - 4], 3
push edx
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x430], 1
call fcn.00406c30
cmp dword [ebp - 0x478], 0x10
jb 0x42e70f
mov eax, dword [ebp - 0x48c]
push eax
call fcn.0043dbc0
add esp, 4
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 0x48c], bl
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x430]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x450], ecx
push edx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
call fcn.00406c30
push 0x5b73cc
lea eax, [ebp - 0x450]
push eax
call fcn.00538626
push ebx
push 0x400
lea ecx, [ebp - 0x410]
push 1
push ecx
call fcn.0053199a
add esp, 0x10
cmp eax, edi
je 0x42e7b0
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call edx
push ebx
push 0x400
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0053199a
add esp, 0x10
cmp eax, edi
jne 0x42e784
push ebx
call fcn.00531638
mov edx, dword [esi]
mov edi, dword [ebp - 0x470]
mov eax, dword [edx]
add esp, 4
push edi
mov ecx, esi
call eax
cmp dword [ebp + 0x20], 0x10
jb 0x42e7da
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043dbc0
add esp, 4
mov eax, edi
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.0053129a
mov esp, ebp
pop ebp
ret 0x20
Function at 0x42f7b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov eax, 1
mov dword [esi + 0x40], eax
mov edx, 4
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0043dbcb
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x38], 0
xor edi, edi
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x42f840
push 0
push 0
mov dword [eax + 0x10], edi
mov dword [eax + 4], esi
call fcn.005331d5
add esp, 0x18
test eax, eax
je 0x42f831
mov edx, dword [esi + 0x3c]
mov dword [edx + edi*4], eax
inc edi
cmp edi, 1
jl 0x42f7f0
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x430a10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566909
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ac], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CIocpService.0
push 0x18
mov dword [esi + 0x10], edi
call fcn.0043db91
add esp, 4
cmp eax, edi
je 0x430bdc
mov dword [esi + 0xc], eax
mov dword [eax], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 8], eax
mov eax, dword [esi + 0xc]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x15], 1
mov byte [ebp - 4], 1
push 0x18
mov dword [esi + 0x20], edi
call fcn.0043db91
add esp, 4
cmp eax, edi
je 0x430ba9
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x1c]
mov byte [edx + 0x14], 1
mov eax, dword [esi + 0x1c]
mov byte [eax + 0x15], 1
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x28]
push eax
call ebx
mov dword [esi + 0x40], edi
lea eax, [esi + 0x44]
push eax
call ebx
mov dword [esi + 0x5c], edi
lea eax, [esi + 0x60]
push eax
call ebx
mov dword [esi + 0x78], edi
lea eax, [esi + 0x80]
push eax
call ebx
mov dword [esi + 0x98], edi
push 1
lea ebx, [esi + 0xd4]
push ebx
mov byte [ebp - 4], 6
call fcn.004096d0
push 0x20
mov byte [ebp - 4], 7
call fcn.0043db91
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 8
cmp eax, edi
je 0x430b22
push 0xffffffffffffffff
push eax
call fcn.0040a340
jmp 0x430b24
xor eax, eax
mov dword [ebx + 4], eax
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 8], ecx
lea edx, [ebp - 0x1a0]
push edx
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
push 0x202
mov dword [esi + 0x10c], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 4], edi
mov dword [esi + 0xe4], 0xffffffff
mov dword [esi + 0x9c], 0x2710
mov dword [esi + 0xf4], edi
mov dword [esi + 0xe0], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1a8], edi
call fcn.00531342
push 0x5b6e6c
lea ecx, [ebp - 0x1c4]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00538626
lea edx, [ebp - 0x1a4]
push edx
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1a4], edi
call fcn.00531342
push 0x5b6e6c
lea eax, [ebp - 0x1b8]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00538626
int3
Function at 0x431020
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0x28
push esi
push edi
mov esi, ecx
test eax, eax
jne 0x43104f
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx + 1]
mov dword [esi + 0xf0], edx
jmp 0x431055
mov dword [esi + 0xf0], eax
mov eax, dword [esi + 0xf0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043dbcb
add esp, 4
mov dword [esi + 0xf8], eax
test eax, eax
jne 0x43109f
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
push str.WorkThread_Handle_Array_Creation_Fail_n
push esi
call ecx
add esp, 8
mov ecx, esi
call fcn.00430e30
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 4], eax
test eax, eax
jne 0x4310dc
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateIoCompletionPort_failed_to_create_I_O_completion_port:__d_n
mov edx, dword [edi + 0x20]
push esi
call edx
add esp, 0xc
mov ecx, esi
call fcn.00430e30
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor edi, edi
cmp dword [esi + 0xf0], edi
jle 0x431115
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4313d0
push 0
push 0
call fcn.005331d5
add esp, 0x18
test eax, eax
je 0x431127
mov ecx, dword [esi + 0xf8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0xf0]
jl 0x4310e6
call fcn.004311a0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed_to_create_worker_thread:__d_n
jmp 0x4310c2
Function at 0x4333b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564810
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005313ee
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00406c30
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x433442
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4342a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564f58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005313ee
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00406c30
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.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 0x434d80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434d9c
test al, 0x10
je 0x434d9c
mov al, 1
pop edi
pop ebp
ret
push esi
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x434da2
sub esi, ecx
lea eax, [esi - 1]
test eax, eax
js 0x434dbc
cmp byte [eax + edi], 0x5c
je 0x434dbc
dec esi
dec eax
jns 0x434db2
test esi, esi
jg 0x434dc6
pop esi
xor al, al
pop edi
pop ebp
ret
push ebx
dec esi
lea ebx, [esi + 1]
push ebx
call fcn.0043dbcb
push ebx
mov edi, eax
push 0
push edi
call fcn.00538700
push esi
mov esi, dword [ebp + 8]
push esi
push edi
call fcn.0053b1b0
push edi
xor bl, bl
call fcn.00434d80
add esp, 0x20
test al, al
je 0x434e04
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
test edi, edi
je 0x434e11
push edi
call fcn.0043dbc0
add esp, 4
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x436040
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 1
xor edi, edi
push edi
push edi
push edi
push ebx
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43606a
pop edi
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
call edi
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1002
push 0xffff
push esi
mov dword [ebp - 4], 0
call edi
cmp ebx, 1
jne 0x4360bb
push 4
lea ecx, [ebp - 8]
push ecx
push 0x80
push 0xffff
push esi
mov dword [ebp - 8], ebx
call edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x436540
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563de0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
cmp dword [edi + 0x10], 0xffffffff
je 0x4365f0
lea ebx, [edi + 0x34]
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x98]
push eax
mov dword [ebp - 4], 0
call fcn.00534d37
push 0x50
call fcn.00432100
mov esi, eax
add esp, 8
test esi, esi
je 0x4365d5
mov dword [esi], 0
cmp dword [edi + 8], 0
je 0x436606
mov dword [esi + 0x14], 0
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x74]
or edx, 0x40001
mov dword [esi + 0x14], edx
jmp 0x43660d
cmp dword [edi + 4], 0
je 0x4365e2
mov eax, edi
call fcn.00436320
push ebx
mov dword [ebx + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0x14], 0x40101
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea ebx, [esi + 0x1c]
mov dword [ebx], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dx, word [ebp + 0x10]
push 0
push esi
push 0
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x20]
push eax
push 1
mov word [esi + 0x48], dx
mov ecx, dword [edi + 0x10]
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4366a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4366a2
cmp dword [edi + 4], 0
je 0x436664
mov eax, edi
call fcn.00436320
mov eax, esi
call fcn.004321d0
mov eax, dword [ebp - 0x18]
push eax
mov dword [eax + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [edi + 0x34]
push eax
mov dword [eax + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10