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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x4617eb
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004568e0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x4617be
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 4], edx
cmp ebx, esi
jne 0x461744
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x4617b1
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x46177e
mov edx, dword [edx]
mov dword [ebp - 8], edx
cmp edx, eax
je 0x461776
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x4617b1
cmp ebx, edx
je 0x46178e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x4617c7
cmp ebx, edx
jne 0x461782
mov ebx, dword [eax + 4]
mov dword [ebp - 8], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0xc]
mov eax, ecx
cmp ecx, esi
jne 0x4616f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x4617b1
push str.invalid_hash_bucket_count
call fcn.00493b2c
int3
Function at 0x4625a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6d65
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x50f060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x4625d5
mov edx, dword [ebx]
mov edi, dword [ebx + 0x10]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x4625f4
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x4625e3
push esi
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.00462bf0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x462623
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 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 8
cmp dword [0x53344c], 0x71c71c7
je 0x462791
mov dword [ebp - 0x20], 0x533448
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x1c], 0
call fcn.00494ccb
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
lea ecx, [edi + 8]
push ebx
call fcn.00405860
mov cl, byte [ebx + 0x18]
mov byte [edi + 0x20], cl
mov dword [ebp - 4], 1
mov ecx, dword [0x53344c]
mov ebx, dword [0x533460]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x506a20]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x506a20]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x533444]
comiss xmm1, xmm0
jbe 0x46272d
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.004c2a70
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.004c39e0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x46270f
cmp ebx, 0x200
jae 0x46270d
shl ebx, 3
cmp ebx, ecx
jae 0x46270f
mov ebx, ecx
push ebx
call fcn.00462a10
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00462bf0
mov ecx, dword [0x53344c]
mov edx, dword [eax]
jmp 0x462730
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x53344c], ecx
mov dword [edi], edx
mov dword [edi + 4], ebx
mov dword [ebx], edi
mov dword [edx + 4], edi
mov eax, dword [0x53345c]
mov ecx, dword [0x533450]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [0x533448]
jne 0x462761
mov dword [ecx + eax*8], edi
jmp 0x462770
cmp esi, edx
jne 0x46276a
mov dword [ecx + eax*8], edi
jmp 0x462774
cmp dword [ecx + eax*8 + 4], ebx
jne 0x462774
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00493b2c
int3
Function at 0x469280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7287
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x50f060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 8
call fcn.00494ccb
mov edi, eax
mov dword [ebp - 0x14], edi
push 0x6c
mov dword [ebp - 4], 0
call fcn.00494ccb
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [esi], 0
xorps xmm0, xmm0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 1
movups xmmword [esi + 0x14], xmm0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xf
mov byte [esi + 0x14], 0
mov dword [esi + 0x2c], 0
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov byte [ebp - 4], 5
push 0x10
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
call fcn.00494ccb
mov dword [ebp - 0x18], esi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x64], eax
mov dword [edi], 0
mov dword [edi + 4], 0
push 0x10
mov byte [ebp - 4], 6
call fcn.00494ccb
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], edi
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 0xc], esi
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_YAML::detail::node_data_.0
mov dword [edi], esi
mov esi, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x10
mov dword [ebp - 4], 7
call fcn.00494ccb
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_YAML::detail::node_ref_.0
mov dword [eax + 0xc], edi
mov dword [esi], edi
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 4], 8
mov dword [ebp - 0x18], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00494ccb
add esp, 0x18
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46a740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7470
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x50f060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 8
mov dword [edi], vtable.YAML::NodeBuilder.0
call fcn.00494ccb
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00407a40
mov esi, eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x10], esi
push 0x10
mov byte [ebp - 4], 2
call fcn.00494ccb
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
add esp, 4
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_YAML::detail::memory_holder_.0
mov dword [eax + 0xc], esi
mov dword [edi + 4], esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
lea ecx, [edi + 0x1c]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 6
mov dword [edi + 0x34], 0
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], 0
cmp eax, dword [ecx + 8]
je 0x46a85f
mov dword [eax], 0
mov eax, edi
add dword [ecx + 4], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.004636a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x478e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9070
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50f060]
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 edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x14]
mov dword [ebp - 0x2c], edi
mov dword [edi], ebx
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00494ccb
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
push 0x800
mov dword [ebp - 4], 0
call fcn.004956ee
mov dword [edi + 0x28], eax
add esp, 8
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test byte [eax + ebx + 0xc], 6
jne 0x479099
xor edi, edi
xor esi, esi
mov ecx, ebx
call fcn.0046bb00
mov dword [ebp + edi*4 - 0x20], eax
inc edi
cmp eax, 0xffffffff
jne 0x478f30
mov ecx, 0x4d912f
mov edx, 0x4d91d4
jmp 0x478fb6
cmp eax, 0xef
jg 0x478f7d
je 0x478f71
mov ecx, eax
sub ecx, 0
je 0x478f65
sub ecx, 0xbb
je 0x478f59
sub ecx, 4
jne 0x478f8c
mov ecx, 0x4d912a
mov edx, 0x4d91c0
jmp 0x478fb6
mov ecx, 0x4d9129
mov edx, 0x4d91bc
jmp 0x478fb6
mov ecx, 0x4d9128
mov edx, 0x4d91b8
jmp 0x478fb6
mov ecx, 0x4d912b
mov edx, 0x4d91c4
jmp 0x478fb6
mov ecx, eax
sub ecx, 0xfe
je 0x478fac
sub ecx, 1
je 0x478fa0
dec eax
cmp eax, 0xfd
ja 0x478f21
mov ecx, 0x4d912e
mov edx, 0x4d91d0
jmp 0x478fb6
mov ecx, 0x4d912d
mov edx, 0x4d91cc
jmp 0x478fb6
mov ecx, 0x4d912c
mov edx, 0x4d91c8
mov eax, esi
movsx esi, byte [ecx + esi*8]
shl eax, 5
mov eax, dword [eax + edx]
mov dword [ebp - 0x28], eax
test esi, esi
jle 0x479001
mov eax, dword [ebx]
xor edx, edx
push 0
mov ecx, dword [eax + 4]
mov eax, 4
add ecx, ebx
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00407180
mov eax, dword [ebp + edi*4 - 0x24]
dec edi
mov cl, al
cmp eax, 0xffffffff
je 0x478ff9
push ecx
mov ecx, ebx
call fcn.00479920
dec esi
test esi, esi
jg 0x478fe5
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x4d9114], 0
mov esi, eax
je 0x478f10
add eax, 0xfffffffc
cmp eax, 0xd
ja case.0x47901f.6
movzx eax, byte [eax + 0x4790d4]
jmp dword [eax*4 + 0x4790bc]
mov esi, dword [ebp - 0x24]
mov ecx, esi
push 0
mov dword [esi + 0x10], 1
call fcn.004725c0
mov eax, esi
jmp 0x47909b
mov esi, dword [ebp - 0x24]
mov ecx, esi
push 0
mov dword [esi + 0x10], 2
call fcn.004725c0
mov eax, esi
jmp 0x47909b
mov esi, dword [ebp - 0x24]
mov ecx, esi
push 0
mov dword [esi + 0x10], 3
call fcn.004725c0
mov eax, esi
jmp 0x47909b
mov esi, dword [ebp - 0x24]
mov ecx, esi
push 0
mov dword [esi + 0x10], 4
call fcn.004725c0
mov eax, esi
jmp 0x47909b
mov esi, dword [ebp - 0x24]
mov ecx, esi
push 0
mov dword [esi + 0x10], 0
call fcn.004725c0
mov eax, esi
jmp 0x47909b
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.00494cb1
mov esp, ebp
pop ebp
ret 4
Function at 0x495b51
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x495b90
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x495b90
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x495b90
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x495b90
cmp dword [ecx + 0x74], 0xe
jbe 0x495b90
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4a09e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00495db0
mov eax, dword [0x50f060]
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.004b1857
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a0a2a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a0b86
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c3540
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 + 0x512958]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004b1c60
mov ecx, dword [esi*4 + 0x512958]
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 0x4a0b7f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a0b7f
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 0x4a0b7f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b1c60
add esp, 0x14
test edx, edx
jl 0x4a0b7f
jg 0x4a0af5
test eax, eax
jb 0x4a0b7f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a0b7f
jl 0x4a0b0f
cmp dword [ebp - 0x1008], eax
ja 0x4a0b7f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a0b2d
test ebx, ebx
je 0x4a0b66
cmp ecx, edi
jae 0x4a0b66
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a0b47
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a0b53
cmp byte [ecx + 1], 0xa
jne 0x4a0b53
inc ecx
jmp 0x4a0b53
movzx eax, al
movsx eax, byte [eax + 0x50f2c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a0b2d
cmp edx, ebx
jne 0x4a0b2d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a0b84
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00494cb1
leave
ret
Function at 0x4b2305
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 + 0x512958]
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 0x4b2345
cmp byte [ebx], 0xa
jne 0x4b2345
or byte [eax + edi + 0x28], 4
jmp 0x4b234a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b2448
mov al, byte [edx]
cmp al, 0x1a
je 0x4b242a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b2379
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b239e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b23a8
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 0x4b235b
jmp 0x4b2448
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 0x4b2425
cmp dword [ebp - 0xc], 0
je 0x4b2425
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x512958]
test byte [eax + edi + 0x28], 0x48
je 0x4b23ff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b23ea
mov byte [esi], dl
jmp 0x4b23fb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x512958]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b2448
cmp byte [ebp - 1], 0xa
jne 0x4b240e
cmp esi, ebx
jne 0x4b240e
mov byte [esi], 0xa
jmp 0x4b2447
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b1c7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b2448
mov byte [esi], 0xd
jmp 0x4b2447
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x512958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b2444
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b2448
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b2451
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 + 0x512958]
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 0x4b2494
cmp word [esi], dx
jne 0x4b2494
or byte [edi + eax + 0x28], 4
jmp 0x4b2499
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 0x4b25ec
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 0x4b25cc
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b24db
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b2511
cmp eax, edx
jae 0x4b251d
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 0x4b24b3
jmp 0x4b25ec
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 0x4b25c8
cmp dword [ebp - 0x14], 0
je 0x4b25c8
mov eax, dword [ebx*4 + 0x512958]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b25a0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b2569
mov word [esi], cx
jmp 0x4b259c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x512958]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x512958]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x512958]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b25ec
pop ebx
cmp word [ebp - 4], bx
jne 0x4b25b1
cmp esi, dword [ebp + 0xc]
jne 0x4b25b1
mov word [esi], bx
jmp 0x4b25e9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b1c7e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b25ec
push 0xd
jmp 0x4b25e5
mov ecx, dword [ebx*4 + 0x512958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b25e3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b25ec
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 0x4b3da8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b3c19
Function at 0x4b6190
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d14d8
push 0x4d14d0
push str.FlsAlloc
push 0x1e
call fcn.004b5ffd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b61c4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ca1c8]
call esi
jmp 0x4b61ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b620e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d14e8
push 0x4d14e0
push str.FlsGetValue
push 0x20
call fcn.004b5ffd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b6245
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ca1c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4baec8
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 0x4baf65
push ebx
push esi
call fcn.004bae91
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.004b72af
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4baf12
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4baf64
push edi
push eax
call fcn.004b4db5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4baf32
call fcn.004b36a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4baf63
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004b72af
add esp, 0x20
test eax, eax
jne 0x4baf51
push edi
call fcn.004b36a8
jmp 0x4baf59
push ebx
call fcn.004b36a8
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

Function at 0x4baf68
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4baf79
pop esi
ret
push ebx
push edi
push esi
call fcn.004bae91
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b4db5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4bafa1
push ebx
push esi
push edi
call fcn.00496b80
add esp, 0xc
push 0
call fcn.004b36a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4bb6ed
Capabilities:
Set environment variable

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