joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415390
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
movaps xmm5, xmm3
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4154d5
mov eax, dword [ebp + 0x18]
sub dword [ebp - 4], edx
movss xmm6, dword [0x92bc70]
push esi
mov esi, dword [ebp + 0xc]
push edi
nop dword [eax + eax]
mov edi, dword [ebp - 4]
movss xmm3, dword [edx + edi]
mov edi, dword [ebp + 0x10]
movaps xmm4, xmm3
mulss xmm4, xmm5
movaps xmm1, xmm3
mulss xmm1, dword [esi]
addss xmm4, dword [eax]
addss xmm1, dword [eax + 4]
movaps xmm2, xmm4
xorps xmm2, xmm6
movaps xmm0, xmm2
mulss xmm0, dword [edi]
addss xmm1, xmm0
movaps xmm0, xmm2
movss dword [eax], xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esi + 4]
mulss xmm0, dword [edi + 4]
addss xmm1, dword [eax + 8]
addss xmm1, xmm0
movaps xmm0, xmm2
movss dword [eax + 4], xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esi + 8]
mulss xmm0, dword [edi + 8]
addss xmm1, dword [eax + 0xc]
addss xmm1, xmm0
movaps xmm0, xmm2
movss dword [eax + 8], xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esi + 0xc]
mulss xmm0, dword [edi + 0xc]
addss xmm1, dword [eax + 0x10]
addss xmm1, xmm0
movaps xmm0, xmm2
movss dword [eax + 0xc], xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esi + 0x10]
mulss xmm0, dword [edi + 0x10]
addss xmm1, dword [eax + 0x14]
addss xmm1, xmm0
movaps xmm0, xmm2
movss dword [eax + 0x10], xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esi + 0x14]
mulss xmm0, dword [edi + 0x14]
addss xmm1, dword [eax + 0x18]
addss xmm1, xmm0
movaps xmm0, xmm2
movss dword [eax + 0x14], xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esi + 0x18]
mulss xmm0, dword [edi + 0x18]
addss xmm1, dword [eax + 0x1c]
addss xmm1, xmm0
movss dword [eax + 0x18], xmm1
mulss xmm3, dword [esi + 0x1c]
mulss xmm2, dword [edi + 0x1c]
addss xmm3, dword [eax + 0x20]
addss xmm3, xmm2
movss dword [eax + 0x1c], xmm3
movss dword [edx], xmm4
add edx, 4
sub ecx, 1
jne 0x4153c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xorps xmm5, xmm5
push esi
mov esi, edx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
push edi
mov edi, dword [ebp + 8]
test eax, eax
jle 0x4164e4
movss xmm7, dword [0x92bc70]
movss xmm6, dword [0x92b3e8]
nop
movss xmm0, dword [edi + edx*8]
movss xmm4, dword [ecx]
movss xmm3, dword [ecx + 4]
subss xmm0, xmm4
movss xmm1, dword [ecx + 8]
mulss xmm0, dword [0x92b454]
addss xmm4, xmm0
addss xmm0, dword [edi + edx*8]
movss dword [ecx], xmm0
movss xmm2, dword [edi + edx*8 + 4]
inc edx
movaps xmm0, xmm2
subss xmm0, xmm3
addss xmm3, xmm4
mulss xmm0, xmm6
addss xmm3, xmm0
addss xmm0, xmm2
mulss xmm3, dword [0x92b444]
movss dword [ecx + 4], xmm0
movaps xmm0, xmm2
xorps xmm0, xmm7
subss xmm0, xmm1
addss xmm1, xmm4
mulss xmm0, xmm6
addss xmm1, xmm0
subss xmm0, xmm2
mulss xmm1, xmm1
movss dword [ecx + 8], xmm0
movss dword [esi], xmm3
add esi, 4
addss xmm5, xmm1
cmp edx, eax
jl 0x416450
pop edi
movaps xmm0, xmm5
pop esi
pop ebp
ret
pop edi
xorps xmm0, xmm0
pop esi
pop ebp
ret
Function at 0x426080
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x1418
call fcn.00471540
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm1, dword [0x92bc70]
push esi
mov dword [ebp - 0x1414], ecx
mov esi, edx
push edi
mov ecx, 0x142
lea edi, [ebp - 0xa10]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa1
lea edx, [ebp - 0x514]
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [edx - 4]
lea edx, [edx - 0x20]
mov dword [ebp + ecx*8 - 0xa10], eax
movss xmm0, dword [edx + 0x20]
xorps xmm0, xmm1
movss dword [ebp + ecx*8 - 0xa0c], xmm0
mov eax, dword [edx + 0x14]
mov dword [ebp + ecx*8 - 0xa08], eax
movss xmm0, dword [edx + 0x18]
xorps xmm0, xmm1
movss dword [ebp + ecx*8 - 0xa04], xmm0
mov eax, dword [edx + 0xc]
mov dword [ebp + ecx*8 - 0xa00], eax
movss xmm0, dword [edx + 0x10]
xorps xmm0, xmm1
movss dword [ebp + ecx*8 - 0x9fc], xmm0
mov eax, dword [edx + 4]
mov dword [ebp + ecx*8 - 0x9f8], eax
movss xmm0, dword [edx + 8]
xorps xmm0, xmm1
movss dword [ebp + ecx*8 - 0x9f4], xmm0
add ecx, 4
cmp ecx, 0x13d
jl 0x4260e0
cmp ecx, 0x140
jge 0x426197
lea eax, [ecx*8]
lea edx, [ebp - 0xc]
sub edx, eax
nop
mov eax, dword [edx - 4]
lea edx, [edx - 8]
mov dword [ebp + ecx*8 - 0xa10], eax
movss xmm0, dword [edx + 8]
xorps xmm0, xmm1
movss dword [ebp + ecx*8 - 0xa0c], xmm0
inc ecx
cmp ecx, 0x140
jl 0x426170
movss xmm2, dword [0x92b338]
lea edx, [ebp - 0xa10]
mov ecx, 0x7959c0
nop word [eax + eax]
movss xmm0, dword [edx]
lea edx, [edx + 8]
movsx eax, word [ecx]
movss xmm1, dword [edx - 4]
mulss xmm0, xmm2
mulss xmm1, xmm2
movss dword [ebp + eax*8 - 0x1410], xmm0
movsx eax, word [ecx]
add ecx, 2
movss dword [ebp + eax*8 - 0x140c], xmm1
cmp ecx, 0x795c40
jl 0x4261b0
lea edx, [ebp - 0x1410]
mov ecx, 0x7947ec
call fcn.00436450
movss xmm0, dword [ebp - 0x1410]
lea ecx, [ebp - 0xa20]
movss xmm1, dword [0x92b6f4]
mov edi, 0x27
mov esi, dword [ebp - 0x1414]
mov eax, 0x139
mulss xmm0, xmm1
lea edx, [esi + 0xc]
movss dword [esi], xmm0
nop dword [eax + eax]
movss xmm0, dword [ecx + 8]
lea edx, [edx + 0x20]
mulss xmm0, xmm1
lea ecx, [ecx - 0x40]
movss dword [edx - 0x28], xmm0
movss xmm0, dword [ecx + 0x40]
mulss xmm0, xmm1
movss dword [edx - 0x24], xmm0
movss xmm0, dword [ecx + 0x38]
mulss xmm0, xmm1
movss dword [edx - 0x20], xmm0
movss xmm0, dword [ecx + 0x30]
mulss xmm0, xmm1
movss dword [edx - 0x1c], xmm0
movss xmm0, dword [ecx + 0x28]
mulss xmm0, xmm1
movss dword [edx - 0x18], xmm0
movss xmm0, dword [ecx + 0x20]
mulss xmm0, xmm1
movss dword [edx - 0x14], xmm0
movss xmm0, dword [ecx + 0x18]
mulss xmm0, xmm1
movss dword [edx - 0x10], xmm0
movss xmm0, dword [ecx + 0x10]
mulss xmm0, xmm1
movss dword [edx - 0xc], xmm0
sub edi, 1
jne 0x426230
lea ecx, [ebp - 0x13d8]
movss xmm0, dword [ecx]
lea ecx, [ecx - 8]
mulss xmm0, xmm1
movss dword [esi + eax*4], xmm0
inc eax
cmp eax, 0x140
jl 0x4262b1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004575d6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x429ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov si, word [ebp + 0xc]
mov ebx, edx
movzx eax, si
xor edx, edx
mov dword [ebp - 0x20], eax
mov eax, 0x8000
sub eax, dword [ebp + 8]
movzx eax, ax
mov word [ebp - 0xc], ax
shr ax, 1
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
push edi
mov edi, ecx
test ebx, ebx
je 0x429ee7
setle dl
inc edx
push ecx
lea eax, [ebp - 0xc]
push eax
call fcn.00419140
mov eax, ebx
add esp, 8
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
je 0x429ffb
mov eax, 7
cmp ax, si
ja 0x429f10
movzx eax, si
mov ecx, dword [ebp - 0x20]
mov edx, 6
movzx eax, ax
mov word [ebp - 0x1c], ax
movzx ecx, cx
imul eax, ecx
sar eax, 0xf
cmp eax, edx
cmovl eax, edx
mov edx, 5
movzx eax, ax
mov word [ebp - 0x1a], ax
imul eax, ecx
sar eax, 0xf
cmp eax, edx
cmovl eax, edx
mov edx, 4
movzx eax, ax
mov word [ebp - 0x18], ax
imul eax, ecx
sar eax, 0xf
cmp eax, edx
cmovl eax, edx
mov edx, 3
movzx eax, ax
mov word [ebp - 0x16], ax
imul eax, ecx
sar eax, 0xf
cmp eax, edx
cmovl eax, edx
mov edx, 2
movzx eax, ax
mov word [ebp - 0x14], ax
imul eax, ecx
sar eax, 0xf
cmp eax, edx
cmovl eax, edx
movzx eax, ax
mov word [ebp - 0x12], ax
imul eax, ecx
mov ecx, 1
sar eax, 0xf
cmp eax, ecx
cmovl eax, ecx
mov word [ebp - 0x10], ax
xor eax, eax
mov word [ebp - 0xe], ax
dec ebx
nop dword [eax + eax]
mov esi, dword [edi + 0x1c]
mov eax, 7
cmp ebx, eax
mov edx, esi
cmovl eax, ebx
shr edx, 0xf
movzx ecx, word [ebp + eax*2 - 0x1c]
mov dword [ebp - 0x20], ecx
test eax, eax
jle 0x429fe5
movzx eax, word [ebp + eax*2 - 0x1e]
mov ecx, eax
sub eax, dword [ebp - 0x20]
imul ecx, edx
sub esi, ecx
add dword [edi + 0x20], esi
imul eax, edx
jmp 0x429fec
imul ecx, edx
mov eax, esi
sub eax, ecx
mov ecx, edi
mov dword [edi + 0x1c], eax
call fcn.00418f30
sub ebx, 7
jns 0x429fb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004575d6
mov esp, ebp
pop ebp
ret
Function at 0x443320
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, edx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0xc], esi
cmp ecx, 0x3e8
jge 0x443354
mov esi, ecx
mov eax, 0x7fff
sar esi, 4
inc esi
cdq
idiv esi
mov esi, dword [ebp - 0xc]
inc ecx
mov edx, eax
mov dword [ebx + 0x6c], ecx
jmp 0x443356
xor edx, edx
xor eax, eax
movzx ecx, dx
mov dword [ebp - 4], edx
add ebx, 0x4c
mov dword [ebp - 8], eax
mov edx, 0x7fffffff
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov esi, dword [esi + eax*4]
mov eax, edx
add esi, dword [ebx + 0x10]
mov ecx, dword [ebx - 0x10]
cmovs esi, edx
xor edx, edx
div esi
lea edx, [ecx*8]
mov edi, eax
cmp esi, edx
jle 0x443396
mov esi, 0x80
jmp 0x4433d5
cmp esi, ecx
jge 0x4433a1
mov esi, 0x400
jmp 0x4433d5
movsx edx, cx
sar ecx, 0xf
inc ecx
movzx eax, di
sar ecx, 1
imul eax, edx
imul ecx, edi
sar eax, 0x10
add ecx, eax
mov eax, edi
sar eax, 0x10
imul eax, edx
add ecx, eax
mov esi, ecx
sar ecx, 0x10
shr esi, 5
and esi, 0x7ff
shl ecx, 0xb
add esi, ecx
sub edi, dword [ebx]
cmp esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
movzx ecx, ax
movzx eax, si
cmovg ecx, eax
mov esi, dword [ebp - 0xc]
movsx eax, cx
movzx ecx, di
imul ecx, eax
sar edi, 0x10
imul edi, eax
mov eax, 0x7fffffff
cdq
sar ecx, 0x10
add ecx, dword [ebx]
add ecx, edi
idiv ecx
mov dword [ebx], ecx
mov edx, 0x7fffffff
mov ecx, 0xffffff
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebx - 0x10], ecx
add ebx, 4
mov dword [ebp - 8], eax
cmp eax, 4
jl 0x443370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443740
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, dword [ebx + 8]
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
test edi, edi
jle 0x4438a3
cmp edi, 2
jb 0x443822
lea eax, [edi - 1]
lea eax, [edx + eax*4]
cmp ecx, eax
ja 0x44378e
lea eax, [edi - 1]
add eax, ecx
cmp eax, edx
jae 0x443822
movaps xmm0, xmmword [0x92bc40]
mov eax, edi
movaps xmm2, xmmword [0x92bbf0]
and eax, 0xfffffffe
movaps xmm3, xmmword [0x92ba30]
mov edi, edx
mov dword [ebp - 0xc], eax
movaps xmmword [ebp - 0x20], xmm0
movsd xmm1, qword [edi + esi*4]
xorps xmm0, xmm0
movsd xmm0, xmm2
mulps xmm1, xmm0
xorps xmm0, xmm0
movsd xmm0, xmm3
addps xmm1, xmm0
cvtps2pd xmm0, xmm1
call fcn.00471b40
movzx eax, word [ebp - 0x20]
mov ecx, dword [ebp - 8]
movaps xmm2, xmmword [0x92bbf0]
movaps xmm3, xmmword [0x92ba30]
cvttpd2dq xmm1, xmm0
movd xmm0, eax
andps xmm1, xmmword [0x92b860]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm0
movd eax, xmm1
mov word [ecx + esi], ax
add esi, 2
mov eax, esi
cmp esi, dword [ebp - 0xc]
jl 0x4437b1
mov edi, dword [ebx + 8]
cmp eax, edi
jge 0x4438a3
mov edx, dword [ebp - 4]
movss xmm6, dword [0x92b6d4]
movss xmm7, dword [0x92b444]
movsd xmm5, qword [0x92b6e0]
nop word [eax + eax]
movss xmm0, dword [edx + esi*4]
movaps xmm1, xmm5
movsd xmm3, qword [0x92b758]
mulss xmm0, xmm6
addss xmm0, xmm7
cvtps2pd xmm4, xmm0
andps xmm3, xmm4
movaps xmm0, xmm4
xorps xmm0, xmm3
movaps xmm2, xmm4
cmpltsd xmm0, xmm5
andps xmm1, xmm0
orps xmm1, xmm3
addsd xmm2, xmm1
subsd xmm2, xmm1
movsd xmm1, qword [0x92b588]
movaps xmm0, xmm2
subsd xmm0, xmm4
cmpnlesd xmm0, xmm3
andps xmm0, xmm1
subsd xmm2, xmm0
cvttsd2si eax, xmm2
add al, 0x7f
mov byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x443840
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x457a5a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x457a8f
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x457a8c
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x457a98
add edx, 0x28
cmp edx, esi
jne 0x457a7a
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x457a95

Function at 0x457ef2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x457f31
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x457f31
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x457f31
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x457f31
cmp dword [ecx + 0x74], 0xe
jbe 0x457f31
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x45ab56
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00471540
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00463ebb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45ab98
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45acf4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00471490
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x934ec8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004640cb
mov ecx, dword [esi*4 + 0x934ec8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x45aced
cmp eax, dword [edi + ecx + 0x24]
jne 0x45aced
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45aced
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004640cb
add esp, 0x14
test edx, edx
jl 0x45aced
jg 0x45ac63
test eax, eax
jb 0x45aced
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45aced
jl 0x45ac7d
cmp dword [ebp - 0x1008], eax
ja 0x45aced
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45ac9b
test ebx, ebx
je 0x45acd4
cmp ecx, edi
jae 0x45acd4
mov al, byte [ecx]
cmp al, 0xd
jne 0x45acb5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45acc1
cmp byte [ecx + 1], 0xa
jne 0x45acc1
inc ecx
jmp 0x45acc1
movzx eax, al
movsx eax, byte [eax + 0x934200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45ac9b
cmp edx, ebx
jne 0x45ac9b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x45acf2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004575d6
leave
ret
Function at 0x46477a
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 + 0x934ec8]
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 0x4647ba
cmp byte [ebx], 0xa
jne 0x4647ba
or byte [eax + edi + 0x28], 4
jmp 0x4647bf
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4648bd
mov al, byte [edx]
cmp al, 0x1a
je 0x46489f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4647ee
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x464813
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46481d
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 0x4647d0
jmp 0x4648bd
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 0x46489a
cmp dword [ebp - 0xc], 0
je 0x46489a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x934ec8]
test byte [eax + edi + 0x28], 0x48
je 0x464874
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46485f
mov byte [esi], dl
jmp 0x464870
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x934ec8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4648bd
cmp byte [ebp - 1], 0xa
jne 0x464883
cmp esi, ebx
jne 0x464883
mov byte [esi], 0xa
jmp 0x4648bc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004640e9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4648bd
mov byte [esi], 0xd
jmp 0x4648bc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x934ec8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4648b9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4648bd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4648c6
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 + 0x934ec8]
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 0x464909
cmp word [esi], dx
jne 0x464909
or byte [edi + eax + 0x28], 4
jmp 0x46490e
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 0x464a47
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 0x464a27
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x464950
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x464986
cmp eax, edx
jae 0x464992
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 0x464928
jmp 0x464a47
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 0x464a23
cmp dword [ebp - 0x14], 0
je 0x464a23
mov eax, dword [ebx*4 + 0x934ec8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4649fb
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x464a41
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x934ec8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x934ec8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x934ec8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x464a44
pop ebx
cmp word [ebp - 4], bx
jne 0x464a0c
cmp esi, dword [ebp + 0xc]
jne 0x464a0c
mov word [esi], bx
jmp 0x464a44
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004640e9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x464a47
push 0xd
jmp 0x464a40
mov ecx, dword [ebx*4 + 0x934ec8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x464a3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x464a47
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 0x465c94
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x478800
push 0x4787f8
push str.FlsAlloc
push 0x1e
call fcn.00465b55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x465cc8
push dword [ebp + 8]
mov ecx, esi
call dword [0x47611c]
call esi
jmp 0x465cce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x465d12
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x478810
push 0x478808
push str.FlsGetValue
push 0x20
call fcn.00465b55
mov esi, eax
add esp, 0x10
test esi, esi
je 0x465d49
push dword [ebp + 8]
mov ecx, esi
call dword [0x47611c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4689ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046881d
Function at 0x46a0c5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x46a162
push ebx
push esi
call fcn.0046a08e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00469fd7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x46a10f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46a161
push edi
push eax
call fcn.00466469
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46a12f
call fcn.004659e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46a160
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00469fd7
add esp, 0x20
test eax, eax
jne 0x46a14e
push edi
call fcn.004659e8
jmp 0x46a156
push ebx
call fcn.004659e8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret