joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4728af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x48f348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x48f348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x48e178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4728b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40ddf0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x470818
push 0x430e1a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x47a008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40de51
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.0040df20
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x40de83
test bl, bl
jne 0x40defa
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40de98
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ded0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00404970
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004306b4
lea esp, [ebp + 0x414]
pop ebp
ret

Function at 0x40e300
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x47a008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004306c5
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40e35c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004306b4
add esp, 0x120
ret
Function at 0x418230
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4718f8
push 0x430e1a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x47a008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x418299
xor eax, eax
jmp 0x41840f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4183da
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x4183da
push 0x469298
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4183da
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x4183da
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4183da
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x4183da
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4183da
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x4183da
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4183da
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x4183da
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4183da
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4183c3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x4183b0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x4183c0
jmp 0x4183da
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00418436
test ebx, ebx
jne 0x41840d
test esi, esi
je 0x4183ff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41840d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004306b4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43a900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44dd60
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x43a965
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x43a955
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x43a995
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x24]
call fcn.00406b90
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00439b40
push 0x4771d0
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x3c]
call fcn.00406b90
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x94]
call fcn.00439b40
push 0x4771d0
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x401280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43689f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x445c74]
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], 0
mov esi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 1
mov dword [esp + 8], eax
mov dword [esp + 0x30], eax
test edi, edi
mov byte [esp + 0x24], 3
je 0x401369
push ebx
mov bl, 4
lea eax, [esi + 0x38]
lea ecx, [esp + 0x34]
push eax
call fcn.0042d807
lea ecx, [esp + 0x34]
call fcn.0042cecb
lea ecx, [esp + 0x34]
call fcn.0042ce3c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40130b
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call fcn.0042d807
jmp 0x40135d
lea eax, [esp + 0x34]
push 0x4443a8
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042d922
lea edx, [esp + 0xc]
mov byte [esp + 0x28], bl
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0042d8bc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.0042d807
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0042d71a
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.0042d71a
mov esi, dword [esi + 8]
test esi, esi
jne 0x4012d1
pop ebx
mov ecx, dword [esp + 8]
mov edx, dword [edi + 0x34]
mov eax, dword [str.___s__s_]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0042cd9b
mov esi, dword [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.0042d48f
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.0042d71a
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.0042d71a
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.0042d71a
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4013e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4368df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x445c74]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0xc]
mov dword [edi], eax
mov ecx, dword [0x445c74]
lea ebp, [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov dword [esi + 0x14], 0x4394c0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
lea ecx, [esi + 0x138]
mov byte [esp + 0x1c], 2
call fcn.00405920
mov ecx, ebp
mov byte [esp + 0x1c], 3
mov dword [esi], 0x4394bc
mov byte [esi + 0x28], 1
mov byte [esi + 4], 0x4e
mov dword [esi + 0x134], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 8], ebx
call fcn.0042d6a5
mov ecx, edi
call fcn.0042d6a5
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
lea edi, [0x444b2c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x408ffb
pop eax
mov dword [eax], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x409020
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x20
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0042e0bd
lea eax, [ebp - 0x18]
push 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0042e337
cmp eax, 8
jne 0x4090ab
cmp dword [ebp - 0x18], 0x434c4646
jne 0x4090ab
lea ecx, [ebp - 0x28]
push ecx
call fcn.00409250
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
jne 0x4090ab
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042e15d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042e15d
jmp 0x4090ca
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 4], 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call fcn.0042e0bd
lea ecx, [ebp - 0x18]
push 8
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0042e337
cmp eax, 8
jne 0x409231
cmp dword [ebp - 0x18], 0x434c4646
jne 0x409231
lea edx, [ebp - 0x28]
push edx
call fcn.00409250
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jne 0x409238
call fcn.0042e15d
push 0
lea eax, [ebp - 0x130]
or esi, 0xffffffff
push ebx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4091f9
mov ecx, dword [0x445c74]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x444b1c
call fcn.00409780
add esp, 4
lea edx, [ebp + 8]
push eax
push edx
call fcn.0042cdae
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push 0
push eax
call fcn.00434633
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0042d71a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x444b24
call fcn.00409780
add esp, 4
push eax
call fcn.00434633
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0042e15d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409790
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4484dc]
sub esp, 0x424
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
jne 0x4097b5
call fcn.00409a40
mov eax, dword [0x4484dc]
cmp eax, ebx
je 0x40999e
mov ecx, dword [0x4484e0]
cmp ecx, ebx
je 0x40999e
mov ebp, dword [esp + 0x430]
cmp ebp, ebx
jl 0x40999e
cmp ebp, ecx
jg 0x40999e
mov eax, dword [eax + ebp*4]
cmp eax, ebx
jne 0x4099a3
push esi
push edi
lea eax, [esp + 0x14]
push 0xa
push eax
push ebp
call fcn.004121bc
add esp, 0xc
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push 0x4482d4
push 0x400
push ecx
push str._ErrStr_
push edx
push str.STRING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
mov esi, str._ErrStr_
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40984a
cmp cl, bl
je 0x409846
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40984a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x409826
xor eax, eax
jmp 0x40984f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x409861
push ebp
push str.ELoad_string__d_failed_n
call fcn.0040fd90
add esp, 8
inc edi
push edi
call fcn.00412130
mov ebp, eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x34]
mov al, byte [edi]
inc edi
cmp al, 0x5c
jne 0x40996f
mov al, byte [edi]
inc edi
movsx ecx, al
add ecx, 0xffffffde
cmp ecx, 0x56
ja case.0x409898.45
xor edx, edx
mov dl, byte [ecx + 0x4099dc]
jmp dword [edx*4 + 0x4099ac]
mov byte [esi], 7
inc esi
jmp 0x409873
mov byte [esi], 8
inc esi
jmp 0x409873
mov byte [esi], 0xc
inc esi
jmp 0x409873
mov byte [esi], 0xa
inc esi
jmp 0x409873
mov byte [esi], 0xd
inc esi
jmp 0x409873
mov byte [esi], 9
inc esi
jmp 0x409873
mov byte [esi], 0xb
inc esi
jmp 0x409873
mov byte [esi], 0x27
inc esi
jmp 0x409873
mov byte [esi], 0x22
inc esi
jmp 0x409873
mov byte [esi], 0x5c
inc esi
jmp 0x409873
mov dword [esp + 0x10], ebx
mov byte [esp + 0x10], al
movsx eax, byte [edi]
push eax
call fcn.0041170a
add esp, 4
test eax, eax
je 0x409911
mov cl, byte [edi]
inc edi
mov byte [esp + 0x11], cl
movsx edx, byte [edi]
push edx
call fcn.0041170a
add esp, 4
test eax, eax
je 0x409911
mov al, byte [edi]
inc edi
mov byte [esp + 0x12], al
push 0x10
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00411481
add esp, 0xc
mov byte [esi], al
inc esi
jmp 0x409873
cmp al, 0x30
jl 0x409967
cmp al, 0x37
jg 0x409967
mov dword [esp + 0x10], ebx
mov byte [esp + 0x10], al
mov al, byte [edi]
cmp al, 0x30
jl 0x409957
cmp al, 0x37
jg 0x409957
inc edi
mov byte [esp + 0x11], al
mov al, byte [edi]
cmp al, 0x30
jl 0x409957
cmp al, 0x37
jg 0x409957
mov byte [esp + 0x12], al
inc edi
push 8
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.00411481
add esp, 0xc
mov byte [esi], al
inc esi
jmp 0x409873
mov byte [esi], al
inc esi
cmp al, bl
jne 0x409873
mov ecx, dword [0x4484dc]
mov eax, dword [esp + 0x438]
pop edi
pop esi
mov dword [ecx + eax*4], ebp
mov edx, dword [0x4484dc]
pop ebp
pop ebx
mov eax, dword [edx + eax*4]
add esp, 0x424
ret
mov eax, str._ErrStr_
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x409a40
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
call fcn.00409af0
push 0x104
mov dword [0x4484e0], 0
call fcn.00409b50
push eax
push 0x4482d4
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4482d4
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov edi, str.Ncstudio.string
or ecx, 0xffffffff
xor eax, eax
push 0x4482d4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x4482d4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.MaxIndex
and ecx, 3
push str.Attribute
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
mov dword [0x4484e0], eax
test eax, eax
pop esi
je 0x409ae3
inc eax
push 4
push eax
call fcn.00412245
push 0x44821c
mov dword [0x4484dc], eax
call fcn.0041187f
mov ecx, dword [0x4484dc]
add esp, 0xc
mov dword [ecx], eax
mov al, 1
ret

Function at 0x409b70
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x436eb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x445c74]
push esi
mov dword [esp + 0xc], eax
mov ecx, dword [0x4484e4]
mov dword [esp + 0x11c], 0
push ecx
lea ecx, [esp + 8]
call fcn.0042d788
push str.Lang_
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.0042da69
mov edx, dword [0x4484e8]
lea ecx, [esp + 8]
push edx
call fcn.0042d788
push str.Lang_
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call fcn.0042da69
push str.Lang.ini
lea ecx, [esp + 0xc]
call fcn.0042da69
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call esi
test eax, eax
je 0x409c9d
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409c33
mov ecx, dword [esp + 4]
push ecx
push 0x4450e0
call fcn.00409780
add esp, 4
push eax
jmp 0x409ca7
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push 0x104
push ecx
push 0x44821c
push str.ActiveLang
push str.ActiveLang
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x10]
test al, al
jne 0x409c79
mov edx, dword [esp + 8]
push edx
push 0x4450e8
call fcn.00409780
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
jmp 0x409cac
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edx, [esp + 0x10]
lea ecx, [esp + 4]
push edx
call fcn.0042da69
mov eax, dword [esp + 4]
push eax
call esi
test eax, eax
jne 0x409cc4
mov ecx, dword [esp + 4]
push ecx
push str.The_path__s__to_specify_language_information_does_not_exist.
lea edx, [esp + 0x14]
push edx
call fcn.0042cd9b
mov eax, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x10
push eax
call fcn.00434633
jmp 0x409cdb
mov ecx, dword [esp + 4]
push 0x104
push ecx
push 0x4483d8
call fcn.00411fbb
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 1
call fcn.0042d71a
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call fcn.0042d71a
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0042d71a
mov ecx, dword [esp + 0x114]
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40c130
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4371db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x66
mov dword [esp + 0x18], ebp
call fcn.0040fbb0
add esp, 4
mov ecx, ebp
push eax
call fcn.0042f176
mov ecx, dword [0x445c74]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [ebp + 0x74], ecx
mov edx, dword [0x445c74]
lea ebx, [ebp + 0x78]
mov dword [ebx], edx
mov eax, dword [0x445c74]
mov dword [ebp + 0x7c], eax
mov ecx, dword [0x445c74]
mov dword [ebp + 0x84], ecx
mov edx, dword [0x445c74]
mov dword [ebp + 0x88], edx
mov al, byte [esp + 0x24]
mov dword [ebp + 0x90], esi
mov byte [ebp + 0x8c], al
mov dword [ebp + 0x94], esi
mov dword [ebp + 0x98], esi
mov byte [esp + 0x1c], 6
mov dword [ebp], method.CDialog.virtual_0
call fcn.0043559c
call fcn.0043559c
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea edx, [ebp + 0x60]
xor ecx, ecx
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x5c], esi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov eax, dword [0x445c74]
mov dword [esp + 0x24], eax
push 0x104
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 7
call fcn.0042dabd
mov edi, eax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov edx, ecx
mov esi, edi
mov edi, 0x448acc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.0042db0c
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0042d807
push str.ncstduioTemp
mov ecx, ebx
call fcn.0042da69
push 0x44563c
call fcn.00409780
add esp, 4
lea ecx, [ebp + 0x88]
push eax
call fcn.0042d857
lea ecx, [esp + 0x24]
mov dword [ebp + 0x80], 0
mov byte [esp + 0x1c], 6
call fcn.0042d71a
mov ecx, dword [esp + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4