joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425b2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call dword [eax + 0x20]
mov esi, eax
mov eax, esi
shr eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00425784
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x1aafc6b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
dec edi
test edi, edi
jl 0x425bda
inc edi
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.00402ca0
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.00425204
lea eax, [ebx + esi]
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, esi
call fcn.00402ca0
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.00425204
lea eax, [ebx + esi]
mov ebx, eax
dec edi
jne 0x425b87
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, edx
cmp esi, edi
jg 0x425c28
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.00402ca0
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.00425204
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.00402ca0
lea eax, [ebx + esi]
mov ebx, eax
sub edi, esi
test edi, edi
jle 0x425c52
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
dec edi
test edi, edi
jl 0x425c52
inc edi
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dl, byte [edx + eax]
xor byte [ebx + eax], dl
inc eax
dec edi
jne 0x425c42
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1aafc72
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00425920
ret

Function at 0x434434
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov bl, dl
dec ebx
test ebx, ebx
jl 0x434488
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x1b75780]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x1b75b80]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x1b75f80]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x1b76380]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x434443
pop edi
pop esi
pop ebx
ret
Function at 0x455d0c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x455d12
ret

Function at 0x4602ac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1aea45d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404b6c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x1aea474
call fcn.004047c8
mov eax, ebx
call fcn.00423a60
mov edi, eax
dec edi
test edi, edi
jl 0x460364
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00423a34
mov edx, dword [0x1afe5f0]
call fcn.00403730
test al, al
je 0x460360
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00423a34
lea edx, [ebp - 0x14]
call fcn.004946b8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404b6c
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040483c
inc esi
dec edi
jne 0x460312
mov al, byte [0x1aea478]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x1aea484
mov eax, dword [ebp - 0xc]
call fcn.0040ec34
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404544
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004946b8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x1aea474
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.004946b8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x1aea474
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x1aea474
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x1aea490
call fcn.0040a794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1aea464
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004044d0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004044d0
lea eax, [ebp - 0x14]
call fcn.004044ac
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004044d0
ret
Function at 0x49c518
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0x1b88540]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0x1b266f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004946e8
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00495910
mov eax, dword [esi]
call fcn.0048303c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x49c58a
mov eax, dword [esi]
call fcn.0048303c
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.00483048
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x49c5ae
mov eax, dword [esi]
call fcn.00483048
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00483030
cmp eax, dword [ebp - 0x18]
jle 0x49c5c4
mov eax, dword [esi]
call fcn.00483030
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00483024
cmp eax, dword [ebp - 0xc]
jle 0x49c5da
mov eax, dword [esi]
call fcn.00483024
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.0049aea0
push eax
call fcn.00407bd0
call fcn.00407130
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x49c6a1
mov eax, ebx
call fcn.0040477c
cmp eax, 0x64
jge 0x49c6a1
cmp dword [0x1b82450], 0
je 0x49c6a1
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call fcn.00407c20
cmp dword [ebp - 8], 0
je 0x49c6a1
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call fcn.00407c20
cmp dword [ebp - 8], 0
je 0x49c664
mov bl, 2
jmp 0x49c67f
lea edx, [ebp - 0x20]
mov eax, dword [0x1b9083c]
call fcn.0049f7b0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x49c67d
xor ebx, ebx
jmp 0x49c67f
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x1b82558]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.0049aea0
push eax
call dword [0x1b82450]
mov eax, dword [0x1b88370]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.004985d4
push 4
mov eax, dword [ebp - 4]
call fcn.0049aea0
push eax
call fcn.00407c18
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1b266f8
call fcn.00407130
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
ret
Function at 0x4bd604
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov eax, dword [eax + 0x78]
add eax, ebx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0xc]
cmp edx, 0xffff
jbe 0x4bd694
test esi, esi
jbe 0x4bd6b7
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.0040a138
test eax, eax
jne 0x4bd686
mov eax, dword [ebp - 8]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bd6b7
add ebx, dword [ebp - 4]
mov dword [ebp - 4], ebx
jmp 0x4bd6b7
add dword [ebp - 8], 2
add edi, 4
dec esi
test esi, esi
ja 0x4bd657
jmp 0x4bd6b7
mov esi, edx
sub esi, dword [eax + 0x10]
cmp esi, dword [eax + 0x14]
jae 0x4bd6b7
mov eax, esi
shl eax, 2
add eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bd6b7
add ebx, dword [ebp - 4]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c828c
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x5454a4
jmp 0x4c8070

Function at 0x4c82ac
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x544b25
jmp 0x4c2154

Function at 0x4c8354
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x54e68f
jmp 0x4c73a4

Function at 0x4c835c
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x54e6af
jmp 0x4c73ac

Function at 0x4c8364
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x5476d5
jmp 0x4c7620

Function at 0x4c836c
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x54aa7b
jmp 0x4c7c44
Function at 0x4cfaf4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x1b59d05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404bc8
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4cfb2f
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4cfb48
lea eax, [ebp - 0xc]
mov edx, dword [0x1b88514]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404c28
jmp 0x4cfb5b
lea eax, [ebp - 0xc]
mov edx, dword [0x1b88514]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404c28
lea eax, [ebp - 0xc]
mov edx, ebx
sar edx, 1
jns 0x4cfb67
adc edx, 0
mov edx, dword [edx*4 + 0x1b86d54]
call fcn.00404e34
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00404e18
push eax
call fcn.00406e88
mov esi, eax
cmp esi, 0xffffffff
je 0x4cfcd7
mov eax, 0x40
call fcn.00402a80
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00407260
test eax, eax
je 0x4cfcca
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4cfcca
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.004072c0
mov eax, edi
call fcn.00402ab0
mov eax, 0x18
call fcn.00402a80
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00407260
test eax, eax
je 0x4cfcca
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4cfcca
add eax, 4
cmp byte [ebp - 1], 0
je 0x4cfc6e
cmp word [eax], 0x8664
jne 0x4cfc6e
mov eax, edi
call fcn.00402ab0
mov eax, 0xf0
call fcn.00402a80
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00407260
test eax, eax
je 0x4cfcca
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4cfcca
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404c04
jmp 0x4cfcca
cmp byte [ebp - 1], 0
jne 0x4cfcca
cmp word [eax], 0x14c
jb 0x4cfcca
cmp word [eax], 0x150
ja 0x4cfcca
mov eax, edi
call fcn.00402ab0
mov eax, 0xe0
call fcn.00402a80
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00407260
test eax, eax
je 0x4cfcca
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4cfcca
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404c04
mov eax, edi
call fcn.00402ab0
push esi
call fcn.00406e40
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404f44
jne 0x4cfcef
inc ebx
cmp ebx, 0x19
jne 0x4cfb21
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1b59d0c
lea eax, [ebp - 0xc]
inc ebp
hlt
call fcn.00404bc8
ret
Function at 0x10004520
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e1e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10002630
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.10002630
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.10002630
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x7c
call fcn.10002630
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x10020dac
lea ecx, [ebp - 0x1a0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xac], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xb5], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xa8], 0xffffffff
mov byte [ebp - 0x1a8], 0x50
mov byte [ebp - 0x1a7], 0x43
mov byte [ebp - 0x1a6], 0x52
mov byte [ebp - 0x1a5], 0x61
mov byte [ebp - 0x1a4], 0x74
push 5
lea edx, [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xb0
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004740
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.10004d90
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 4]
mov byte [edx + 0xb5], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa8], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xa8], 0xffffffff
jne 0x10004796
xor al, al
jmp 0x1000488c
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100047b7
xor al, al
jmp 0x1000488c
mov word [ebp - 0x18], 2
mov cx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100047fb
xor al, al
jmp 0x1000488c
mov byte [ebp - 0x1c], 1
push 1
lea eax, [ebp - 0x1c]
push eax
push 8
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000485c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x20], 0x1388
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x28]
push ecx
push 0x98000004
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xb5], 1
push 1
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x100048a0
push 0
push 0
call fcn.10015b80
add esp, 0x1c
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10004d90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov word [ebp - 8], 1
mov word [ebp - 6], 0
push 4
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov edx, dword [ebp - 4]
add edx, 0xb5
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa8], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005000
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
jmp 0x1000503f
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jb 0x100050b4
mov dword [ebp - 0x1c], 0
jmp 0x10005059
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jge 0x10005088
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x10005086
jmp 0x10005088
jmp 0x10005050
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x18]
jne 0x10005098
or eax, 0xffffffff
jmp 0x10005121
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005036
cmp dword [ebp - 0x10], 0
jle 0x10005111
mov dword [ebp - 0x20], 0
jmp 0x100050cc
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jge 0x100050fb
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x100050f9
jmp 0x100050fb
jmp 0x100050c3
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x18]
jne 0x10005108
or eax, 0xffffffff
jmp 0x10005121
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x1000511e
mov eax, dword [ebp - 0x14]
jmp 0x10005121
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
push 0x104
push 0
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x20
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10005465
xor eax, eax
jmp 0x100054ca
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0xa
mov ecx, dword [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x24], 0x6a
lea eax, [ebp - 0x23]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000bdc0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100054e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 0x10], ecx
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10005528
or eax, 0xffffffff
jmp 0x100055d7
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], 9
mov ecx, 0x2000
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov byte [edx], 0x6b
push 8
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
jbe 0x100055ca
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000bdc0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4