joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040f0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40b218]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x404132
call edi
mov esi, eax
test esi, esi
je 0x40411c
mov eax, 1
jmp 0x40412d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40423f
mov eax, 2
mov dword [0x40b218], eax
cmp eax, 1
jne 0x4041d2
test esi, esi
jne 0x40414b
call edi
mov esi, eax
test esi, esi
je 0x40423f
cmp word [esi], 0
mov eax, esi
je 0x404165
add eax, 2
cmp word [eax], 0
jne 0x404153
add eax, 2
cmp word [eax], 0
jne 0x404153
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4041c4
push edi
call fcn.00403db0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4041c4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4041b6
push ebx
call fcn.00401860
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40423f
test ebx, ebx
jne 0x4041e3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40423f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4041fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4041eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4041eb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403db0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40421d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4048d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40b104]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4048ef
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40b100], 1
mov byte [0x40b0fc], bl
jne 0x404949
mov ecx, dword [0x40b488]
test ecx, ecx
je 0x404937
mov esi, dword [0x40b484]
sub esi, 4
cmp esi, ecx
jb 0x404937
mov eax, dword [esi]
test eax, eax
je 0x404930
call eax
mov ecx, dword [0x40b488]
sub esi, 4
cmp esi, ecx
jae 0x404922
push 0x408014
push 0x408010
call fcn.00404980
add esp, 8
push 0x40801c
push 0x408018
call fcn.00404980
add esp, 8
test ebx, ebx
jne 0x404970
push ebp
mov dword [0x40b104], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x402d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4d90
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x517728]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
movzx ecx, si
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x402dac
mov edx, str.Failed_to_find_resource.
call fcn.004093b0
push eax
call fcn.00409630
jmp 0x402f05
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402dcd
mov edx, str.Failed_to_load_resource.
call fcn.004093b0
push eax
call fcn.00409630
jmp 0x402f05
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402def
mov edx, str.Failed_to_lock_resource.
call fcn.004093b0
push eax
call fcn.00409630
jmp 0x402f05
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0xb0
mov edi, eax
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.004bacf0
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
call fcn.00406240
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xb8], 6
je 0x402e4c
mov edx, str.Failed_to_open_output_file.
call fcn.004093b0
push eax
call fcn.00409630
add esp, 4
jmp 0x402e95
push 0
push edi
push esi
lea ecx, [ebp - 0xc4]
call fcn.00406970
lea ecx, [ebp - 0xc0]
call fcn.00407cf0
test eax, eax
jne 0x402e95
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004023c0
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xc0]
call fcn.00406190
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc8], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.004a5b2b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b90ac
mov esp, ebp
pop ebp
ret
Function at 0x402fc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x517728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x65], dl
cmp dword [0x5181e4], 0x10
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push ecx
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
mov eax, 0x5181d0
cmovae eax, dword [0x5181d0]
push 0
push 0
push eax
push 0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x64], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4030e4
push 0x16
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x80]
push str.CreateProcess_failed..
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
call fcn.00408400
mov dword [ebp - 4], 0
mov ecx, dword [0x51b37c]
push str.progressText
add ecx, 0x14
call fcn.00468716
mov edx, eax
test edx, edx
je 0x4030ac
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x80]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x80]
push ecx
mov ecx, edx
call dword [eax + 0x3c]
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x403114
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4030d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40312d
push edx
push ecx
call fcn.004b9340
add esp, 8
jmp 0x403114
cmp byte [ebp - 0x65], 0
je 0x403107
push 0xffffffffffffffff
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x51b37c]
push 1
call fcn.00470278
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b90ac
mov esp, ebp
pop ebp
ret
call fcn.004c93ba
int3
Function at 0x405ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x405b12
jl 0x405b05
test ecx, ecx
jne 0x405b12
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x405bd2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.004083c0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x405b7e
jg 0x405b3d
test esi, esi
je 0x405b7e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x405b55
mov eax, dword [esp + 0x10]
jl 0x405b4f
cmp eax, esi
jae 0x405b55
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004baf80
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x405b9f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x405bbb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x405b24
jl 0x405bbb
test ecx, ecx
jne 0x405b24
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x405c11
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x405c11
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004baf80
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x405c80
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x405c37
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x405c69
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004c8d7c
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x405c94
cmp edi, eax
ja 0x405c45
test ecx, ecx
je 0x405c80
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004c8d7c
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4089b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e53d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x517728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004b90bf
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004a582d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422220
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4222cf
push esi
call fcn.00437a80
add esp, 4
test al, al
jne 0x4222cf
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x422247
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00441690
add esp, 0xc
test eax, eax
je 0x42227b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00441690
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42227d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x4222ae
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00432ce0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x422290
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x431bc0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x517728]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x431c1f
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x431c05
mov eax, dword [esp]
cmp al, 2
jne 0x431bff
shr eax, 8
cmp al, 2
je 0x431c1f
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b90ac
add esp, 0x194
ret
push esi
push edi
push 0x4ec89c
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x431c3f
mov dword [0x519de0], esi
jmp 0x431d78
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryExA
push edi
call ebp
push 0x4ec8b8
push str.iphlpapi.dll
mov ebx, eax
call fcn.004c9d10
add esp, 8
test eax, eax
je 0x431c8f
test ebx, ebx
je 0x431c7d
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x431d53
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x431d53
test ebx, ebx
je 0x431cb4
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x431cb4
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x431d53
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x431d4d
lea ecx, [ebp + 0xd]
push ecx
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x431d43
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x431d43
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431cf0
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x431d07
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x431d20
test ebx, ebx
je 0x431d3a
push 8
push 0
push edi
call ebx
jmp 0x431d41
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x517004]
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x519de0], esi
test esi, esi
je 0x431d76
push str.if_nametoindex
push esi
call ebp
mov ecx, dword [0x519ddc]
test eax, eax
cmovne ecx, eax
mov dword [0x519ddc], ecx
pop ebp
pop ebx
push 3
push 2
push 0
push 0
push 6
call fcn.004600b0
add esp, 0x14
test al, al
setne byte [0x51b398]
push 0x51b3a0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x198]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004b90ac
add esp, 0x194
ret
Function at 0x4342f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x519de4]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x434341
push 3
push 2
push eax
push eax
push 6
call fcn.004600b0
add esp, 0x14
test al, al
je 0x434335
mov dword [0x519de4], 2
add esp, 0xc
ret
mov dword [0x519de4], 1
jmp 0x434346
cmp eax, 2
je 0x43438c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x434371
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x43438c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x434e20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x517728]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x434f58
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x2b4]
test dword [eax + 0x48], 0x800
jne 0x434f58
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call fcn.004bacf0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x434ee6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00440a30
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0042e230
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004b90ac
add esp, 0x188
ret
lea eax, [esi + 0xfc]
push eax
lea eax, [esi + 0xca]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00430600
add esp, 0x10
test al, al
jne 0x434f58
call fcn.004c8700
mov esi, dword [eax]
call fcn.004c8700
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00440a30
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0042e230
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004b90ac
add esp, 0x188
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b90ac
add esp, 0x188
ret

Function at 0x437a80
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x517728]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x437ac9
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x437ac9
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004b90ac
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.004b90ac
add esp, 0x18
ret

Function at 0x437c30
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x437c77
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 0
jne 0x437c6b
push 0
call fcn.00437c30
add esp, 4
test al, al
mov eax, dword [esi + 0x88]
setne cl
inc cl
mov byte [eax + 0x164], cl
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x437c8c
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x438980
Capabilities:
Convert ip address from string
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x517728]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x69a], 0
je 0x438b59
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x438b58
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x34]
push eax
push ebx
push 2
call esi
test eax, eax
jg 0x438b57
lea eax, [esp + 0x38]
push eax
push ebx
push 0x17
call esi
test eax, eax
jg 0x438b57
push dword [ebp + 0x14]
cmp byte [ebx], 0
mov eax, str._none_
mov esi, dword [ebp]
mov ebp, dword [esp + 0x14]
cmovne eax, ebx
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.0042e300
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.00422620
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.00422620
add esp, 0x20
test esi, esi
je 0x438acb
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x438a42
cmp ecx, 2
jne 0x438ac0
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x438a71
sub ecx, 0x15
jne 0x438a86
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x438a81
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call sub.WS2_32.dll_inet_ntop
push ebx
call fcn.00422640
add esp, 4
test eax, eax
je 0x438aa5
push 2
push 0x4ebf6c
push ebx
call fcn.004225e0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x438aeb
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.00422580
mov edi, eax
add esp, 8
test edi, edi
jne 0x438aeb
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x438a31
lea eax, [esp + 0x24]
push eax
call fcn.00422640
add esp, 4
test eax, eax
je 0x438afb
lea eax, [esp + 0x24]
push eax
call fcn.00422650
add esp, 4
jmp 0x438b00
push str.too_many_IP__cannot_show
push ebp
call fcn.0042e300
add esp, 8
jmp 0x438b40
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.0042e300
lea eax, [esp + 0x20]
push eax
call fcn.00422640
add esp, 0x10
test eax, eax
je 0x438b2c
lea eax, [esp + 0x14]
push eax
call fcn.00422650
add esp, 4
jmp 0x438b31
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.0042e300
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.004225f0
lea eax, [esp + 0x28]
push eax
call fcn.004225f0
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.004b90ac
add esp, 0x6c
ret
Function at 0x441de0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00436fc0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.004d4bd4
push dword [esp + 0x40]
mov edi, eax
call fcn.004d4bd4
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x441e75
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.00436fc0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00437070
add esp, 0x20
test edx, edx
ja 0x441e99
jb 0x441e67
cmp eax, 0x3e8
ja 0x441e99
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x441e30
test edi, edi
je 0x441e82
push edi
call fcn.004c89d4
add esp, 4
test esi, esi
je 0x441e8f
push esi
call fcn.004c89d4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x441ea6
push edi
call fcn.004c89d4
add esp, 4
test esi, esi
je 0x441eb3
push esi
call fcn.004c89d4
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret