joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4169e0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x4169f3
xor eax, eax
jmp 0x416ab1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x416a0e
xor eax, eax
jmp 0x416ab1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x416a2c
xor eax, eax
jmp 0x416ab1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x416a6e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x416aaf
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00415d20
add esp, 8
test eax, eax
jne 0x416aad
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x416ab1
jmp 0x416a65
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001288
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push esi
push edi
push 0
push 0x1c
push eax
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebp - 0x104]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100012b3
sub edx, ecx
lea eax, [ebp - 0x104]
push esi
add eax, edx
push str.Audiopunks_sLicense.ap
push eax
call fcn.10001256
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
test eax, eax
je 0x10001323
lea eax, [ebp - 0x104]
push 0x10032270
push eax
call fcn.1000ec3a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10001323
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001302
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.1000f152
push esi
call fcn.1000ee5d
xor eax, eax
add esp, 0x14
inc eax
jmp 0x10001325
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100046ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
mov ebx, dword [esi + 0x2c]
lea ecx, [esi + 0x38]
mov dword [ebp - 0x18], ebx
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x3c]
add eax, 0xfffffefa
sub edi, dword [esi + 0x74]
add eax, ebx
sub edi, dword [esi + 0x6c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x6c], eax
jb 0x100047b0
mov ecx, dword [ecx]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.1000b8d0
mov ecx, dword [esi + 0x4c]
add esp, 0xc
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
sub dword [esi + 0x5c], ebx
mov dword [ebp - 8], ecx
lea esi, [eax + ecx*2]
mov edi, dword [ebp - 8]
movzx ecx, bx
mov dword [ebp - 4], ecx
lea esi, [esi - 2]
movzx eax, word [esi]
mov edx, eax
sub eax, ecx
xor ecx, ecx
movzx eax, ax
cmp edx, ebx
cmovae ecx, eax
mov word [esi], cx
mov ecx, dword [ebp - 4]
sub edi, 1
jne 0x10004753
mov esi, dword [ebp - 0xc]
mov edi, ebx
movzx ecx, bx
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x40]
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
movzx eax, word [esi]
mov edx, eax
sub eax, ecx
xor ecx, ecx
movzx eax, ax
cmp edx, ebx
cmovae ecx, eax
mov word [esi], cx
mov ecx, dword [ebp - 8]
sub edi, 1
jne 0x10004783
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
add edi, ebx
lea ecx, [esi + 0x38]
mov dword [ebp - 8], ecx
mov ebx, dword [esi]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 4]
test eax, eax
je 0x1000487f
mov ebx, dword [esi + 0x74]
mov edx, dword [esi + 0x6c]
add ebx, edx
add ebx, dword [ecx]
cmp eax, edi
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
cmovbe edi, eax
test edi, edi
jne 0x100047dd
xor edi, edi
jmp 0x1000483c
sub eax, edi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x100047fe
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.10003fc5
pop ecx
mov ecx, dword [ebp - 8]
jmp 0x1000481d
mov dword [ebp - 4], ecx
cmp eax, 2
jne 0x10004823
mov edx, dword [ebx]
test edx, edx
jne 0x10004810
xor eax, eax
jmp 0x1000481a
mov ecx, dword [ebx + 0x30]
push edi
call fcn.10004203
pop ecx
lea ecx, [esi + 0x38]
mov dword [ebp - 4], ecx
mov dword [ebx + 0x30], eax
push edi
push dword [ebx]
push dword [ebp - 0x14]
call fcn.1000b8d0
add dword [ebx], edi
add esp, 0xc
add dword [ebx + 8], edi
mov edx, dword [esi + 0x6c]
mov ecx, dword [ebp - 4]
add edi, dword [esi + 0x74]
mov dword [esi + 0x74], edi
cmp edi, 3
jb 0x10004865
mov eax, dword [ecx]
mov ecx, dword [esi + 0x58]
movzx edx, byte [eax + edx]
mov dword [esi + 0x48], edx
shl edx, cl
mov ecx, dword [esi + 0x6c]
movzx eax, byte [eax + ecx + 1]
xor edx, eax
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
cmp edi, 0x106
jae 0x1000487f
mov eax, dword [esi]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x10004703
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006706
Capabilities:
Get system firmware table

Disassembly:
mov eax, 0x1002986f
call fcn.10028678
sub esp, 0x1c
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 0x52534454
push 0x52534d42
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
test edi, edi
je 0x100067b1
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push ecx
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.10007ace
push edi
mov edi, dword [ebp - 0x28]
push edi
push 0x52534454
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edx, dword [ebp - 0x24]
mov ecx, edx
sub ecx, edi
cmp eax, ecx
jne 0x1000677d
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov byte [esi + 0xc], 1
jmp 0x100067b5
test edi, edi
je 0x100067b1
mov eax, dword [ebp - 0x20]
sub eax, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x100067a8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001831
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push edi
call fcn.1000a386
pop ecx
pop ecx
mov byte [esi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10007004
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x100296c0
call fcn.10028678
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
call fcn.10009f27
mov esi, eax
push 1
mov dword [ebp - 4], ebx
call fcn.1000952b
pop ecx
pop ecx
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100072c9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10007bc9
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x10002520
mov ebx, ecx
push 0x100023d6
push 4
push 4
lea eax, [ebx + 0x48]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 0x10], eax
call fcn.1000a3c0
and dword [ebp - 0x14], 0
lea edx, [ebx + 0x48]
push 0x12
mov edi, ebx
mov dword [ebp - 4], edx
pop ecx
mov esi, 0x10036760
mov ebx, 0x10035760
rep movsd dword es:[edi], dword [esi]
push dword [edx]
call fcn.10012b0e
mov dword [esp], 0x400
call fcn.1001490b
mov edx, dword [ebp - 4]
mov esi, ebx
pop ecx
add ebx, 0x400
mov ecx, pe_nt_image_headers32
mov edi, eax
mov dword [edx], eax
add edx, 4
mov dword [ebp - 4], edx
rep movsd dword es:[edi], dword [esi]
cmp ebx, 0x10036760
jl 0x10007c0c
mov ebx, dword [ebp - 0xc]
mov edx, 0x10036760
mov esi, dword [ebp - 0x14]
sub edx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x12
mov ecx, dword [ebp + 8]
xor edi, edi
push 4
pop ebx
movzx eax, byte [esi + ecx]
shl edi, 8
or edi, eax
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ebp + 0xc]
cmovl esi, eax
sub ebx, 1
jne 0x10007c63
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + edx]
xor eax, edi
mov dword [ecx], eax
add ecx, 4
sub dword [ebp - 8], 1
mov dword [ebp - 4], ecx
jne 0x10007c5b
and dword [ebp + 8], ebx
and dword [ebp + 0xc], ebx
xor esi, esi
mov ebx, dword [ebp - 0xc]
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
lea eax, [ebp + 8]
push eax
call fcn.10007d43
mov eax, dword [ebp + 8]
mov dword [ebx + esi*4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + esi*4 + 4], eax
add esi, 2
cmp esi, 0x12
jl 0x10007c9d
push 4
pop edi
xor esi, esi
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
lea eax, [ebp + 8]
push eax
call fcn.10007d43
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [edx]
mov dword [esi + ecx], eax
mov ecx, dword [edx]
mov eax, dword [ebp + 0xc]
mov dword [esi + ecx + 4], eax
add esi, 8
cmp esi, 0x400
jl 0x10007cc6
add edx, 4
mov dword [ebp - 0x10], edx
sub edi, 1
jne 0x10007cc4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x10007d43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [edi]
xor edi, edi
mov edx, dword [esi + 0x4c]
xor ebx, dword [esi + edi*4]
mov eax, ebx
mov dword [ebp - 8], ebx
shr eax, 0x10
mov ecx, ebx
movzx eax, al
shr ecx, 0x18
mov edx, dword [edx + eax*4]
mov eax, dword [esi + 0x48]
add edx, dword [eax + ecx*4]
mov eax, ebx
mov ecx, dword [esi + 0x50]
shr eax, 8
movzx eax, al
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi + 0x54]
movzx eax, bl
add edx, dword [ecx + eax*4]
xor edx, dword [ebp - 4]
inc edi
mov ecx, dword [ebp - 8]
mov ebx, edx
mov edx, dword [esi + 0x4c]
mov dword [ebp - 4], ecx
cmp edi, 0x10
jl 0x10007d5f
mov eax, dword [esi + 0x44]
mov edi, dword [ebp + 8]
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [esi + 0x40]
pop edi
xor eax, ebx
pop esi
mov dword [ecx], eax
pop ebx
leave
ret 8
Function at 0x100083de
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
mov eax, ecx
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret

Function at 0x100091f2
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 0x10009213
jl 0x1000920a
test edi, edi
jne 0x10009213
xor eax, eax
xor edx, edx
jmp 0x100092d4
cmp dword [ebx + 0x38], 0
je 0x10009228
push eax
push edi
push dword [ebp + 8]
call fcn.10006ebc
jmp 0x100092d4
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000926f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000926f
cmp eax, edi
jb 0x10009249
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000b8d0
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 0x10009275
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x100092c9
mov ecx, ebx
call fcn.10008b15
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x100092b4
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1001544b
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 0x100092c9
jmp 0x10009287
test edx, edx
je 0x100092c9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1001544b
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 0x10016c1c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10016c5b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10016c5b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10016c5b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10016c5b
cmp dword [ecx + 0x74], 0xe
jbe 0x10016c5b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001b078
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ddf4
push 0x1002ddec
push str.FlsAlloc
push 0x1f
call fcn.1001aee3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b0ac
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002a17c]
call esi
jmp 0x1001b0b2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001b0f6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002de04
push 0x1002ddfc
push str.FlsGetValue
push 0x21
call fcn.1001aee3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b12d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002a17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001b135
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002de0c
push 0x1002de04
push str.FlsSetValue
push 0x22
call fcn.1001aee3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b16f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002a17c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1001ed70
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100185ac
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001eddf
cmp esi, dword [ebp - 4]
je 0x1001edda
cmp dword [ebp + 0xc], 0
je 0x1001edda
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001edb7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001e8c2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001ede1
xor eax, eax
inc eax
jmp 0x1001ede1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001ee46
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100185ac
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100185ac
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001eebd
cmp word [ecx], dx
je 0x1001eebd
mov eax, dword [0x1002e474]
push edi
dec eax
push eax
push 0x1002e360
call fcn.1001ede5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001ef30
cmp word [eax], dx
je 0x1001ef30
mov eax, dword [edi]
test eax, eax
je 0x1001eee1
cmp word [eax], dx
je 0x1001eee1
lea eax, [ebp - 0x10]
push eax
call fcn.1001e7c8
jmp 0x1001eeea
lea eax, [ebp - 0x10]
push eax
call fcn.1001e863
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001ef5a
mov eax, dword [0x1002e35c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002e050
call fcn.1001ede5
add esp, 0xc
test al, al
je 0x1001ef5a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001ef25
cmp word [eax], di
je 0x1001ef25
lea eax, [ebp - 0x10]
push eax
call fcn.1001e7c8
pop ecx
jmp 0x1001ef5c
lea eax, [ebp - 0x10]
push eax
call fcn.1001e863
jmp 0x1001ef22
mov eax, dword [edi]
test eax, eax
je 0x1001ef47
cmp word [eax], dx
je 0x1001ef47
lea eax, [ebp - 0x10]
push eax
call fcn.1001e77d
pop ecx
jmp 0x1001ef5a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001f025
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001ec6a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001f025
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001f025
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001f025
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001efb2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001b2b4
test ebx, ebx
je 0x1001f020
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001b2b4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001f025
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001f025
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10025f80
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001f027
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a797
leave
ret
Function at 0x1001fa9e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000b1c0
mov eax, dword [0x1003c080]
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.10014aa8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001fae0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001fc3c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100281e0
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 + 0x1003dcf8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10020843
mov ecx, dword [esi*4 + 0x1003dcf8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1001fc35
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001fc35
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001fc35
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10020843
add esp, 0x14
test edx, edx
jl 0x1001fc35
jg 0x1001fbab
test eax, eax
jb 0x1001fc35
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001fc35
jl 0x1001fbc5
cmp dword [ebp - 0x1008], eax
ja 0x1001fc35
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001fbe3
test ebx, ebx
je 0x1001fc1c
cmp ecx, edi
jae 0x1001fc1c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001fbfd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001fc09
cmp byte [ecx + 1], 0xa
jne 0x1001fc09
inc ecx
jmp 0x1001fc09
movzx eax, al
movsx eax, byte [eax + 0x1003ca20]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001fbe3
cmp edx, ebx
jne 0x1001fbe3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001fc3a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000a797
leave
ret
Function at 0x1001fcdb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1003dcf8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001fd1b
cmp byte [ebx], 0xa
jne 0x1001fd1b
or byte [edi + eax + 0x28], 4
jmp 0x1001fd20
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001fe1f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001fe02
inc eax
cmp dl, 0xd
je 0x1001fd4c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001fd72
cmp eax, ecx
jae 0x1001fd80
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001fd34
jmp 0x1001fe1f
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 0x1001fdfd
cmp dword [ebp - 0x10], 0
je 0x1001fdfd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1003dcf8]
test byte [eax + edi + 0x28], 0x48
je 0x1001fdd7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001fdc2
mov byte [esi], dl
jmp 0x1001fdd3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1003dcf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001fe1f
cmp byte [ebp - 1], 0xa
jne 0x1001fde6
cmp esi, ebx
jne 0x1001fde6
mov byte [esi], 0xa
jmp 0x1001fe1e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10020861
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001fe1f
mov byte [esi], 0xd
jmp 0x1001fe1e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1003dcf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001fe1c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001fe1f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret