joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015ca0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push esi
push edi
lea edi, [ebp - 0x150]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1008c400]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100cb0a7
call fcn.1002457b
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x130], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10015dfa
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.10030fa0
add esp, 8
test eax, eax
jne 0x10015d69
mov esi, esp
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.10024558
mov dword [ebp - 0x13c], eax
mov esi, esp
push 0
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.10024558
push 0xffffffffffffffff
call fcn.10031520
nop
push 0
call fcn.100155a0
add esp, 4
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], edx
lea eax, [ebp - 0x148]
push eax
call fcn.10015570
add esp, 4
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 0x14]
add edx, 0x76c
cmp edx, 0x7e7
jne 0x10015dd7
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 0x14]
add ecx, 0x76c
cmp ecx, 0x7e8
jne 0x10015dd7
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 0x14]
add eax, 0x76c
cmp eax, 0x7e9
je 0x10015ddf
push 0xffffffffffffffff
call fcn.10031520
nop
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10015d0f
cmp dword [ebp - 0x138], 0xffffffff
je 0x10015e1a
mov esi, esp
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10024558
nop
push edx
mov ecx, ebp
push eax
lea edx, [0x10015e48]
call fcn.10024504
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100245ad
add esp, 0x150
cmp ebp, esp
call fcn.10024558
mov esp, ebp
pop ebp
ret
Function at 0x1001b1f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov ecx, 0x100cb323
call fcn.1002457b
mov dword [ebp - 8], str.totoshka.hopto.org
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp esi, esp
call fcn.10024558
mov dword [ebp - 4], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [edx + ecx]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
push 0xf
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp esi, esp
call fcn.10024558
push eax
push 0x7c0dd0
call fcn.10026bd0
add esp, 0xc
push 0xf
mov esi, esp
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp esi, esp
call fcn.10024558
push eax
push 0x1008f76c
call fcn.10026bd0
add esp, 0xc
push edx
mov ecx, ebp
push eax
lea edx, [0x1001b2b0]
call fcn.10024504
pop eax
pop edx
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.10024558
mov esp, ebp
pop ebp
ret
Function at 0x1001d140
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov ecx, 0x100cb8ea
call fcn.1002457b
nop
push 0x104
call fcn.100249cd
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov esi, esp
push 0x1007c2a0
push 0x104
mov ecx, dword [ebp - 0x10]
push ecx
push str.Verdana
push str.FONT_NAME
push 0x1007c2c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call fcn.10024558
push 7
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0x1008c2f0]
add eax, 0x357718
push eax
lea ecx, [ebp - 5]
call fcn.10021fa0
mov esi, esp
push 0x1007c2cc
push 0x104
mov ecx, dword [ebp - 0x10]
push ecx
push 0x1007c2dc
push str.FONT_SIZE
push 0x1007c2ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call fcn.10024558
mov edx, dword [ebp - 0x10]
push edx
call fcn.1004eb88
add esp, 4
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x15]
cmp eax, 0xb
jge 0x1001d214
mov byte [ebp - 0x15], 0xb
jmp 0x1001d221
movzx ecx, byte [ebp - 0x15]
cmp ecx, 0x14
jle 0x1001d221
mov byte [ebp - 0x15], 0x14
movzx edx, byte [ebp - 0x15]
add edx, 2
mov byte [ebp - 0x15], dl
push 1
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [0x1008c2f0]
add ecx, 0x176b80
push ecx
lea ecx, [ebp - 5]
call fcn.10021fa0
movzx edx, byte [ebp - 0x15]
sub edx, 2
mov byte [ebp - 0x15], dl
push 1
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [0x1008c2f0]
add ecx, 0x176b99
push ecx
lea ecx, [ebp - 5]
call fcn.10021fa0
movzx edx, byte [ebp - 0x15]
sub edx, 1
mov byte [ebp - 0x15], dl
push 1
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [0x1008c2f0]
add ecx, 0x176bb3
push ecx
lea ecx, [ebp - 5]
call fcn.10021fa0
nop
push edx
mov ecx, ebp
push eax
lea edx, [0x1001d2b4]
call fcn.10024504
pop eax
pop edx
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.10024558
mov esp, ebp
pop ebp
ret

Function at 0x1001d300
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, 0x100cb98c
call fcn.1002457b
mov esi, esp
push 1
push 0
push 0
push str.https:__shaiya.sonovgames.com__pdonate
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp esi, esp
call fcn.10024558
nop
pop esi
cmp ebp, esp
call fcn.10024558
pop ebp
ret
Function at 0x1001d980
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
push edi
lea edi, [ebp - 0x80]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1008c400]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100cbc17
call fcn.1002457b
cvtsi2ss xmm0, dword [ebp + 0x10]
movss dword [ebp - 8], xmm0
mov esi, esp
mov eax, dword [ebp + 0x14]
push eax
push 0x64
lea ecx, [ebp - 0x70]
push ecx
push 0x1007c32d
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call fcn.10024558
test eax, eax
jbe 0x1001da19
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.10054cbf
add esp, 8
fstp dword [ebp - 8]
movss xmm0, dword [ebp - 8]
ucomiss xmm0, dword [0x1007c3a8]
lahf
test ah, 0x44
jp 0x1001da19
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x7c], eax
jne 0x1001da19
cvtsi2ss xmm0, dword [ebp + 0x10]
movss dword [ebp - 8], xmm0
fld dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x1001da4c]
call fcn.10024504
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100245ad
add esp, 0x80
cmp ebp, esp
call fcn.10024558
mov esp, ebp
pop ebp
ret
Function at 0x10021da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov ecx, 0x100cbf41
call fcn.1002457b
nop
cmp dword [ebp + 0x10], 5
jge 0x10021ddc
xor eax, eax
jmp 0x10021e4d
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10024558
mov eax, dword [ebp + 0x10]
push eax
push 0x90
mov ecx, dword [ebp + 8]
push ecx
call fcn.10027150
add esp, 0xc
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
sub edx, 5
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov byte [eax], 0xe9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 1], edx
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10024558
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x10021e70]
call fcn.10024504
pop eax
pop edx
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.10024558
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10022360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov ecx, 0x100cc042
call fcn.1002457b
nop
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x10022385
jmp 0x100223e9
mov esi, esp
push str.game.exe
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp esi, esp
call fcn.10024558
mov dword [0x1008c2f0], eax
cmp dword [0x1008c2f0], 0
je 0x100223e1
call fcn.10022710
mov esi, esp
push 0
push 0
push 0
push 0x100221a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.10024558
mov esi, esp
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10024558
nop
jmp 0x100223e9
push 0xffffffffffffffff
call fcn.10031520
nop
mov eax, 1
pop esi
add esp, 4
cmp ebp, esp
call fcn.10024558
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10024628
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 0x1002465d
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x1002465a
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x10024666
add edx, 0x28
cmp edx, esi
jne 0x10024648
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x10024663
Function at 0x100313bd
Capabilities:
Parse pe header

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

Function at 0x10059269
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10080374
push 0x1008036c
push str.FlsAlloc
push 0x1f
call fcn.10058f37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005929d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007b254]
call esi
jmp 0x100592a3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100592e7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10080384
push 0x1008037c
push str.FlsGetValue
push 0x21
call fcn.10058f37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005931e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007b254]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10059326
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008038c
push 0x10080384
push str.FlsSetValue
push 0x22
call fcn.10058f37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10059360
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007b254]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005f585
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1008c400]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1005f5d0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1005f993
test al, al
jne 0x1005f5ca
sub edx, 2
cmp edx, edi
jne 0x1005f5b0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1005f5f2
lea eax, [edi + 2]
cmp edx, eax
je 0x1005f5f2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1005f24c
add esp, 0x10
jmp 0x1005f6ec
push esi
lea ecx, [ebp - 0x255]
call fcn.1005f993
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005f635
push dword [ebp - 0x25c]
jmp 0x1005f5e2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1005f672
cmp word [ebp - 0x226], 0
je 0x1005f693
cmp word [ebp - 0x226], ax
jne 0x1005f672
cmp word [ebp - 0x224], 0
je 0x1005f693
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1005f24c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1005f6df
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1005f64c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1005f6c7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1005f6ec
push 0x1005ec9c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.1006b2f0
add esp, 0x10
jmp 0x1005f6bc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100245ad
leave
ret
Function at 0x10060fe8
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 0x10061085
push ebx
push esi
call fcn.10060fa4
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.10060ee1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10061032
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10061084
push edi
push eax
call fcn.1005c6ee
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10061052
call fcn.1005c6b4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10061083
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10060ee1
add esp, 0x20
test eax, eax
jne 0x10061071
push edi
call fcn.1005c6b4
jmp 0x10061079
push ebx
call fcn.1005c6b4
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 0x10061088
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10061099
pop esi
ret
push ebx
push edi
push esi
call fcn.10060fa4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005c6ee
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100610c1
push ebx
push esi
push edi
call fcn.10026bd0
add esp, 0xc
push 0
call fcn.1005c6b4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100619a5
Capabilities:
Set environment variable

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

Function at 0x100661b2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005a1e5
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 0x10066221
cmp esi, dword [ebp - 4]
je 0x1006621c
cmp dword [ebp + 0xc], 0
je 0x1006621c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100661f9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10065d04
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10066223
xor eax, eax
inc eax
jmp 0x10066223
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10066288
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1008c400]
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.1005a1e5
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.1005a1e5
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 0x100662ff
cmp word [ecx], dx
je 0x100662ff
mov eax, dword [0x100838b4]
push edi
dec eax
push eax
push 0x100837a0
call fcn.10066227
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10066372
cmp word [eax], dx
je 0x10066372
mov eax, dword [edi]
test eax, eax
je 0x10066323
cmp word [eax], dx
je 0x10066323
lea eax, [ebp - 0x10]
push eax
call fcn.10065c0a
jmp 0x1006632c
lea eax, [ebp - 0x10]
push eax
call fcn.10065ca5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1006639c
mov eax, dword [0x1008379c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10083490
call fcn.10066227
add esp, 0xc
test al, al
je 0x1006639c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10066367
cmp word [eax], di
je 0x10066367
lea eax, [ebp - 0x10]
push eax
call fcn.10065c0a
pop ecx
jmp 0x1006639e
lea eax, [ebp - 0x10]
push eax
call fcn.10065ca5
jmp 0x10066364
mov eax, dword [edi]
test eax, eax
je 0x10066389
cmp word [eax], dx
je 0x10066389
lea eax, [ebp - 0x10]
push eax
call fcn.10065ba1
pop ecx
jmp 0x1006639c
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 0x10066467
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100660ac
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10066467
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10066467
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10066467
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100663f4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100595f7
test ebx, ebx
je 0x10066462
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100595f7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10066467
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 0x10066467
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006dbe4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10066469
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100245ad
leave
ret
Function at 0x1006f1c2
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 + 0x10093ec8]
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 0x1006f202
cmp byte [ebx], 0xa
jne 0x1006f202
or byte [edi + eax + 0x28], 4
jmp 0x1006f207
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 0x1006f306
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006f2e9
inc eax
cmp dl, 0xd
je 0x1006f233
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006f259
cmp eax, ecx
jae 0x1006f267
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 0x1006f21b
jmp 0x1006f306
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 0x1006f2e4
cmp dword [ebp - 0x10], 0
je 0x1006f2e4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10093ec8]
test byte [eax + edi + 0x28], 0x48
je 0x1006f2be
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006f2a9
mov byte [esi], dl
jmp 0x1006f2ba
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10093ec8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006f306
cmp byte [ebp - 1], 0xa
jne 0x1006f2cd
cmp esi, ebx
jne 0x1006f2cd
mov byte [esi], 0xa
jmp 0x1006f305
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006e950
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006f306
mov byte [esi], 0xd
jmp 0x1006f305
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10093ec8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006f303
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006f306
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret