joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453de4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453dfb
add esp, 0xfffffff0
call fcn.00403bb8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041daf4
mov eax, dword [0x46b8d0]
cmp word [eax + 2], 0
jne 0x453e23
mov eax, dword [0x46b8d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455894
mov eax, dword [0x46b980]
cmp word [eax + 2], 0
jne 0x453e3d
mov eax, dword [0x46b980]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455aa0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415204]
call fcn.0040387c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415204]
call fcn.0040387c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415204]
call fcn.0040387c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x421e4c]
call fcn.00427d38
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x453ff4
mov eax, dword [0x46b7dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042810c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456160
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46b7dc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ccdc
test eax, eax
je 0x453f44
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f04
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd10
test eax, eax
je 0x453f58
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404930
mov byte [ebx + 0xd4], 0
push ebx
push 0x4553f4
call fcn.0041ec70
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46b6c0]
cmp byte [eax], 0
jne 0x453fa9
mov eax, ebx
call fcn.00454138
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045633c
mov eax, ebx
call fcn.00456e9c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453fe9
call fcn.00403c10
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4543b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46f584]
cmp dword [eax + 0x30], 0
je 0x454462
cmp dword [ebx + 0x94], 0
jne 0x45445c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454348
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45445c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454422
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45445c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004176b8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454431
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45517c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4551b1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047b0
jmp 0x4551be
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404714
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456520
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45658e
mov eax, esi
call fcn.00440eb0
test al, al
je 0x45658e
mov eax, dword [ebx + 0x84]
call fcn.00440b10
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45658e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x456582
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440b10
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00438fa8
jmp 0x45658e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045635c
pop esi
pop ebx
ret
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x69f55de6
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x12a36381
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x484f5428
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x755421d1
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x10
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esp + 0xc], 5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._Control_RunDLLW_16
sub esp, 0x10
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x401160
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop

Function at 0x4011d0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x401256
cmp ax, 9
je 0x401244
cmp ax, 0x20
je 0x401244
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x4012a2
cmp ax, 0x22
je 0x4012b0
mov dword [ebp - 0x54], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x401256
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401200
test edi, 1
jne 0x401200
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x401244
cmp ax, 0x20
je 0x401244
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x4012c2
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40121b
and dword [ebp - 0x54], 1
jne 0x401214
xor edi, 1
jmp 0x40121b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40126f
Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408050
call sym._EnterCriticalSection_4
mov ebx, dword [0x408048]
sub esp, 4
test ebx, ebx
je 0x401f3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401f34
test esi, esi
je 0x401f34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f10
mov dword [esp], 0x408050
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402120
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402248
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4021ae
cmp eax, 4
jne 0x4021d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4021be
cmp edx, 4
je 0x4021be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402120
Function at 0x4011c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x415024]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x401208
je 0x401208
xor eax, eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00402abc
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov eax, 1
call fcn.00402abc
add esp, 0x98
ret

Function at 0x401300
Capabilities:
Copy file
Create process on windows

Disassembly:
sub esp, 0x1f8
mov eax, dword [0x415024]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
call fcn.004011c0
test eax, eax
je 0x4013b6
push str.Mirage_Driver
lea eax, [esp + 0x1e0]
push 0x20
push eax
call fcn.004031a1
push str.DemoForge_Mirage_Driver
lea ecx, [esp + 0x1cc]
push 0x20
push ecx
call fcn.004031a1
add esp, 0x18
push 0
push str.Uninstall.cmd
push str.Uninstall.txt
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x1bc]
push edx
lea eax, [esp + 0x1e0]
push eax
lea ebx, [esp + 0x18]
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.00401230
add esp, 8
test eax, eax
jne 0x4013b6
push 1
push eax
push eax
push str.MirrInstall.exe
push str.Open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call esi
push 0x12c
call esi
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402abc
add esp, 0x1f8
ret
Function at 0x4013d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x415024]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
mov esi, ecx
imul esi, esi, 0x184
push edi
lea eax, [esi + 0x416dd4]
push eax
push 0x41ced0
push str.SoftWareKnowhow_seetrolrem_s_s
lea edx, [esp + 0x28]
mov dword [esp + 0x18], vtable.CMyRegistry.0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00402a50
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x4014e6
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], 0
jne 0x40159e
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x40159e
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esi + 0x416e54]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x4014ab
mov eax, ecx
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401490
sub eax, edi
push eax
mov eax, dword [esp + 0x14]
push ecx
push 1
push 0
push str.VERSION
push eax
call ebp
lea edx, [esi + 0x416e94]
test edx, edx
je 0x4014dc
cmp dword [esp + 0x14], 0
je 0x4014dc
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014c1
mov ecx, dword [esp + 0x10]
sub eax, esi
push eax
push edx
push 1
push 0
push str.BUILDDATE
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
jmp 0x401598
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40150a
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], 0
jne 0x40159e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x80000001
call edi
test eax, eax
jne 0x40159e
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esi + 0x416e54]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x401562
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401547
mov edx, dword [esp + 0x10]
sub eax, edi
push eax
push ecx
push 1
push 0
push str.VERSION
push edx
call ebp
lea edx, [esi + 0x416e94]
test edx, edx
je 0x401593
cmp dword [esp + 0x14], 0
je 0x401593
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401578
sub eax, esi
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push str.BUILDDATE
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00402abc
add esp, 0x114
ret
Function at 0x4015c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x19c
mov eax, dword [0x415024]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push ebp
push esi
mov esi, ecx
imul esi, esi, 0x184
push edi
lea eax, [esi + 0x416dd4]
push eax
xor ebx, ebx
push 0x41ced0
mov ebp, 1
push str.SoftWareKnowhow_seetrolrem_s_s
lea edx, [esp + 0xb4]
mov dword [esp + 0x28], vtable.CMyRegistry.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call fcn.00402a50
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xac]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x4016f8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x24], ebx
jne 0x4016f8
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xac]
push edx
push 0x80000001
call edi
test eax, eax
jne 0x4016f8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x34], ebp
push str.VERSION
mov ebp, 0xff
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
je 0x4016ad
mov byte [esp + 0x68], bl
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x24], ebx
je 0x4016df
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push str.BUILDDATE
push ecx
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
je 0x4016e3
mov byte [esp + 0x28], bl
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4016fc
mov dword [esp + 0x24], ebx
jmp 0x4016fc
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x68]
push eax
lea ecx, [esi + 0x416e54]
push ecx
call fcn.00402f43
add esp, 8
test eax, eax
jne 0x40172c
lea edx, [esp + 0x28]
push edx
lea eax, [esi + 0x416e94]
push eax
call fcn.00402f43
add esp, 8
test eax, eax
je 0x401730
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402abc
add esp, 0x19c
ret
Function at 0x4018f0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x518
mov eax, dword [0x415024]
xor eax, esp
mov dword [esp + 0x510], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], vtable.CMyIniFile.0
call fcn.00404860
add esp, 0xc
lea ecx, [esp + 0x418]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x41cfd0
lea edx, [esp + 0x41c]
push edx
push 0x412d40
lea edx, [esp + 0x324]
call fcn.00402a50
push 0x104
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00402c91
push 0x6100
push 0
push 0x416dd0
mov dword [0x41d010], 0
call fcn.00404860
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x24
lea edx, [esp + 0x14]
push edx
push 0xff
push 0x41ced0
push 0x412c54
push str.APPTITLE
push str.HEADER
call edi
lea eax, [esp + 0x14]
push eax
push 0
push str.FILENUMBER
push str.HEADER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, 0x41ced0
mov dword [0x41d010], eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4019d3
sub ecx, esi
je 0x401b3f
lea ecx, [eax - 1]
cmp ecx, 0x3e
ja 0x401b3f
xor ecx, ecx
test eax, eax
jbe 0x401b22
mov esi, 0x416e54
lea edx, [esp + 0x118]
sub esi, edx
lea ebx, [ecx + 1]
push ebx
push str.FILE_d
lea edx, [esp + 0x220]
call fcn.00402a50
add esp, 8
lea eax, [esp + 0x14]
push eax
push 0xff
lea ecx, [esp + 0x120]
push ecx
push 0x412c54
push str.FILENAME
lea edx, [esp + 0x22c]
push edx
call edi
lea eax, [esp + 0x118]
jmp 0x401a50
mov cl, byte [eax]
mov byte [esi + eax - 0x80], cl
inc eax
test cl, cl
jne 0x401a50
lea eax, [esp + 0x14]
push eax
push 0xff
lea ecx, [esp + 0x120]
push ecx
push 0x412c54
push str.VERSION
lea edx, [esp + 0x22c]
push edx
call edi
lea eax, [esp + 0x118]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401a88
lea eax, [esp + 0x14]
push eax
push 0xff
lea ecx, [esp + 0x120]
push ecx
push 0x412c54
push str.BUILDDATE
lea edx, [esp + 0x22c]
push edx
call edi
lea eax, [esp + 0x118]
nop
mov cl, byte [eax]
mov byte [esi + eax + 0x40], cl
inc eax
test cl, cl
jne 0x401ac0
lea eax, [esp + 0x14]
push eax
push 0xff
lea ecx, [esp + 0x120]
push ecx
push 0x412c54
push str.LOCALSUBDIR
lea edx, [esp + 0x22c]
push edx
call edi
lea eax, [esp + 0x118]
jmp 0x401b00
mov cl, byte [eax]
mov byte [esi + eax + 0x80], cl
inc eax
test cl, cl
jne 0x401b00
mov ecx, ebx
add esi, 0x184
cmp ecx, dword [0x41d010]
jb 0x401a06
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.00402abc
add esp, 0x518
ret
mov ecx, dword [esp + 0x51c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402abc
add esp, 0x518
ret
Function at 0x401b60
Capabilities:
Create directory

Disassembly:
sub esp, 0x184
mov eax, dword [0x415024]
xor eax, esp
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x188]
lea edx, [esp]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b80
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b90
sub eax, edx
push esi
mov esi, eax
xor eax, eax
cmp esi, 1
jl 0x401c90
push ebx
push ebp
mov bl, 0x5c
test esi, esi
jle 0x401bc0
nop
cmp byte [esp + eax + 0xc], 0x2f
jne 0x401bbb
mov byte [esp + eax + 0xc], bl
inc eax
cmp eax, esi
jl 0x401bb0
cmp byte [esp + esi + 0xb], bl
jne 0x401bcb
mov byte [esp + esi + 0xb], 0
cmp byte [esp + esi + 0xb], 0x2f
jne 0x401bd7
mov byte [esp + esi + 0xb], 0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
test esi, esi
jle 0x401c6c
cmp byte [esp + eax + 0xc], bl
je 0x401bf4
inc eax
cmp eax, esi
jl 0x401be7
jmp 0x401c6c
push edi
mov edi, eax
test eax, eax
jle 0x401c6b
jmp 0x401c00
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x118]
push ecx
call fcn.00402f60
lea edx, [esp + 0x11c]
push 0
push edx
call fcn.0040f8dd
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401c4d
lea eax, [esp + 0x110]
push 0
push eax
call fcn.0040f8dd
add esp, 8
cmp eax, 0xffffffff
jne 0x401c4d
push 0
lea ecx, [esp + 0x114]
push ecx
call ebp
lea eax, [edi + 1]
xor ecx, ecx
cmp eax, esi
jge 0x401c65
cmp byte [esp + eax + 0x10], bl
je 0x401c63
inc eax
cmp eax, esi
jl 0x401c56
jmp 0x401c65
mov ecx, eax
mov edi, ecx
test ecx, ecx
jg 0x401c00
pop edi
lea edx, [esp + 0xc]
push 0
push edx
call fcn.0040f8dd
add esp, 8
cmp eax, 0xffffffff
jne 0x401c89
push 0
lea eax, [esp + 0x10]
push eax
call ebp
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x184]
pop esi
xor ecx, esp
call fcn.00402abc
add esp, 0x184
ret