joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da190
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x645d28]
push ebx
mov ebx, dword [ebp + 8]
cmp eax, ebx
je 0x4da232
test ebx, ebx
je 0x4da21b
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0
call esi
push 1
mov edi, eax
call esi
push eax
push edi
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [0x645468]
push 0
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [0x645468]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push 1
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x10]
sub edx, ecx
push edx
push eax
mov eax, dword [0x645468]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
push 0
push 0
push 0x232
mov dword [0x645d28], ebx
call fcn.004917d0
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ed50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5daafa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
push edi
xor edi, edi
mov dword [esi], 0x60e8f8
mov dword [ebp - 0x10], esi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.00509910
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esp
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push edi
mov ecx, ebx
call fcn.004bb660
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x14], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x513640
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x513663
test al, 1
je 0x513663
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x5136a4
push ebx
mov ebx, dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x513699
push edi
lea ecx, [esi + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
lea ecx, [esi + 8]
call dword [sym.imp.MSVCP71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
push 0x5f1898
call ebx
mov ecx, dword [ebp + 0xc]
mov esi, dword [esi]
cmp esi, dword [ecx + 8]
jne 0x513676
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x524260
Capabilities:
Create raw socket
Get socket status
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x403c
call fcn.005c8bb0
mov eax, dword [0x644904]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
push eax
mov dword [edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x52429f
push 0x61082c
push 0x1b
push 0x610820
call dword [sym.imp.tengine.dll_void___cdecl_tThrowAssertException_char_const___int__char_const__]
add esp, 0xc
mov ebx, 1
push ebx
push 3
push 2
call dword [sym.imp.ws2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5242c0
push 0x610814
jmp 0x5243fa
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ws2_32.dll_gethostbyname]
xor ecx, ecx
cmp eax, ecx
jne 0x52430b
mov eax, dword [edi]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x28]
push edx
push ecx
push 0x500
push eax
mov dword [ebp - 0x28], 0xffffffff
call esi
mov ecx, dword [edi]
push 0
push 0
push 0x501
push ecx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [eax]
cmp dword [ebp + 8], ecx
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], cx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
jbe 0x5243ce
lea eax, [ebp - 0x14]
push eax
push esi
mov ecx, edi
call fcn.005240e0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
lea edx, [ebp - 0x403c]
push edx
push ebx
mov dword [ebp - 0x403c], ebx
mov dword [ebp - 0x4038], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0
call dword [sym.imp.ws2_32.dll_select]
cmp eax, 0xffffffff
je 0x5243b0
test eax, eax
je 0x5243a0
lea eax, [ebp + 0x13]
push eax
lea ecx, [ebp - 0x24]
push ecx
push esi
mov ecx, edi
call fcn.005241c0
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [ebp - 0x2c]
sub eax, ebx
add ecx, eax
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp + 0xc], eax
mov ebx, 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x30], eax
jb 0x524331
jmp 0x5243bc
push 0x610808
mov ecx, edi
call fcn.00524060
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5243ce
mov eax, dword [ebp - 0x2c]
cdq
idiv ecx
mov dword [ebp - 0x28], eax
jmp 0x5243d5
mov dword [ebp - 0x28], 0xffffffff
mov eax, dword [edi]
lea edx, [ebp - 0x28]
push edx
push 2
push 0x500
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.ws2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x524401
push 0x6107f8
mov ecx, edi
call fcn.00524060
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005c8895
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53dd30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd969
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov dword [ebx], fcn.0051e930
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebp - 4], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
lea esi, [ebx + 0x4c]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0053c7a0
mov dword [esi + 4], eax
mov byte [eax + 0x1d], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], edi
lea ecx, [ebx + 0x5c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebx + 0x78]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov esi, dword [ebp + 8]
cmp esi, edi
mov byte [ebp - 4], 4
jne 0x53ddd3
push 0x612600
push 0x23
push 0x6125a0
call dword [sym.imp.tengine.dll_void___cdecl_tThrowAssertException_char_const___int__char_const__]
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebx + 4], esi
mov dword [ebp - 0x14], ecx
sub esp, 0x24
mov dword [ebx + 0x28], edi
mov edi, esp
mov ecx, 9
lea esi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
lea ecx, [ebx + 0x38]
mov dword [ebx + 8], eax
call fcn.0053d8b0
mov dl, byte [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], esi
mov dword [ebx + 0xa4], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0xa0], esi
pop edi
mov byte [ebx + 0x49], dl
mov byte [ebx + 0x34], 0
mov byte [ebx + 0x48], 0
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5498d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 0x258
push 0x320
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [0x645468]
push 0
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, edx
mov ebx, esi
sub ecx, eax
sub ebx, edi
cmp ebx, ecx
jle 0x5499f2
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
sub ebx, ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x10], ebx
sub ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
cmp ebp, ebx
jle 0x5499f2
sub eax, edx
sub eax, edi
add eax, esi
mov edi, dword [esp + 0x20]
cdq
sub eax, edx
mov ebp, dword [esp + 0x30]
sar eax, 1
xor edx, edx
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [esp + 0x18]
sub eax, edi
mov esi, edx
sub eax, dword [esp + 0x28]
add eax, ebp
cdq
sub eax, edx
sar eax, 1
xor edx, edx
test eax, eax
setl dl
mov ebp, ecx
dec edx
and edx, eax
cmp ecx, 0x320
mov edi, edx
jg 0x5499ab
mov ebp, 0x320
cmp ebx, 0x258
jg 0x5499b8
mov ebx, 0x258
mov eax, dword [0x645468]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x645468]
push 1
push ebx
push ebp
push edi
push esi
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0
push 0x232
call fcn.004917d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x645468]
push 3
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x54a2a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x644904]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push edi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [esp + 0x120]
mov byte [edi], 0
jne 0x54a320
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
test esi, esi
jne 0x54a31d
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.kernel32.dll_lstrcpy]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x110]
pop edi
call fcn.005c8895
add esp, 0x110
ret 0xc
Function at 0x54a340
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x644904]
push esi
mov dword [esp + 0x210], eax
lea eax, [esp + 8]
push eax
push 0x613ffc
push 0x80000000
mov esi, ecx
call fcn.0054a2a0
test eax, eax
jne 0x54a43e
push ebx
mov ebx, dword [sym.imp.kernel32.dll_lstrcat]
push 0x613fe8
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0xc]
push edx
mov eax, edx
push eax
push 0x80000000
mov ecx, esi
call fcn.0054a2a0
test eax, eax
jne 0x54a423
push edi
mov edi, dword [sym.imp.MSVCR71.dll_strstr]
lea ecx, [esp + 0x10]
push 0x613fe0
push ecx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x54a3e2
lea edx, [esp + 0x10]
push 0x613fdc
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x54a3e2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
lea esi, [esp + eax + 0xf]
jmp 0x54a3e5
mov byte [esi], 0
push 0x5f9120
push esi
call ebx
mov ecx, dword [esp + 0x220]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x224]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_WinExec]
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x20c]
call fcn.005c8895
add esp, 0x210
ret 8
mov eax, dword [esp + 8]
pop ebx
pop esi
mov ecx, dword [esp + 0x20c]
call fcn.005c8895
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x210]
mov eax, dword [esp + 4]
pop esi
call fcn.005c8895
add esp, 0x210
ret 8
Function at 0x563500
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x37c
mov eax, dword [0x644904]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x380], eax
mov eax, dword [esi + 0xa0]
cmp eax, 3
push edi
je 0x563531
cmp eax, 2
jne 0x5636b5
mov eax, dword [esi + 0xa8]
xor ebx, ebx
cmp eax, ebx
jne 0x5636b5
xor eax, eax
mov byte [esp + 0x68], bl
mov ecx, 0x40
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x6c]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xor eax, eax
mov byte [esp + 0x170], bl
mov ecx, 0x40
lea edi, [esp + 0x171]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [esp + 0x6c]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push 0x615144
lea ecx, [esp + 0x174]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edx, dword [0x645468]
xor eax, eax
mov byte [esp + 0x278], bl
mov ecx, 0x40
lea edi, [esp + 0x279]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x174]
push eax
push 0x615134
lea ecx, [esp + 0x284]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x14
lea edx, [esp + 0x68]
push edx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x70]
push eax
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [esp + 0x298]
push ecx
push ebx
mov dword [esi + 0xa8], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov word [esp + 0x78], 5
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x5636b5
mov edx, dword [0x645468]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x2000000
push eax
mov eax, dword [0x645468]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 0xa0]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], edx
mov dword [esi + 0xa0], 4
mov ecx, dword [esp + 0x384]
call fcn.005c8895
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5723a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e08c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x615ef0
mov dword [esp + 8], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 1
call fcn.00572050
mov al, byte [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
mov edx, dword [esp + 0x1c]
mov byte [esi + 0x64], al
lea eax, [esi + 0x65]
mov dword [esi + 4], edx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [eax], bl
je 0x572430
push ecx
push 0x5ebcc4
push 0x20
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x573150
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
push 0x5fd408
push eax
mov ebp, ecx
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x573174
pop edi
xor al, al
pop ebp
ret 8
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push edi
mov ebx, eax
call esi
lea ecx, [ebx + 1]
push ecx
call fcn.005c8858
push edi
push ebx
mov esi, eax
push 1
push esi
call dword [sym.imp.MSVCR71.dll_fread]
push edi
mov byte [esi + ebx], 0
call dword [sym.imp.MSVCR71.dll_fclose]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
add esp, 0x34
push edx
push eax
lea ecx, [esi + ebx + 1]
push ecx
push esi
mov ecx, ebp
call fcn.00573010
push esi
mov bl, al
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
mov al, bl
pop ebx
pop edi
pop ebp
ret 8

Function at 0x573780
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov dword [ecx], 0x615f88
jmp fcn.005736d0

Function at 0x573ee0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x57401c
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8ec
cmp eax, 0x59
ja case.0x573f19.10005
movzx eax, byte [eax + 0x57406c]
jmp dword [eax*4 + 0x574024]
push 0x104
push 0x61600c
jmp 0x57400b
push 0x104
push 0x616000
jmp 0x57400b
push 0x104
push 0x616058
jmp 0x57400b
push 0x104
push 0x6160c0
jmp 0x57400b
push 0x104
push 0x615fe0
jmp 0x57400b
push 0x104
push 0x6160b4
jmp 0x57400b
push 0x104
push 0x616044
jmp 0x57400b
push 0x104
push 0x615ff0
jmp 0x57400b
push 0x104
push 0x6160a4
jmp 0x57400b
push 0x104
push 0x616038
jmp 0x57400b
push 0x104
push 0x61602c
jmp 0x57400b
push 0x104
push 0x616098
jmp 0x57400b
push 0x104
push 0x616088
jmp 0x57400b
push 0x104
push 0x615fc8
jmp 0x57400b
push 0x104
push 0x616020
jmp 0x57400b
push 0x104
push 0x616078
jmp 0x57400b
push 0x104
push 0x616068
jmp 0x57400b
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
xor eax, eax
ret
mov eax, 1
ret
Function at 0x574270
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x57433d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8e2
cmp eax, 0x4f
ja case.0x5742af.10015
movzx edx, byte [eax + 0x57436c]
jmp dword [edx*4 + 0x574344]
push 0x104
push 0x61600c
jmp 0x57432c
push 0x104
push 0x616000
jmp 0x57432c
push 0x104
push 0x616038
jmp 0x57432c
push 0x104
push 0x615fe0
jmp 0x57432c
push 0x104
push 0x61602c
jmp 0x57432c
push 0x104
push 0x6160f8
jmp 0x57432c
push 0x104
push 0x6160dc
jmp 0x57432c
push 0x104
push 0x6160ec
jmp 0x57432c
push 0x104
push 0x616020
jmp 0x57432c
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
xor eax, eax
ret
mov eax, 1
ret
Function at 0x5743c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.ws2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x574637
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8ec
cmp eax, 0x59
ja case.0x574401.10005
movzx ecx, byte [eax + 0x57468c]
jmp dword [ecx*4 + 0x57463c]
push 0x104
push 0x61600c
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616000
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616154
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160c0
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x615fe0
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616038
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160f8
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x615fc8
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160ec
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616020
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160cc
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616144
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616068
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, 0xffffff9c
pop esi
ret
push 0x104
push 0x616138
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616128
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x61602c
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616118
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616108
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616078
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret