joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1035d0e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10415646
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x104c5878]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xac], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa8]
push sym.appincu.dll_png_set_filter_heuristics
push fcn.103531e0
push 2
push 8
push eax
call fcn.103b6ce0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], ax
mov byte [ebp - 0x12], al
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x57], 0x3a
movups xmmword [ebp - 0x8c], xmm0
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
test esi, esi
je 0x1035d19e
mov ecx, esi
mov dword [ebp - 0x98], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1035d190
sub ecx, edx
lea eax, [ecx + 1]
jmp 0x1035d1a4
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x90]
push eax
push 2
lea eax, [ebp - 0xa8]
push eax
call fcn.1035d830
cmp eax, 2
jne 0x1035d239
mov edi, dword [ebp - 0xa4]
mov eax, 1
test edi, edi
cmovne eax, edi
call fcn.103b71b0
mov esi, esp
test edi, edi
je 0x1035d1e8
dec edi
jmp 0x1035d1ea
xor edi, edi
push edi
push dword [ebp - 0xa8]
push esi
call fcn.103ce0b0
mov eax, dword [ebp - 0xa4]
add esp, 0xc
test eax, eax
je 0x1035d207
dec eax
jmp 0x1035d209
xor eax, eax
mov byte [eax + esi], 0
cmp dword [ebp - 0xa0], 0
je 0x1035d245
cmp dword [ebp - 0x9c], 2
jb 0x1035d245
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xa0]
call fcn.1035db70
push dword [ebp - 0x94]
jmp 0x1035d23b
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
cmp dword [ebp - 0xa4], 2
jb 0x1035d2eb
cmp dword [ebp - 0xa8], 0
je 0x1035d2eb
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
push eax
push 0
xorps xmm0, xmm0
mov dword [ebp - 0xb4], 0
push esi
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb0], 0
xor bl, bl
mov dword [ebp - 0xc8], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, dword [ebp - 0x94]
test eax, eax
jne 0x1035d2de
test ecx, ecx
je 0x1035d2fd
cmp dword [ecx + 0x10], 0x10
jne 0x1035d2de
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 4]
cmp edx, 0xffffffff
je 0x1035d2de
mov eax, dword [ebp - 0xac]
mov bl, 1
mov dword [eax + 4], edx
test ecx, ecx
je 0x1035d2fd
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x1035d2fd
sub esp, 0xc
mov ecx, ebx
call fcn.10369960
add esp, 0xc
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
push sym.appincu.dll_png_set_filter_heuristics
push 2
push 8
push eax
call fcn.103b687b
mov al, bl
lea esp, [ebp - 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.103b6385
mov esp, ebp
pop ebp
ret 8
Function at 0x1035ef30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, 0x811c9dc5
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
cmp edx, 4
jb 0x1035ef6b
push edi
mov edi, edx
shr edi, 2
mov eax, dword [ecx]
sub edx, 4
xor eax, esi
add ecx, 4
imul esi, eax, 0x1000193
sub edi, 1
jne 0x1035ef55
pop edi
cmp edx, 3
ja case.0x1035ef70.0
jmp dword [edx*4 + 0x1035efb4]
movzx eax, byte [ecx]
xor eax, esi
imul eax, eax, 0x1000193
pop esi
pop ebp
ret 4
movzx eax, word [ecx]
xor eax, esi
imul eax, eax, 0x1000193
pop esi
pop ebp
ret 4
mov eax, dword [ecx]
and eax, 0xffffff
xor eax, esi
imul eax, eax, 0x1000193
pop esi
pop ebp
ret 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1035f720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10415ab9
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x104c5878]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ebp - 4], 0
lea eax, [ecx + 8]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.os::File.0
mov dword [eax + 0x14], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov byte [ebp - 4], 1
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov byte [ebp - 4], 2
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 3
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ebp - 4], 4
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov byte [ebp - 4], 5
lea eax, [ecx + 0x50]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 6
mov dword [eax + 8], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x74], 0
mov byte [ebp - 4], 8
mov dword [ecx + 0x78], vtable.os::FileZip::decompress_store.0
mov dword [ecx + 0x94], vtable.os::FileZip::decompress_zlib.0
mov dword [ecx + 0xb0], 0
mov byte [ebp - 4], 9
mov dword [ecx + 0xc0], vtable.os::FileZip::compress_store.0
mov dword [ecx + 0xd4], vtable.os::FileZip::compress_zlib.0
mov dword [ecx + 0xe8], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x48], 0
mov byte [ecx + 0x4c], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x7c], ecx
mov dword [ecx + 0xc4], ecx
mov dword [ecx + 0xd8], ecx
mov dword [ecx + 0x98], ecx
mov dword [ecx + 0x5c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x103601e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x104c5878]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push ebx
push esi
mov esi, ecx
mov bl, 1
je 0x103602fb
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x28]
push 0
movzx eax, word [edx + 0xa]
mov word [ebp - 0x1c], ax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x16], eax
xor eax, eax
mov word [ebp - 8], ax
movzx eax, word [edx + 0xe]
mov word [ebp - 0x18], ax
movzx eax, word [edx + 0x1c]
mov word [ebp - 0xa], ax
movzx eax, word [edx + 0xc]
mov word [ebp - 0x1a], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x24], 0x4034b50
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x12], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0xe], eax
movzx eax, word [edx + 6]
mov word [ebp - 0x20], ax
mov eax, dword [ecx]
push dword [edx + 0x2a]
call dword [eax + 8]
mov ecx, dword [esi + 0x5c]
cmp eax, dword [ecx + 0x2a]
jne 0x103602f9
mov ecx, dword [esi + 0x28]
lea edx, [ebp - 0x24]
push 0x1e
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 0x1e
jne 0x103602f9
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x28], ecx
lea eax, [ecx + 0x2e]
mov dword [ebp - 0x30], eax
movzx eax, word [ecx + 0x1c]
lea ecx, [esi + 0x50]
inc eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
call fcn.10360df0
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x6c]
mov byte [esi + 0x4c], bl
mov byte [esi + 0x38], 0
sub ecx, dword [eax + 0x14]
je 0x103602de
mov eax, dword [esi + 0x60]
test eax, eax
je 0x103602db
add dword [eax + 0x14], ecx
mov eax, dword [esi + 0x60]
sub dword [eax + 0x2a], ecx
mov al, bl
mov dword [esi + 0x5c], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.103b6385
mov esp, ebp
pop ebp
ret 4
sub dword [esi + 0x48], ecx
mov dword [esi + 0x5c], 0
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.103b6385
mov esp, ebp
pop ebp
ret 4
xor bl, bl
mov ecx, dword [esi + 0x5c]
call fcn.10367720
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x5c], 0
test ecx, ecx
je 0x10360334
mov eax, dword [esi + 0x64]
add dword [ecx + 0x14], eax
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
pop esi
sub dword [ecx + 0x2a], eax
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.103b6385
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x68]
mov al, bl
mov dword [esi + 0x48], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.103b6385
mov esp, ebp
pop ebp
ret 4

Function at 0x10360350
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x5c]
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x5c]
mov eax, dword [ecx + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.103601e0
Function at 0x103656a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10416298
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x104c5878]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x24], 0x104771c4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], vtable.os::File.0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
mov dword [ebp - 4], 1
push 1
push 0x1047718c
push ecx
lea ecx, [ebp - 0x24]
call fcn.10364690
test al, al
je 0x1036574b
cmp byte [ebp + 8], 0
je 0x103657a3
push dword [ebp - 0x20]
push 3
push 1
push 0x10477140
call fcn.103d6725
add esp, 0x10
cmp eax, 3
je 0x103657a3
mov byte [ebp - 0x1c], 1
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], vtable.os::File.0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10365779
push eax
call fcn.103d309b
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
call fcn.10367720
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 4]
push dword [ebp - 0x20]
lea eax, [esi - 1]
neg esi
sbb esi, esi
and esi, eax
push esi
push 1
push dword [edi]
call fcn.103d6725
movzx ecx, byte [ebp - 0x1c]
add esp, 0x10
cmp eax, esi
mov edx, 1
cmovne ecx, edx
mov edx, dword [edi + 4]
mov byte [ebp - 0x1c], cl
lea ecx, [edx - 1]
neg edx
sbb edx, edx
and edx, ecx
cmp eax, edx
jne 0x1036574b
mov bl, 1
jmp 0x1036574d

Function at 0x103657f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x104162e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x104c5878]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x10365835
mov edx, esi
mov dword [ebp - 0x1c], esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10365824
sub edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x18], eax
jmp 0x10365843
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.1035f180
mov dword [ebp - 4], 2
push dword [ebp - 0x28]
call fcn.103dd901
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x103658b5
call fcn.10367720
mov dword [ebp - 0x28], 0
mov ecx, esi
call fcn.10365300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x103658d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10416340
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x104c5878]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov edx, ecx
mov dword [ebp - 0x14], edx
xor edi, edi
mov dword [ebp - 0x34], 0
xor ebx, ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], ebx
test edx, edx
je 0x10365982
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10365928
sub esi, ecx
lea ecx, [esi + 1]
cmp ecx, 2
jb 0x10365982
test ecx, ecx
mov eax, ecx
mov edx, 1
lea ecx, [ebp - 0x34]
cmove eax, edx
push eax
call fcn.10353240
mov ebx, dword [ebp - 0x30]
test al, al
je 0x1036597f
test ebx, ebx
je 0x1036595e
lea eax, [ebx - 1]
jmp 0x10365960
xor eax, eax
mov edi, dword [ebp - 0x34]
push eax
push dword [ebp - 0x14]
push edi
call fcn.103ce0b0
xor ecx, ecx
lea eax, [esi + 1]
add esp, 0xc
test eax, eax
cmove esi, ecx
mov byte [esi + edi], cl
jmp 0x10365982
mov edi, dword [ebp - 0x34]
mov dword [ebp - 4], 0
xor ecx, ecx
nop dword [eax + eax]
test ebx, ebx
je 0x103659a8
lea eax, [ebx - 1]
cmp ecx, eax
jae 0x103659a8
cmp byte [ecx + edi], 0x5c
jne 0x103659a5
mov byte [ecx + edi], 0x2f
inc ecx
jmp 0x10365990
mov esi, edi
xor ebx, ebx
nop dword [eax]
mov al, byte [esi]
test al, al
je 0x10365a6b
mov cl, al
nop dword [eax]
mov al, cl
cmp cl, 0x2f
je 0x103659d1
mov al, byte [esi + 1]
inc esi
mov cl, al
test al, al
jne 0x103659c0
test al, al
je 0x10365a6b
mov byte [esi], 0
mov ebx, esi
cmp byte [edi], 0
je 0x10365a62
mov ecx, edi
mov dword [ebp - 0x20], edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x103659f0
sub ecx, edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.1035f180
mov byte [ebp - 4], 3
push dword [ebp - 0x40]
call fcn.103dd901
add esp, 4
mov byte [ebp - 4], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10365a62
call fcn.10367720
mov dword [ebp - 0x40], 0
mov byte [esi], 0x2f
inc esi
jmp 0x103659b0
cmp byte [edi], 0
jne 0x10365a74
mov bl, 1
jmp 0x10365a94
test ebx, ebx
je 0x10365a7b
mov byte [ebx], 0
cmp byte [ebp - 0xd], 0
je 0x10365a8a
mov ecx, edi
call fcn.10365300
jmp 0x10365a92
mov ecx, dword [ebp - 0x14]
call fcn.103657f0
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10367720
mov dword [ebp - 0x34], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10365ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push dword [edi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.103db4a1
add esp, 0x10
cmp eax, dword [ebp + 0xc]
je 0x10365ae2
mov byte [edi + 8], 1
pop edi
pop ebp
ret 8

Function at 0x10365af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push dword [edi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.103d6725
add esp, 0x10
cmp eax, dword [ebp + 0xc]
je 0x10365b12
mov byte [edi + 8], 1
pop edi
pop ebp
ret 8
Function at 0x10365ce0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10416410
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x104c5878]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
call fcn.10365460
mov esi, dword [ebp - 0x34]
mov ecx, esi
call fcn.10365300
test al, al
jne 0x10365e1a
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x10365d58
lea eax, [edx - 1]
jmp 0x10365d5a
xor eax, eax
add eax, 0xffffffff
js 0x10365d72
nop
mov cl, byte [eax + esi]
cmp cl, 0x5c
je 0x10365d85
cmp cl, 0x2f
je 0x10365d85
sub eax, 1
jns 0x10365d60
mov ebx, 0x10476b6c
mov edi, 3
test edi, edi
je 0x10365dcf
lea eax, [edi - 1]
jmp 0x10365dd2
lea ecx, [esi + 1]
add ecx, eax
je 0x10365d94
mov ebx, esi
mov eax, ebx
sub ecx, ebx
jmp 0x10365dae
test esi, esi
je 0x10365e1a
mov ecx, esi
mov ebx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10365da3
sub ecx, edi
mov eax, esi
lea edi, [ecx + 1]
test eax, eax
je 0x10365dba
cmp edi, 2
jae 0x10365d7c
test esi, esi
je 0x10365e1a
cmp edx, 1
jbe 0x10365e1a
mov byte [esi], 0
mov dword [ebp - 0x30], 1
jmp 0x10365e1a
or eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov ecx, 1
test edi, edi
mov eax, edi
cmove eax, ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.10353240
test al, al
je 0x10365e17
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10365df8
dec eax
jmp 0x10365dfa
xor eax, eax
mov esi, dword [ebp - 0x34]
push eax
push ebx
push esi
call fcn.103ce0b0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add esp, 0xc
test edi, edi
cmove eax, ecx
mov byte [eax + esi], cl
jmp 0x10365e1a
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x40]
call fcn.1035f180
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edi, eax
mov byte [ebp - 4], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10365e87
call fcn.10367720
mov dword [ebp - 0x40], 0
test edi, edi
je 0x10365e93
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
jmp 0x10365ea1
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10367720
mov dword [ebp - 0x34], 0
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x103670e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov edx, dword [ebx]
mov ecx, dword [edi]
cmp edx, ecx
jb 0x10367180
mov eax, dword [edi + 4]
add eax, ecx
cmp edx, eax
jae 0x10367180
lea eax, [ecx + 0x20000]
cmp edx, eax
jbe 0x10367164
mov eax, ecx
push esi
sub eax, edx
mov esi, edx
add eax, dword [edi + 0xc]
sub esi, ecx
push eax
push edx
push ecx
call fcn.103ce790
mov ecx, dword [edi]
add esp, 0xc
mov dword [ebx], ecx
mov eax, esi
mov ecx, dword [edi + 0xc]
cdq
sub ecx, esi
add dword [edi + 0x18], eax
lea eax, [ebp + 8]
push 0
adc dword [edi + 0x1c], edx
push eax
mov eax, 0x40000
mov dword [edi + 0xc], ecx
sub eax, ecx
mov dword [ebp + 8], 0
push eax
mov eax, dword [edi]
add eax, ecx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
add dword [edi + 0xc], eax
mov ecx, dword [edi]
pop esi
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], ecx
inc eax
push ecx
push ebx
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.1035d650
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x103671b5
push 0
lea eax, [edi + 0xc]
push eax
push 0x40000
push dword [edi]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [edi + 0xc]
test edx, edx
jne 0x103671c6
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
cmp byte [eax], 0xef
jne 0x10367164
cmp byte [eax + 1], 0xbb
jne 0x10367164
cmp byte [eax + 2], 0xbf
jne 0x10367164
add eax, 3
mov dword [ebp - 8], eax
lea eax, [edx - 2]
jmp 0x1036716b
Function at 0x103677d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0
mov edi, ecx
call ebx
mov eax, dword [ebp + 8]
cmp dword [edi + 0x14], 0
mov esi, eax
je 0x1036782e
push 0x64
call ebx
cmp esi, 0xffffffff
lea eax, [esi - 0x64]
cmove eax, esi
cmp eax, 0x64
ja 0x103677e5
cmp byte [ebp + 0xc], 0
je 0x10367825
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10367825
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14], 0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
Function at 0x103687b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10416bc7
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x104c5878]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x82c], ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.103ce630
add esp, 0xc
mov dword [ebp - 0x828], 0x400
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x810]
push closesocket
push eax
lea ecx, [ebp - 0x824]
call fcn.1035f300
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x820]
test esi, esi
je 0x1036888f
dec esi
jmp 0x10368891
xor esi, esi
lea edi, [esi + 1]
mov ecx, edi
call fcn.103675e0
mov ebx, eax
mov byte [ebx + esi], 0
mov ecx, dword [ebp - 0x820]
test ecx, ecx
je 0x103688ae
dec ecx
jmp 0x103688b0
xor ecx, ecx
push ecx
push dword [ebp - 0x824]
push ebx
call fcn.103ce0b0
mov eax, dword [ebp - 0x82c]
add esp, 0xc
mov ecx, dword [eax]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax], ebx
call fcn.10367720
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x830], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x81c]
test ecx, ecx
je 0x10368908
call fcn.10367720
mov dword [ebp - 0x81c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.103b6385
mov esp, ebp
pop ebp
ret