joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004772
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x100110e8]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x3c
mov eax, 0x1000b394
call fcn.1000aa42
push 6
pop esi
lea eax, [ebp + 0x1c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10004848
push str.AdobeLogTransport2Logs
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [ebp - 0x2c]
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.10006698
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x10007290
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x48]
call fcn.10008260
push eax
mov byte [ebp - 4], 3
call fcn.10008300
pop ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0xd], bl
jne 0x1000482d
push ebx
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x1000483b
lea eax, [ebp]
push eax
mov ecx, edi
call dword [0x1000c20c]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.10008d58
add ebp, 0x22c
leave
ret
Function at 0x10006986
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x100110e8]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1ac]
push esi
mov esi, dword [ebp + 0x1a8]
push esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100069c4
xor eax, eax
jmp 0x10006ad0
push ebx
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
cmp esi, ebx
je 0x10006acc
cmp esi, edi
jb 0x100069f7
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x10006acc
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x10006acc
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push ebx
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x10006a47
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x10006a3b
movzx eax, ax
push eax
jmp 0x10006a3d
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x10006ac3
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
cmp esi, ebx
jne 0x10006a6a
cmp word [ebp - 0x6c], bx
je 0x10006a6a
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10006aa0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esi + 1]
cmp edi, dword [ebp + 0x1b0]
jbe 0x10006a8d
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x10006aa0
push dword [ebp + 0x1b0]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x10006ac3
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
pop esi
call fcn.10008d58
add ebp, 0x1a0
leave
ret 0xc
Function at 0x10008300
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x1000830f
mov eax, dword [eax + 4]
jmp 0x10008312
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10008345
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10008342
cmp eax, 0x57
je 0x10008342
cmp eax, 0x15
je 0x10008342
cmp eax, 3
je 0x10008342
cmp eax, 0x7b
je 0x10008342
cmp eax, 0x35
jne 0x10008345
xor al, al
ret
mov al, 1
ret

Function at 0x10008350
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x1000ac41
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x100110e8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, dword [esp + 0x58]
mov eax, 0x10
cmp dword [edi + 0x18], eax
jb 0x10008388
mov ecx, dword [edi + 4]
jmp 0x1000838b
lea ecx, [edi + 4]
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x18], eax
jb 0x10008399
mov eax, dword [esi + 4]
jmp 0x1000839c
lea eax, [esi + 4]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x100083e2
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x4c], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.10008b80
push eax
mov byte [esp + 0x50], 1
call fcn.100072a0
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x44
ret
Function at 0x10008510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1000acc3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x100110e8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0x1000c550
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
push edx
push eax
push esi
mov dword [esp + 0x48], 1
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x10008d58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100110e8]
jne 0x10008d62
repz ret
jmp fcn.100091f4
Function at 0x4020d0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov ebx, 1
mov dword [0x494734], ecx
mov ecx, dword [esp + 0x14]
mov edi, 0x489f2c
cmp ecx, ebx
mov dword [esp + 0xc], edi
jle 0x4021a7
push ebp
lea ebp, [eax + 4]
mov esi, dword [ebp]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
push edi
push esi
push 0x489f20
call fcn.004691a0
add esp, 0xc
test eax, eax
jne 0x40213c
mov eax, dword [esp + 0x18]
inc ebx
add ebp, 4
cmp ebx, eax
jl 0x402133
call fcn.00402230
mov edx, dword [ebp]
mov dword [esp + 0x10], edx
jmp 0x402192
push edi
push esi
push 0x489f0c
call fcn.004691a0
add esp, 0xc
test eax, eax
jne 0x40215b
mov dword [0x493cc0], 1
jmp 0x402192
push edi
push esi
push 0x489f04
call fcn.004691a0
add esp, 0xc
test eax, eax
jne 0x40218d
mov eax, dword [esp + 0x18]
inc ebx
add ebp, 4
cmp ebx, eax
jl 0x40217f
call fcn.00402230
mov eax, dword [ebp]
push eax
call fcn.00401f90
add esp, 4
jmp 0x402192
call fcn.00402230
mov eax, dword [esp + 0x18]
inc ebx
add ebp, 4
cmp ebx, eax
jl 0x4020fe
mov edi, dword [esp + 0x10]
pop ebp
push edi
call fcn.00406f70
mov esi, eax
add esp, 4
test esi, esi
jne 0x4021dd
push edi
call fcn.00406f30
mov ecx, dword [0x494734]
push eax
push ecx
push 0x489ee0
push 0x490508
call fcn.00468f60
push 1
call fcn.00469050
add esp, 0x18
push esi
call fcn.00401140
mov eax, dword [esi + 0x88]
add esp, 4
xor edi, edi
test eax, eax
jle 0x402207
push edi
push esi
call fcn.004014a0
mov eax, dword [esi + 0x88]
add esp, 8
inc edi
cmp edi, eax
jl 0x4021f2
push esi
call fcn.00402070
push esi
call fcn.00406e00
push 0
call fcn.00469050
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x402230
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x494734]
push eax
push 0x48a01c
push 0x490508
call fcn.00468f60
push 0x489ff4
push 0x490508
call fcn.00468f60
push 0x489fb8
push 0x490508
call fcn.00468f60
push 0x489f7c
push 0x490508
call fcn.00468f60
push 0x489f30
push 0x490508
call fcn.00468f60
push 0x490508
call fcn.00401f50
push 0x489c40
push 0x490508
call fcn.00468f60
push 1
call fcn.00469050
add esp, 0x3c
ret
Function at 0x403231
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x420], 0
cmp dword [ebp - 0x420], 0x100
jae 0x403299
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x403299
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp - 0xc]
mov dword [ebp + edx*4 - 0x41c], eax
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
xor edx, edx
test edx, edx
jne 0x40325a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x94]
and ecx, 0x10
test ecx, ecx
jne 0x403329
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x510]
mov dword [ebp - 4], eax
jmp 0x4032c6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x403329
cmp dword [ebp - 0x420], 0x100
jae 0x40330f
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x40330f
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x41c], edx
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
xor ecx, ecx
test ecx, ecx
jne 0x4032cc
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x14]
jle 0x403327
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x4032bd
push 0
push 0
push 0
lea eax, [ebp - 0x420]
push eax
push 0
call sub.WS2_32.dll_select
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40335c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x40335c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405f6d
add esp, 4
cmp dword [ebp - 8], 0
jg 0x403367
jmp 0x40325a
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x403380
jmp 0x403447
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
and edx, 0x10
test edx, edx
jne 0x403414
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x508]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x94]
and eax, 0x20
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x510]
mov dword [ebp - 4], edx
mov dword [ebp - 0x424], 1
jmp 0x4033df
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
cmp dword [ebp - 4], 0
je 0x403414
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x403412
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040468a
add esp, 8
mov dword [ebp - 0x18], 1
jmp 0x4033c7
cmp dword [ebp - 0x18], 0
je 0x403442
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040311a
add esp, 8
test eax, eax
je 0x40343b
cmp dword [ebp - 0x10], 0
je 0x40343b
mov eax, 0xfffffffe
jmp 0x403449
mov dword [ebp - 0x18], 0
jmp 0x40325a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405706
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x20
jne 0x405731
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
push ecx
push 0x48a11c
push 0x490508
call fcn.00468f60
add esp, 0xc
jmp 0x405789
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
push eax
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.0046b3e0
add esp, 4
push eax
call sub.WS2_32.dll_WSAGetLastError
push eax
push 0x48a15c
push 0x490508
call fcn.00468f60
add esp, 0x14
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
push eax
push 0x48a18c
push 0x490508
call fcn.00468f60
add esp, 0x14
push 1
call fcn.00469050
pop ebp
ret

Function at 0x405792
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0x490508
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004057bb
add esp, 0xc
test eax, eax
jne 0x4057b2
xor eax, eax
jmp 0x4057b9
push 1
call fcn.00469050
pop ebp
ret

Function at 0x405f6d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x94]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x94], ecx
call sub.WS2_32.dll_WSAGetLastError
mov dword [0x494390], eax
cmp dword [0x494740], 0
je 0x405fa7
mov eax, dword [ebp + 8]
push eax
call dword [0x494740]
add esp, 4
jmp 0x405fb3
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405706
add esp, 4
push 1
call fcn.00469050
pop ebp
ret
Function at 0x40865e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x2c
push 1
call fcn.004697c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40867d
xor eax, eax
jmp 0x4086ee
mov eax, dword [ebp + 8]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x48a458]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x48a44c]
push ecx
call sub.WS2_32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jge 0x4086bf
mov ecx, dword [ebp - 4]
push ecx
call fcn.00469dd0
add esp, 4
xor eax, eax
jmp 0x4086ee
mov edx, dword [ebp + 8]
imul edx, edx, 0x14
cmp dword [edx + 0x48a44c], 2
jne 0x4086eb
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 1
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call sub.WS2_32.dll_setsockopt
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4089d9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call sub.WS2_32.dll_getsockname
test eax, eax
jge 0x408a03
or eax, 0xffffffff
jmp 0x408a52
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004693f0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x408a23
or eax, 0xffffffff
jmp 0x408a52
movsx ecx, word [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call fcn.0046b0a0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x409138
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 1
je 0x40915c
jmp 0x409186
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x40916a
jmp 0x409186
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0xc]
push ecx
push 0x8004667e
mov edx, dword [ebp - 4]
push edx
call sub.WS2_32.dll_ioctlsocket
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x409569
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_gethostname
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov byte [eax - 1], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00469370
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x410257
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00406248
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41027b
xor eax, eax
jmp 0x410318
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0046ce80
add esp, 8
cmp eax, 0xffffffff
jne 0x410299
mov dword [ebp - 4], 0xffffffff
jmp 0x41029f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call fcn.004693f0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4102c7
mov edx, dword [ebp - 0xc]
push edx
call fcn.0046cd90
add esp, 4
xor eax, eax
jmp 0x410318
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0046c930
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x410300
mov eax, dword [ebp - 0xc]
push eax
call fcn.0046cd90
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00469dd0
add esp, 4
xor eax, eax
jmp 0x410318
mov edx, dword [ebp - 0xc]
push edx
call fcn.0046cd90
add esp, 4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x45947e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x2c
push 1
call fcn.004697c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45949d
xor eax, eax
jmp 0x45950e
mov eax, dword [ebp + 8]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x48fd28]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x48fd1c]
push ecx
call sub.WS2_32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jge 0x4594df
mov ecx, dword [ebp - 4]
push ecx
call fcn.00469dd0
add esp, 4
xor eax, eax
jmp 0x45950e
mov edx, dword [ebp + 8]
imul edx, edx, 0x14
cmp dword [edx + 0x48fd1c], 2
jne 0x45950b
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 1
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call sub.WS2_32.dll_setsockopt
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4597af
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call sub.WS2_32.dll_getsockname
test eax, eax
jge 0x4597d9
or eax, 0xffffffff
jmp 0x459828
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004693f0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x4597f9
or eax, 0xffffffff
jmp 0x459828
movsx ecx, word [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call fcn.0046b0a0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x45a33f
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_gethostname
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov byte [eax - 1], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00469370
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x466c74
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x466dda
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax]
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 1]
mov byte [ebp - 0x1b], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 2]
mov byte [ebp - 0x1a], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 3]
mov byte [ebp - 0x19], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 4]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 5]
mov byte [ebp - 0x17], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cx, word [eax + 6]
mov word [ebp - 0x16], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cx, word [eax + 8]
mov word [ebp - 0x14], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0xa]
mov byte [ebp - 0x12], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0xb]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cx, word [eax + 0xc]
mov word [ebp - 0x10], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cx, word [eax + 0xe]
mov word [ebp - 0xe], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0x10]
mov byte [ebp - 0xc], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0x11]
mov byte [ebp - 0xb], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0x12]
mov byte [ebp - 0xa], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0x13]
mov byte [ebp - 9], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0x14]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0x15]
mov byte [ebp - 7], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0x18]
mov byte [ebp - 6], cl
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 0x1c]
mov byte [ebp - 5], cl
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x70]
ja 0x466db8
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
push edx
call fcn.0046b0a0
add esp, 0xc
mov eax, dword [ebp - 4]
add eax, 3
and al, 0xfc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], edx
jmp 0x466dcc
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403566
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
jmp 0x466c81
mov esp, ebp
pop ebp
ret