joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1a87b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x1a87b7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x1a888d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x26bea8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x26bea8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x26bea8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x26bea8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x26bea8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x26bea8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x26bea8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x26bea8]
add ecx, 8
sub edx, 8
dec esi
jne 0x1a87d0
pop edi
test edx, edx
je 0x1a88aa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x26bea8]
inc ecx
dec edx
jne 0x1a8891
not eax
pop esi
ret

Function at 0x1a88b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x26bea8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x26bea8]
mov dword [edx + 8], ecx
ret

Function at 0x1a8900
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x26bea8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x26bea8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x1a90e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x1a9116
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1a910c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x1a9127
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.001e68b0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x1a9150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x1a9183
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1a917e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x1a91ae
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x1a9195
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.001e68b0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x1a91c3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x1a91bd
cmp byte [esi + 8], 0
je 0x1a91bd
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x1a9260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x1a92a7
cmp byte [esi + 1], 0
je 0x1a92af
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x1a92c2
cmp byte [esi + 1], 0
je 0x1a92b6
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x1a92ca
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x1a9281
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x1a92ca
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x1a92dc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.001e4af4
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1a92f9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x1a940d
jmp 0x1a9319
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x1a9328
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x1a933f
mov ebx, 0x404
cmp byte [esi], 0
je 0x1a9364
cmp byte [esi + 1], 0
je 0x1a940d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1a9367
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x1a9390
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1a938b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x1a93b9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x1a93a1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.001e68b0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x1a940d
lea eax, [ebx - 3]
test eax, eax
js 0x1a93fb
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x1a93ef
cmp byte [eax + ecx + 1], 0x4b
jne 0x1a93ef
cmp byte [eax + ecx + 2], 5
jne 0x1a93ef
cmp byte [eax + ecx + 3], 6
je 0x1a93f5
test eax, eax
jns 0x1a93d0
jmp 0x1a93fb
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1a940d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x1a9310
mov eax, dword [ebp - 0x10]
push eax
call fcn.001e4a7a
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1aa290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x1aa34f
cmp dword [esi + 4], 0xffffffff
jne 0x1aa34f
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1aa2c0
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x1aa2f1
cmp al, 0x2f
je 0x1aa2f1
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1aa2e0
mov ax, word [0x26e3c8]
mov word [edi], ax
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x1aa315
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1aa315
mov eax, 0x2000000
pop edi
pop ecx
pop ebp
ret 8
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edi
push edx
push ebx
call fcn.001a8fd0
add esp, 0x10
test eax, eax
jne 0x1aa334
mov eax, dword [ebp + 0xc]
pop edi
pop ecx
pop ebp
ret 8
call fcn.001a9430
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8

Function at 0x1aa9f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x27f584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1aaa24
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1aaa24
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x1aaade
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x1aaa3b
cmp al, 0x5c
jne 0x1aaa3d
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1aaa33
cmp esi, ebx
je 0x1aaa71
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.001e68b0
lea ecx, [ebp - 0x20c]
push ecx
push edi
mov byte [ebp + esi - 0x20c], 0
call fcn.001aa9f0
add esp, 0x14
mov byte [ebp - 0x108], 0
test edi, edi
je 0x1aaa90
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1aaa86
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1aaa94
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1aaaa4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x1aaade
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.001e2239
mov esp, ebp
pop ebp
ret
Function at 0x1ab790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x24d33e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x27f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
test byte [0x287408], al
jne 0x1ab7fe
or dword [0x287408], eax
push 0x259920
mov dword [0x287400], 0xf
mov dword [0x2873fc], 0
mov byte [0x2873ec], 0
call fcn.001e2da7
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x2873fc], 0
je 0x1ab817
push 0xffffffffffffffff
push 0
push 0x2873ec
mov ecx, esi
call fcn.00162c50
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.001e6830
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesEyooClientSVC
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1ab926
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [ebp - 0x11c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x118]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1ab8a2
mov eax, edi
jmp 0x1ab926
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.001e5a9f
add esp, 8
test eax, eax
je 0x1ab8ba
mov byte [eax], 0
cmp byte [ebp - 0x114], 0x22
jne 0x1ab8e3
lea eax, [ebp - 0x113]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1ab8d0
sub eax, edx
push eax
lea ecx, [ebp - 0x113]
push ecx
jmp 0x1ab901
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1ab8f0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, esi
call fcn.00162a60
cmp dword [esi + 0x10], 0
jne 0x1ab915
mov eax, 3
jmp 0x1ab926
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x2873ec
call fcn.00162c50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
Function at 0x1ab940
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x27f584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x285bc4]
cmp eax, 0xfffffc19
jne 0x1ababf
push ebx
push esi
xor ebx, ebx
push str.kernel32
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
jne 0x1ab97a
xor eax, eax
jmp 0x1ab99c
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x1ab999
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x24]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x28]
push ecx
and eax, 0x100
add eax, 0x20019
push eax
push ebx
push str.SOFTWAREEYOOCLIENTSTATUS
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1aba6a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push str.BootFrom
push edx
call esi
test eax, eax
jne 0x1aba11
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push str.MixedMode
push eax
call esi
test eax, eax
je 0x1aba24
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], ebx
je 0x1aba52
cmp dword [ebp - 0x30], ebx
jne 0x1aba52
mov eax, 1
pop esi
mov dword [0x285bc4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
pop esi
mov dword [0x285bc4], ebx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
push 0x1a
push str.D:_syssetmenu_setmenu.dat
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.00162a60
mov eax, dword [ebp - 0x20]
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jae 0x1aba96
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov dword [0x285bc4], eax
cmp dword [ebp - 0xc], esi
jb 0x1ababd
mov edx, dword [ebp - 0x20]
push edx
call fcn.001e25e4
mov eax, dword [0x285bc4]
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
Function at 0x1abad0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x27f584]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x1abaf7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
push 0x1ff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call fcn.001e6830
push 0x1ff
lea ecx, [ebp - 0x403]
push 0
push ecx
mov byte [ebp - 0x404], 0
call fcn.001e6830
push str.MainServer
push 0x27105c
lea edx, [ebp - 0x404]
call fcn.001ac2d0
add esp, 0x20
push esi
push 0x200
lea edx, [ebp - 0x204]
push edx
push 0x26e3a5
lea eax, [ebp - 0x404]
push eax
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1abb70
sub eax, edx
inc eax
cmp eax, 0x40
ja 0x1abae7
lea eax, [ebp - 0x204]
mov edx, edi
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1abb90
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.001e2239
mov esp, ebp
pop ebp
ret
Function at 0x1ac0d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x24e715
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x27f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], edi
mov byte [ebp - 0x88], 0
lea esi, [ebp - 0x88]
mov dword [ebp - 4], 1
call fcn.001ab790
test eax, eax
je 0x1ac170
push edi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], edi
push 0x26e3a5
mov ecx, ebx
mov byte [ebx], 0
call fcn.00162a60
mov byte [ebp - 4], 0
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x8c], 1
jb 0x1ac2af
mov eax, dword [ebp - 0x88]
push eax
jmp 0x1ac2a7
push 1
push 0x26e3c8
lea ecx, [ebp - 0x88]
call fcn.00164040
push str.BaseSeting.ini
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.00166670
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c]
mov esi, 0x10
cmp dword [ebp - 0x58], esi
jae 0x1ac1ae
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1ac200
push edi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], edi
push 0x26e3a5
mov ecx, ebx
mov byte [ebx], al
call fcn.00162a60
mov byte [ebp - 4], 1
mov dword [ebp - 0x8c], 1
cmp dword [ebp - 0x58], esi
jb 0x1ac1f1
mov eax, dword [ebp - 0x6c]
push eax
call fcn.001e25e4
add esp, 4
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], edi
jmp 0x1ac293
push 0x3f
lea edx, [ebp - 0x4f]
push edi
push edx
mov byte [ebp - 0x50], 0
call fcn.001e6830
add esp, 0xc
cmp dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x6c]
jae 0x1ac21e
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x50]
call fcn.001abad0
mov edi, 0xf
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], edi
mov byte [ebx], 0
test eax, eax
jne 0x1ac244
push eax
push 0x26e3a5
jmp 0x1ac25e
lea eax, [ebp - 0x50]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1ac250
sub eax, edx
push eax
lea edx, [ebp - 0x50]
push edx
mov ecx, ebx
call fcn.00162a60
mov esi, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x8c], 1
cmp dword [ebp - 0x58], esi
jb 0x1ac289
mov eax, dword [ebp - 0x6c]
push eax
call fcn.001e25e4
add esp, 4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], edi
mov byte [ebp - 4], 0
mov byte [ebp - 0x6c], 0
cmp dword [ebp - 0x74], esi
jb 0x1ac2af
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.001e25e4
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
Function at 0x1ac2f0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x24b6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x27f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1ac364
mov ecx, esi
lea edi, [ebp - 0x2c]
call fcn.00167520
xor edi, edi
mov edx, eax
mov dword [ebp - 4], edi
call fcn.00167130
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x1ac356
mov eax, dword [ebp - 0x2c]
push eax
call fcn.001e25e4
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
push 0x26e584
push esi
call fcn.001e4378
mov edi, eax
add esp, 8
test edi, edi
jne 0x1ac398
mov edx, esi
call fcn.00167920
push 0x26e584
push esi
call fcn.001e4378
mov edi, eax
add esp, 8
test edi, edi
jne 0x1ac398
lea eax, [edi + 0x6e]
jmp 0x1ac3be
mov esi, dword [ebp + 8]
push edi
push esi
push 1
push ebx
call fcn.001e453e
add esp, 0x10
cmp eax, esi
je 0x1ac3b3
mov eax, 0x1d
jmp 0x1ac3be
push edi
call fcn.001e4869
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
Function at 0x1ac3e0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x24e6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x27f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x10
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x14], ebx
jb 0x1ac421
mov eax, dword [esi]
jmp 0x1ac423
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1ac473
cmp dword [esi + 0x14], ebx
jb 0x1ac437
mov ecx, dword [esi]
jmp 0x1ac439
mov ecx, esi
lea edi, [ebp - 0x2c]
call fcn.00167520
xor edi, edi
mov edx, eax
mov dword [ebp - 4], edi
call fcn.00167130
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
jb 0x1ac465
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.001e25e4
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [esi + 0x14], ebx
jb 0x1ac47c
mov eax, dword [esi]
jmp 0x1ac47e
mov eax, esi
push 0x26e584
push eax
call fcn.001e4378
mov edi, eax
add esp, 8
test edi, edi
jne 0x1ac4c2
cmp dword [esi + 0x14], ebx
jb 0x1ac49b
mov edx, dword [esi]
jmp 0x1ac49d
mov edx, esi
call fcn.00167920
cmp dword [esi + 0x14], ebx
jb 0x1ac4a9
mov esi, dword [esi]
push 0x26e584
push esi
call fcn.001e4378
mov edi, eax
add esp, 8
test edi, edi
jne 0x1ac4c2
lea eax, [edi + 0x6e]
jmp 0x1ac4f2
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x10]
cmp dword [eax + 0x14], ebx
jb 0x1ac4cf
mov eax, dword [eax]
push edi
push esi
push 1
push eax
call fcn.001e453e
add esp, 0x10
cmp eax, esi
je 0x1ac4e7
mov eax, 0x1d
jmp 0x1ac4f2
push edi
call fcn.001e4869
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.001e2239
mov esp, ebp
pop ebp
ret
Function at 0x1ac510
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x24c808
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x27f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x1ac551
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1ac588
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jb 0x1ac574
mov edx, dword [ebp + 8]
push edx
call fcn.001e25e4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
jmp 0x1ac597
mov esi, 0x10
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x1ac5a2
lea eax, [ebp + 8]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1ac603
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1ac62f
push 0xfa
inc ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 5
jl 0x1ac592
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], 0x10
jb 0x1ac574
mov ecx, dword [ebp + 8]
push ecx
call fcn.001e25e4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
push 4
push 0
push esi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push esi
test edi, edi
jne 0x1ac660
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x1ac574
mov eax, dword [ebp + 8]
push eax
call fcn.001e25e4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
push edi
test eax, eax
jne 0x1ac6a6
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.0023c760
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.0023c760
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret