joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b8c0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x44b91a
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x44b8f4
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x44b8f4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x44b8f4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x64]
add ebx, 0x40
test ecx, ecx
je 0x44b913
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebx + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x44b95f
push dword [0x4a2a14]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44b94f
mov edx, dword [eax + 4]
test edx, edx
je 0x44b94f
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x44b963
inc eax
cmp eax, 6
jl 0x44b940
push esi
call fcn.00458abe
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x88]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x44b980
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x44b99a
add ecx, 8
call fcn.00446030
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x44b9df
push dword [0x4a2a14]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44b9cf
mov edx, dword [eax + 4]
test edx, edx
je 0x44b9cf
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x44b9e2
inc eax
cmp eax, 6
jl 0x44b9c0
push esi
call fcn.00458abe
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x44bb50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483b55
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x49d140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push dword [0x4a29ec]
mov edi, dword [eax + 0x2c]
lea ebx, [eax + 0x2c]
mov ecx, dword [eax + 0x28]
lea esi, [eax + 0x30]
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44bbab
nop word [eax + eax]
cmp dword [eax], edi
je 0x44bbf2
mov eax, dword [eax + 8]
test eax, eax
jne 0x44bba0
push esi
push 0x50
mov dword [ebp - 0x18], esi
call fcn.0040c9d0
add esp, 4
mov dword [ebp - 4], 1
mov ecx, eax
push esi
call fcn.00444450
mov ecx, dword [ebp + 8]
push eax
push ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.00411b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x44bbab
push esi
push esi
mov dword [ebp - 4], 0
call fcn.004478f0
add esp, 8
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 0x452470
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4842ad
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x49d140]
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 - 0x30], ebx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x34], eax
call fcn.004177a0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00450e80
cmp dword [ebp - 0x14], 0xf
lea edi, [ebp - 0x28]
lea eax, [ebx + 0xe0]
mov edx, 0x811c9dc5
cmova edi, dword [ebp - 0x28]
xor ecx, ecx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x452504
nop word [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4524f0
mov eax, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00452f00
mov eax, dword [eax + 4]
test eax, eax
jne 0x452521
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x30]
cmp eax, dword [ecx + 0xe4]
je 0x452588
push 0x65
push str.RegisterCommon
push str.D:_a_sherpa_onnx_sherpa_onnx_sherpa_onnxcsrcparse_options.cc
push str._s:_s:_d
push 2
call fcn.00460c71
add esp, 4
push eax
call fcn.004015a0
add esp, 0x14
cmp dword [esi + 0x14], 0xf
jbe 0x452558
mov esi, dword [esi]
push 2
call fcn.00460c71
push esi
push str.Registering_option_twice__ignoring_second_time:__s
push eax
call fcn.004015a0
add esp, 0x10
push 0x48e8f8
push 2
call fcn.00460c71
add esp, 4
push eax
call fcn.004015a0
add esp, 8
jmp 0x452599
push ecx
push dword [ebp - 0x34]
lea eax, [ebp - 0x28]
push dword [ebp - 0x38]
push eax
push esi
call fcn.0044f140
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4525c9
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4525bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4525e7
push ecx
push edx
call fcn.00458ac3
add esp, 8
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.00458460
mov esp, ebp
pop ebp
ret 0x10
call fcn.0046546a
int3
Function at 0x452af0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4842ad
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x49d140]
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 - 0x30], ebx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x34], eax
call fcn.004177a0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00450e80
cmp dword [ebp - 0x14], 0xf
lea edi, [ebp - 0x28]
lea eax, [ebx + 0xe0]
mov edx, 0x811c9dc5
cmova edi, dword [ebp - 0x28]
xor ecx, ecx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x452b84
nop word [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x452b70
mov eax, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00452f00
mov eax, dword [eax + 4]
test eax, eax
jne 0x452ba1
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x30]
cmp eax, dword [ecx + 0xe4]
je 0x452c0b
push 0x65
push str.RegisterCommon
push str.D:_a_sherpa_onnx_sherpa_onnx_sherpa_onnxcsrcparse_options.cc
push str._s:_s:_d
push 2
call fcn.00460c71
add esp, 4
push eax
call fcn.004015a0
add esp, 0x14
cmp dword [esi + 0x14], 0xf
jbe 0x452bd8
mov esi, dword [esi]
push 2
call fcn.00460c71
add esp, 4
push esi
push str.Registering_option_twice__ignoring_second_time:__s
push eax
call fcn.004015a0
add esp, 0xc
push 0x48e8f8
push 2
call fcn.00460c71
add esp, 4
push eax
call fcn.004015a0
add esp, 8
jmp 0x452c1e
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
push esi
call fcn.0044f3e0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x452c4e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x452c44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452c6c
push ecx
push edx
call fcn.00458ac3
add esp, 8
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.00458460
mov esp, ebp
pop ebp
ret 0x10
call fcn.0046546a
int3
Function at 0x452f90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484395
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49d140]
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 0x452fc7
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x452fe5
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x452fd3
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00452f00
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x453016
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 0x45316f
lea eax, [ebx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x1c], 0
call fcn.00458728
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.004177a0
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 + 0x491b10]
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 + 0x491b10]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x453111
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.0047b340
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0047d420
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x4530f5
cmp eax, 0x200
jae 0x4530f3
shl eax, 3
cmp eax, ecx
jae 0x4530f5
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00453410
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00452f00
mov edx, dword [eax]
jmp 0x453114
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 0x45313c
mov dword [ecx + eax*8], edi
jmp 0x45314e
cmp esi, edx
jne 0x453145
mov dword [ecx + eax*8], edi
jmp 0x453152
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x453152
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.0045743e
int3
Function at 0x455bf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4847a5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49d140]
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 0x455c27
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x455c45
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x455c33
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00452f00
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x455c76
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 0x455dd0
lea eax, [ebx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x1c], 0
call fcn.00458728
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.004177a0
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 + 0x491b10]
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 + 0x491b10]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x455d72
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.0047b340
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0047d420
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x455d56
cmp eax, 0x200
jae 0x455d54
shl eax, 3
cmp eax, ecx
jae 0x455d56
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00453410
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00452f00
mov edx, dword [eax]
jmp 0x455d75
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 0x455d9d
mov dword [ecx + eax*8], edi
jmp 0x455daf
cmp esi, edx
jne 0x455da6
mov dword [ecx + eax*8], edi
jmp 0x455db3
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x455db3
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.0045743e
int3
Function at 0x456e06
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x456e2d
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x456e30
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00456de2
pop esi
leave
ret 8

Function at 0x45948f
Capabilities:
Parse pe header

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

Function at 0x46c8c8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4894f0
push 0x4894e8
push str.FlsAlloc
push 0x1e
call fcn.0046c6f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c8fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x485224]
call esi
jmp 0x46c902
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46c946
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x489500
push 0x4894f8
push str.FlsGetValue
push 0x20
call fcn.0046c6f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c97d
push dword [ebp + 8]
mov ecx, esi
call dword [0x485224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x470d4c
Capabilities:
Read file on windows

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

Function at 0x471146
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004596a0
mov eax, dword [0x49d140]
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.0046ed77
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x471188
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4712e4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047cef0
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 + 0x4a2630]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00471f27
mov ecx, dword [esi*4 + 0x4a2630]
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 0x4712dd
cmp eax, dword [edi + ecx + 0x24]
jne 0x4712dd
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 0x4712dd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00471f27
add esp, 0x14
test edx, edx
jl 0x4712dd
jg 0x471253
test eax, eax
jb 0x4712dd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4712dd
jl 0x47126d
cmp dword [ebp - 0x1008], eax
ja 0x4712dd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47128b
test ebx, ebx
je 0x4712c4
cmp ecx, edi
jae 0x4712c4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4712a5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4712b1
cmp byte [ecx + 1], 0xa
jne 0x4712b1
inc ecx
jmp 0x4712b1
movzx eax, al
movsx eax, byte [eax + 0x49d5b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47128b
cmp edx, ebx
jne 0x47128b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4712e2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00458460
leave
ret
Function at 0x4713df
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 + 0x4a2630]
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 0x47141f
cmp byte [ebx], 0xa
jne 0x47141f
or byte [eax + edi + 0x28], 4
jmp 0x471424
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x471522
mov al, byte [edx]
cmp al, 0x1a
je 0x471504
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x471453
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x471478
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x471482
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 0x471435
jmp 0x471522
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 0x4714ff
cmp dword [ebp - 0xc], 0
je 0x4714ff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a2630]
test byte [eax + edi + 0x28], 0x48
je 0x4714d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4714c4
mov byte [esi], dl
jmp 0x4714d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a2630]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x471522
cmp byte [ebp - 1], 0xa
jne 0x4714e8
cmp esi, ebx
jne 0x4714e8
mov byte [esi], 0xa
jmp 0x471521
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00471f45
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x471522
mov byte [esi], 0xd
jmp 0x471521
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a2630]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47151e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x471522
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47152b
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 + 0x4a2630]
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 0x47156e
cmp word [esi], dx
jne 0x47156e
or byte [edi + eax + 0x28], 4
jmp 0x471573
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 0x4716ac
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 0x47168c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4715b5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4715eb
cmp eax, edx
jae 0x4715f7
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 0x47158d
jmp 0x4716ac
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 0x471688
cmp dword [ebp - 0x14], 0
je 0x471688
mov eax, dword [ebx*4 + 0x4a2630]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x471660
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4716a6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4a2630]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4a2630]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4a2630]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4716a9
pop ebx
cmp word [ebp - 4], bx
jne 0x471671
cmp esi, dword [ebp + 0xc]
jne 0x471671
mov word [esi], bx
jmp 0x4716a9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00471f45
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4716ac
push 0xd
jmp 0x4716a5
mov ecx, dword [ebx*4 + 0x4a2630]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4716a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4716ac
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