joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41efa0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48c4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
xor esi, esi
cmp eax, esi
je 0x41efd8
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esp + 0x10], vtable.CRegistry.0
call fcn.00436fa8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41effa
push 0x80004005
call fcn.00405de0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
push 0x3b
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], esi
call fcn.00403170
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
push edi
lea edx, [esp + 0x40]
push edx
push edi
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push str.CertificateRevocation
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x41f095
push eax
call edi
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x10], vtable.CRegistry.0
cmp eax, esi
je 0x41f0b0
push eax
call edi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f0d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret 4
Function at 0x41f290
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b560
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 2
push edi
push 3
push 0x40000000
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x41f2fb
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 8
mov ecx, dword [ebp + 8]
push edi
push edi
push edi
push edi
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, edi
jne 0x41f316
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa000
call fcn.00430336
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x41f33b
push 0xa000
push edi
push esi
call fcn.00456ba0
add esp, 0xc
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push 0xa000
push 0
push esi
call fcn.00456ba0
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
push 0x1000
push esi
push eax
call ebx
mov ecx, dword [ebp - 0x1c]
mov edi, ecx
test eax, eax
je 0x41f3a7
test ecx, ecx
jbe 0x41f3cf
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0x20]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [ebp - 0x20]
je 0x41f341
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4a512c
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], 0x103
call fcn.00456eab
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4a512c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 0x103
call fcn.00456eab
mov eax, 0x41f3cc
ret
test esi, esi
je 0x41f3dc
push esi
call fcn.0043032b
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 8
Function at 0x4201e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc58
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0xc54], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc64]
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x42020e
xor al, al
jmp 0x420342
test ebp, ebp
jne 0x420215
lea ebp, [edi + 8]
push ebp
call fcn.00420360
add esp, 4
test al, al
je 0x420207
lea esi, [esp + 0x18]
call fcn.004200f0
cmp byte [esp + 0x248], 0
push 0
mov eax, esi
push eax
je 0x420265
add edi, 8
push edi
lea ecx, [esp + 0x364]
push 0
push ecx
call fcn.004513eb
lea edx, [esp + 0x36c]
add esp, 0x14
push edx
call fcn.00420360
add esp, 4
jmp 0x420342
push ebp
lea ecx, [esp + 0x25c]
push 0
push ecx
call fcn.004513eb
add esp, 0x14
lea eax, [esp + 0x250]
call fcn.00420410
test al, al
je 0x420207
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x420207
mov eax, dword [edi + 4]
push eax
call fcn.0042adb0
test eax, eax
jne 0x420207
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, edi
mov edx, dword [edi + 4]
push 0x800
lea ecx, [esp + 0x464]
push ecx
push edx
call fcn.0042a720
mov esi, eax
test esi, esi
jle 0x420314
push 0
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x46c]
push ecx
push ebp
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x420311
cmp dword [esp + 0x14], esi
je 0x4202d0
or esi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 4]
push edx
call fcn.0042a920
test esi, esi
jne 0x42033b
mov ecx, dword [esp + 0x230]
lea eax, [esp + 0x250]
call fcn.00420450
xor eax, eax
test esi, esi
sete al
mov ecx, dword [esp + 0xc64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044fdb2
add esp, 0xc58
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x420402
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x420402
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x420395
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov al, cl
pop esi
ret
push ebx
push edi
push esi
call fcn.00452326
mov edi, eax
push 0x5c
push edi
call fcn.00450f90
mov ecx, esi
add esp, 0xc
lea ebx, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4203b0
sub ecx, ebx
cmp byte [ecx + esi - 1], 0x5c
sete bl
test eax, eax
je 0x4203fc
push edi
mov byte [eax], dl
call fcn.00420360
add esp, 4
push edi
test al, al
jne 0x4203e3
call fcn.0044ffc5
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
ret
call fcn.0044ffc5
add esp, 4
test bl, bl
jne 0x4203fc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4203dd
pop edi
pop ebx
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x420450
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x30
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x42047d
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4204eb
lea ecx, [esp + 0x18]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4204eb
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x4204eb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x30
ret

Function at 0x420500
Capabilities:
Delete file

Disassembly:
sub esp, 0x134
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x130], eax
push 0x105
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.00456ba0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00452681
lea edx, [esp + 0x30]
add esp, 0xc
push edx
call fcn.00420720
add esp, 4
cmp eax, 1
jne 0x420574
push 0x10000000
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x134
ret
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
lea edx, [esp + 4]
lea eax, [esp + 0x24]
mov ecx, 0x294
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x130]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0044fdb2
add esp, 0x134
ret
Function at 0x4205e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x230], eax
push 0x105
lea eax, [esp + 0x12d]
push 0
push eax
mov byte [esp + 0x134], 0
call fcn.00456ba0
push 0x104
lea ecx, [esp + 0x138]
push esi
push ecx
call fcn.00452681
xor eax, eax
push 0x104
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
lea ecx, [esp + 0x3d]
lea edx, [esp + 0x144]
mov eax, 0x214
or word [esp + 0x2c], ax
push 0
push ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 3
mov byte [esp + 0x44], 0
call fcn.00456ba0
add esp, 0x24
lea edx, [esp + 0x20]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
lea ecx, [ecx]
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00420ac0
add esp, 8
test eax, eax
jne 0x4206b6
lea edi, [esp + 0x24]
call fcn.00420920
test eax, eax
jne 0x420690
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x234]
neg eax
sbb eax, eax
pop edi
xor ecx, esp
inc eax
call fcn.0044fdb2
add esp, 0x234
ret
Function at 0x420720
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b690
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push 0x140
xor esi, esi
lea ecx, [ebp - 0x15c]
push esi
push ecx
mov dword [ebp - 0x178], eax
call fcn.00456ba0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x4207ae
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x160], 0
je 0x4207cf
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call edi
push eax
call ebx
lea ecx, [ebp - 0x164]
push ecx
call eax
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x15c]
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420810
xor eax, eax
push 0x4a512c
lea ecx, [ebp - 0x168]
push ecx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x168], eax
call fcn.00456eab
mov eax, dword [ebp - 0x15c]
mov edx, eax
or edx, 0x10
cmp eax, edx
jne 0x420893
nop
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x42086a
mov eax, dword [ebp - 0x15c]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
je 0x420820
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 2
push 0x4a512c
lea edx, [ebp - 0x174]
push edx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x174], eax
call fcn.00456eab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x16c], eax
push 0x4a512c
lea eax, [ebp - 0x16c]
push eax
call fcn.00456eab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 2
push 0x4a512c
lea ecx, [ebp - 0x170]
push ecx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x170], eax
call fcn.00456eab
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4208c9
ret
Function at 0x420920
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00456ba0
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420962
sub eax, edx
push esi
mov esi, eax
lea edx, [esi - 2]
cmp edx, 1
ja 0x4209b6
movsx eax, byte [esp + 4]
push eax
call fcn.004527b1
add esp, 4
cmp eax, 0x41
jl 0x4209b6
movsx ecx, byte [esp + 4]
push ecx
call fcn.004527b1
add esp, 4
cmp eax, 0x5a
jg 0x4209b6
cmp byte [esp + 5], 0x3a
jne 0x4209b6
cmp esi, 3
jne 0x4209af
cmp byte [esp + 6], 0x5c
jne 0x4209b6
cmp byte [esp + 4], 0
jne 0x4209fa
lea eax, [esp + 4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4209c0
sub eax, edx
add eax, 0xffffffff
js 0x4209dc
mov edi, edi
cmp byte [esp + eax + 4], 0x5c
je 0x420a12
sub eax, 1
jns 0x4209d0
test edi, edi
je 0x4209fa
lea eax, [esp + 4]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4209f0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x10c
ret
mov byte [esp + eax + 4], 0
test edi, edi
je 0x420a2f
lea eax, [esp + 4]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x420a25
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420a36
sub eax, edx
mov esi, eax
lea edx, [esi - 2]
cmp edx, 1
ja 0x420a8d
movsx eax, byte [esp + 4]
push eax
call fcn.004527b1
add esp, 4
cmp eax, 0x41
jl 0x420a8d
movsx ecx, byte [esp + 4]
push ecx
call fcn.004527b1
add esp, 4
cmp eax, 0x5a
jg 0x420a8d
cmp byte [esp + 5], 0x3a
jne 0x420a8d
cmp esi, 3
jne 0x420a82
cmp byte [esp + 6], 0x5c
jne 0x420a8d
cmp byte [esp + 4], 0
jne 0x4209fa
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044fdb2
add esp, 0x10c
ret
Function at 0x420cf0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x48c74b
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.00454d40
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push ebp
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x101c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1030]
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.00456ba0
mov eax, dword [esp + 0x1038]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
mov dword [esp + 0x34], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x18]
mov edi, eax
push edx
lea ecx, [esp + 0x14]
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00403280
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov dword [esp + 0x1028], ebx
call fcn.00402b00
mov dword [esp + 0x1024], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp edi, ebx
jne 0x420dd8
test edx, edx
jg 0x420dd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x420de8
test edx, edx
jg 0x420de6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x101c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x1018
ret 8

Function at 0x420fc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x214]
push esi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call fcn.00456ba0
add esp, 0xc
mov ecx, esi
call fcn.004210f0
test al, al
je 0x4210cb
push edi
lea edi, [esi + 4]
push 0x5c
push edi
call fcn.00450f90
sub eax, esi
sub eax, 4
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00452820
push 0x103
lea edx, [esp + 0x129]
push 0
push edx
mov byte [esp + 0x130], 0
call fcn.00456ba0
add esp, 0x20
push edi
push 0x104
lea eax, [esp + 0x118]
push eax
push str.LngENU.ini
push ebp
push str.LanguageItems
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esi + 0x108]
lea eax, [esp + 0xc]
mov esi, edx
mov ecx, eax
sub esi, ecx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x421072
mov edi, edx
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x421080
mov ax, word [0x498ac8]
mov word [edi], ax
lea eax, [esp + 0x110]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4210a0
sub eax, esi
dec edx
lea ebx, [ebx]
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x4210b0
mov ecx, eax
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, 1
pop edi
mov ecx, dword [esp + 0x210]
pop esi
pop ebp
xor ecx, esp
call fcn.0044fdb2
add esp, 0x20c
ret 4
Function at 0x4211b0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2810
call fcn.00454d40
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x280c], eax
push ebp
mov ebp, dword [esp + 0x2818]
push esi
mov esi, ecx
call fcn.004210f0
test al, al
jne 0x4211e6
mov eax, 0x49a277
jmp 0x4212b7
lea eax, [esi + 4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4211f0
sub eax, edx
cmp eax, 3
jb 0x4211dc
xor eax, eax
mov byte [esp + 8], cl
mov ecx, esi
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov word [esp + 0x11], ax
mov byte [esp + 0x13], al
call fcn.004212d0
lea edx, [esp + 8]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x421220
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00420fc0
test al, al
je 0x4211dc
add esi, 0x108
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421245
sub eax, edx
cmp eax, 3
jb 0x4211dc
push 0x27ff
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x19]
push 0
push ecx
call fcn.00456ba0
add esp, 0xc
push esi
push 0x2800
lea edx, [esp + 0x1c]
push edx
push 0x49a277
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x2800
push 0
push 0x4bea98
call fcn.00456ba0
add esp, 0xc
mov dword [0x4b6174], 0x4bea98
xor eax, eax
mov cl, byte [esp + eax + 0x14]
mov byte [eax + 0x4bea98], cl
inc eax
test cl, cl
jne 0x4212a3
mov eax, 0x4bea98
mov ecx, dword [esp + 0x2814]
pop esi
pop ebp
xor ecx, esp
call fcn.0044fdb2
add esp, 0x2810
ret 4

Function at 0x4212d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, ecx
call fcn.004210f0
test al, al
jne 0x42130b
mov eax, 0x49a277
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x108
ret
add esi, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421313
sub eax, edx
cmp eax, 3
jb 0x4212f0
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], cl
call fcn.00456ba0
add esp, 0xc
push esi
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0x49a277
push str.Default
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [0x4b6178], 0x4c1298
xor eax, eax
mov cl, byte [esp + eax + 4]
mov byte [eax + 0x4c1298], cl
inc eax
test cl, cl
jne 0x421365
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
mov eax, 0x4c1298
call fcn.0044fdb2
add esp, 0x108
ret
Function at 0x421530
Capabilities:
Read .ini file

Disassembly:
cmp dword [esp + 8], 0
push ebp
push esi
je 0x4215d9
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x4215d9
push edi
push 0x201
mov esi, 0x200
call fcn.00430336
add esp, 4
mov edi, eax
mov eax, 0x49a277
test ebx, ebx
je 0x421569
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push 0x200
push edi
push eax
mov eax, dword [esp + 0x24]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
call ebp
inc eax
cmp eax, 0x200
jb 0x4215d1
mov edi, edi
push edi
add esi, 0x200
call fcn.0043032b
lea ecx, [esi + 1]
push ecx
call fcn.00430336
add esp, 8
mov edi, eax
mov eax, 0x49a277
test ebx, ebx
je 0x4215b5
mov eax, ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x18]
push ecx
push esi
push edi
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
call ebp
inc eax
cmp eax, esi
jae 0x421590
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
test ebx, ebx
jne 0x4215f0
push 1
call fcn.00430336
mov esi, eax
add esp, 4
mov byte [esi], bl
pop esi
pop ebp
ret 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4215f5
sub eax, edx
inc eax
push eax
call fcn.00430336
mov esi, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421610
sub eax, edx
push ebx
inc eax
push eax
push esi
call fcn.00450626
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret 0xc