joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403216
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x403239
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x4032f8
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40325f
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x403264
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4032c4
jg 0x403279
test esi, esi
je 0x4032c4
test ecx, ecx
jl 0x4032bf
jg 0x403283
test eax, eax
je 0x4032bf
cmp edi, ecx
jg 0x403295
jl 0x40328d
cmp esi, eax
jae 0x403295
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4032c7
mov ecx, dword [ebp + 8]
jmp 0x4032d1
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4032ec
jg 0x4032d1
test esi, esi
je 0x4032ec
cmp dword [ebx + 0x4c], 0
je 0x4032ec
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4032fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x403327
jl 0x40331e
test ebx, ebx
jne 0x403327
xor eax, eax
xor edx, edx
jmp 0x4033e3
cmp dword [ecx + 0x38], 0
je 0x40333b
push esi
push ebx
push edx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x4033e3
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40337b
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x40337b
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x4033d9
call fcn.00403bbf
mov edx, dword [ebp - 4]
mov eax, edi
cmp edi, 0xfff
jbe 0x4033c3
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 4]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp - 4], edx
cmp eax, ecx
jne 0x4033d9
cmp edi, ecx
mov ecx, dword [ebp - 8]
ja 0x403393
mov eax, edi
test eax, eax
je 0x4033d9
push dword [ecx + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403655
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x477400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40367b
xor eax, eax
jmp 0x403740
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4036a4
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x4036a4
dec dword [edx]
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
mov eax, ebx
jmp 0x403740
cmp dword [esi + 0x4c], 0
je 0x40373e
mov ecx, esi
call fcn.00403bbf
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4036d2
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
jmp 0x40369d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40370d
sub eax, 1
je 0x40370d
dec eax
sub eax, 1
jne 0x40373e
movsx eax, byte [ebp - 0x25]
jmp 0x4036bf
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x403731
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x40373e
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
cmovne edi, ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460a8e
leave
ret 4

Function at 0x403823
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0x811c9dc5
push esi
push edi
mov edi, dword [ebp + 8]
push 0
pop esi
sub edx, edi
je 0x40384b
movzx eax, byte [edi + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
cmp esi, edx
jb 0x40383a
pop edi
mov eax, ecx
pop esi
pop ebp
ret 8
Function at 0x403be2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x477400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x403c3a
cmp byte [esi + 0x3d], bl
je 0x403c3a
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403c74
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x403c4b
sub eax, 1
je 0x403c4e
dec eax
sub eax, 1
jne 0x403c74
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460a8e
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403c6c
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403c74
cmp byte [esi + 0x3d], bl
sete al
jmp 0x403c3c
xor al, al
jmp 0x403c3c
Function at 0x405df5
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x405f8b
cmp eax, 0x7c
je 0x405f8b
mov edx, 0x10000000
cmp eax, 0x29
jne 0x405e61
cmp dword [esi + 0x10], 0
jne 0x405f8b
test dword [esi + 0x50], edx
je 0x405f91
cmp eax, 0x5d
jne 0x405e3c
test dword [esi + 0x50], edx
je 0x405f21
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00406ae1
mov bl, 1
mov ecx, esi
call fcn.00405dcd
test bl, bl
je 0x405e5d
mov ecx, esi
call fcn.004069fb
mov cl, 1
jmp 0x405dfc
cmp eax, 0x2e
jne 0x405e79
push 5
lea ecx, [esi + 0x24]
call fcn.00406071
mov ecx, esi
call fcn.00405dcd
jmp 0x405e56
cmp eax, 0x5c
jne 0x405ec5
mov ecx, esi
call fcn.00405dcd
test byte [esi + 0x50], 0x80
je 0x405ebc
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x405ea5
push 4
lea ecx, [esi + 0x24]
call fcn.00406071
mov ecx, esi
call fcn.00405dcd
jmp 0x405e5d
cmp al, 0x42
jne 0x405ebc
push 4
lea ecx, [esi + 0x24]
call fcn.00406071
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x405e9c
mov ecx, esi
call fcn.0040687f
jmp 0x405e56
cmp eax, 0x5b
jne 0x405f25
mov ecx, esi
call fcn.00405dcd
lea ecx, [esi + 0x24]
call fcn.00407a0c
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x405ef2
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00405dcd
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x405f10
cmp eax, 0x5d
jne 0x405f10
push eax
lea ecx, [esi + 0x24]
call fcn.00407a67
mov ecx, esi
call fcn.00405dcd
mov ecx, esi
call fcn.0040773e
cmp dword [esi + 0x4c], 0x5d
je 0x405e70
push 4
jmp 0x405f93
cmp eax, 0x28
jne 0x405f45
mov ecx, esi
call fcn.00405dcd
mov ecx, esi
call fcn.0040696c
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x405f91
jmp 0x405e4b
cmp eax, 0x5e
jne 0x405f51
push 2
jmp 0x405e94
cmp eax, 0x24
jne 0x405f5d
push 3
jmp 0x405e94
cmp eax, 0x2a
je 0x405f87
cmp eax, 0x2b
je 0x405f87
cmp eax, 0x3f
je 0x405f87
cmp eax, 0x7b
je 0x405f87
cmp eax, 0x7d
jne 0x405e2e
test dword [esi + 0x50], edx
jne 0x405e3c
push 6
jmp 0x405f93
push 0xa
jmp 0x405f93
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.004050aa
int3
Function at 0x412470
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41251f
push esi
call fcn.00428090
add esp, 4
test al, al
jne 0x41251f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x412497
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004311d0
add esp, 0xc
test eax, eax
je 0x4124cb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004311d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4124cd
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 0x4124fe
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.004257e0
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 0x4124e0
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 0x41ec90
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x68a], 0
je 0x41ed2f
cmp dword [edi + 0x194], 0
je 0x41ece7
push edi
call fcn.0040d130
push 1
push edi
mov byte [esp + 0x14], al
call fcn.0040d5d0
push dword [edi + 0x144]
mov eax, dword [edi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push dword [esp + 0x28]
push edi
call fcn.0040d5d0
add esp, 0x28
pop edi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x41ecfc
sub eax, 1
je 0x41ecfc
sub eax, 1
jne 0x41ed2f
push dword [edi + 0x140]
lea eax, [ecx*2 + 0x466e9c]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
pop edi
ret

Function at 0x4222b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4222ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4677dc
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x422313
test ebp, ebp
je 0x422304
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x422339
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422339
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4223ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422356
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4223e5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4223e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422388
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4223a0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4223b0
test ebp, ebp
je 0x4223dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x477004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x477004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x422400
Capabilities:
Get common file path
Initialize winsock library
Link many functions at runtime

Disassembly:
sub esp, 0x198
mov eax, dword [0x477400]
xor eax, esp
mov dword [esp + 0x194], eax
test byte [esp + 0x19c], 2
je 0x422461
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x422447
mov eax, dword [esp + 4]
cmp al, 2
jne 0x422441
shr eax, 8
cmp al, 2
je 0x422461
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00460a8e
add esp, 0x198
ret
call fcn.00454e80
test eax, eax
jne 0x422634
push ebp
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x422495
mov dword [0x47798c], esi
jmp 0x4225b9
push ebx
push str.LoadLibraryExA
push edi
call ebp
push 0x4677dc
push str.iphlpapi.dll
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x4224df
test ebx, ebx
je 0x4224cd
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x42259d
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x42259d
test ebx, ebx
je 0x422504
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x422504
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x42259d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x42259d
lea ecx, [eax + 0xd]
push ecx
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x422593
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x422593
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422541
sub ecx, edx
mov eax, 0x5c
mov word [ecx + edi], ax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422558
sub ecx, edx
mov edx, str.iphlpapi.dll
sub ecx, edx
add ecx, edi
nop word [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x422570
test ebx, ebx
je 0x42258a
push 8
push 0
push edi
call ebx
jmp 0x422591
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x477004]
add esp, 4
mov dword [0x47798c], esi
pop ebx
test esi, esi
je 0x4225b9
push str.if_nametoindex
push esi
call ebp
test eax, eax
je 0x4225b9
mov dword [0x47797c], eax
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4225f1
push str.FreeAddrInfoExW
push esi
call ebp
push str.GetAddrInfoExCancel
push esi
mov dword [0x477980], eax
call ebp
push str.GetAddrInfoExW
push esi
mov dword [0x477984], eax
call ebp
mov dword [0x477988], eax
push 3
push 2
push 0
push 0
push 6
call fcn.00454a80
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x477d31]
call fcn.00454a80
add esp, 0x28
test al, al
setne byte [0x477d30]
push 0x477d38
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00460a8e
add esp, 0x198
ret
Function at 0x428230
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42826e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x114], 0
jne 0x42825f
push 0
call fcn.00428230
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x114], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x114], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x428288
xor esi, esi
test esi, esi
pop esi
setne al
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
pop esi
setne al
ret
Function at 0x428fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x477400]
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 + 0x68a], 0
je 0x4291a2
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x4291a1
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.004360c0
add esp, 0xc
test eax, eax
jg 0x4291a1
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.004360c0
add esp, 0xc
test eax, eax
jg 0x4291a1
cmp byte [ebx], 0
mov eax, str._none_
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp]
cmovne eax, ebx
mov ebp, dword [esp + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.0041ee10
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.00412ab0
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.00412ab0
add esp, 0x20
test esi, esi
je 0x429114
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x429088
cmp ecx, 2
jne 0x429109
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 0x4290b7
sub ecx, 0x15
jne 0x4290cf
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x4290c7
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.004539d0
add esp, 0x10
push ebx
call fcn.00412ad0
add esp, 4
test eax, eax
je 0x4290ee
push 2
push 0x466edc
push ebx
call fcn.00412a70
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x429134
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.00412a10
mov edi, eax
add esp, 8
test edi, edi
jne 0x429134
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x429077
lea eax, [esp + 0x24]
push eax
call fcn.00412ad0
add esp, 4
test eax, eax
je 0x429144
lea eax, [esp + 0x24]
push eax
call fcn.00412ae0
add esp, 4
jmp 0x429149
push str.too_many_IP__cant_show
push ebp
call fcn.0041ee10
add esp, 8
jmp 0x429189
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.0041ee10
lea eax, [esp + 0x20]
push eax
call fcn.00412ad0
add esp, 0x10
test eax, eax
je 0x429175
lea eax, [esp + 0x14]
push eax
call fcn.00412ae0
add esp, 4
jmp 0x42917a
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.0041ee10
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.00412a80
lea eax, [esp + 0x28]
push eax
call fcn.00412a80
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.00460a8e
add esp, 0x6c
ret
Function at 0x431930
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004127d0
push dword [esp + 0x38]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call esi
push dword [esp + 0x40]
mov edi, eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebp
test eax, eax
jne 0x4319c5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.004127d0
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.00412880
add esp, 0x20
test edx, edx
ja 0x4319e9
jb 0x4319b7
cmp eax, 0x3e8
ja 0x4319e9
push 1
call ebx
push 1
push esi
push edi
call ebp
test eax, eax
je 0x431980
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x4319d5
push edi
call ebx
add esp, 4
test esi, esi
je 0x4319df
push esi
call ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x4319f9
push edi
call ebx
add esp, 4
test esi, esi
je 0x431a03
push esi
call ebx
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x431ef0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x43207f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x43206a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x431f4c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431f40
sub eax, edx
inc eax
jmp 0x431f4e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x431f5f
lea ebp, [ecx + 0xe]
jmp 0x431f6b
cmp ecx, 0x17
jne 0x43200c
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x43200c
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x43200c
cmp ecx, ebp
jb 0x43200c
add eax, 0x20
add eax, ebp
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43205b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x431ff8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x432008
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x431f32
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x43202c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x432066
test edi, edi
je 0x43204b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x477004]
add esp, 4
mov edi, esi
test esi, esi
jne 0x432034
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x43201b
test edi, edi
jne 0x432076
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret

Function at 0x432480
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x4324a7
cmp ecx, 0xffffffff
cmovne eax, ecx
ret