joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ec8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408ee9
jl 0x408ee0
test edi, edi
jne 0x408ee9
xor eax, eax
xor edx, edx
jmp 0x408faa
cmp dword [ebx + 0x38], 0
je 0x408efe
push eax
push edi
push dword [ebp + 8]
call fcn.00408fb0
jmp 0x408faa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408f45
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408f45
cmp eax, edi
jb 0x408f1f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040c200
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408f4b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408f9f
mov ecx, ebx
call fcn.00408730
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408f8a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413089
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408f9f
jmp 0x408f5d
test edx, edx
je 0x408f9f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413089
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40b98a
Capabilities:
Parse pe header

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

Function at 0x418d1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42dbe8
push 0x42dbe0
push str.FlsAlloc
push 0x1e
call fcn.00418b8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418d51
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a144]
call esi
jmp 0x418d57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418d9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42dbf8
push 0x42dbf0
push str.FlsGetValue
push 0x20
call fcn.00418b8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418dd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c878
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c51a

Function at 0x41c883
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c6a9

Function at 0x41cc7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040bd00
mov eax, dword [0x438010]
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.0041a2b2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ccbf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ce1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428750
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 + 0x45cd38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041de4d
mov ecx, dword [esi*4 + 0x45cd38]
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 0x41ce14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ce14
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 0x41ce14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041de4d
add esp, 0x14
test edx, edx
jl 0x41ce14
jg 0x41cd8a
test eax, eax
jb 0x41ce14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ce14
jl 0x41cda4
cmp dword [ebp - 0x1008], eax
ja 0x41ce14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41cdc2
test ebx, ebx
je 0x41cdfb
cmp ecx, edi
jae 0x41cdfb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41cddc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41cde8
cmp byte [ecx + 1], 0xa
jne 0x41cde8
inc ecx
jmp 0x41cde8
movzx eax, al
movsx eax, byte [eax + 0x4382a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41cdc2
cmp edx, ebx
jne 0x41cdc2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ce19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b18c
leave
ret
Function at 0x41d2eb
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 + 0x45cd38]
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 0x41d32b
cmp byte [ebx], 0xa
jne 0x41d32b
or byte [eax + edi + 0x28], 4
jmp 0x41d330
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d42e
mov al, byte [edx]
cmp al, 0x1a
je 0x41d410
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d35f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d384
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d38e
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 0x41d341
jmp 0x41d42e
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 0x41d40b
cmp dword [ebp - 0xc], 0
je 0x41d40b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45cd38]
test byte [eax + edi + 0x28], 0x48
je 0x41d3e5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d3d0
mov byte [esi], dl
jmp 0x41d3e1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45cd38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d42e
cmp byte [ebp - 1], 0xa
jne 0x41d3f4
cmp esi, ebx
jne 0x41d3f4
mov byte [esi], 0xa
jmp 0x41d42d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041de6b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d42e
mov byte [esi], 0xd
jmp 0x41d42d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45cd38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d42a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d42e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d437
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 + 0x45cd38]
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 0x41d47a
cmp word [esi], dx
jne 0x41d47a
or byte [edi + eax + 0x28], 4
jmp 0x41d47f
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 0x41d5d2
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 0x41d5b2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d4c1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d4f7
cmp eax, edx
jae 0x41d503
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 0x41d499
jmp 0x41d5d2
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 0x41d5ae
cmp dword [ebp - 0x14], 0
je 0x41d5ae
mov eax, dword [ebx*4 + 0x45cd38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d586
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d54f
mov word [esi], cx
jmp 0x41d582
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45cd38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x45cd38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45cd38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d5d2
pop ebx
cmp word [ebp - 4], bx
jne 0x41d597
cmp esi, dword [ebp + 0xc]
jne 0x41d597
mov word [esi], bx
jmp 0x41d5cf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041de6b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d5d2
push 0xd
jmp 0x41d5cb
mov ecx, dword [ebx*4 + 0x45cd38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d5c9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d5d2
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 0x4215dd
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 0x42167a
push ebx
push esi
call fcn.004215a6
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.0042022b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421627
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421679
push edi
push eax
call fcn.00419350
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421647
call fcn.004188af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421678
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042022b
add esp, 0x20
test eax, eax
jne 0x421666
push edi
call fcn.004188af
jmp 0x42166e
push ebx
call fcn.004188af
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x428550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42857d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42857d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4c7436
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x369e4437
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40f611
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 0x40f638
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40f63b
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.0040f5ed
pop esi
leave
ret 8

Function at 0x4117d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4117f3
jl 0x4117ea
test edi, edi
jne 0x4117f3
xor eax, eax
xor edx, edx
jmp 0x4118b4
cmp dword [ebx + 0x38], 0
je 0x411808
push eax
push edi
push dword [ebp + 8]
call fcn.004118ba
jmp 0x4118b4
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41184f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x41184f
cmp eax, edi
jb 0x411829
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00414710
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x411855
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4118a9
mov ecx, ebx
call fcn.00411068
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x411894
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004186de
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4118a9
jmp 0x411867
test edx, edx
je 0x4118a9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004186de
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x412f19
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412f58
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412f58
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412f58
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x412f58
cmp dword [ecx + 0x74], 0xe
jbe 0x412f58
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x420c24
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00413030
mov eax, dword [0x437040]
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.0041f867
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x420c66
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420ddd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a670
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x438a38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421c6a
mov ecx, dword [esi*4 + 0x438a38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x420dd6
cmp eax, dword [edi + ecx + 0x24]
jne 0x420dd6
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x420dd6
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421c6a
add esp, 0x14
cmp edx, esi
jl 0x420dd6
jg 0x420d31
cmp eax, esi
jb 0x420dd6
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x420dd6
jl 0x420d53
cmp dword [ebp - 0x1008], eax
ja 0x420dd6
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x420d78
cmp ebx, esi
je 0x420dbd
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x420dbd
mov al, byte [ecx]
cmp al, 0xd
jne 0x420d9e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420daa
cmp byte [ecx + 1], 0xa
jne 0x420daa
inc ecx
jmp 0x420daa
movzx eax, al
movsx eax, byte [eax + 0x437300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420d84
cmp edx, ebx
jne 0x420d84
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x420ddb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004120f3
leave
ret
Function at 0x42105c
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x421076
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x42108d
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x4210e5
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00424a24
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x4210e5
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4210e5
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4210e5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4210df
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x4210e1
xor bl, bl
mov al, bl
jmp 0x4210e7
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4210f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x438a38]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421138
cmp byte [ebx], 0xa
jne 0x421138
or byte [edi + eax + 0x28], 4
jmp 0x42113d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421240
mov cl, byte [eax]
cmp cl, 0x1a
je 0x42121b
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x42116c
mov eax, dword [ebp - 8]
jmp 0x42118c
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4211a8
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x421186
add eax, 2
mov cl, 0xa
jmp 0x421189
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x42114e
jmp 0x421240
push 0
lea eax, [ebp - 0x10]
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 0x421216
cmp dword [ebp - 0x10], 0
je 0x421216
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x438a38]
test byte [eax + edi + 0x28], 0x48
je 0x4211f5
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4211e5
mov byte [esi], 0xa
jmp 0x42123f
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x438a38]
mov byte [eax + edi + 0x2a], cl
jmp 0x42123f
cmp byte [ebp - 1], 0xa
jne 0x4211ff
cmp esi, ebx
je 0x4211e0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421c88
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421240
mov byte [esi], 0xd
jmp 0x42123f
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x438a38]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x42123d
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x421240
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421249
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x438a38]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x42128d
push 0xa
pop esi
cmp word [ebx], si
jne 0x42128d
or byte [eax + edi + 0x28], 4
jmp 0x421292
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4213fd
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4213d5
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4212df
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x421309
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x421328
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4212f6
push ebx
add eax, 4
pop edx
jmp 0x4212fe
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4212a4
jmp 0x4213fd
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 0x4213d0
cmp dword [ebp - 0x14], 0
je 0x4213d0
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x438a38]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4213ac
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x421374
mov word [esi], ax
jmp 0x4213fa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x438a38]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x438a38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x438a38]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4213fa
cmp word [ebp - 4], ax
jne 0x4213b6
cmp esi, ebx
je 0x42136c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421c88
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4213fd
push 0xd
pop eax
jmp 0x42136c
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x438a38]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4213f7
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4213fd
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret