joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1019d128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x100399f9
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10039976
sub edi, 0x8000000
jmp 0x100399f1
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100399f9
cmp dword [ebp - 0x10], 0x10000
jne 0x100399dc
cmp dword [ebp - 0x14], 0x10000
jb 0x100399dc
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10039ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x100399f9
sub edi, 0x10000
jmp 0x100399f1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x10039961
movzx eax, si
test eax, eax
je 0x10039a08
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x10039ab2
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10039a35
add esi, 0x8000000
jmp 0x10039aaa
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x10039ab2
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x10039a95
cmp ecx, 0x10000
jb 0x10039a95
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10039ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x10039ab2
add esi, 0x10000
jmp 0x10039aaa
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x10039aaa
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x10039a20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cd51f
mov esp, ebp
pop ebp
ret
Function at 0x10039b40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1019d128]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x101a2070], 0
jne 0x10039bc9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x101a2070
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10039bc9
push esi
mov esi, dword [0x101a207c]
mov dword [0x101a2084], eax
mov dword [0x101a2080], eax
mov dword [0x101a2078], eax
push edi
test esi, esi
je 0x10039baa
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x10039bc1
mov esi, dword [esi + 4]
test esi, esi
jne 0x10039b91
xor eax, eax
pop edi
mov dword [0x101a202c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cd51f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10039bac
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.100cd51f
mov esp, ebp
pop ebp
ret
Function at 0x1003a020
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x101a202c]
push esi
mov esi, ecx
test eax, eax
jne 0x1003a08e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x1003a03a
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.100cd563
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003a07b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.100cd550
add esp, 8
mov dword [0x101a202c], esi
mov eax, esi
mov dword [0x101a2078], 0
pop edi
pop esi
ret
mov eax, dword [0x101a2080]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x101a2080], edi
pop edi
pop esi
ret
Function at 0x1003b3b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1003b3d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x100a4980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10043be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10043c12
jl 0x10043c05
test ecx, ecx
jne 0x10043c12
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10043cd2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10009110
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10043c7e
jg 0x10043c3d
test esi, esi
je 0x10043c7e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10043c55
mov eax, dword [esp + 0x10]
jl 0x10043c4f
cmp eax, esi
jae 0x10043c55
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100cf310
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10043c9f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10043cbb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10043c24
jl 0x10043cbb
test ecx, ecx
jne 0x10043c24
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10043d10
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10043d10
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.100cf310
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10043d79
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10043d36
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10043d64
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100d9a8a
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10043d79
cmp edi, eax
ja 0x10043d42
test edi, edi
je 0x10043d79
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100d9a8a
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004cf50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 8]
mov edi, edx
and edi, 7
je 0x1004cf7b
cmp edx, edi
jge 0x1004cf6b
call fcn.1004c710
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
mov dword [esi + 0xc], eax
xor eax, eax
mov ecx, edx
test edx, edx
jle 0x1004cfa8
mov edx, dword [esi + 0xc]
push ebx
mov bl, dl
nop dword [eax]
mov byte [ebp + eax - 4], bl
sub ecx, 8
shr edx, 8
inc eax
mov dword [esi + 0xc], edx
mov bl, dl
test ecx, ecx
jg 0x1004cf90
mov dword [esi + 8], ecx
pop ebx
test ecx, ecx
jns 0x1004cfcd
mov ecx, dword [0x101a0f04]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jge 0x1004cfee
mov edi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, edi
jb 0x1004cfdf
xor dl, dl
jmp 0x1004cfe4
mov dl, byte [ecx]
inc ecx
mov dword [esi], ecx
mov byte [ebp + eax - 4], dl
inc eax
cmp eax, 4
jl 0x1004cfd7
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1004d035
mov ecx, dword [0x101a0f04]
mov eax, dword fs:[0x2c]
pop edi
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], 0x10148ecc
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1004d05f
mov ecx, dword [0x101a0f04]
mov eax, dword fs:[0x2c]
pop edi
pop esi
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.read_past_buffer
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x1004d07d
push edi
mov ecx, esi
call fcn.1004c840
add esp, 4
test eax, eax
je 0x1004cfc5
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.100cf310
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100630a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10063101
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100630e4
cmp edi, 2
jb 0x100630e4
cmp byte [esi], cl
jne 0x100630e4
cmp byte [esi + 1], cl
jne 0x100630e4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10159c98]
jmp 0x100630b5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10159c98]
test edi, edi
jne 0x100630b5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10063130
cmp cl, 0x23
jne 0x10063117
cmp byte [esi], cl
jne 0x10063117
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10159c98]
test cl, cl
jne 0x10063108
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x100632c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x100632d2
test esi, esi
jne 0x100632e9
push 0x5e4
push 0x101527a0
push str.filename__mode
call fcn.100d84e4
add esp, 0xc
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100632f6
mov dword [ebx], 0
mov edx, esi
mov ecx, edi
call fcn.10063140
mov esi, eax
test esi, esi
je 0x100633de
push esi
call fcn.100da5ec
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100633d5
push 2
push 0
push esi
call fcn.100d950d
add esp, 0xc
test eax, eax
jne 0x100633d5
push esi
call fcn.100da5ec
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x100633d5
push 0
push dword [ebp + 8]
push esi
call fcn.100d950d
add esp, 0xc
test eax, eax
jne 0x100633d5
mov eax, dword [0x101a1950]
test eax, eax
je 0x10063368
inc dword [eax + 0x374]
push dword [0x101a194c]
push edi
call fcn.10062760
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x100633d5
push esi
push edi
push 1
push eax
call fcn.100d9a8a
add esp, 0x10
push esi
cmp eax, edi
je 0x100633bf
call fcn.100d9dfb
mov eax, dword [0x101a1950]
add esp, 4
test eax, eax
je 0x100633a7
dec dword [eax + 0x374]
push dword [0x101a194c]
push dword [ebp + 8]
call fcn.10062770
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100d9dfb
add esp, 4
test ebx, ebx
je 0x100633cd
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100d9dfb
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x100655c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc4], 0
jg 0x100655e7
push 0x58d
push str.D:_aAmongUsMenuAmongUsMenuincludesimguiimgui.h
push str.Size___0
call fcn.100d84e4
add esp, 0xc
mov ecx, dword [esi + 0xc4]
mov edi, 4
mov eax, dword [esi + 0xcc]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10159c98]
sub edi, 1
jne 0x10065601
mov ecx, dword [0x101a1950]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a50], eax
jne 0x10065633
mov dword [ecx + 0x1a54], eax
cmp dword [ecx + 0x1a8c], eax
jne 0x10065642
mov byte [ecx + 0x1a90], 1
pop ebp
ret 4

Function at 0x10065650
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019d128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc4], 0
jg 0x10065684
push 0x58d
push str.D:_aAmongUsMenuAmongUsMenuincludesimguiimgui.h
push str.Size___0
call fcn.100d84e4
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edi, 0x10
movss xmm0, dword [ecx]
subss xmm0, dword [esi + 0xc]
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi + 0x10]
mov ecx, dword [esi + 0xc4]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xcc]
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10159c98]
sub edi, 1
jne 0x100656e4
mov eax, dword [0x101a1950]
not edx
pop edi
pop esi
cmp dword [eax + 0x1a50], edx
jne 0x10065715
mov dword [eax + 0x1a54], edx
cmp dword [eax + 0x1a8c], edx
jne 0x10065724
mov byte [eax + 0x1a90], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.100cd51f
mov esp, ebp
pop ebp
ret 4
Function at 0x1006e760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1019d128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101a1950]
push ebx
push esi
push edi
mov esi, dword [eax + 0x1a18]
add esi, 0xc4
mov dword [ebp - 8], ecx
cmp dword [esi], 0
jg 0x1006e7a3
push 0x58d
push str.D:_aAmongUsMenuAmongUsMenuincludesimguiimgui.h
push str.Size___0
call fcn.100d84e4
add esp, 0xc
mov ecx, dword [esi]
lea edx, [ebp - 8]
mov eax, dword [esi + 8]
mov edi, 4
mov ebx, dword [eax + ecx*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10159c98]
sub edi, 1
jne 0x1006e7b6
mov edi, dword [esi + 4]
not ebx
mov ecx, dword [esi]
cmp ecx, edi
jne 0x1006e7fd
inc ecx
test edi, edi
je 0x1006e7eb
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1006e7f0
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100759f0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
pop edi
mov dword [eax + ecx*4], ebx
inc dword [esi]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100cd51f
mov esp, ebp
pop ebp
ret
Function at 0x100da3af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100ce850
mov eax, dword [0x1019d128]
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.100e84ec
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100da3f1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100da54d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100f7290
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 + 0x101a1288]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100ea847
mov ecx, dword [esi*4 + 0x101a1288]
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 0x100da546
cmp eax, dword [edi + ecx + 0x24]
jne 0x100da546
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 0x100da546
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ea847
add esp, 0x14
test edx, edx
jl 0x100da546
jg 0x100da4bc
test eax, eax
jb 0x100da546
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100da546
jl 0x100da4d6
cmp dword [ebp - 0x1008], eax
ja 0x100da546
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100da4f4
test ebx, ebx
je 0x100da52d
cmp ecx, edi
jae 0x100da52d
mov al, byte [ecx]
cmp al, 0xd
jne 0x100da50e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100da51a
cmp byte [ecx + 1], 0xa
jne 0x100da51a
inc ecx
jmp 0x100da51a
movzx eax, al
movsx eax, byte [eax + 0x1019d3a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100da4f4
cmp edx, ebx
jne 0x100da4f4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100da54b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100cd51f
leave
ret

Function at 0x100e900f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e8f91

Function at 0x100e957a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e93eb
Function at 0x100ea8c3
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 + 0x101a1288]
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 0x100ea903
cmp byte [ebx], 0xa
jne 0x100ea903
or byte [eax + edi + 0x28], 4
jmp 0x100ea908
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100eaa06
mov al, byte [edx]
cmp al, 0x1a
je 0x100ea9e8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100ea937
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100ea95c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100ea966
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 0x100ea919
jmp 0x100eaa06
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 0x100ea9e3
cmp dword [ebp - 0xc], 0
je 0x100ea9e3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x101a1288]
test byte [eax + edi + 0x28], 0x48
je 0x100ea9bd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ea9a8
mov byte [esi], dl
jmp 0x100ea9b9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101a1288]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100eaa06
cmp byte [ebp - 1], 0xa
jne 0x100ea9cc
cmp esi, ebx
jne 0x100ea9cc
mov byte [esi], 0xa
jmp 0x100eaa05
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100ea865
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100eaa06
mov byte [esi], 0xd
jmp 0x100eaa05
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x101a1288]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100eaa02
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100eaa06
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100eaa0f
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 + 0x101a1288]
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 0x100eaa52
cmp word [esi], dx
jne 0x100eaa52
or byte [edi + eax + 0x28], 4
jmp 0x100eaa57
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 0x100eabaa
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 0x100eab8a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100eaa99
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100eaacf
cmp eax, edx
jae 0x100eaadb
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 0x100eaa71
jmp 0x100eabaa
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 0x100eab86
cmp dword [ebp - 0x14], 0
je 0x100eab86
mov eax, dword [ebx*4 + 0x101a1288]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100eab5e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100eab27
mov word [esi], cx
jmp 0x100eab5a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x101a1288]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x101a1288]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x101a1288]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100eabaa
pop ebx
cmp word [ebp - 4], bx
jne 0x100eab6f
cmp esi, dword [ebp + 0xc]
jne 0x100eab6f
mov word [esi], bx
jmp 0x100eaba7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100ea865
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100eabaa
push 0xd
jmp 0x100eaba3
mov ecx, dword [ebx*4 + 0x101a1288]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100eaba1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100eabaa
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 0x100eb724
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010baa4
push 0x1010ba9c
push str.FlsAlloc
push 0x1e
call fcn.100eb511
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100eb758
push dword [ebp + 8]
mov ecx, esi
call dword [0x101062c4]
call esi
jmp 0x100eb75e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100eb7a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010bab4
push 0x1010baac
push str.FlsGetValue
push 0x20
call fcn.100eb511
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100eb7d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x101062c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]