joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b1d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6b1d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x6b1d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6b1d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6b1d94
push eax
push esi
call fcn.006b420b
add esp, 8
pop esi
ret 0x10

Function at 0x6b1da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6b1e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x6b1e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x6ca320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006b3dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x6b1dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x6b1e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6b1ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x6b1eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x6ca320
push ecx
mov dword [esp + 0x1c], 4
call fcn.006b3dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x6b1eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x6b1e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x6b2000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x6b2131
push esi
call fcn.006b5145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006a4080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6b2131
push 0
push ebp
call fcn.006a43a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006a4260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x6b208b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006a42f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x6b2121
push 0x6ca918
push edi
call fcn.006b33f0
push eax
push ebx
push esi
call fcn.006b1f60
push 0x6ca8f8
push edi
call fcn.006b33f0
push eax
push ebx
push esi
call fcn.006b1f60
push 0x6ca8d8
push edi
call fcn.006b33f0
push eax
push ebx
push esi
call fcn.006b1f60
push 0x6ca8c0
push edi
call fcn.006b33f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.006b1f60
push 0x6ca8a0
push edi
call fcn.006b33f0
push eax
push ebx
push esi
call fcn.006b1f60
push 0x6ca888
push edi
call fcn.006b33f0
push eax
push ebx
push esi
call fcn.006b1f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6b31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006b3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006b3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006b3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006b3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6b3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6b3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6c587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6b3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6b3c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40330c], eax
mov eax, dword [ebp + 4]
mov dword [0x403159], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403159]
mov dword [ebp - 0x48], eax
mov eax, 0x402291
mov dword [ebp - 0x54], eax
mov ecx, 0x403206
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x403159]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403358], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403358]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret
Function at 0x401ac9
Capabilities:
Create process on windows
Get common file path
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1324
call fcn.0040e0a0
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3eb
push dword [ebx + 0xc]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x3ed
push dword [ebx + 0xc]
call edi
push eax
call esi
xor esi, esi
cmp dword [ebx + 0x458], esi
mov dword [ebp - 8], esi
jne 0x401b8e
lea eax, [ebx + 0x224]
push eax
lea eax, [ebp - 0x1324]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s.exe
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x1324]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b8e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401b85
mov eax, dword [ebx + 4]
add eax, 0x18
push esi
push eax
lea edx, [ebp - 0x114]
call fcn.004065fb
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx + 0x329], 0
je 0x401ca3
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x21c], 0
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004069b5
lea esi, [ebp - 0x114]
call fcn.004062e8
lea eax, [ebx + 0x329]
push eax
mov dword [ebp - 4], eax
mov eax, esi
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebx + 4]
push dword [eax + 8]
xor esi, esi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00401f5d
add esp, 0x1c
cmp eax, 1
jne 0x401c21
push 0x628
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x401c37
mov edi, eax
call fcn.00402989
jmp 0x401c39
push 0x1b8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x401c37
call fcn.004031ce
jmp 0x401c39
xor eax, eax
cmp eax, esi
je 0x401ca3
mov ecx, dword [ebx + 4]
push dword [ecx + 8]
mov edi, eax
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
call dword [eax + 4]
test eax, eax
jne 0x401c9b
mov eax, dword [edi]
push esi
push esi
push esi
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 4]
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
jne 0x401c9b
lea eax, [ebp - 0x324]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
lea eax, [ebp - 0x324]
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
leave
ret
Function at 0x402248
Capabilities:
Create process on windows
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov edx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.004065be
add esp, 0xc
push 1
push str..EXE
lea eax, [ebp - 0x264]
push eax
call fcn.00407b30
mov ecx, dword [ebp + 0x10]
neg eax
sbb eax, eax
inc eax
xor ebx, ebx
test byte [ecx + 4], 0x10
jne 0x4022a1
cmp eax, ebx
jne 0x4022db
xor eax, eax
inc eax
jmp 0x40238a
cmp eax, ebx
jne 0x4022db
lea eax, [ebp - 0x57c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
lea eax, [ebp - 0x57c]
push eax
push ebx
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x40238a
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x15c]
push 0x40f3b4
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x15c]
push eax
call edi
push esi
lea eax, [ebp - 0x15c]
push 0x40f3b0
push eax
call edi
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x15c]
push eax
call edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 0x54], edi
call sub.MSVCRT.dll_memset
add esp, 0x48
push esi
lea eax, [ebp - 0x36c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x36c]
push eax
push str.ZIP_SOURCE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x474]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push str.INFOWDZ
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4025fc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025ff
xor eax, eax
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x121
push edi
push eax
push esi
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 0x18]
push eax
call fcn.004023b8
add esp, 0x10
xor eax, eax
cmp dword [esi], edi
pop edi
sete al
ret

Function at 0x405696
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp dword [eax + 8], 1
mov dword [ebp - 8], edi
je 0x4056b0
call fcn.00408bf5
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [edi + 0x118]
add dword [eax], ecx
adc dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x4056e3
mov dword [eax], ecx
cmp dword [ebp + 0xc], esi
jne 0x405748
mov eax, dword [edi + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x4056f6
mov dword [eax + 8], ecx
mov esi, dword [edi + 8]
push ebx
call fcn.00408b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 8]
call fcn.0040913c
push dword [edi + 0x114]
mov esi, dword [edi + 8]
push str._IXStream__Handle__1_d__
call fcn.00408e88
lea esi, [edi + 0x12c]
push dword [esi]
mov edi, dword [edi + 8]
push 0x6d68
call fcn.00408c88
mov eax, dword [ebp - 8]
mov ebx, dword [esi]
mov eax, dword [eax + 8]
add esp, 0x10
push 1
call fcn.00408f3c
pop ebx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
leave
ret 0xc
Function at 0x405751
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
xor ebx, ebx
inc ebx
cmp dword [eax + 8], ebx
mov dword [ebp - 0xc], edi
je 0x40576f
call fcn.00408bf5
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp esi, ecx
jne 0x405780
mov dword [ebp - 8], ebx
lea esi, [ebp - 0x10]
jmp 0x405783
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [esi], ecx
push dword [edi + 0x114]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esi]
cmp dword [ebp + 0xc], 0
jmp 0x4057e8
cmp dword [ebp - 4], 0
jne 0x4057ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4057c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x4057ed
mov eax, dword [esi]
sub dword [ebp + 0x10], eax
add dword [ebp + 8], eax
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [esi]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
ja 0x4057a5
lea eax, [edi + 0x118]
mov dword [esi], ebx
add dword [eax], ebx
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x405815
cmp dword [ebp - 8], 0
je 0x405896
cmp ebx, dword [ebp + 0xc]
je 0x405896
mov eax, dword [edi + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x405823
mov dword [eax + 8], ecx
mov esi, dword [edi + 8]
call fcn.00408b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 8]
call fcn.0040913c
push dword [edi + 0x114]
mov esi, dword [edi + 8]
push str._IXStream__Handle__1_d__
call fcn.00408e88
push dword [ebp - 8]
mov esi, dword [edi + 8]
push str._IXStream__bExact__1_d__
call fcn.00408e88
mov esi, dword [edi + 8]
push ebx
push dword [ebp + 0xc]
push str._IXStream__A_lire__1_u____lu__2_u__
call fcn.00408e88
lea esi, [edi + 0x12c]
push dword [esi]
mov edi, dword [edi + 8]
push 0x6d63
call fcn.00408c88
mov eax, dword [ebp - 0xc]
mov ebx, dword [esi]
mov eax, dword [eax + 8]
add esp, 0x24
push 1
call fcn.00408f3c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406121
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
push 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ebx, [ebp - 0x11c]
push 0x105
mov dword [ebp - 8], eax
call fcn.00407bb5
mov esi, ebx
call fcn.00406308
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebp - 0x11b]
push 0x5c
push eax
call esi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4061f3
lea eax, [ebp - 0x11c]
cmp ebx, eax
jbe 0x406191
cmp byte [ebx - 1], 0x3a
je 0x4061e5
lea eax, [ebp - 0x11b]
cmp ebx, eax
jne 0x4061ef
cmp byte [ebp - 0x11c], 0x5c
jne 0x4061ef
push 0x5c
inc ebx
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x406228
push 0x5c
inc eax
push eax
jmp 0x4061e9
lea eax, [ebp - 0x11c]
push 0
push eax
mov byte [ebx], 0
call fcn.004060fe
test eax, eax
pop ecx
pop ecx
jne 0x4061e2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x406228
mov byte [ebx], 0x5c
inc ebx
push 0x5c
push ebx
call esi
pop ecx
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4061b6
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406221
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406228
push 0
push dword [ebp + 8]
call fcn.00406632
test eax, eax
pop ecx
pop ecx
je 0x406228
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, edi
call fcn.004070d2
test eax, eax
pop ecx
je 0x406270
mov esi, edi
call fcn.00408b84
push dword [ebp + 8]
push 0x6dde
call fcn.00408c70
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
push 1
mov eax, edi
call fcn.00408f3c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
mov edi, eax
call esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebx], 0xffffffff
setne al
push eax
mov eax, edi
call fcn.004070d2
test eax, eax
pop ecx
je 0x4066d9
mov esi, edi
call fcn.00408b84
push dword [ebp + 0xc]
push dword [ebx]
push 0x6de2
call fcn.00408c70
mov ebx, dword [ebp + 0xc]
add esp, 0xc
push 1
mov eax, edi
call fcn.00408f3c
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx], 0xffffffff
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x4066e6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
push 1
mov esi, eax
call ebx
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 8], eax
call ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, esi
call fcn.004070d2
test eax, eax
pop ecx
je 0x406755
call fcn.00408b84
push dword [ebp + 8]
mov edi, esi
push dword [ebp + 0xc]
push 0x6de2
call fcn.00408c70
mov ebx, dword [ebp + 8]
add esp, 0xc
push 1
mov eax, esi
call fcn.00408f3c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40675d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
push 1
mov dword [ebx + 8], eax
call esi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
call edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx], 0xffffffff
jne 0x4067e9
call edi
cmp eax, 2
je 0x4067c0
call edi
cmp eax, 0x12
je 0x4067c0
xor eax, eax
jmp 0x4067c3
xor eax, eax
inc eax
mov edi, dword [ebp + 0x10]
push eax
mov eax, edi
call fcn.004070d2
test eax, eax
pop ecx
je 0x4067e5
mov esi, edi
call fcn.00408b84
push 0x6de7
call fcn.00408c70
pop ecx
xor eax, eax
jmp 0x406817
mov esi, ebx
lea edi, [ebp - 0x144]
call fcn.0040695f
test eax, eax
jne 0x406807
push dword [ebp + 0x10]
push ebx
call fcn.0040681b
pop ecx
pop ecx
jmp 0x406817
lea esi, [ebp - 0x144]
mov edi, ebx
call fcn.0040712d
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x406a98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
push dword [ebp + 8]
mov edi, eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
xor eax, eax
test ebx, ebx
setne al
mov ebx, eax
push ebx
mov eax, edi
call fcn.004070d2
test eax, eax
pop ecx
je 0x406b06
mov esi, edi
call fcn.00408b84
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x6de6
call fcn.00408c70
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x407ddb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040e0a0
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x407dfd
and dword [eax + 4], 0
mov dword [ebp - 4], eax
jmp 0x407e01
and dword [ebp - 4], 0
push esi
push dword [edi + 0xc]
lea esi, [ebp - 8]
push str.R_03d
call fcn.00408710
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x407e20
mov ecx, 0x40f2ba
lea eax, [edi + 0x24]
call fcn.004080c4
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
mov esi, 0x412894
push esi
push ecx
lea eax, [edi + 0x20]
call fcn.004080c4
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1008]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
mov eax, dword [ebp - 4]
pop ecx
jne 0x407e6f
push dword [ebp + 8]
add eax, 4
call fcn.00404cc4
pop ecx
jmp 0x407e95
push ebx
add eax, 4
lea ebx, [ebp - 0x1008]
call fcn.004080d0
mov eax, dword [ebp - 4]
push 0x412890
push 0x41288c
add eax, 4
push eax
call fcn.00408295
pop ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
lea esi, [edi + 4]
call fcn.00407f9c
lea eax, [ebp - 8]
call fcn.00408091
pop esi
leave
ret 4