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

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.10081260
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.10081260
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x10072fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x100a8060]
test esi, esi
jle 0x100730f0
mov eax, dword [0x100a8064]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x10073004
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x10073087
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x10072ff0
mov dword [esp], ebx
call fcn.100737c0
mov edi, eax
test eax, eax
je 0x10073117
mov eax, dword [0x100a8064]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.10073900
mov edx, dword [0x100a8064]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x100730f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x10073080
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x10073090
add dword [0x100a8060], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x100a8064]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x10073080
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.10072f70
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x1007300e
mov eax, dword [0x100a8064]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.10072f70
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.10072f70
lea esi, cs:[esi]
nop
Function at 0x100737c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x10000000], 0x5a4d
jne 0x100737e5
mov ecx, dword [0x1000003c]
cmp dword [ecx + 0x10000000], 0x4550
lea edx, [ecx + 0x10000000]
je 0x100737f0
ret
cmp word [ecx + 0x10000018], 0x10b
jne 0x100737e5
push esi
movzx eax, word [ecx + 0x10000014]
push ebx
movzx esi, word [ecx + 0x10000006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x10000000
test si, si
je 0x10073838
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x1007382e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x1007383a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x10073820
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1000bc60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004160b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10051040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [ecx + 0x10]
mov edx, 0x12
movups xmm0, xmmword [ecx]
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x24]
mov eax, dword [0x100539ac]
not eax
push eax
push 0x3f
movups xmmword [ebp - 0x24], xmm0
call fcn.10019670
mov byte [ebp - 0xa8], 0x45
add esp, 8
mov byte [ebp - 0xa7], 0x36
mov al, byte [ebp - 0xa8]
mov ecx, 0x2e5
mov dword [ebp - 4], 0
xor edx, edx
mov dword [ebp - 0xb0], 0xfffffff6
mov dword [ebp - 0xb4], ecx
nop word [eax + eax]
xor cl, byte [ebp - 0xb0]
lea edx, [edx + 1]
mov al, byte [ebp + edx - 0xa9]
dec dword [ebp - 0xb0]
xor cl, al
xor cl, 0x2e
mov byte [ebp + edx - 0xa9], cl
mov ecx, dword [ebp - 0xb4]
add ecx, 8
mov dword [ebp - 0xb4], ecx
cmp ecx, 0x2f5
jb 0x1000bcf0
movaps xmm0, xmmword [0x1004bdd0]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0xa7], 0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 3
push eax
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
call dword [0x1005c390]
add esp, 4
xor eax, eax
mov byte [ebp + eax - 0xa8], 0
inc eax
cmp eax, 2
jb 0x1000bd72
mov byte [ebp - 0xac], 0x45
mov byte [ebp - 0xab], 0x36
mov al, byte [ebp - 0xac]
mov ecx, 0x2e5
mov dword [ebp - 4], 1
xor edx, edx
mov dword [ebp - 0xb0], 0xfffffff6
mov dword [ebp - 0xb4], ecx
nop dword [eax]
nop word [eax + eax]
xor cl, byte [ebp - 0xb0]
lea edx, [edx + 1]
mov al, byte [ebp + edx - 0xad]
dec dword [ebp - 0xb0]
xor cl, al
xor cl, 0x2e
mov byte [ebp + edx - 0xad], cl
mov ecx, dword [ebp - 0xb4]
add ecx, 8
mov dword [ebp - 0xb4], ecx
cmp ecx, 0x2f5
jb 0x1000bdc0
lea eax, [ebp - 0xac]
mov byte [ebp - 0xab], 0
mov dword [ebp - 0xa0], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
mov dword [ebp - 0xa4], 5
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa4]
push eax
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x88], xmm0
movups xmmword [ebp - 0x78], xmm0
call dword [0x1005c390]
add esp, 4
xor eax, eax
nop dword [eax]
mov byte [ebp + eax - 0xac], 0
inc eax
cmp eax, 2
jb 0x1000be50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002078c
mov esp, ebp
pop ebp
ret
Function at 0x10012d80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
mov esi, 1
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x10012eff
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [0x100c7c30]
push eax
mov dword [ebp - 8], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x100c7c38
lea eax, [esi + esi]
push eax
call fcn.10012560
lea eax, [esi - 1]
mov dword [0x100c7c48], esi
mov esi, dword [0x100c7c30]
mov dword [0x100c7c44], eax
mov eax, dword [ebp - 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x10012eda
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
jbe 0x10012e0c
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x10012e37
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
nop
movzx ecx, byte [eax + edx]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x10012e20
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
and ebx, dword [0x100c7c44]
mov ecx, dword [0x100c7c38]
lea ecx, [ecx + ebx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x10012e54
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x10012ed0
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100133e0
test al, al
jne 0x10012e8e
mov ebx, dword [ebx]
cmp ebx, esi
je 0x10012e86
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x10012ecd
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x10012eb0
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100133e0
test al, al
je 0x10012ee3
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x10012e95
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov esi, edi
cmp edi, eax
jne 0x10012df0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x10012ecd
push str.invalid_hash_bucket_count
call fcn.100217fc
int3
Function at 0x1001a6b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041b1d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10051040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 4]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea ebx, [ecx + 0x24]
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0x28]
mov dword [eax], 0
push 8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.10020ca9
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10021ab6
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
mov dword [eax + 0x34], esi
lea esi, [eax + 4]
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebx], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [eax + 0x14], 0xf
mov edi, dword [eax + 0x10]
jbe 0x1001a7d0
mov eax, dword [eax]
mov dword [ebp + 8], eax
xor eax, eax
cmp edi, 0x7fffffff
ja 0x1001a871
test edi, edi
je 0x1001a855
cmp edi, 0x1000
jb 0x1001a80d
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x1001a876
push eax
call fcn.10020ca9
add esp, 4
test eax, eax
je 0x1001a87b
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x1001a818
push edi
call fcn.10020ca9
add esp, 4
mov esi, eax
push edi
push dword [ebp + 8]
push esi
call fcn.100230c0
mov eax, dword [ebx + 0xc]
lea ecx, [edi + esi]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], esi
mov eax, dword [ebx + 0x1c]
mov dword [eax], esi
mov eax, dword [ebx + 0x2c]
mov dword [eax], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, esi
mov dword [eax], esi
mov eax, dword [ebx + 0x20]
mov dword [eax], esi
mov eax, dword [ebx + 0x30]
mov dword [eax], ecx
mov eax, 1
jmp 0x1001a858
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.100215ce
call fcn.10013630
call fcn.1002638f
int3
Function at 0x1002c8a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002c8e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002c8e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002c8e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002c8e1
cmp dword [ecx + 0x74], 0xe
jbe 0x1002c8e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100341cf
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 0x1003426c
push ebx
push esi
call fcn.10034198
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.1003412c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10034219
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003426b
push edi
push eax
call fcn.10031ec1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10034239
call fcn.10031c43
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003426a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003412c
add esp, 0x20
test eax, eax
jne 0x10034258
push edi
call fcn.10031c43
jmp 0x10034260
push ebx
call fcn.10031c43
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 0x100346b9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10046fb8
push 0x10046fb0
push str.FlsAlloc
push 0x1f
call fcn.10034581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100346ed
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004318c]
call esi
jmp 0x100346f3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10034737
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10046fc8
push 0x10046fc0
push str.FlsGetValue
push 0x21
call fcn.10034581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003476e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004318c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10034776
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10046fd0
push 0x10046fc8
push str.FlsSetValue
push 0x22
call fcn.10034581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100347b0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004318c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1003878f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002e8bc
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 0x100387fe
cmp esi, dword [ebp - 4]
je 0x100387f9
cmp dword [ebp + 0xc], 0
je 0x100387f9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100387d6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100382e1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10038800
xor eax, eax
inc eax
jmp 0x10038800
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10038865
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10051040]
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.1002e8bc
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.1002e8bc
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 0x100388dc
cmp word [ecx], dx
je 0x100388dc
mov eax, dword [0x100475d4]
push edi
dec eax
push eax
push 0x100474c0
call fcn.10038804
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003894f
cmp word [eax], dx
je 0x1003894f
mov eax, dword [edi]
test eax, eax
je 0x10038900
cmp word [eax], dx
je 0x10038900
lea eax, [ebp - 0x10]
push eax
call fcn.100381e7
jmp 0x10038909
lea eax, [ebp - 0x10]
push eax
call fcn.10038282
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10038979
mov eax, dword [0x100474bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100471b0
call fcn.10038804
add esp, 0xc
test al, al
je 0x10038979
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10038944
cmp word [eax], di
je 0x10038944
lea eax, [ebp - 0x10]
push eax
call fcn.100381e7
pop ecx
jmp 0x1003897b
lea eax, [ebp - 0x10]
push eax
call fcn.10038282
jmp 0x10038941
mov eax, dword [edi]
test eax, eax
je 0x10038966
cmp word [eax], dx
je 0x10038966
lea eax, [ebp - 0x10]
push eax
call fcn.1003819c
pop ecx
jmp 0x10038979
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 0x10038a44
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10038689
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10038a44
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10038a44
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10038a44
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100389d1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100348b6
test ebx, ebx
je 0x10038a3f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100348b6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10038a44
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 0x10038a44
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1003d2a6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10038a46
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002078c
leave
ret
Function at 0x1003a569
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 + 0x10053558]
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 0x1003a5a9
cmp byte [ebx], 0xa
jne 0x1003a5a9
or byte [edi + eax + 0x28], 4
jmp 0x1003a5ae
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 0x1003a6ad
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003a690
inc eax
cmp dl, 0xd
je 0x1003a5da
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003a600
cmp eax, ecx
jae 0x1003a60e
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 0x1003a5c2
jmp 0x1003a6ad
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 0x1003a68b
cmp dword [ebp - 0x10], 0
je 0x1003a68b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10053558]
test byte [eax + edi + 0x28], 0x48
je 0x1003a665
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003a650
mov byte [esi], dl
jmp 0x1003a661
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10053558]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003a6ad
cmp byte [ebp - 1], 0xa
jne 0x1003a674
cmp esi, ebx
jne 0x1003a674
mov byte [esi], 0xa
jmp 0x1003a6ac
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003a362
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003a6ad
mov byte [esi], 0xd
jmp 0x1003a6ac
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10053558]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003a6aa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003a6ad
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003a6b6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10053558]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003a6fc
cmp word [ebx], dx
jne 0x1003a6fc
or byte [eax + edi + 0x28], 4
jmp 0x1003a701
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1003a864
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1003a844
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003a742
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003a778
cmp eax, edx
jae 0x1003a786
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1003a71d
jmp 0x1003a864
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a83f
cmp dword [ebp - 0x18], 0
je 0x1003a83f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10053558]
test byte [eax + edi + 0x28], 0x48
je 0x1003a815
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1003a7d9
mov word [esi], cx
jmp 0x1003a810
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10053558]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10053558]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10053558]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003a864
pop eax
cmp word [ebp - 4], ax
jne 0x1003a825
cmp esi, ebx
jne 0x1003a825
mov word [esi], ax
jmp 0x1003a861
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003a362
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003a864
push 0xd
pop eax
jmp 0x1003a820
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10053558]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003a85e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003a864
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret