joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed60
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1854
call fcn.0052ea50
push ebx
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x852]
push ecx
mov word [ebp - 0x854], ax
call fcn.0052ea80
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1852]
push eax
mov word [ebp - 0x1854], dx
call fcn.0052ea80
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x1052]
push edx
mov word [ebp - 0x1054], cx
call fcn.0052ea80
add esp, 0x24
push 0x400
lea eax, [ebp - 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x40ef1e
push 0x400
lea ecx, [ebp - 0x854]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
test eax, eax
je 0x40ef1e
push 0x400
lea eax, [ebp - 0x1854]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x40ef1e
push str.__c__del
lea ecx, [ebp - 0x1054]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea edx, [ebp - 0x854]
push edx
lea eax, [ebp - 0x1054]
push eax
call esi
push 0x56402c
lea ecx, [ebp - 0x1054]
push ecx
call esi
lea edx, [ebp - 0x1054]
push edx
lea eax, [ebp - 0x1854]
push eax
call esi
push 0x40
lea ecx, [ebp - 0x50]
push 0
push ecx
call fcn.0052ea80
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
xor eax, eax
add esp, 0xc
xor edx, edx
push 0x100
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], dx
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push eax
call edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0xc
push 0
push 0
push 0
lea edx, [ebp - 0x1854]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x40ef0c
mov eax, dword [ebp - 0x10]
push 0x40
push eax
call esi
mov ecx, dword [ebp - 0xc]
push 0xfffffffffffffff1
push ecx
call edi
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20
call ebx
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4114b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
xor eax, eax
mov dword [ebp - 4], eax
cmp ecx, eax
je 0x4114d7
mov eax, dword [ecx + 0x20]
push ebx
push esi
push edi
push 0x41a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
sub esi, dword [ebp - 0x40]
sub edi, dword [ebp - 0x3c]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x14], eax
call fcn.0042ed2a
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.0042e76c
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x411528
xor eax, eax
jmp 0x41152b
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042ed3e
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], vtable.CBitmap.0
mov ecx, dword [ebx + 4]
push edi
push esi
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042f012
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
push edx
push eax
call fcn.0042f0a3
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], eax
call fcn.0042e45b
push 0xff00
lea ecx, [ebp - 0x30]
call fcn.0042e4f1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x40]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebx + 4]
push 0xcc0020
push 0
push 0
push ecx
push edi
push esi
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4115cb
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042f0a3
lea ecx, [ebp - 0x30]
call fcn.0042eda9
lea ecx, [ebp - 0x20]
call fcn.0042f06c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], vtable.CBitmap.0
call fcn.00404470
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042edbf
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411638
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x413290
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x100
lea eax, [esi + 0x808]
push edi
push eax
mov dword [esi], vtable.CHttpSocket.0
mov dword [esi + 0x90c], edi
mov dword [esi + 0x910], edi
mov dword [esi + 0x804], 0x50
mov dword [esi + 0x908], edi
call fcn.0052ea80
push 0x400
lea ecx, [esi + 4]
push edi
push ecx
call fcn.0052ea80
push 0x400
lea edx, [esi + 0x404]
push edi
push edx
call fcn.0052ea80
add esp, 0x24
lea eax, [ebp - 0x190]
push eax
push 0x202
mov dword [esi + 0x914], edi
mov dword [esi + 0x918], edi
mov dword [esi + 0x91c], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413330
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, ecx
cmp dword [esi + 0x918], 0
jne 0x413459
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
push edi
mov byte [ebp - 1], 0
xor edi, edi
mov dword [ebp - 8], 1
mov edi, edi
cmp edi, 0x400
jge 0x413447
lea esp, [esp]
mov eax, dword [esi + 0x90c]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
lea edx, [ebp - 0x114]
push edx
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x64
call ebx
test eax, eax
jle 0x413471
mov ecx, dword [esi + 0x90c]
lea eax, [ebp - 0x114]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x413370
mov eax, dword [esi + 0x90c]
lea edx, [ebp - 8]
push edx
push 0x8004667e
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [esi + 0x90c]
push 0
push 1
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x413447
mov al, byte [ebp - 1]
mov byte [edi + esi + 0x404], al
inc edi
cmp edi, 4
jl 0x413360
cmp byte [edi + esi + 0x400], 0xd
jne 0x413360
cmp byte [edi + esi + 0x401], 0xa
jne 0x413360
cmp byte [edi + esi + 0x402], 0xd
jne 0x413360
cmp byte [edi + esi + 0x403], 0xa
jne 0x413360
mov dword [esi + 0x91c], edi
pop edi
mov dword [esi + 0x918], 1
pop ebx
mov ecx, dword [esi + 0x91c]
mov edx, dword [ebp + 8]
lea eax, [esi + 0x404]
mov dword [edx], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xffffffff
jne 0x413370
jmp 0x413447

Function at 0x413510
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x908], 0
jne 0x413546
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x90c], eax
cmp eax, 0xffffffff
jne 0x41354a
push str.socket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.004134d0
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x413630
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
neg eax
push 4
mov esi, ecx
mov edx, dword [esi + 0x90c]
sbb eax, eax
lea ecx, [ebp + 8]
push ecx
add eax, 0x1006
push eax
push 0xffff
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x413679
push str.setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.004134d0
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, 1
pop esi
pop ebp
ret 8

Function at 0x4136b0
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, ecx
cmp dword [esi + 0x908], 0
jne 0x4136ce
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x90c]
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ecx
or ebx, 0xffffffff
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [sym.imp.WS2_32.dll_select]
mov edx, dword [esi + 0x90c]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x64
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], 1
call edi
test eax, eax
jle 0x41379e
mov eax, dword [esi + 0x90c]
lea edx, [ebp - 0x110]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4136f6
mov edx, dword [esi + 0x90c]
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x90c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jg 0x413793
mov ecx, esi
mov dword [esi + 0x908], 0
call fcn.004135e0
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xffffffff
jne 0x4136f6
jmp 0x413782
Function at 0x414070
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551fd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x4140a8
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 4], ebx
lea eax, [ebp + 8]
lea ecx, [esi + 0xc]
push eax
call fcn.00408180
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [esi + 0x10]
call fcn.00408180
mov dword [esi + 8], ebx
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], ebx
jl 0x4140e7
push str.Accept:
push eax
call fcn.0052ed87
add esp, 8
cmp eax, ebx
je 0x4140e7
sub eax, dword [esi + 0x10]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4140f9
push 0xae
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword____r_n
lea ecx, [esi + 0x10]
call fcn.00407fc0
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], ebx
jl 0x41411d
push str.Accept_Language:
push eax
call fcn.0052ed87
add esp, 8
cmp eax, ebx
je 0x41411d
sub eax, dword [esi + 0x10]
sar eax, 1
cmp eax, 0xffffffff
jne 0x41412c
push 0x18
push str.Accept_Language:_zh_cn_r_n
lea ecx, [esi + 0x10]
call fcn.00407fc0
push ebx
push ebx
push esi
push 0x413f30
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
push 0x2710
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x4141c0
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esi + 4], ebx
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4141ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esi + 4], ebx
mov eax, dword [ebp + 8]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4141f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414216
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4144e0
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
lea eax, [ebp - 4]
push eax
mov esi, ecx
mov ecx, dword [esi]
push 0x8004667e
push ecx
mov dword [ebp - 4], 1
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x2c], ebx
je 0x41459b
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x3e8
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], 1
call edi
cmp eax, ebx
jg 0x414585
jne 0x414521
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, 0x1770
jb 0x414521
mov edi, ebx
mov eax, dword [esi]
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x414565
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414e70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x190]
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push eax
mov byte [esi + 0xc], bl
push 0x202
mov dword [esi + 4], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x414edb
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x414ed5
shr eax, 8
cmp al, 2
jne 0x414ed5
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
mov dword [esi + 0x2c], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [esi + 0x2c], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415550
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], ecx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x48], 1
call fcn.00404560
mov esi, eax
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
mov dword [ebp - 4], 0
jge 0x4155cd
push 0
mov ecx, esi
call fcn.00403d90
mov esi, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp + 0xb]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x41560d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0xb], 0
je 0x415645
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x18]
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
push ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, dword [ebp + 0xc]
mov ecx, 2
push edx
mov word [ebp - 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov word [ebp - 0x26], ax
push 0x10
lea eax, [ebp - 0x28]
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4170d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
xor eax, eax
xor ebx, ebx
push 0x40
mov dword [ebp - 0x14], esi
mov word [esi + 0xd2], ax
mov byte [esi + 0xd0], 1
mov byte [esi + 0xae0], bl
mov dword [ebp - 4], ebx
call fcn.0042cd90
add esp, 4
mov dword [esi + 0xbc], eax
jmp 0x417151
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0xb8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x8d8], ebx
mov dword [esi + 0x8dc], ebx
pop edi
mov dword [esi + 0xc0], 0x67452301
mov dword [esi + 0xc4], 0xefcdab89
mov dword [esi + 0xc8], 0x98badcfe
mov dword [esi + 0xcc], 0x10325476
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417b30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55218b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0054c8bf
push 4
mov dword [ebp - 4], 0
call fcn.0042cd61
mov edi, eax
add esp, 4
test edi, edi
je 0x417ba7
push ebx
call fcn.0054c530
mov dword [edi], eax
call fcn.0054c2ef
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0054c224
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x417b9c
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0054c24c
pop ebx
jmp 0x417ba9
xor edi, edi
mov dword [esi + 0x38], 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
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 ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x418c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5522c8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x418d98
cmp byte [edi + 0x49], bl
je 0x418d98
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x418ca3
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x418cc5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
push esi
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x418cde
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x418d1d
dec eax
je 0x418d21
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x418d80
call fcn.00414ca0
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x418d31
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, ecx
je 0x418d5a
cmp ebx, 0x10
jae 0x418d40
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00531421
add esp, 0x10
cmp esi, eax
jne 0x418d78
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x418d7d
test esi, esi
jne 0x418cd2
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00418830
jmp 0x418ccc
lea ecx, [ebp - 0x2c]
jmp 0x418d05
lea ecx, [ebp - 0x2c]
call fcn.00414ca0
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4195a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552332
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x4195eb
mov dword [edi], 0x5654a8
mov dword [edi + 0x10], 0x5654a0
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov dword [edi + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [edi]
mov ebx, dword [eax + 4]
add ebx, edi
mov ecx, ebx
call fcn.004174b0
lea esi, [edi + 0x18]
push 0x20
mov ecx, ebx
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], 0
call fcn.004182c0
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x41963d
mov eax, dword [ebx + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, ebx
call fcn.00417380
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx + 4]
mov dword [edi + edx + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, esi
mov dword [ebp - 4], 5
mov dword [edi + eax], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00417b30
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
mov dword [eax], ecx
mov edx, dword [esi + 0x24]
mov dword [edx], ecx
mov eax, dword [esi + 0x34]
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov dword [edx], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov edx, dword [esi + 0x30]
mov dword [edx], ecx
mov dword [esi + 0x54], ecx
mov eax, dword [0x5c05c0]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4