joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ffa00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov dword [eax], ecx
mov ebx, dword [eax + 4]
mov dword [eax + 4], ecx
lea edi, [ebx + 1]
cmp edi, 2
jb 0x5ffa2c
call fcn.005e42e0
cmp dword [esi + 4], ebx
je 0x5ffa58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
inc ecx
cmp ecx, 2
jae 0x5ffa64
cmp edi, 2
jb 0x5ffa51
mov dword [esi + 4], ebx
mov edi, eax
call fcn.005e42e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.005e42e0
push dword [esi + 4]
call fcn.005f2830
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 4], 0
jmp 0x5ffa40

Function at 0x5ffa90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi], ecx
xor ecx, ecx
mov dword [eax], ecx
mov ebx, dword [eax + 4]
mov dword [eax + 4], ecx
lea edi, [ebx + 1]
cmp edi, 2
jb 0x5ffab7
call fcn.005e42e0
cmp dword [esi + 4], ebx
je 0x5ffae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
inc ecx
cmp ecx, 2
jae 0x5ffaef
cmp edi, 2
jb 0x5ffadc
mov dword [esi + 4], ebx
mov edi, eax
call fcn.005e42e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.005e42e0
push dword [esi + 4]
call fcn.005f2830
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 4], 0
jmp 0x5ffacb

Function at 0x5ffb10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov dword [ecx], 1
xor eax, eax
mov dword [ecx + 4], eax
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
lea edi, [ebx + 1]
cmp edi, 2
jb 0x5ffb37
call fcn.005e42e0
lea ecx, [ebp + 8]
cmp dword [esi + 4], ebx
je 0x5ffb69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
inc ecx
cmp ecx, 2
jae 0x5ffb7d
cmp edi, 2
jb 0x5ffb5f
mov dword [esi + 4], ebx
mov edi, eax
call fcn.005e42e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp + 8]
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x5ffb9c
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.005e42e0
push dword [esi + 4]
call fcn.005f2830
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 4], 0
jmp 0x5ffb4e
mov edi, ecx
call fcn.005e42e0
push dword [edi]
call fcn.005f2830
add esp, 4
mov dword [edi], 0
jmp 0x5ffb71
Function at 0x602ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x602bd8
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x793378]
inc esi
cmp ecx, esi
jne 0x602bc0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x605c40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x7bca30]
mov ecx, dword [0x7ae174]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x605c6b
mov ecx, 0x7bca28
pop ebp
jmp fcn.005494f0
push 0x7bca30
call fcn.0064cde7
add esp, 4
cmp dword [0x7bca30], 0xffffffff
jne 0x605c60
xor eax, eax
mov dword [0x7bca2c], eax
mov dword [0x7bca28], eax
mov ecx, 0x7bca28
push eax
call fcn.00549590
push 0x7bca30
call fcn.0064ce5d
add esp, 4
jmp 0x605c60

Function at 0x6062b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [0x7aa024]
xor ecx, ebp
mov dword [esp + 0x68], ecx
lea ecx, [edi - 4]
pcmpeqd xmm0, xmm0
movdqu xmmword [esi], xmm0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.006064d0
sub esp, 0xc
cmp byte [esi], 0
jne 0x60630d
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [edi + 0x27c]
add ebx, dword [edi + 0x280]
mov esi, dword [edi + 0x270]
mov ecx, 0xaaaaaaab
mov eax, ebx
mul ecx
shr edx, 4
mov dword [esp + 0x30], edx
mov ecx, dword [esi + edx*4]
cmp dword [edi + 0x274], esi
je 0x606382
mov eax, ebx
mov edx, 0xaaaaaaab
mul edx
shr edx, 1
and edx, 0xfffffff8
lea eax, [edx + edx*2]
sub ebx, eax
imul ebx, ebx, 0xa8
add ebx, ecx
cmp ecx, ebx
je 0x606386
test byte [0x7ad1cc], 0x19
mov esi, dword [ebp + 8]
je 0x6062f6
movzx eax, byte [ebx - 8]
mov dword [esp + 0x30], str.RunControlPriorityTask
jmp dword [eax*4 + 0x793fbc]
xor ebx, ebx
jmp 0x606355
mov ebx, 0xfc0
mov eax, dword [esp + 0x30]
add ebx, dword [esi + eax*4 - 4]
jmp 0x606359
Function at 0x60d7f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
movzx eax, byte [ecx + 0x27]
test al, al
js 0x60d8a8
test eax, eax
jne 0x60d89d
cmp dword [esi + 0x28], 0
jne 0x60d89d
mov byte [esi + 0x2c], 0
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
je 0x60d8d7
lea edi, [esi + 0x10]
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.005deec0
cmp eax, 0xffffffff
jne 0x60d8c8
cmp dword [esi + 0x30], 1
je 0x60d8b0
mov eax, dword [esi + 8]
mov bl, 1
cmp eax, dword [esi + 0xc]
je 0x60d8dd
nop dword [eax]
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.005deec0
cmp eax, 0xffffffff
jne 0x60d8dd
mov eax, dword [esi + 8]
cmp dword [esi + 0x30], 1
je 0x60d886
inc eax
mov dword [esi + 8], eax
cmp eax, dword [esi + 0xc]
jne 0x60d860
jmp 0x60d8dd
movzx ecx, byte [eax]
add ecx, 0xfffffff7
cmp ecx, 0x17
ja 0x60d87b
mov edx, 0x80001b
bt edx, ecx
jae 0x60d87b
jmp 0x60d8dd
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.006d3cd0
mov eax, dword [esi + 0x20]
jmp 0x60d804
mov eax, dword [esi + 4]
movzx eax, byte [eax]
add eax, 0xfffffff7
cmp eax, 0x17
ja 0x60d84e
mov ecx, 0x80001b
bt ecx, eax
jae 0x60d84e
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
jne 0x60d82c
mov byte [esi + 0x2c], 1
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x60da60
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0xb]
test dl, dl
jns 0x60da7c
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov eax, edx
mov ebx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
cmp edx, 4
jb 0x60dac6
mov ebx, dword [ebp - 0x14]
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
nop word cs:[eax + eax]
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ebx, ebx, 0x5bd1e995
xor ebx, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x60daa0
cmp edx, 1
je 0x60dae9
cmp edx, 3
je 0x60dad7
cmp edx, 2
jne 0x60daf4
jmp 0x60dae0
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor ebx, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor ebx, edx
movzx ecx, byte [ecx]
xor ecx, ebx
imul ebx, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x10]
xor eax, eax
test ecx, ecx
je 0x60dc17
mov edx, ebx
shr edx, 0xd
xor edx, ebx
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov edx, ecx
shr edx, 1
and edx, 0x55555555
mov eax, ecx
sub eax, edx
mov edx, 0x33333333
mov edi, eax
and edi, edx
shr eax, 2
and eax, edx
add eax, edi
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x2c], eax
cmp eax, 1
ja 0x60db8b
lea edx, [ecx - 1]
and edx, esi
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x60dc15
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], ecx
mov edi, dword [eax]
test edi, edi
mov eax, 0
je 0x60dc17
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x28], eax
jmp 0x60dbaa
mov edx, esi
cmp esi, ecx
mov ebx, dword [ebp - 0x14]
jb 0x60db5c
mov eax, esi
xor edx, edx
div ecx
jmp 0x60db5c
and eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jne 0x60dc15
mov edi, dword [edi]
test edi, edi
je 0x60dc15
mov eax, dword [edi + 4]
cmp esi, eax
jne 0x60dbe5
movzx eax, byte [edi + 0x13]
mov ecx, eax
test al, al
jns 0x60dbbe
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jne 0x60dba4
lea ecx, [edi + 8]
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
jns 0x60dbfa
test ebx, ebx
je 0x60dbfe
push ebx
push dword [ebp - 0x1c]
push ecx
call fcn.0064f16d
add esp, 0xc
test eax, eax
jne 0x60dba4
jmp 0x60dbfe
cmp dword [ebp - 0x2c], 1
jbe 0x60db9c
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jb 0x60db9f
xor edx, edx
div ecx
mov eax, edx
jmp 0x60db9f
test eax, eax
jne 0x60dc03
mov eax, dword [edi + 0x14]
jmp 0x60dc17
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], dl
jne 0x60dba4
dec eax
xor ecx, ecx
cmp eax, ecx
jne 0x60dc21
test edi, edi
jne 0x60dbfe
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dl, byte [edi + ecx + 9]
mov byte [ebp - 0xd], dl
lea edx, [ecx + 1]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x1c]
mov bl, byte [ebp - 0xd]
cmp bl, byte [edx + ecx + 1]
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x14]
je 0x60dc0d
jmp 0x60dba4
Function at 0x618350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x618386
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
nop word [eax + eax]
movzx ebx, byte [edx + edi]
xor bl, byte [esi + edi]
movzx ebx, bl
or eax, ebx
inc edi
cmp ecx, edi
jne 0x618370
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x618381

Function at 0x6185f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [eax], 0x582950
push 0
push eax
push 0x5827b0
push 0x7be39c
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x618669
xor esi, esi
cmp dword [0x7be3a0], 0
jne 0x618655
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x7be3a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x618655
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.006626d0
int3
Function at 0x61e790
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [0x7be584]
cmp esi, 1
jbe 0x61e7ac
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005494f0
push 0x7be584
call fcn.005413e0
add esp, 4
test al, al
je 0x61e7f2
xor edi, edi
mov dword [0x7be58c], edi
mov dword [0x7be588], edi
mov ebx, 0x7be584
mov esi, 0x7be588
mov ecx, 0x7be588
push edi
call fcn.00549590
push ebx
push edi
push 0x7be588
push ebx
call fcn.005414a0
add esp, 0x10
jmp 0x61e7a1
mov esi, dword [0x7be584]
jmp 0x61e7a1
Function at 0x65cca1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0065ce44
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x65ce19
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x65ce19
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x65cdc8
jg 0x65ccfa
test eax, eax
je 0x65cdbe
push 1
push 0x1000
call fcn.005f2c20
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x65cd20
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x65cdb5
push 0x8000
push ebx
call fcn.006627b4
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x65cd4c
jg 0x65cd47
cmp ecx, 0x1000
jb 0x65cd4c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0066688b
add esp, 0x10
cmp eax, 0xffffffff
je 0x65cd91
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x65cd47
jl 0x65cd78
test ecx, ecx
jne 0x65cd39
push dword [ebp - 0xc]
push ebx
call fcn.006627b4
push esi
call fcn.005f2b80
add esp, 0xc
xor edi, edi
jmp 0x65ce2a
cmp byte [edi + 0x24], 0
je 0x65cda8
cmp dword [edi + 0x20], 5
jne 0x65cda8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x65cdb3
mov edi, dword [edi + 0x18]
jmp 0x65cdb5
xor edi, edi
push esi
call fcn.005f2b80
pop ecx
jmp 0x65ce2a
test ecx, ecx
jg 0x65cd8a
jl 0x65cdc8
test eax, eax
jae 0x65cd8a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00661891
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x65cdeb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x65cd8a
jmp 0x65ce22
push ebx
call fcn.0066059d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x65cd8a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x65ce2a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x65ce27
mov edi, dword [edi + 0x18]
jmp 0x65ce2a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00661891
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x65fef3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x72f9c4
push esi
call fcn.0066bfe0
pop ecx
pop ecx
test eax, eax
jne 0x65ff21
xor al, al
jmp 0x65ff9e
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0065fc84
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x65ff5b
push dword [ebp - 0x210]
call fcn.005f2b80
xor al, al
jmp 0x65ff9c
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x65ff61
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x65ff81
push edx
call fcn.0065fe44
pop ecx
test al, al
je 0x65ff4c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x65ff8f
mov bl, 1
push dword [ebp - 0x210]
call fcn.005f2b80
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0064d372
leave
ret
Function at 0x6622a6
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 + 0x7aeb90]
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 0x6622e6
cmp byte [ebx], 0xa
jne 0x6622e6
or byte [eax + edi + 0x28], 4
jmp 0x6622eb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x6623e9
mov al, byte [edx]
cmp al, 0x1a
je 0x6623cb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x66231a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x66233f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x662349
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 0x6622fc
jmp 0x6623e9
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 0x6623c6
cmp dword [ebp - 0xc], 0
je 0x6623c6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7aeb90]
test byte [eax + edi + 0x28], 0x48
je 0x6623a0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x66238b
mov byte [esi], dl
jmp 0x66239c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7aeb90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6623e9
cmp byte [ebp - 1], 0xa
jne 0x6623af
cmp esi, ebx
jne 0x6623af
mov byte [esi], 0xa
jmp 0x6623e8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00661891
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6623e9
mov byte [esi], 0xd
jmp 0x6623e8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7aeb90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6623e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6623e9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6623f2
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 + 0x7aeb90]
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 0x662435
cmp word [esi], dx
jne 0x662435
or byte [edi + eax + 0x28], 4
jmp 0x66243a
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 0x662573
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 0x662553
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x66247c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6624b2
cmp eax, edx
jae 0x6624be
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 0x662454
jmp 0x662573
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 0x66254f
cmp dword [ebp - 0x14], 0
je 0x66254f
mov eax, dword [ebx*4 + 0x7aeb90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x662527
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x66256d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7aeb90]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x7aeb90]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7aeb90]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x662570
pop ebx
cmp word [ebp - 4], bx
jne 0x662538
cmp esi, dword [ebp + 0xc]
jne 0x662538
mov word [esi], bx
jmp 0x662570
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00661891
add esp, 0x10
cmp word [ebp - 4], bx
je 0x662573
push 0xd
jmp 0x66256c
mov ecx, dword [ebx*4 + 0x7aeb90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x66256a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x662573
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 0x668da1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0064e0b0
mov eax, dword [0x7aa024]
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.0065fbed
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x668de3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x668f3f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00674c80
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 + 0x7aeb90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.006618ef
mov ecx, dword [esi*4 + 0x7aeb90]
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 0x668f38
cmp eax, dword [edi + ecx + 0x24]
jne 0x668f38
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 0x668f38
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006618ef
add esp, 0x14
test edx, edx
jl 0x668f38
jg 0x668eae
test eax, eax
jb 0x668f38
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x668f38
jl 0x668ec8
cmp dword [ebp - 0x1008], eax
ja 0x668f38
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x668ee6
test ebx, ebx
je 0x668f1f
cmp ecx, edi
jae 0x668f1f
mov al, byte [ecx]
cmp al, 0xd
jne 0x668f00
lea eax, [edi - 1]
cmp ecx, eax
jae 0x668f0c
cmp byte [ecx + 1], 0xa
jne 0x668f0c
inc ecx
jmp 0x668f0c
movzx eax, al
movsx eax, byte [eax + 0x7aa290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x668ee6
cmp edx, ebx
jne 0x668ee6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x668f3d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0064d372
leave
ret

Function at 0x66ea86
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x730d48
push 0x730d40
push 0x730d48
push 0x1e
call fcn.0066efe2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x66eaba
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x66eac0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x66eb04
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x730d64
push str.FlsGetValue
push 0x20
call fcn.0066efe2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x66eb3b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]