joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415018
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00402ad0
add esp, 4
test eax, eax
jle 0x401ff3
lea esi, [eax + 1]
push esi
call fcn.00402ee6
add esp, 4
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push esi
push edi
call fcn.004018e0
add esp, 0x14
mov dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push esi
push edi
call fcn.004029d0
push 2
push 0x420cb0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00401920
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.00402eef
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00401ed0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402c35
mov esp, ebp
pop ebp
ret
Function at 0x402280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415061
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x42300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4022df
mov eax, dword [esi]
jmp 0x4022e1
mov eax, esi
push 0
push 0x420cde
mov byte [eax], 0
call fcn.004029d0
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0x104
mov dword [ebp - 0x10], 1
jb 0x40232a
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0x104
jb 0x40231f
mov eax, dword [esi]
mov byte [eax + 0x104], 0
jmp 0x40233c
mov eax, esi
mov byte [eax + 0x104], 0
jmp 0x40233c
mov eax, 0x104
mov ecx, esi
sub eax, dword [esi + 0x10]
push 0
push eax
call fcn.00402710
cmp dword [esi + 0x14], 0x10
jb 0x402346
mov eax, dword [esi]
jmp 0x402348
mov eax, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 1
sub esp, 8
mov ecx, esi
call fcn.00402540
push eax
push 0
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00402450
push 0x420cc8
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401740
add esp, 4
mov ecx, esi
push eax
call fcn.00402490
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4023d9
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x4023d0
test cl, 0x1f
je 0x4023ac
call fcn.00405f72
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4023b8
call fcn.00405f72
sub ecx, eax
cmp ecx, 4
jae 0x4023c4
call fcn.00405f72
cmp ecx, 0x23
jbe 0x4023ce
call fcn.00405f72
mov ecx, eax
push ecx
call fcn.00402c46
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x402435
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x40242c
test cl, 0x1f
je 0x402408
call fcn.00405f72
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x402414
call fcn.00405f72
sub ecx, eax
cmp ecx, 4
jae 0x402420
call fcn.00405f72
cmp ecx, 0x23
jbe 0x40242a
call fcn.00405f72
mov ecx, eax
push ecx
call fcn.00402c46
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cfc7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040cc87
Function at 0x10001418
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 0x1a
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 0x10001443
push esi
sub edx, ecx
lea eax, [ebp - 0x104]
push esi
add eax, edx
push str.Rhizomatic_s_sShared.settings
push eax
call fcn.10001246
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
test eax, eax
je 0x100014a8
lea eax, [ebp - 0x104]
push 0x1003cd0c
push eax
call fcn.100158da
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100014a8
push esi
push 1
push dword [ebp + 8]
push edi
call fcn.10015ddf
push esi
call fcn.10015afd
xor eax, eax
add esp, 0x14
inc eax
jmp 0x100014aa
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10008cd0
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 0x10008d94
mov ecx, dword [ecx]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.10012850
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 0x10008d37
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 0x10008d67
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 0x10008e63
mov ebx, dword [esi + 0x74]
add ebx, dword [ecx]
mov edx, dword [esi + 0x6c]
add ebx, edx
cmp eax, edi
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
cmovbe edi, eax
test edi, edi
jne 0x10008dc1
xor edi, edi
jmp 0x10008e20
sub eax, edi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x10008de2
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.1000797b
pop ecx
mov ecx, dword [ebp - 8]
jmp 0x10008e01
mov dword [ebp - 4], ecx
cmp eax, 2
jne 0x10008e07
mov edx, dword [ebx]
test edx, edx
jne 0x10008df4
xor eax, eax
jmp 0x10008dfe
mov ecx, dword [ebx + 0x30]
push edi
call fcn.10007bb9
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.10012850
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 0x10008e49
mov eax, dword [ecx]
mov ecx, dword [esi + 0x58]
movzx edx, byte [edx + eax]
mov dword [esi + 0x48], edx
shl edx, cl
mov ecx, dword [esi + 0x6c]
movzx eax, byte [ecx + eax + 1]
xor edx, eax
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
cmp edi, 0x106
jae 0x10008e63
mov eax, dword [esi]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x10008ce7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b478
Capabilities:
Get system firmware table

Disassembly:
mov eax, 0x1003434f
call fcn.10032c58
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 0x1000b523
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.1000d740
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 0x1000b4ef
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 0x1000b527
test edi, edi
je 0x1000b523
mov eax, dword [ebp - 0x20]
sub eax, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x1000b51a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100019c3
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push edi
call fcn.100112c6
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 0x1000be8e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10033d0c
call fcn.10032c58
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.10010f7d
mov esi, eax
push 1
mov dword [ebp - 4], ebx
call fcn.1001058d
pop ecx
pop ecx
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1000c321
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1000e25d
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.10012dd0
add esp, 0xc
mov dword [esi + 0x40], 0x67452301
mov dword [esi + 0x44], 0xefcdab89
mov eax, esi
mov dword [esi + 0x48], 0x98badcfe
mov dword [esi + 0x4c], 0x10325476
and dword [esi + 0x50], 0
and dword [esi + 0x54], 0
pop esi
ret
Function at 0x1001025b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x10010280
jl 0x10010277
test ebx, ebx
jne 0x10010280
xor eax, eax
xor edx, edx
jmp 0x1001033d
cmp dword [esi + 0x38], 0
je 0x10010295
push eax
push ebx
push dword [ebp + 8]
call fcn.1000bd4e
jmp 0x1001033d
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x100102d8
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x100102d8
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.10012850
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x100102de
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x10010332
mov ecx, esi
call fcn.1000fb72
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x1001031d
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.1001f8b8
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10010332
jmp 0x100102f0
test edx, edx
je 0x10010332
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.1001f8b8
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10010fad
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x10010fe2
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x10010fdf
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x10010feb
add edx, 0x28
cmp edx, esi
jne 0x10010fcd
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x10010fe8

Function at 0x100211ee
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002122d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002122d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002122d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002122d
cmp dword [ecx + 0x74], 0xe
jbe 0x1002122d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10023acc
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 0x10023ae6
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 0x10023afd
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x10023b55
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1002db30
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x10023b55
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 0x10023b55
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10023b55
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x10023b4f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x10023b51
xor bl, bl
mov al, bl
jmp 0x10023b57
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x10029536
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10022c84
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 0x100295a5
cmp esi, dword [ebp - 4]
je 0x100295a0
cmp dword [ebp + 0xc], 0
je 0x100295a0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002957d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002908b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100295a7
xor eax, eax
inc eax
jmp 0x100295a7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10029612
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10046080]
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.10022c84
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.10022c84
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 0x10029689
cmp word [ecx], dx
je 0x10029689
mov eax, dword [0x1003970c]
push edi
dec eax
push eax
push 0x100395f8
call fcn.100295ab
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100296fc
cmp word [eax], dx
je 0x100296fc
mov eax, dword [edi]
test eax, eax
je 0x100296ad
cmp word [eax], dx
je 0x100296ad
lea eax, [ebp - 0x10]
push eax
call fcn.10028f91
jmp 0x100296b6
lea eax, [ebp - 0x10]
push eax
call fcn.1002902c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10029726
mov eax, dword [0x100395f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100392e8
call fcn.100295ab
add esp, 0xc
test al, al
je 0x10029726
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100296f1
cmp word [eax], di
je 0x100296f1
lea eax, [ebp - 0x10]
push eax
call fcn.10028f91
pop ecx
jmp 0x10029728
lea eax, [ebp - 0x10]
push eax
call fcn.1002902c
jmp 0x100296ee
mov eax, dword [edi]
test eax, eax
je 0x10029713
cmp word [eax], dx
je 0x10029713
lea eax, [ebp - 0x10]
push eax
call fcn.10028f46
pop ecx
jmp 0x10029726
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 0x100297f1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10029430
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100297f1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100297f1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100297f1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002977e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10025bb8
test ebx, ebx
je 0x100297ec
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10025bb8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100297f1
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 0x100297f1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002fd1e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100297f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011746
leave
ret
Function at 0x1002a26a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.10012150
mov eax, dword [0x10046080]
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.1001ef1d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1002a2ac
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002a423
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10032770
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 + 0x10047d90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1002b04e
mov ecx, dword [esi*4 + 0x10047d90]
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 0x1002a41c
cmp eax, dword [edi + ecx + 0x24]
jne 0x1002a41c
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 0x1002a41c
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002b04e
add esp, 0x14
cmp edx, esi
jl 0x1002a41c
jg 0x1002a377
cmp eax, esi
jb 0x1002a41c
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x1002a41c
jl 0x1002a399
cmp dword [ebp - 0x1008], eax
ja 0x1002a41c
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 0x1002a3be
cmp ebx, esi
je 0x1002a403
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x1002a403
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002a3e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002a3f0
cmp byte [ecx + 1], 0xa
jne 0x1002a3f0
inc ecx
jmp 0x1002a3f0
movzx eax, al
movsx eax, byte [eax + 0x10046a18]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002a3ca
cmp edx, ebx
jne 0x1002a3ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x1002a421
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10011746
leave
ret
Function at 0x1002a4da
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 + 0x10047d90]
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 0x1002a51c
cmp byte [ebx], 0xa
jne 0x1002a51c
or byte [edi + eax + 0x28], 4
jmp 0x1002a521
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1002a624
mov cl, byte [eax]
cmp cl, 0x1a
je 0x1002a5ff
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x1002a550
mov eax, dword [ebp - 8]
jmp 0x1002a570
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x1002a58c
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x1002a56a
add eax, 2
mov cl, 0xa
jmp 0x1002a56d
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 0x1002a532
jmp 0x1002a624
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 0x1002a5fa
cmp dword [ebp - 0x10], 0
je 0x1002a5fa
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x10047d90]
test byte [eax + edi + 0x28], 0x48
je 0x1002a5d9
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x1002a5c9
mov byte [esi], 0xa
jmp 0x1002a623
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x10047d90]
mov byte [eax + edi + 0x2a], cl
jmp 0x1002a623
cmp byte [ebp - 1], 0xa
jne 0x1002a5e3
cmp esi, ebx
je 0x1002a5c4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002b06c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002a624
mov byte [esi], 0xd
jmp 0x1002a623
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x10047d90]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x1002a621
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x1002a624
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret