joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100156a8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
push edi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002b9e8]
je 0x100156c3
inc edi
cmp edi, 0x17
jb 0x100156b4
cmp edi, 0x17
jae 0x10015843
push ebp
push 3
call fcn.1001c6d5
pop ecx
cmp eax, 1
je 0x1001580f
push 3
call fcn.1001c6d5
test eax, eax
pop ecx
jne 0x100156f7
cmp dword [0x1002cbcc], 1
je 0x1001580f
cmp ebx, 0xfc
je 0x10015842
push 0x10026320
mov ebx, 0x314
push ebx
mov ebp, 0x1002d0b8
push ebp
call fcn.10010a8c
sub esp, 0xfffffff4
or eax, eax
je 0x1001572d
push esi
push esi
push esi
push esi
push esi
call fcn.1000cae5
sub esp, 0xffffffec
push 0x104
mov esi, 0x1002d0d1
push esi
push 0
mov byte [0x1002d1d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10015771
push 0x10026308
push 0x2fb
push esi
call fcn.10010a8c
sub esp, 0xfffffff4
or eax, eax
je 0x10015771
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000cae5
add esp, 0x14
push esi
call fcn.1000bee0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100157b6
push esi
call fcn.1000bee0
add esi, 0xffffffc5
push 3
add eax, esi
mov ecx, 0x1002d3cc
push 0x10026304
sub ecx, eax
push ecx
push eax
call fcn.10017af6
add esp, 0x14
or eax, eax
je 0x100157b6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000cae5
sub esp, 0xffffffec
jmp 0x100157b8
xor esi, esi
push 0x10026300
push ebx
push ebp
call fcn.10017a85
sub esp, 0xfffffff4
or eax, eax
je 0x100157d8
push esi
push esi
push esi
push esi
push esi
call fcn.1000cae5
add esp, 0x14
push dword [edi*8 + 0x1002b9ec]
push ebx
push ebp
call fcn.10017a85
sub esp, 0xfffffff4
test eax, eax
je 0x100157fa
push esi
push esi
push esi
push esi
push esi
call fcn.1000cae5
sub esp, 0xffffffec
push 0x12010
push 0x100262d8
push ebp
call fcn.1001c518
sub esp, 0xfffffff4
jmp 0x10015842
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10015842
cmp ebp, 0xffffffff
je 0x10015842
push 0
lea eax, [esp + 0x14]
push eax
lea ebx, [edi*8 + 0x1002b9ec]
push dword [ebx]
call fcn.1000bee0
pop ecx
push eax
push dword [ebx]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10016960
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x1001696e
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001696b
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret

Function at 0x10016990
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor edx, edx
movzx eax, word [ecx + 0x14]
push ebx
lea eax, [eax + ecx + 0x18]
push esi
movzx ebx, word [ecx + 6]
push edi
or ebx, ebx
jbe 0x100169cc
mov ecx, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
cmp ecx, edi
jb 0x100169c2
mov esi, dword [eax + 8]
add esi, edi
cmp ecx, esi
jb 0x100169ce
sub edx, 0xffffffff
sub eax, 0xffffffd8
cmp edx, ebx
jb 0x100169b2
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x10017c09
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x10017c51
cmp byte [esi], 0
je 0x10017c51
push 0x10026cc0
push esi
call fcn.10010900
pop ecx
test eax, eax
pop ecx
je 0x10017c51
push 0x10026cbc
push esi
call fcn.10010900
pop ecx
pop ecx
test eax, eax
jne 0x10017c6c
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
jmp 0x10017c5c
lea eax, [ebp - 0xc]
push 8
push eax
push 0x1004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
or eax, eax
je 0x10017c73
lea esi, [ebp - 0xc]
push esi
call fcn.1000c99a
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000bda4
leave
ret

Function at 0x10017d81
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push 0x78
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp + 8]
and eax, 0x3ff
push 1
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
or eax, eax
jne 0x10017db8
xor eax, eax
jmp 0x10017de6
lea edx, [ebp - 0x7c]
call fcn.10017c9e
cmp dword [ebp + 8], eax
je 0x10017de3
cmp dword [ebp + 0xc], 0
je 0x10017de3
mov edi, dword [edi]
push esi
mov edx, edi
call fcn.10017cd0
push edi
mov edi, eax
call fcn.1000bee0
pop ecx
pop esi
cmp edi, eax
je 0x10017db4
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
call fcn.1000bda4
leave
ret
Function at 0x10018123
Capabilities:
Get geographical location

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.100130f6
mov esi, eax
mov ebp, dword [esp + 0x14]
xor ebx, ebx
sub esi, 0xffffff64
cmp ebp, ebx
jne 0x1001814a
or dword [esi + 8], 0x104
jmp 0x100181fb
lea eax, [ebp + 0x40]
mov dword [esi], ebp
lea edi, [esi + 4]
cmp eax, ebx
mov dword [edi], eax
je 0x1001816c
cmp byte [eax], bl
je 0x1001816c
push edi
push 0x16
push 0x10026bf0
call fcn.10017ba9
sub esp, 0xfffffff4
mov eax, dword [esi]
cmp eax, ebx
mov dword [esi + 8], ebx
je 0x100181c0
cmp byte [eax], bl
je 0x100181c0
mov eax, dword [edi]
cmp eax, ebx
je 0x1001818a
cmp byte [eax], bl
je 0x1001818a
call fcn.10018082
jmp 0x1001818f
call fcn.100180e7
cmp dword [esi + 8], ebx
jne 0x10018210
push esi
push 0x40
push 0x100269e8
call fcn.10017ba9
sub esp, 0xfffffff4
or eax, eax
je 0x10018207
mov edi, dword [edi]
cmp edi, ebx
je 0x100181b9
cmp byte [edi], bl
je 0x100181b9
call fcn.10018082
jmp 0x10018207
call fcn.100180e7
jmp 0x10018207
mov edi, dword [edi]
cmp edi, ebx
je 0x100181f4
cmp byte [edi], bl
je 0x100181f4
push edi
call fcn.1000bee0
add eax, 0xfffffffd
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x10017ceb
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x10018207
mov dword [esi + 8], ebx
jmp 0x10018207
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], ebx
je 0x100182ff
mov ecx, ebp
mov edi, esi
add ebp, 0x80
neg ecx
sbb ecx, ecx
and ecx, ebp
call fcn.10017c09
mov ebx, eax
or ebx, ebx
je 0x100182ff
cmp ebx, 0xfde8
je 0x100182ff
cmp ebx, 0xfde9
je 0x100182ff
movzx eax, bx
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100182ff
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100182ff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10018287
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], bx
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x100182fa
cmp word [eax], 0x814
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jne 0x100182c1
push 0x10026cc4
push 0x40
push edi
call fcn.10010a8c
add esp, 0xc
test eax, eax
je 0x100182d2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000cae5
add esp, 0x14
jmp 0x100182d2
push 0x40
push edi
push 0x1001
push dword [esi + 0x18]
call ebp
or eax, eax
je 0x100182ff
push 0x40
lea eax, [edi + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call ebp
or eax, eax
je 0x100182ff
push 0xa
push 0x10
sub edi, 0xffffff80
push edi
push ebx
call fcn.1001085a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10018301
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1001c518
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
call fcn.10012ed1
xor ebx, ebx
cmp dword [0x1002d598], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001c5ee
push 0x100274e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001c6ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100274dc
push edi
call esi
cmp eax, ebx
je 0x1001c6ce
push eax
call fcn.10012e63
mov dword [esp], 0x100274cc
push edi
mov dword [0x1002d598], eax
call esi
push eax
call fcn.10012e63
mov dword [esp], 0x100274b8
push edi
mov dword [0x1002d59c], eax
call esi
push eax
call fcn.10012e63
mov dword [0x1002d5a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10013b8c
pop ecx
pop ecx
test eax, eax
je 0x1001c5bc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000cae5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001c5ee
push 0x1002749c
push edi
call esi
push eax
call fcn.10012e63
cmp eax, ebx
pop ecx
mov dword [0x1002d5a8], eax
je 0x1001c5ee
push 0x10027484
push edi
call esi
push eax
call fcn.10012e63
pop ecx
mov dword [0x1002d5a4], eax
mov eax, dword [0x1002d5a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001c673
cmp dword [0x1002d5a8], ecx
je 0x1001c673
push eax
call fcn.10012eda
push dword [0x1002d5a8]
mov esi, eax
call fcn.10012eda
mov edi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x1001c673
cmp edi, ebx
je 0x1001c673
call esi
cmp eax, ebx
je 0x1001c640
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
or eax, eax
je 0x1001c640
test byte [ebp - 0x18], 1
jne 0x1001c673
lea eax, [ebp - 0x10]
push eax
call fcn.10013bc3
test eax, eax
pop ecx
je 0x1001c65b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000cae5
sub esp, 0xffffffec
cmp dword [ebp - 0x10], 4
jb 0x1001c66a
or dword [ebp + 0x10], 0x200000
jmp 0x1001c6ae
or dword [ebp + 0x10], 0x40000
jmp 0x1001c6ae
mov eax, dword [0x1002d59c]
cmp eax, dword [ebp - 8]
je 0x1001c6ae
push eax
call fcn.10012eda
pop ecx
cmp eax, ebx
je 0x1001c6ae
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001c6ae
mov eax, dword [0x1002d5a0]
cmp eax, dword [ebp - 8]
je 0x1001c6ae
push eax
call fcn.10012eda
cmp eax, ebx
pop ecx
je 0x1001c6ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002d598]
call fcn.10012eda
pop ecx
cmp eax, ebx
je 0x1001c6ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001c6d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001c71b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1002d5ac]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edi, edi
cmp eax, edi
push esi
jne 0x1001c76d
push edi
xor esi, esi
push edi
inc esi
push esi
push edi
call ebx
or eax, eax
je 0x1001c753
mov dword [0x1002d5ac], esi
jmp 0x1001c772
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1001c768
push 2
pop eax
mov dword [0x1002d5ac], eax
jmp 0x1001c76d
mov eax, dword [0x1002d5ac]
cmp eax, 1
jne 0x1001c785
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
jmp 0x1001c844
cmp eax, 2
je 0x1001c78e
cmp eax, edi
jne 0x1001c7b7
cmp dword [ebp + 0x1c], edi
mov dword [ebp - 8], edi
jne 0x1001c7a1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push edi
push edi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp + 0xc]
call esi
mov edi, eax
test edi, edi
jne 0x1001c7be
xor eax, eax
jmp 0x1001c844
jle 0x1001c804
push 0xffffffffffffffe0
xor edx, edx
pop eax
div edi
cmp eax, 1
jb 0x1001c804
lea eax, [edi + 8]
cmp eax, 0x400
ja 0x1001c7ec
call fcn.10016cf0
mov ebx, esp
test ebx, ebx
je 0x1001c7b7
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x1001c806
push eax
call fcn.1000d4bd
or eax, eax
pop ecx
je 0x1001c800
mov dword [eax], 0xdddd
sub eax, 0xfffffff8
mov ebx, eax
jmp 0x1001c806
xor ebx, ebx
or ebx, ebx
je 0x1001c7b7
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x1001c83a
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x1001c823
push eax
push eax
jmp 0x1001c829
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ebx
push 1
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
push ebx
call fcn.1000dedd
mov eax, dword [ebp - 8]
pop esi
mov ecx, dword [ebp - 4]
lea esp, [ebp - 0x14]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.1000bda4
leave
ret
Function at 0x1001c891
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1002d5b0]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push ebx
xor esi, esi
xor ebx, ebx
inc esi
cmp eax, ebx
jne 0x1001c8e3
push ebx
push ebx
push esi
push ebx
call edi
test eax, eax
je 0x1001c8c9
mov dword [0x1002d5b0], esi
jmp 0x1001c8f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1001c8de
push 2
pop eax
mov dword [0x1002d5b0], eax
jmp 0x1001c8e3
mov eax, dword [0x1002d5b0]
cmp eax, 2
je 0x1001c9aa
cmp eax, ebx
je 0x1001c9aa
cmp eax, esi
jne 0x1001c91b
cmp dword [ebp + 0x1c], ebx
jne 0x1001c908
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
jne 0x1001c922
xor eax, eax
jmp 0x1001c9bc
jle 0x1001c969
xor edx, edx
push 0xffffffffffffffe0
pop eax
div ecx
cmp eax, 2
jb 0x1001c969
lea eax, [ecx + ecx + 8]
cmp eax, 0x400
ja 0x1001c951
call fcn.10016cf0
mov esi, esp
cmp esi, ebx
je 0x1001c91b
mov dword [esi], 0xcccc
add esi, 8
jmp 0x1001c96b
push eax
call fcn.1000d4bd
pop ecx
cmp eax, ebx
je 0x1001c965
mov dword [eax], 0xdddd
sub eax, 0xfffffff8
mov esi, eax
jmp 0x1001c96b
xor esi, esi
cmp esi, ebx
je 0x1001c91b
push dword [ebp - 8]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x1001c99f
cmp dword [ebp + 0x18], ebx
push ebx
push ebx
jne 0x1001c98a
push ebx
push ebx
jmp 0x1001c990
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push esi
call fcn.1000dedd
mov eax, ebx
pop ebx
jmp 0x1001c9bc
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x14]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
call fcn.1000bda4
leave
ret
Function at 0x1001d696
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x1001d6bf
call fcn.1000f98d
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.1000cbe1
add esp, 0x14
jmp 0x1001d7c0
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x1001d7c0
test al, 0x40
jne 0x1001d7c0
test al, 2
je 0x1001d6e1
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x1001d7c0
or eax, 1
mov dword [esi + 0xc], eax
test ax, 0x10c
jne 0x1001d6f6
push esi
call fcn.1001a94b
pop ecx
jmp 0x1001d6fb
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.1001ab8e
pop ecx
push eax
call fcn.1001e2bd
mov dword [esi + 4], eax
add esp, 0xc
cmp eax, edi
je 0x1001d7b0
cmp eax, 1
je 0x1001d7b0
cmp eax, 0xffffffff
je 0x1001d7b0
test byte [esi + 0xc], 0x82
jne 0x1001d783
push esi
call fcn.1001ab8e
cmp eax, 0xffffffff
pop ecx
je 0x1001d76e
push esi
call fcn.1001ab8e
pop ecx
cmp eax, 0xfffffffe
je 0x1001d76e
push esi
call fcn.1001ab8e
push esi
sar eax, 5
lea edi, [eax*4 + 0x1002e7e0]
call fcn.1001ab8e
pop ecx
pop ecx
and eax, 0x1f
shl eax, 6
add eax, dword [edi]
jmp 0x1001d773
mov eax, 0x1002b918
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x1001d783
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x1001d7a0
mov eax, dword [esi + 0xc]
test al, 8
je 0x1001d7a0
test ax, 0x400
jne 0x1001d7a0
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
sub ecx, 0xfffffffe
mov dword [esi], ecx
jmp 0x1001d7c5
neg eax
sbb eax, eax
and eax, 0x10
sub eax, 0xfffffff0
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
mov eax, 0xffff
pop edi
pop esi
ret
Function at 0x1001d958
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x1001d981
call fcn.1000f98d
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.1000cbe1
add esp, 0x14
jmp 0x1001da72
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x1001da72
test al, 0x40
jne 0x1001da72
test al, 2
je 0x1001d9a3
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x1001da72
or eax, 1
test ax, 0x10c
mov dword [esi + 0xc], eax
jne 0x1001d9b8
push esi
call fcn.1001a94b
pop ecx
jmp 0x1001d9bd
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.1001ab8e
pop ecx
push eax
call fcn.1001e2bd
sub esp, 0xfffffff4
cmp eax, edi
mov dword [esi + 4], eax
je 0x1001da62
cmp eax, 0xffffffff
je 0x1001da62
test byte [esi + 0xc], 0x82
jne 0x1001da38
push esi
call fcn.1001ab8e
cmp eax, 0xffffffff
pop ecx
je 0x1001da23
push esi
call fcn.1001ab8e
cmp eax, 0xfffffffe
pop ecx
je 0x1001da23
push esi
call fcn.1001ab8e
push esi
sar eax, 5
lea edi, [eax*4 + 0x1002e7e0]
call fcn.1001ab8e
and eax, 0x1f
pop ecx
pop edx
shl eax, 6
add eax, dword [edi]
jmp 0x1001da28
mov eax, 0x1002b918
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x1001da38
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x1001da55
mov eax, dword [esi + 0xc]
test al, 8
je 0x1001da55
test ax, 0x400
jne 0x1001da55
mov dword [esi + 0x18], 0x1000
mov edi, dword [esi]
dec dword [esi + 4]
movzx eax, byte [edi]
inc edi
mov dword [esi], edi
jmp 0x1001da75
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
ret
Function at 0x1001ec50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023e68
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
mov eax, dword [0x1002b134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x24]
push eax
call fcn.10005b00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.100061c0
cmp eax, 0xffffffff
jne 0x1001ecd3
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.10006870
mov eax, dword [ebp - 0x2c]
jmp 0x1001ee02
push 0
lea ecx, [ebp - 0x24]
call fcn.100061c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x200000
jbe 0x1001ed0e
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.10006870
mov eax, dword [ebp - 0x30]
jmp 0x1001ee02
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
call fcn.1000b563
sub esp, 0xfffffffc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001ed57
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
call fcn.10006870
mov eax, dword [ebp - 0x38]
jmp 0x1001ee02
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000c060
sub esp, 0xfffffff4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x14]
push 0
push eax
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.100061c0
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1001ed9e
cmp dword [ebp - 0x14], 0
jne 0x1001edd2
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.1000c535
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x40], 0
sub esp, 0xfffffffc
mov dword [ebp - 4], 0xffffffff
call fcn.10006870
mov eax, dword [ebp - 0x40]
jmp 0x1001ee02
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x28], 0
jne 0x1001ed72
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], 0xffffffff
call fcn.10006870
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001ee20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024010
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.10006770
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001ee8f
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10005b20
mov eax, dword [ebp - 0x34]
jmp 0x1001ef79
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001ef60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1001ef60
lea ecx, [ebp - 0x30]
call fcn.1001ebd0
lea ecx, [ebp - 0x30]
call fcn.1001e6b0
movzx eax, al
or eax, eax
je 0x1001eeee
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.10005b20
mov eax, dword [ebp - 0x38]
jmp 0x1001ef79
lea ecx, [ebp - 0x30]
call fcn.1001e690
push eax
call fcn.1001ee20
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001ef23
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.10005b20
mov eax, dword [ebp - 0x3c]
jmp 0x1001ef79
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001ef60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1001ef60
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.10005b20
mov eax, dword [ebp - 0x40]
jmp 0x1001ef79
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10005b20
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000bda4
mov esp, ebp
pop ebp
ret