joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459ecb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4782b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x459f0b
cmp byte [ebx], 0xa
jne 0x459f0b
or byte [eax + edi + 0x28], 4
jmp 0x459f10
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45a00e
mov al, byte [edx]
cmp al, 0x1a
je 0x459ff0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x459f3f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x459f64
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x459f6e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x459f21
jmp 0x45a00e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459feb
cmp dword [ebp - 0xc], 0
je 0x459feb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4782b8]
test byte [eax + edi + 0x28], 0x48
je 0x459fc5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x459fb0
mov byte [esi], dl
jmp 0x459fc1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4782b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45a00e
cmp byte [ebp - 1], 0xa
jne 0x459fd4
cmp esi, ebx
jne 0x459fd4
mov byte [esi], 0xa
jmp 0x45a00d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040156e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45a00e
mov byte [esi], 0xd
jmp 0x45a00d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4782b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a00a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a00e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a06a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4782b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45a0ad
cmp word [esi], dx
jne 0x45a0ad
or byte [edi + eax + 0x28], 4
jmp 0x45a0b2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x45a205
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x45a1e5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x45a0f4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45a12a
cmp eax, edx
jae 0x45a136
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x45a0cc
jmp 0x45a205
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45a1e1
cmp dword [ebp - 0x14], 0
je 0x45a1e1
mov eax, dword [ebx*4 + 0x4782b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x45a1b9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x45a182
mov word [esi], cx
jmp 0x45a1b5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4782b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4782b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4782b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x45a205
pop ebx
cmp word [ebp - 4], bx
jne 0x45a1ca
cmp esi, dword [ebp + 0xc]
jne 0x45a1ca
mov word [esi], bx
jmp 0x45a202
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040156e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45a205
push 0xd
jmp 0x45a1fe
mov ecx, dword [ebx*4 + 0x4782b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a1fc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a205
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4080c4
Capabilities:
Encode data using xor

Disassembly:
enter 0xffffffffffffc6f3, 6
xor byte [ebx], al
add eax, 0xeb06fe94
adc al, 0x40
push es
xor dword [ebx - 0x2d7ab85d], ecx
shr ah, cl
shr ah, cl
cmp dword [ebp + 8], esi
cmp eax, ebx
jbe 0x4080d0
mov byte [eax], 0x30
inc eax
cmp byte [esi], 0x39
jg 0x4080b1
invalid

Function at 0x5d8ab3
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x5d87dc
add ebx, ecx
and ecx, ecx
or ecx, ecx
call fcn.005d8aee
mov ecx, 0x506f44ea
dec ebx
xor dword [esi], edi
sub ecx, 0xfa50aca5
add ebx, 0x2c7ddf4f
add esi, 2
add ebx, ebx
sub ebx, ebx
cmp esi, eax
jl fcn.005d8ab3
or ebx, ebx
and ecx, ebx
ret
Function at 0x10001100
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
movups xmm0, xmmword [ecx]
push ebx
push ebp
push esi
mov esi, edx
mov eax, 0x10
push edi
mov ebp, 0x1002af51
movups xmmword [esi], xmm0
nop word [eax + eax]
mov ebx, dword [esi + eax - 4]
lea ebp, [ebp + 1]
mov dl, byte [ebp - 1]
mov edi, 3
mov dword [esp + 0x10], ebx
movzx ecx, bl
shr ebx, 8
mov dh, byte [ecx + str.cw]
movzx ecx, bl
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esi + eax - 0x10]
xor cl, dl
mov byte [esp + 0x10], cl
movzx ecx, byte [esp + 0x12]
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esi + eax - 0xf]
mov byte [esp + 0x11], cl
movzx ecx, byte [esp + 0x13]
movzx ecx, byte [ecx + str.cw]
xor cl, byte [esi + eax - 0xe]
mov byte [esp + 0x12], cl
movzx ecx, byte [esi + eax - 0xd]
xor cl, dh
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
add eax, 4
movzx ecx, byte [esi + eax - 0x10]
mov edx, dword [esi + eax - 4]
xor cl, dl
mov dword [esp + 0x10], edx
mov byte [esp + 0x10], cl
movzx ecx, byte [esi + eax - 0xf]
xor byte [esp + 0x11], cl
movzx ecx, byte [esi + eax - 0xe]
xor byte [esp + 0x12], cl
movzx ecx, byte [esi + eax - 0xd]
xor byte [esp + 0x13], cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
add eax, 4
sub edi, 1
jne 0x10001190
cmp eax, 0xb0
jl 0x10001120
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10003540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x10003628
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x10003617
jg 0x10003580
test edx, edx
je 0x10003617
nop dword [eax]
call fcn.10004940
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100035d4
jg 0x10003597
test esi, esi
je 0x100035d4
cmp ebx, eax
jg 0x100035a7
jl 0x100035a1
cmp edi, esi
jae 0x100035a7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.100083b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x100035fb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x10003611
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10003580
jl 0x10003611
test edi, edi
jne 0x10003580
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000364a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x1000364c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x100036ca
jg 0x1000365f
test esi, esi
je 0x100036ca
test eax, eax
jl 0x100036ae
jg 0x10003669
test ebx, ebx
je 0x100036ae
cmp edi, eax
jg 0x10003679
jl 0x10003673
cmp esi, ebx
jae 0x10003679
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.100083b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x100036ca
jg 0x100036b1
test esi, esi
je 0x100036ca
jmp 0x100036b1
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x100036ca
push eax
push esi
push 1
push edx
call fcn.1000d63c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100036e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10003712
jl 0x10003705
test ecx, ecx
jne 0x10003712
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100037d2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10004960
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000377e
jg 0x1000373d
test esi, esi
je 0x1000377e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10003755
mov eax, dword [esp + 0x10]
jl 0x1000374f
cmp eax, esi
jae 0x10003755
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100083b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000379f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x100037bb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10003724
jl 0x100037bb
test ecx, ecx
jne 0x10003724
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10003811
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10003811
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.100083b0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], 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
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10003880
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x10003837
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10003869
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000b6cd
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10003894
cmp edi, eax
ja 0x10003845
test ecx, ecx
je 0x10003880
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000b6cd
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x10003c10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x1002f00c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10003c40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100058c6
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10003c7d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10003c7d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100058c6
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x10003d75
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10003ca5
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 0x10003cd9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1000c893
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100058c6
add esp, 0x30
ret 4
mov byte [esp + 0x17], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10003d44
sub eax, 1
je 0x10003d44
sub eax, 2
jne 0x10003d75
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x1b]
push eax
call fcn.1000c893
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100058c6
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x10003d63
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000d63c
add esp, 0x10
cmp edi, eax
jne 0x10003d75
lea eax, [esp + 0x17]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x10], eax
jne 0x10003c67
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100058c6
add esp, 0x30
ret 4
Function at 0x10004690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x1002f00c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10004752
cmp byte [esi + 0x3d], 0
je 0x10004752
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000473f
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x10004704
sub eax, 1
je 0x10004708
sub eax, 2
jne 0x1000473f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100058c6
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x10004727
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000d63c
add esp, 0x10
cmp edi, eax
jne 0x1000473f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100058c6
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100058c6
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.100058c6
add esp, 0x28
ret

Function at 0x10004c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ee80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1002f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100058d4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10006c6c
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x10005660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001efcd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1002f00c]
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 esi, edx
mov edi, ecx
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10005600
mov ebx, eax
mov ecx, ebx
or ecx, edx
jne 0x100056e5
mov ecx, dword [ebp - 0x1c]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 8], ecx
jmp 0x10005778
cmp dword [esi + 0x14], 8
jb 0x100056ed
mov esi, dword [esi]
push 0x1002c434
push esi
call fcn.1000b3a6
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
test esi, esi
je 0x10005767
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, dword [ebp - 0x1c]
sub edx, ecx
mov dword [ebp - 0x24], eax
cmp ebx, edx
jae 0x1000571a
lea eax, [ecx + ebx]
jmp 0x10005751
jbe 0x10005754
mov eax, dword [ebp - 0x14]
sub eax, ecx
cmp ebx, eax
jbe 0x10005734
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.100057a0
mov ecx, dword [ebp - 0x1c]
jmp 0x10005754
mov esi, ebx
sub esi, edx
push esi
push 0
push dword [ebp - 0x24]
call fcn.100081f0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add eax, esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push esi
push 1
push ebx
push ecx
call fcn.1000b6cd
push esi
call fcn.1000b1fe
add esp, 0x14
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, edi
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.100058c6
mov esp, ebp
pop ebp
ret

Function at 0x100132c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10013141

Function at 0x10017036
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016cd8

Function at 0x438c9e
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
sub ebx, 0xd6fc2204
call fcn.00438ccc
add eax, 0x668c650c
xor dword [edx], edi
sub ebx, 1
sub ebx, eax
dec eax
inc edx
mov ebx, ebx
cmp edx, esi
jne fcn.00438c9e
sub eax, eax
inc ebx
ret

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 0x404170
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
mov esi, ecx
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov dword [esi], 0x4032f8
mov byte [ebp - 0x24], 0x6b
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x6e
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x6c
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x6c
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x45
mov byte [ebp - 0xd], 0x76
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6e
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x41
mov byte [ebp - 8], bl
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
nop
push 0x4012f0
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [0x41aa78], eax
call dword [ebp - 4]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x24], eax
call dword [ebp - 4]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x3e8
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
lea edi, [esi + 0x30]
mov dword [ebp - 4], 2
push dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x28], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
push dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x20], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi + 8], eax
add esp, 0x10
add edi, 4
dec dword [ebp - 4]
jne 0x404244
nop
lea edi, [esi + 0x46]
push 0x14
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [edi], 0x31
mov word [esi + 0x48], 1
mov dword [esi + 0x4a], 0x1f40
nop
nop
nop
nop
mov dword [esi + 0x4e], 0x659
mov word [esi + 0x52], 0x41
mov word [esi + 0x54], bx
mov word [esi + 0x56], 2
nop
nop
mov word [esi + 0x58], 0x140
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret