joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010670
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x10087a30]
mov ebx, ecx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x10010702
push edi
push 0x28
call fcn.1006b316
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 8], esi
push 0x190
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0x433c0000
mov dword [esi + 0x14], 0x41900000
mov dword [esi + 4], 1
call ebx
add esp, 8
mov dword [esi + 8], eax
xor edi, edi
nop word [eax + eax]
push 0x14
call ebx
mov ecx, dword [esi + 8]
add esp, 4
mov dword [edi + ecx], eax
add edi, 4
cmp edi, 0x190
jl 0x100106e0
mov ebx, dword [ebp - 4]
pop edi
mov dword [0x10087a30], esi
cmp dword [esi], 0
jne 0x10010714
mov ecx, ebx
call fcn.1000bdb0
mov esi, dword [0x10087a30]
movss xmm2, dword [0x10082800]
mov ecx, esi
movss xmm1, dword [0x100827e4]
push ebx
call fcn.1000b540
call fcn.1000b970
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x1001079e
cmp byte [0x10089e48], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x1001076e
cmp dword [0x10089e4c], 0
je 0x100107a5
call esi
mov ecx, dword [0x10089e4c]
add ecx, 0xc8
cmp ecx, eax
ja 0x100107a5
mov byte [0x10089e48], 1
call esi
cmp byte [0x10087728], 0
pop esi
sete byte [0x10087728]
mov dword [0x10089e4c], eax
cmp byte [0x100878d0], 0
pop ebx
sete byte [0x100878d0]
mov esp, ebp
pop ebp
ret
mov byte [0x10089e48], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010fa0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10086400]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x100110ac
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x10010e10
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
push 0
push 0x10010f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10011043
push edi
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 8]
push eax
push 4
push 0x40
push esi
add edi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10011018
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x10011042
lea eax, [ebp - 8]
push eax
push 4
push 0xf8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10011042
push 0xf8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
pop edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x100110ac
cmp ecx, esi
jne 0x100110a3
mov edx, dword [eax + 4]
test edx, edx
je 0x10011065
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x10011071
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x10011080
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001108a
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x10011096
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x100110a3
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10011056
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1006b10b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10011580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100115ac
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__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100115d4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100115da
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10011642
jg 0x100115f1
test esi, esi
je 0x10011642
test ecx, ecx
jl 0x1001163d
jg 0x100115fb
test eax, eax
je 0x1001163d
cmp edi, ecx
jg 0x1001160f
jl 0x10011605
cmp esi, eax
jae 0x1001160f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10011645
mov ecx, dword [ebp + 8]
jmp 0x1001164f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10011669
jg 0x1001164f
test esi, esi
je 0x10011669
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10011669
push eax
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 [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10011680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x100116ac
jl 0x100116a0
test ecx, ecx
jne 0x100116ac
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100116c5
push eax
push ecx
push esi
mov ecx, ebx
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__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10011713
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10011719
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], 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
mov esi, dword [ebp - 4]
jmp 0x10011719
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10011786
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10011742
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10011774
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10011786
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10011750
test edi, edi
je 0x10011786
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
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 0x10011b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10086400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10011b30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10011b6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10011b6c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10011c43
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10011b94
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10011ba0
movsx eax, bl
jmp 0x10011bd8
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 0x10011c02
sub eax, 1
je 0x10011c02
sub eax, 2
jne 0x10011c43
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10011c20
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 0x10011c43
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006b10b
mov esp, ebp
pop ebp
ret 4
Function at 0x10012b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10086400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10012c4c
cmp byte [esi + 0x3d], 0
je 0x10012c4c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10012c3a
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, 0
je 0x10012c01
sub eax, 1
je 0x10012c05
sub eax, 2
jne 0x10012c3a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10012c23
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 0x10012c3a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
Function at 0x10014770
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ce5d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10086400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.10014610
cmp byte [ebp - 0x84], 0
jne 0x100148c1
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x10014805
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x10086ef8
call fcn.10014610
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.10014610
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x10014874
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.100146c0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x10014903
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100148f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100148f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1006b775
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
Function at 0x1001df90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1001e03f
push esi
call fcn.10033730
add esp, 4
test al, al
jne 0x1001e03f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1001dfb7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1003c870
add esp, 0xc
test eax, eax
je 0x1001dfeb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1003c870
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1001dfed
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 0x1001e01e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.100312f0
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 0x1001e000
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 0x1002a630
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6bb], 0
je 0x1002a6cd
cmp dword [esi + 0x194], 0
je 0x1002a687
push esi
call fcn.10018e30
push 1
push esi
mov byte [esp + 0x14], al
call fcn.100192d0
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.100192d0
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x1002a69c
sub eax, 1
je 0x1002a69c
sub eax, 1
jne 0x1002a6cd
push dword [esi + 0x140]
lea eax, [ecx*2 + 0x10071114]
push 1
add eax, ecx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
ret

Function at 0x1002de60
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 0x1002de7a
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 0x100717d4
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x1002dec2
test ebp, ebp
je 0x1002deb3
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 0x1002dee8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002dee8
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 0x1002df9f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002df05
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 0x1002df95
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002df95
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002df37
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 0x1002df50
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 0x1002df60
test ebp, ebp
je 0x1002df8c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x10086004]
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 [0x10086004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x100338e0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1003391e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x114], 0
jne 0x1003390f
push 0
call fcn.100338e0
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 0x10033933
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x10034690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10086400]
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 + 0x6bb], 0
je 0x10034872
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x10034871
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.10041740
add esp, 0xc
test eax, eax
jg 0x10034871
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.10041740
add esp, 0xc
test eax, eax
jg 0x10034871
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.1002a7a0
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.1001e5d0
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.1001e5d0
add esp, 0x20
test esi, esi
je 0x100347e4
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x10034758
cmp ecx, 2
jne 0x100347d9
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 0x10034787
sub ecx, 0x15
jne 0x1003479f
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x10034797
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.1005e1d0
add esp, 0x10
push ebx
call fcn.1001e5f0
add esp, 4
test eax, eax
je 0x100347be
push 2
push 0x10071140
push ebx
call fcn.1001e590
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x10034804
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.1001e530
mov edi, eax
add esp, 8
test edi, edi
jne 0x10034804
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10034747
lea eax, [esp + 0x24]
push eax
call fcn.1001e5f0
add esp, 4
test eax, eax
je 0x10034814
lea eax, [esp + 0x24]
push eax
call fcn.1001e600
add esp, 4
jmp 0x10034819
push str.too_many_IP__cant_show
push ebp
call fcn.1002a7a0
add esp, 8
jmp 0x10034859
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.1002a7a0
lea eax, [esp + 0x20]
push eax
call fcn.1001e5f0
add esp, 0x10
test eax, eax
je 0x10034845
lea eax, [esp + 0x14]
push eax
call fcn.1001e600
add esp, 4
jmp 0x1003484a
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.1002a7a0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.1001e5a0
lea eax, [esp + 0x28]
push eax
call fcn.1001e5a0
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.1006b10b
add esp, 0x6c
ret
Function at 0x1003cfe0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.1001e2f0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
push dword [esp + 0x40]
mov edi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
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 0x1003d075
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.1001e2f0
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.1001e3a0
add esp, 0x20
test edx, edx
ja 0x1003d099
jb 0x1003d067
cmp eax, 0x3e8
ja 0x1003d099
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x1003d030
test edi, edi
je 0x1003d082
push edi
call fcn.1006c4c8
add esp, 4
test esi, esi
je 0x1003d08f
push esi
call fcn.1006c4c8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x1003d0a6
push edi
call fcn.1006c4c8
add esp, 4
test esi, esi
je 0x1003d0b3
push esi
call fcn.1006c4c8
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret