joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
cmp byte [ecx + 0x3c], 0
jne 0x100265a2
push dword [0x100dbf38]
lea edi, [ebx + 0x3c]
push 0x60
call fcn.10005c00
mov esi, dword [0x100dbf3c]
add esp, 8
mov ecx, eax
test esi, esi
je 0x10026587
movsx edx, word [esi + 0x5ec8]
lea eax, [esi + 0x5ecc]
mov edi, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x1002657a
lea eax, [edx + 1]
mov dword [ebp - 8], 6
cdq
idiv dword [ebp - 8]
movzx eax, dx
mov word [esi + 0x5ec8], ax
cwde
lea eax, [eax*8 + 0x5ecc]
add eax, esi
xor edx, edx
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 4]
lea edi, [ebx + 0x3c]
inc dword [esi + 0x5ec0]
test ecx, ecx
je 0x10026592
call fcn.100286c0
jmp 0x10026594
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, edi
lea eax, [ebp - 8]
push eax
call fcn.1001b4f0
mov ecx, dword [ebx + 0x54]
mov edi, dword [ebx + 0x58]
cmp ecx, edi
jne 0x100265fd
lea esi, [ecx + 1]
test edi, edi
je 0x100265be
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100265c3
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, edi
jle 0x100265fd
imul ecx, esi, 0x7c
call fcn.10009810
mov edi, eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x100265f4
imul ecx, dword [ebx + 0x54], 0x7c
push ecx
push eax
push edi
call fcn.1008a3d0
mov ecx, dword [ebx + 0x5c]
add esp, 0xc
call fcn.100098b0
mov ecx, dword [ebx + 0x54]
mov dword [ebx + 0x5c], edi
mov dword [ebx + 0x58], esi
mov edi, dword [ebx + 0x5c]
mov edx, dword [ebp + 8]
mov esi, edx
imul eax, ecx, 0x7c
mov ecx, 0x1f
add edi, eax
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x54]
imul edi, dword [ebx + 0x54], 0x7c
add edi, dword [ebx + 0x5c]
mov ecx, dword [edi - 4]
test ecx, ecx
jne 0x1002662f
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + ecx*4 - 4]
mov dword [edi - 4], ecx
cmp byte [edi - 0x74], 0
jne 0x1002665b
mov ecx, dword [edi - 0x78]
call fcn.10009810
mov ecx, dword [ebp + 8]
push dword [edi - 0x78]
mov dword [edi - 0x7c], eax
mov byte [edi - 0x74], 1
push dword [ecx]
push eax
call fcn.1008a3d0
mov ecx, dword [edi - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x1002666e
mov ax, word [edx + 0x4c]
mov word [ecx + 0x3c], ax
imul esi, dword [ebx + 0x54], 0x7c
mov ecx, dword [ebx + 0x5c]
add esi, ecx
cmp ecx, esi
je 0x100266a0
nop dword [eax + eax]
cmp byte [ecx + 0x3c], 0
mov edx, dword [ecx + 0x78]
jne 0x10026690
mov dword [edx + 0x34], ecx
xor eax, eax
jmp 0x10026694
movzx eax, word [edx + 0x38]
inc eax
add ecx, 0x7c
mov word [edx + 0x38], ax
cmp ecx, esi
jne 0x10026680
mov ecx, dword [ebx + 0x1c]
mov byte [ebx + 0x18], 0
test ecx, ecx
je 0x100266b0
call fcn.100098b0
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x100266bc
call fcn.100098b0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x19], 0
mov eax, dword [edi - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10028560
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
call fcn.10028240
mov ecx, ebx
call fcn.10028370
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x48], eax
jle 0x1002866f
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop
mov edi, dword [ebx + 0x50]
add edi, ecx
cmp dword [edi + 0x18], 0
je 0x1002865a
cmp dword [edi + 8], 0
je 0x1002865a
movzx eax, word [edi + 4]
sub esp, 0x20
movzx esi, word [edi]
movzx ecx, word [edi + 6]
movzx edx, word [edi + 2]
movss xmm0, dword [edi + 0xc]
movss xmm4, dword [edi + 0x14]
movss dword [esp + 0x1c], xmm0
movd xmm6, eax
add eax, esi
movd xmm3, ecx
cvtdq2ps xmm3, xmm3
movd xmm2, eax
lea eax, [edx + ecx]
mulss xmm3, dword [ebx + 0x30]
mov ecx, dword [edi + 0x18]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
mulss xmm1, dword [ebx + 0x30]
mulss xmm2, dword [ebx + 0x2c]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm6, xmm6
movss dword [esp + 0x18], xmm1
addss xmm0, xmm4
mulss xmm6, dword [ebx + 0x2c]
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x10], xmm3
movss xmm3, dword [edi + 0x10]
movss dword [esp + 0xc], xmm6
movss dword [esp + 8], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edi + 0x10]
movss dword [esp + 4], xmm0
movss dword [esp], xmm4
push dword [edi + 8]
push 0
call fcn.10028e80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, 0x1c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [ebx + 0x48]
jl 0x10028590
mov ecx, dword [ebx + 0x3c]
xor edx, edx
mov esi, dword [ebx + 0x44]
xor edi, edi
shl ecx, 2
lea eax, [ecx + esi]
shr ecx, 2
cmp esi, eax
cmova ecx, edx
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x100286aa
mov eax, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0x48], 0
je 0x100286a2
call fcn.10028870
mov eax, dword [esp + 0x14]
inc edi
add esi, 4
cmp edi, eax
jne 0x10028691
pop edi
pop esi
mov byte [ebx + 0x18], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002aad0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov eax, dword [0x100dbf3c]
push esi
test eax, eax
je 0x1002aadf
mov esi, dword [eax + 0x74]
jmp 0x1002aae1
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1002ab04
mov dword [esi], eax
pop esi
ret

Function at 0x1002ab10
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100da0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x100dbf3c]
lea eax, [ebp - 0x28]
push edi
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1002ac6b
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1002ac6b
mov ecx, 0x38
call fcn.10009810
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x1002ab71
push 0x38
push 0
push edi
call fcn.10089ff0
add esp, 0xc
jmp 0x1002ab73
xor edi, edi
or dword [esi + 0xc], 6
mov dword [esi + 0x74], edi
mov dword [esi + 0x6c], str.imgui_impl_win32
mov esi, dword [0x100dbf3c]
mov dword [edi], ebx
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 9
test esi, esi
je 0x1002abb1
mov esi, dword [esi + 0x74]
jmp 0x1002abb3
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1002abd6
mov dword [esi], eax
mov eax, dword [0x100dbf3c]
xor esi, esi
mov dword [ebp - 0x18], str.xinput1_4.dll
mov dword [ebp - 0x14], str.xinput1_3.dll
mov dword [ebp - 0x10], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a38]
mov dword [ebp - 0xc], str.xinput1_2.dll
mov dword [ebp - 8], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
nop
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x1002ac39
inc esi
cmp esi, 5
jl 0x1002ac10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003433f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003433f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003433f
mov esp, ebp
pop ebp
ret
Function at 0x100402f0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1004032e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x108], 0
jne 0x1004031f
push 0
call fcn.100402f0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x108], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x108], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10040343
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x10052450
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6d3], 0
je 0x100524ed
cmp dword [esi + 0x1a4], 0
je 0x100524a7
push esi
call fcn.100356c0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.10035870
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.10035870
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x100524bc
sub eax, 1
je 0x100524bc
sub eax, 1
jne 0x100524ed
push dword [esi + 0x150]
lea eax, [ecx*2 + 0x100b2150]
push 1
add eax, ecx
push 2
push eax
call fcn.1008f3e4
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.1008f3e4
add esp, 0x20
pop esi
ret
Function at 0x10058880
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1005892f
push esi
call fcn.10040140
add esp, 4
test al, al
jne 0x1005892f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100588a7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.10080800
add esp, 0xc
test eax, eax
je 0x100588db
sub eax, esi
push eax
push 0x2e
push esi
call fcn.10080800
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100588dd
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 0x1005890e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.1005afb0
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 0x100588f0
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 0x10059240
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x100b292c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1005925a
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 0x100b2948
push esi
call fcn.10097530
add esp, 8
test eax, eax
je 0x100592a2
test ebp, ebp
je 0x10059293
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 0x100592c8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100592c8
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 0x1005937f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100592e5
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x100da128]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10059375
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10059375
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059317
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 0x10059330
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 0x10059340
test ebp, ebp
je 0x1005936c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x100da12c]
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 [0x100da12c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10060fe0
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 0x1006116f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1006115a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1006103c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10061030
sub eax, edx
inc eax
jmp 0x1006103e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x1006104f
lea ebp, [ecx + 0xe]
jmp 0x1006105b
cmp ecx, 0x17
jne 0x100610fc
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x100610fc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x100610fc
cmp ecx, ebp
jb 0x100610fc
add eax, 0x20
add eax, ebp
push eax
call dword [0x100da128]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1006114b
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 fcn.1008a3d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x100610e8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1008a3d0
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x100610f8
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10061022
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x1006111c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10061156
test edi, edi
je 0x1006113b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x100da12c]
add esp, 4
mov edi, esi
test esi, esi
jne 0x10061124
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 0x1006110b
test edi, edi
jne 0x10061166
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 0x10061570
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.1009770a
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x10061596
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x10061600
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x100616b0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.100553a0
add esp, 0xc
cmp eax, 4
je 0x10061643
mov ecx, eax
jmp 0x1006166d
cmp byte [0x100db5e0], 0
jne 0x10061677
push 2
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
mov eax, ecx
test eax, eax
jne 0x100616b2
mov eax, dword [esp + 0x1c]
jmp 0x10061694
imul eax, dword [0x100db5dc], 0x41c64e6d
add eax, 0x3039
mov dword [0x100db5dc], eax
ror eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x100616a8
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x10061698
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x10061620
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100616c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x1006173b
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop word [eax + eax]
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.100553a0
add esp, 0xc
cmp eax, 4
jne 0x1006171c
cmp byte [0x100db5e0], 0
jne 0x10061745
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x10061740
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x100616e0
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x100616e0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
imul eax, dword [0x100db5dc], 0x41c64e6d
add eax, 0x3039
mov dword [0x100db5dc], eax
ror eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x10061724

Function at 0x10061770
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.10089ff0
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x1006bfe0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x100da0b4]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1006c04b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
jmp 0x1006c04f
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x1006c07f
push str.Error_accept__ing_server_connect
push edi
call fcn.100524f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1003433f
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.100525c0
mov byte [ebx + 0x1d5], 0
push 1
push dword [esp + 0x18]
call fcn.10082880
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.10078ea0
add esp, 0x20
test eax, eax
jne 0x1006c119
cmp dword [edi + 0x1ac], eax
je 0x1006c117
push 1
push edi
call fcn.10035870
mov eax, dword [edi + 0x1ac]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1b0]
call eax
push 0
push edi
mov esi, eax
call fcn.10035870
add esp, 0x1c
test esi, esi
je 0x1006c117
push 1
push edi
call fcn.1004ef10
push 1
push ebx
push edi
call fcn.1004ecf0
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1003433f
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003433f
add esp, 0x8c
ret
Function at 0x1006e050
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0x1006e080
push str.Couldnt_set_desired_mode
push esi
call fcn.100524f0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x1006e097
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.100525c0
add esp, 0xc
mov al, byte [esp + 0x18]
push ebp
cmp al, 0x13
jne 0x1006e0b1
push ebx
push esi
call fcn.1006df50
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x1006e1bd
mov edi, dword [esi + 0x18]
xor ebx, ebx
cmp byte [esi + 0x4d0], 2
mov dword [esp + 0x18], edi
jne 0x1006e12e
mov eax, dword [esi + 0x124]
mov eax, dword [eax]
test eax, eax
je 0x1006e12e
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.10077680
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1006e1e8
push 0x2f
push dword [esp + 0x18]
call fcn.1008ab00
add esp, 8
test eax, eax
je 0x1006e11d
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x1006e12a
push dword [esp + 0x14]
call dword [0x100da12c]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x504]
test ecx, ecx
jne 0x1006e14c
cmp byte [esi + 0xd7f], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x100c5630
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x100c6b6c
cmove eax, edx
push eax
push ecx
push str._s_s_s
call fcn.10055740
push ebx
mov ebp, eax
call dword [0x100da12c]
add esp, 0x14
test ebp, ebp
jne 0x1006e189
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x100c58c8
lea eax, [edi + 0x380]
push eax
push esi
call fcn.10081290
push ebp
mov edi, eax
call dword [0x100da12c]
add esp, 0x14
test edi, edi
jne 0x1006e1e8
mov eax, dword [esi + 0x18]
pop ebp
mov byte [eax + 0x41e], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x1006e1d5
push 0xd
push 1
push esi
call fcn.1006dab0
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x1006e1e8
push 0xe
push 1
push esi
call fcn.1006dab0
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret