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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4500f5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x468080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x411db7
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x411dd5
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x411dc3
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00411cf0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x411e06
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 [ebx + 8], 0x71c71c7
je 0x411f5f
lea eax, [ebx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x1c], 0
call fcn.0042984d
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00407090
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x45b9a0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x45b9a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x411f01
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.00448f00
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0044aec0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x411ee5
cmp eax, 0x200
jae 0x411ee3
shl eax, 3
cmp eax, ecx
jae 0x411ee5
mov eax, ecx
push eax
mov ecx, ebx
call fcn.004122e0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00411cf0
mov edx, dword [eax]
jmp 0x411f04
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x411f2c
mov dword [ecx + eax*8], edi
jmp 0x411f3e
cmp esi, edx
jne 0x411f35
mov dword [ecx + eax*8], edi
jmp 0x411f42
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x411f42
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.00428556
int3
Function at 0x414170
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450338
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x468080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
lea edi, [eax + 4]
push ebx
mov ecx, edi
mov dword [eax], vtable.sherpa_onnx::AudioTaggingCEDImpl.0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00407090
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
push eax
call fcn.00407090
mov byte [ebp - 4], 1
lea ecx, [edi + 0x38]
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x30], eax
mov al, byte [ebx + 0x34]
mov byte [edi + 0x34], al
lea eax, [ebx + 0x38]
push eax
call fcn.00407090
lea esi, [ebx + 0x50]
mov dword [ebp - 4], 2
lea ecx, [edi + 0x50]
push esi
call fcn.00407090
mov eax, dword [ebx + 0x68]
mov dword [edi + 0x68], eax
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x10]
push 0x94
call fcn.0042984d
add esp, 4
mov dword [ebp + 8], eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0041cca0
lea ebx, [edi + 0x70]
mov dword [ebx], eax
push esi
lea ecx, [edi + 0x74]
mov byte [ebp - 4], 5
call fcn.0041c490
mov ecx, dword [edi + 0x78]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x74]
imul ecx
mov eax, dword [ebx]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [eax + 0x90], ecx
jne 0x41426e
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x21
push str.AudioTaggingCEDImpl
push str.D:_a_sherpa_onnx_sherpa_onnx_sherpa_onnx_csrc_audio_tagging_ced_impl.h
push str._s:_s:_d
push 2
call fcn.0042e870
add esp, 4
push eax
call fcn.004010b0
add esp, 0x14
lea ecx, [edi + 0x74]
call fcn.00413db0
mov ecx, ebx
mov edi, eax
call fcn.0041ba10
push 2
mov esi, eax
call fcn.0042e870
push edi
push esi
push str.number_of_classes:__d__model_____d__label_file_
push eax
call fcn.004010b0
add esp, 0x14
push 0x45a2e4
push 2
call fcn.0042e870
add esp, 4
push eax
call fcn.004010b0
add esp, 8
push 0xffffffffffffffff
call fcn.0042e792
int3
Function at 0x414740
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450338
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x468080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
lea edi, [eax + 4]
push ebx
mov ecx, edi
mov dword [eax], vtable.sherpa_onnx::AudioTaggingZipformerImpl.0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00407090
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
push eax
call fcn.00407090
mov byte [ebp - 4], 1
lea ecx, [edi + 0x38]
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x30], eax
mov al, byte [ebx + 0x34]
mov byte [edi + 0x34], al
lea eax, [ebx + 0x38]
push eax
call fcn.00407090
lea esi, [ebx + 0x50]
mov dword [ebp - 4], 2
lea ecx, [edi + 0x50]
push esi
call fcn.00407090
mov eax, dword [ebx + 0x68]
mov dword [edi + 0x68], eax
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x10]
push 0x94
call fcn.0042984d
add esp, 4
mov dword [ebp + 8], eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0041b1e0
lea ebx, [edi + 0x70]
mov dword [ebx], eax
push esi
lea ecx, [edi + 0x74]
mov byte [ebp - 4], 5
call fcn.0041c490
mov ecx, dword [edi + 0x78]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x74]
imul ecx
mov eax, dword [ebx]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [eax + 0x90], ecx
jne 0x41483e
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x21
push str.AudioTaggingZipformerImpl
push str.D:_a_sherpa_onnx_sherpa_onnx_sherpa_onnx_csrc_audio_tagging_zipformer_impl.h
push str._s:_s:_d
push 2
call fcn.0042e870
add esp, 4
push eax
call fcn.004010b0
add esp, 0x14
lea ecx, [edi + 0x74]
call fcn.00413db0
mov ecx, ebx
mov edi, eax
call fcn.0041ba10
push 2
mov esi, eax
call fcn.0042e870
push edi
push esi
push str.number_of_classes:__d__model_____d__label_file_
push eax
call fcn.004010b0
add esp, 0x14
push 0x45a2e4
push 2
call fcn.0042e870
add esp, 4
push eax
call fcn.004010b0
add esp, 8
push 0xffffffffffffffff
call fcn.0042e792
int3
Function at 0x4177a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450975
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x468080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x4177d7
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x4177f5
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x4177e3
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00411cf0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x417826
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 [ebx + 8], 0x6666666
je 0x417980
lea eax, [ebx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x1c], 0
call fcn.0042984d
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00407090
xorps xmm0, xmm0
movsd qword [edi + 0x20], xmm0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x45b9a0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x45b9a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x417922
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.00448f00
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0044aec0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x417906
cmp eax, 0x200
jae 0x417904
shl eax, 3
cmp eax, ecx
jae 0x417906
mov eax, ecx
push eax
mov ecx, ebx
call fcn.004122e0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00411cf0
mov edx, dword [eax]
jmp 0x417925
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x41794d
mov dword [ecx + eax*8], edi
jmp 0x41795f
cmp esi, edx
jne 0x417956
mov dword [ecx + eax*8], edi
jmp 0x417963
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x417963
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.00428556
int3
Function at 0x421670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45172e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x468080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov dword [ebp - 0x14], edi
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
movzx eax, byte [ebx + 0x14]
mov byte [edi + 0x14], al
lea eax, [ebx + 0x18]
push eax
call fcn.00407090
movzx eax, byte [ebx + 0x30]
mov byte [edi + 0x30], al
mov eax, dword [ebx + 0x34]
mov dword [edi + 0x34], eax
movzx eax, byte [ebx + 0x38]
mov byte [edi + 0x38], al
mov dword [ebp - 4], 0
lea ecx, [edi + 0x54]
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x4c]
mov dword [edi + 0x4c], eax
movzx eax, byte [ebx + 0x50]
mov byte [edi + 0x50], al
movzx eax, byte [ebx + 0x51]
mov byte [edi + 0x51], al
movzx eax, byte [ebx + 0x52]
mov byte [edi + 0x52], al
lea eax, [ebx + 0x54]
push eax
call fcn.00407090
movzx eax, byte [ebx + 0x6c]
mov byte [edi + 0x6c], al
mov eax, dword [ebx + 0x70]
mov dword [edi + 0x70], eax
movzx eax, byte [ebx + 0x74]
mov byte [edi + 0x74], al
movzx eax, byte [ebx + 0x75]
mov byte [edi + 0x75], al
movzx eax, byte [ebx + 0x76]
mov byte [edi + 0x76], al
movzx eax, byte [ebx + 0x77]
mov byte [edi + 0x77], al
lea esi, [edi + 0x7c]
mov dword [ebp - 4], 1
push 0x18
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042984d
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 2
cmp byte [ebx + 0x30], 0
movss xmm0, dword [ebx]
movss xmm1, dword [ebx + 8]
je 0x4217d3
mulss xmm0, dword [0x45b95c]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
not ecx
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or ecx, eax
inc ecx
jmp 0x4217e3
mulss xmm0, dword [0x45b86c]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
push ecx
lea ecx, [edi + 0x84]
call fcn.00423040
mov byte [ebp - 4], 3
movss xmm0, dword [ebx + 0x70]
comiss xmm0, dword [0x45b858]
jbe 0x42180b
call fcn.004207b0
movss dword [edi + 0x78], xmm0
movss xmm1, dword [0x45b880]
mov ecx, edi
call fcn.004218d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a725
Capabilities:
Parse pe header

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

Function at 0x43add3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x455cb0
push 0x455ca8
push str.FlsAlloc
push 0x1e
call fcn.0043ac40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ae07
push dword [ebp + 8]
mov ecx, esi
call dword [0x452140]
call esi
jmp 0x43ae0d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43ae51
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x455cc0
push 0x455cb8
push str.FlsGetValue
push 0x20
call fcn.0043ac40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ae88
push dword [ebp + 8]
mov ecx, esi
call dword [0x452140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43e7c2
Capabilities:
Read file on windows

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

Function at 0x43ebbc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042a890
mov eax, dword [0x468080]
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.0043c2f7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43ebfe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43ed5a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044ab30
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 + 0x469c30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0043f99d
mov ecx, dword [esi*4 + 0x469c30]
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 0x43ed53
cmp eax, dword [edi + ecx + 0x24]
jne 0x43ed53
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 0x43ed53
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043f99d
add esp, 0x14
test edx, edx
jl 0x43ed53
jg 0x43ecc9
test eax, eax
jb 0x43ed53
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43ed53
jl 0x43ece3
cmp dword [ebp - 0x1008], eax
ja 0x43ed53
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43ed01
test ebx, ebx
je 0x43ed3a
cmp ecx, edi
jae 0x43ed3a
mov al, byte [ecx]
cmp al, 0xd
jne 0x43ed1b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43ed27
cmp byte [ecx + 1], 0xa
jne 0x43ed27
inc ecx
jmp 0x43ed27
movzx eax, al
movsx eax, byte [eax + 0x468348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43ed01
cmp edx, ebx
jne 0x43ed01
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43ed58
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042983f
leave
ret
Function at 0x43ee55
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 + 0x469c30]
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 0x43ee95
cmp byte [ebx], 0xa
jne 0x43ee95
or byte [eax + edi + 0x28], 4
jmp 0x43ee9a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43ef98
mov al, byte [edx]
cmp al, 0x1a
je 0x43ef7a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43eec9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43eeee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43eef8
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 0x43eeab
jmp 0x43ef98
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 0x43ef75
cmp dword [ebp - 0xc], 0
je 0x43ef75
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x469c30]
test byte [eax + edi + 0x28], 0x48
je 0x43ef4f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43ef3a
mov byte [esi], dl
jmp 0x43ef4b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x469c30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43ef98
cmp byte [ebp - 1], 0xa
jne 0x43ef5e
cmp esi, ebx
jne 0x43ef5e
mov byte [esi], 0xa
jmp 0x43ef97
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f9bb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43ef98
mov byte [esi], 0xd
jmp 0x43ef97
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x469c30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43ef94
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43ef98
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43efa1
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 + 0x469c30]
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 0x43efe4
cmp word [esi], dx
jne 0x43efe4
or byte [edi + eax + 0x28], 4
jmp 0x43efe9
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 0x43f122
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 0x43f102
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43f02b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43f061
cmp eax, edx
jae 0x43f06d
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 0x43f003
jmp 0x43f122
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 0x43f0fe
cmp dword [ebp - 0x14], 0
je 0x43f0fe
mov eax, dword [ebx*4 + 0x469c30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43f0d6
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x43f11c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x469c30]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x469c30]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x469c30]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x43f11f
pop ebx
cmp word [ebp - 4], bx
jne 0x43f0e7
cmp esi, dword [ebp + 0xc]
jne 0x43f0e7
mov word [esi], bx
jmp 0x43f11f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043f9bb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43f122
push 0xd
jmp 0x43f11b
mov ecx, dword [ebx*4 + 0x469c30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43f119
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43f122
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 0x442418
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 0x4424b5
push ebx
push esi
call fcn.004423e1
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.00441066
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x442462
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4424b4
push edi
push eax
call fcn.0043b406
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x442482
call fcn.0043a965
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4424b3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00441066
add esp, 0x20
test eax, eax
jne 0x4424a1
push edi
call fcn.0043a965
jmp 0x4424a9
push ebx
call fcn.0043a965
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