joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
or ebp, 0xffffffff
jmp 0x490082
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x490089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x490078
mov eax, 1
add ebx, ebx
jne 0x49009b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x490090
jne 0x4900ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x490090
xor ecx, ecx
sub eax, 3
jb 0x4900c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x490132
mov ebp, eax
add ebx, ebx
jne 0x4900cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4900d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4900fc
inc ecx
add ebx, ebx
jne 0x4900e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4900dd
jne 0x4900f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4900dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49011c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49010d
jmp 0x49007e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49011c
add edi, ecx
jmp 0x49007e
pop esi
mov edi, esi
mov ecx, 0x9a1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49013a
cmp byte [edi], 6
jne 0x49013a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x49013f
lea edi, [esi + 0x70000]
mov eax, dword [edi]
or eax, eax
je 0x4901ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x90238]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x902c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49016c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x902c8]
or eax, eax
je 0x4901a8
mov dword [ebx], eax
add ebx, 4
jmp 0x490189
call dword [esi + 0x902cc]
popal
jmp section.UPX0
Function at 0x100bb20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x100bb3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100bb41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100bb30
mov eax, 1
add ebx, ebx
jne 0x100bb53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100bb48
jne 0x100bb64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100bb48
xor ecx, ecx
sub eax, 3
jb 0x100bb78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100bbea
mov ebp, eax
add ebx, ebx
jne 0x100bb83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100bb90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100bbb4
inc ecx
add ebx, ebx
jne 0x100bba0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100bb95
jne 0x100bbb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100bb95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100bbd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100bbc5
jmp 0x100bb36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100bbd4
add edi, ecx
jmp 0x100bb36
pop esi
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x100bc33
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb43c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb4d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100bbf1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb4d8]
or eax, eax
je 0x100bc2d
mov dword [ebx], eax
add ebx, 4
jmp 0x100bc0e
call dword [esi + 0xb4d4]
mov ebp, dword [esi + 0xb4dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100bc67
sub esp, 0xffffff80
jmp 0x1002d5c
Function at 0x4011b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40120b
cmp byte [esi + ebx - 1], 0xa
je 0x4011df
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401bf0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x18d69ff
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x20302fd0
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x45e0a4
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], 0x45e0bc
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4020e4
test esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x626225be
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7049112f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1000271e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x8c], 2
jne 0x10002743
jmp 0x1000292b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x270], 0
jne 0x1000291f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2e0], 0
jne 0x1000291f
mov dword [ebp - 0x108], 0x80
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100027c9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003c041
add esp, 8
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
push str.getpeername___failed_with_errno__d:__s
mov edx, dword [ebp - 0x84]
push edx
call fcn.100350d3
add esp, 0x10
jmp 0x1000292b
mov dword [ebp - 0x108], 0x80
push 0x80
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.1004fa90
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000283f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003c041
add esp, 8
push eax
mov eax, dword [ebp - 0x10c]
push eax
push 0x1005f114
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.100350d3
add esp, 0x10
jmp 0x1000292b
mov edx, dword [ebp + 8]
add edx, 0x130
push edx
mov eax, dword [ebp + 8]
add eax, 0x102
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.1000292f
add esp, 0xc
test eax, eax
jne 0x100028a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003c041
add esp, 8
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
mov edx, dword [ebp - 0x84]
push edx
call fcn.100350d3
add esp, 0x10
jmp 0x1000292b
push 0x2e
mov eax, dword [ebp + 8]
add eax, 0x102
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
call fcn.1004fbf0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x164
push edx
mov eax, dword [ebp + 8]
add eax, 0x134
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.1000292f
add esp, 0xc
test eax, eax
jne 0x1000291f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1003c041
add esp, 8
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
mov edx, dword [ebp - 0x84]
push edx
call fcn.100350d3
add esp, 0x10
jmp 0x1000292b
mov eax, dword [ebp + 8]
push eax
call fcn.10002686
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10002fdb
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 6
push 4
lea edx, [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10003038
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1003c041
add esp, 8
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
mov eax, dword [ebp - 8]
push eax
call fcn.1003504f
add esp, 0xc
jmp 0x10003049
push str.TCP_NODELAY_set_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.1003504f
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x1000304d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x4020
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
cmp dword [0x1006ae70], 0
jne 0x1000309b
push 3
push 2
push 0
push 6
call fcn.1003c900
add esp, 0x10
test eax, eax
je 0x10003091
mov dword [0x1006ae70], 2
jmp 0x1000309b
mov dword [0x1006ae70], 1
cmp dword [0x1006ae70], 2
jne 0x100030a6
jmp 0x100030ea
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100030d0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jle 0x100030d0
jmp 0x100030ea
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x10003460
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x520], 0
setne cl
mov dword [ebp - 4], ecx
push 4
lea edx, [ebp - 4]
push edx
push 8
push 0xffff
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x100034ad
mov ecx, dword [ebp + 0xc]
push ecx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov edx, dword [ebp + 8]
push edx
call fcn.1003504f
add esp, 0xc
jmp 0x10003543
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x524]
push ecx
call fcn.1004e9bc
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
imul edx, edx, 0x3e8
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x528]
push edx
call fcn.1004e9bc
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10003543
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 0xc]
push edx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov eax, dword [ebp + 8]
push eax
call fcn.1003504f
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x10003d2b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1d8], 0
je 0x10003d4a
mov ecx, 1
test ecx, ecx
je 0x10003d48
xor eax, eax
jmp 0x10003d7f
jmp 0x10003d7a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x190], 0xffffffff
jne 0x10003d5a
xor eax, eax
jmp 0x10003d7f
push 2
push 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10003d7a
xor eax, eax
jmp 0x10003d7f
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10006ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x10006d60
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x100075b0
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.10006cf0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp dword [0x1006ae8c], 0
je 0x10006b45
mov eax, dword [ebp + 8]
and eax, 0xffff
mov eax, dword [eax*8 + 0x1005f76c]
jmp 0x10006ce8
push 0x104
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10006b60
jmp 0x10006c3a
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.100509f0
add esp, 8
push str.ws2_32
lea ecx, [ebp - 0x130]
push ecx
call fcn.10050a00
add esp, 8
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006bc9
push str.getaddrinfo
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10006bc9
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10006bd1
jmp 0x10006c3a
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.100509f0
add esp, 8
push str.wship6
lea ecx, [ebp - 0x130]
push ecx
call fcn.10050a00
add esp, 8
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006c3a
push str.getaddrinfo
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10006c3a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10006ccf
mov dword [ebp - 0x20], 0
jmp 0x10006c56
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [0x1005c2f0]
jge 0x10006c99
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + ecx*8 - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x20]
mov dword [ebp + ecx*8 - 0x18], eax
mov edx, dword [ebp - 0x20]
cmp dword [ebp + edx*8 - 0x18], 0
jne 0x10006c97
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0
jmp 0x10006c99
jmp 0x10006c4d
cmp dword [ebp - 4], 0
je 0x10006ccf
mov dword [ebp - 0x20], 0
jmp 0x10006cb1
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [0x1005c2f0]
jge 0x10006ccf
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + ecx*8 - 0x18]
mov dword [eax*8 + 0x1005f76c], edx
jmp 0x10006ca8
mov dword [0x1006ae8c], 1
mov eax, dword [ebp + 8]
and eax, 0xffff
mov eax, dword [eax*8 + 0x1005f76c]
mov esp, ebp
pop ebp
ret 4
Function at 0x10007400
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100074cd
mov ecx, dword [ebp - 0xc]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x100074a8
mov eax, dword [ebp - 0xc]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x100074a8
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
jmp 0x10007465
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x100074a8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.100071e0
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x1000749b
mov eax, 8
jmp 0x10007512
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 4], ecx
jmp 0x1000745c
push 0x400
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.10050f40
add esp, 0xc
mov edx, dword [ebp + 0x18]
mov byte [edx + 0x400], 0
xor eax, eax
jmp 0x10007512
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 0x2af9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
ja case.default.0x100074ea
mov ecx, dword [ebp - 0x10]
jmp dword [ecx*4 + 0x10007518]
mov eax, 0x2af9
jmp 0x10007512
mov eax, 0x2afa
jmp 0x10007512
mov eax, 0x2afb
jmp 0x10007512
mov eax, 0x2af9
jmp 0x10007512
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10008f20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov byte [eax - 1], 0
cmp dword [ebp - 4], 0
je 0x10008f52
mov eax, dword [ebp - 4]
jmp 0x10008f71
push 0x2e
mov ecx, dword [ebp + 8]
push ecx
call fcn.10050070
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10008f6f
mov edx, dword [ebp - 8]
mov byte [edx], 0
xor eax, eax
mov esp, ebp
pop ebp
ret