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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
je 0x4cbd01
mov edi, dword [ebx]
cmp dword [ebp + 8], 0
je 0x4cbe4c
cmp dword [ebp + 0xc], 0
je 0x4cbe4c
mov eax, dword [ecx + 8]
push esi
test eax, eax
je 0x4cbd5c
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
test esi, esi
je 0x4cbd95
lea ecx, [ebp + 0x10]
push ecx
push 0x20019
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4cbd95
test byte [0x652fc0], 4
je 0x4cbd5c
push esi
push str.Couldnt_open_subkey:__s_n
push 3
push str.CRegistryEx::GetDWORD
call fcn.004cb3a0
add esp, 0x10
test ebx, ebx
je 0x4cbe41
test byte [0x652fc0], 4
je 0x4cbd82
push edi
push str.Returning_default_value:_0x_08X_n
push 3
push str.CRegistryEx::GetDWORD
call fcn.004cb3a0
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test byte [0x652fc0], 4
je 0x4cbdb3
push esi
push str.Opened_subkey:__s_n
push 3
push str.CRegistryEx::GetDWORD
call fcn.004cb3a0
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 8], eax
test esi, esi
je 0x4cbde6
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4cbe02
test byte [0x652fc0], 4
je 0x4cbd5c
push eax
push str.Error_querying_value:__d_n
jmp 0x4cbd4d
test byte [0x652fc0], 4
je 0x4cbe26
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push str.Read_0x_08X_successfully._Type_d._n
push 3
push str.CRegistryEx::GetDWORD
call fcn.004cb3a0
add esp, 0x14
mov eax, dword [ebp + 0x14]
cmp eax, 4
je 0x4cbd87
cmp eax, 3
jne 0x4cbe41
cmp dword [ebp - 4], 4
je 0x4cbd87
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4cbe60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp edi, esi
jne 0x4cbe8a
push 0x126
push str.RegistryEx.cpp
push str.pszValue___pszDefaultValue
call fcn.004904e0
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
je 0x4cbf9a
test edi, edi
je 0x4cbf9a
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4cbf9a
mov eax, dword [ebx + 8]
test eax, eax
je 0x4cbfa8
mov ebx, dword [ebp + 0x18]
mov ecx, dword [edx]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], ecx
test ebx, ebx
je 0x4cbee9
lea ecx, [ebp + 0x14]
push ecx
push 0x20019
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp + 0x10]
test eax, eax
jne 0x4cbfa8
mov eax, dword [ebp + 0x14]
push edx
push edi
lea ecx, [ebp - 4]
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 8], eax
test ebx, ebx
je 0x4cbf0b
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
cmp ecx, 2
jne 0x4cbf85
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce868
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4cbf82
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, edi
mov ecx, ebx
sub edx, ebx
jmp 0x4cbf50
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4cbf50
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cbf65
mov eax, dword [ebp + 0x10]
sub ecx, edx
sar ecx, 1
push ebx
mov dword [eax], ecx
call fcn.004cf489
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ebp + 8], 0
jne 0x4cbfa5
cmp ecx, 1
je 0x4cbfe2
cmp ecx, 7
je 0x4cbfe2
cmp ecx, 2
je 0x4cbfe2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x10]
test esi, esi
je 0x4cbf9a
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cbfb1
sub ecx, ebx
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, dword [ebp + 0xc]
ja 0x4cbf9a
sub edi, esi
mov edi, edi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [edi + esi - 2], ax
test ax, ax
jne 0x4cbfd0
mov dword [edx], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4cc290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 8]
push edi
test eax, eax
je 0x4cc30e
mov edi, dword [ebp + 8]
test edi, edi
je 0x4cc30e
cmp dword [ebp + 0x10], 0
je 0x4cc30e
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp + 8], eax
test esi, esi
je 0x4cc2df
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4cc2dc
pop esi
xor eax, eax
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x4cc301
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop esi
sete al
pop edi
pop ebp
ret 0x14
xor eax, eax
pop edi
pop ebp
ret 0x14
Function at 0x4cd140
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
push 0x820
push 0
lea eax, [edi + 0x1c]
push eax
call fcn.004cf600
add esp, 0xc
mov dword [edi + 0x83c], 0
mov dword [edi + 0x840], 0
mov dword [edi + 0x844], 0
mov dword [edi + 0x848], 0
push str.DXVA2.DLL
mov dword [edi + 0x84c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 4], eax
test eax, eax
je 0x4cd205
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNumberOfPhysicalMonitorsFromHMONITOR
push eax
call esi
push str.GetPhysicalMonitorsFromHMONITOR
push dword [edi + 4]
mov dword [edi + 8], eax
call esi
push str.DestroyPhysicalMonitors
push dword [edi + 4]
mov dword [edi + 0xc], eax
call esi
push str.GetMonitorBrightness
push dword [edi + 4]
mov dword [edi + 0x10], eax
call esi
push str.SetMonitorBrightness
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
cmp dword [edi + 8], 0
mov dword [edi + 0x18], eax
pop esi
je 0x4cd1fd
cmp dword [edi + 0xc], 0
je 0x4cd1fd
cmp dword [edi + 0x10], 0
je 0x4cd1fd
cmp dword [edi + 0x14], 0
je 0x4cd1fd
test eax, eax
jne 0x4cd205
mov ecx, edi
pop edi
jmp fcn.004cd290
pop edi
ret

Function at 0x4cda20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004cda70
Function at 0x4cda70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c6bb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x653bd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push 0x5383d8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x4cdac4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
push 0
push 0
push str.1.6.28
mov dword [ebp - 0x18], eax
call fcn.004f4850
push eax
mov dword [ebp + 8], eax
call fcn.004f6920
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push 0x4cda40
push eax
push dword [ebp + 8]
call fcn.004fc560
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f4bd0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004fc5b0
movzx eax, al
add esp, 0x30
sub eax, 2
je 0x4cdb43
dec eax
jne 0x4cdb55
push dword [ebp + 8]
call fcn.004fbef0
push 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004fc610
add esp, 0x10
test eax, eax
jne 0x4cdb55
push 1
push 0xff
push dword [ebp + 8]
call fcn.004fc440
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f5200
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004fc5f0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call fcn.004fc5d0
xor ecx, ecx
mov ebx, eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce868
add esp, 0x1c
xor esi, esi
mov edi, eax
test ebx, ebx
je 0x4cdbb9
mov eax, dword [ebp - 0x10]
shl eax, 2
mov dword [ebp - 0x14], eax
push eax
call fcn.004ce868
mov dword [edi + esi*4], eax
add esp, 4
mov eax, dword [ebp - 0x14]
inc esi
cmp esi, ebx
jb 0x4cdba5
push edi
push dword [ebp + 8]
call fcn.004f4b20
push 0x18
call fcn.004cf48e
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4cdbf1
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x10]
push edi
call fcn.004ce050
mov dword [ebp + 0x14], eax
jmp 0x4cdbf8
mov dword [ebp + 0x14], 0
xor esi, esi
test ebx, ebx
je 0x4cdc10
mov edi, edi
push dword [edi + esi*4]
call fcn.004d0e0a
inc esi
add esp, 4
cmp esi, ebx
jb 0x4cdc00
push edi
call fcn.004d0e0a
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004f48d0
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4f2216
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x653bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004d9b8f
mov dword [ebp - 0x14], eax
cmp dword [0x65a4b8], esi
jne 0x4f2309
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4f2296
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4f23e9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4f23e9
push 0x54c7a4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f23e9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x65a4b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x65a4bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x65a4c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x65a4c8], eax
test eax, eax
je 0x4f2306
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x65a4c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4f232e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f2321
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4f2343
push 4
pop eax
jmp 0x4f23eb
cmp dword [ebp - 0x14], esi
je 0x4f2343
push dword [0x65a4b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4f2328
mov eax, dword [0x65a4c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4f23a1
cmp dword [0x65a4c8], edi
je 0x4f23a1
push eax
call ebx
push dword [0x65a4c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f23a1
test eax, eax
je 0x4f23a1
call ecx
test eax, eax
je 0x4f2396
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4f2396
test byte [ebp - 8], 1
jne 0x4f23a1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4f23d1
mov eax, dword [0x65a4bc]
cmp eax, edi
je 0x4f23ce
push eax
call ebx
test eax, eax
je 0x4f23ce
call eax
mov esi, eax
test esi, esi
je 0x4f23ce
mov eax, dword [0x65a4c0]
cmp eax, edi
je 0x4f23ce
push eax
call ebx
test eax, eax
je 0x4f23ce
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x65a4b8]
call ebx
test eax, eax
je 0x4f23e9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4f23eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d8114
mov esp, ebp
pop ebp
ret
Function at 0x4fcbc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fcbe1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4fcbe1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4fcbe1
push dword [ebp + 0xc]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x503de0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x503dec
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00503e00

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
push ebx
push esi
push edi
mov esi, 0x424184
push 0x424180
mov ebx, ecx
push esi
call fcn.004115a0
pop ecx
test eax, eax
pop ecx
je 0x401490
push dword [0x41c42c]
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.0040c9f5
lea eax, [ebp - 0x400]
push eax
call fcn.0040cb2d
test eax, eax
jne 0x40143d
push esi
call fcn.0040cb67
jmp 0x401490
cmp dword [ebx + 8], 0x1f4
jae 0x401490
mov edi, 0x400
lea eax, [ebp - 0x800]
push edi
push 0
push eax
call fcn.00411540
add esp, 0xc
lea eax, [ebp - 0x800]
mov ecx, ebx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004016e2
test eax, eax
jne 0x401495
lea eax, [ebp - 0x400]
push eax
call fcn.0040cba1
test eax, eax
je 0x401495
push esi
call fcn.0040cb67
test eax, eax
je 0x401495
push 1
pop eax
jmp 0x401500
cmp byte [ebp - 0x800], 0
lea esi, [ebp - 0x800]
je 0x4014fe
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push edi
push eax
push dword [0x41c43c]
push esi
push dword [0x41c430]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc00]
push eax
call fcn.0040cba1
test eax, eax
je 0x4014e9
push 0
lea eax, [ebp - 0x400]
push esi
push eax
mov ecx, ebx
call fcn.00401715
jmp 0x4014ec
inc dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4014a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401797
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.0040a325
push 1
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.0040a30a
mov ecx, esi
call fcn.0040a303
push eax
mov ecx, esi
call fcn.0040a28a
mov ecx, dword [ebp - 8]
call fcn.0040ba4c
push eax
mov ecx, esi
call fcn.0040a2c5
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc08]
push 0x400
push eax
call fcn.00401959
test eax, eax
jne 0x40181a
mov edi, 0x47f
mov ecx, esi
mov dword [0x425e20], edi
call fcn.0040a2d2
shr eax, 0xa
push eax
push edi
call fcn.0040c21d
pop ecx
pop ecx
jmp 0x40194d
lea eax, [ebp - 0x408]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0xc08]
push 0x420154
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x408]
push eax
call fcn.0040cba1
lea eax, [ebp - 0x408]
push 0x2e
push eax
call fcn.00411720
and byte [eax], bl
pop ecx
pop ecx
lea eax, [ebp - 0x408]
push eax
call fcn.0040cb4a
test eax, eax
jne 0x401870
lea eax, [ebp - 0x408]
push eax
call fcn.0040caa0
lea eax, [ebp - 0x408]
mov edi, 0x424184
push eax
push edi
call fcn.00411630
pop ecx
pop ecx
push dword [0x420a08]
mov ecx, esi
call fcn.0040a2be
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0040c9f5
lea eax, [ebp - 0x808]
push eax
call fcn.0040cb2d
test eax, eax
je 0x4018c9
lea eax, [ebp - 0x808]
push eax
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
mov ecx, dword [ebp - 8]
call fcn.0040ba18
movzx eax, ax
test eax, eax
je 0x4018fa
cmp ebx, eax
je 0x4018fa
push dword [0x420a08]
push edi
push 0x424f58
call fcn.0040c9f5
mov ecx, esi
call fcn.0040a935
test eax, eax
jne 0x40191b
jmp 0x40194d
push 2
mov ecx, esi
call fcn.0040a30a
push dword [0x420a08]
mov ecx, esi
call fcn.0040a2be
push eax
push 0x424f58
call fcn.0040c9f5
mov ecx, dword [ebp - 4]
call fcn.00401a1a
test eax, eax
jne 0x401939
mov eax, 0x481
push 0
mov dword [0x425e20], eax
push eax
jmp 0x40180e
cmp dword [esi + 0x1420], 5
jne 0x401951
mov ecx, esi
call fcn.0040aa7d
test eax, eax
jne 0x401951
xor eax, eax
jmp 0x401954
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401959
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.0040a2d2
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40199a
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.004019ef
test eax, eax
jne 0x4019e6
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x4019b6
push esi
push edi
mov ecx, ebx
call fcn.004019ef
test eax, eax
jne 0x4019e6
push 0x424180
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.0040c7dc
add esp, 0xc
test eax, eax
jge 0x4019e6
push edi
push esi
push 4
call fcn.0040c7dc
add esp, 0xc
test eax, eax
jge 0x4019e6
xor eax, eax
jmp 0x4019e9
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x401a1a
Capabilities:
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
call fcn.00401046
mov ebp, eax
mov esi, 0x400
push esi
push 0
lea edi, [ebp + 0x410]
push edi
call fcn.00411540
add esp, 0xc
mov ebx, 0x424180
push 0x424f58
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push dword [0x41c448]
push dword [0x41c444]
call edi
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401b28
lea eax, [ebp + 0x810]
push esi
push 0
push eax
call fcn.00411540
add esp, 0xc
lea eax, [ebp + 0x810]
push 0x424f58
push esi
push eax
push ebx
push dword [0x41c450]
push dword [0x41c444]
call edi
lea eax, [ebp + 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401b28
lea eax, [ebp + 0x10]
push esi
push 0
push eax
call fcn.00411540
add esp, 0xc
lea eax, [ebp + 0x10]
push 0x424f58
push esi
push eax
push ebx
push dword [0x41c44c]
push dword [0x41c444]
call edi
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401b28
push 2
lea eax, [esp + 0x16]
push 0
push eax
call fcn.00411540
add esp, 0xc
lea eax, [esp + 0x12]
push 0x424f58
push 2
push eax
push ebx
push dword [0x41c454]
push dword [0x41c444]
call edi
lea eax, [esp + 0x12]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x401b2f
xor eax, eax
jmp 0x401c28
and dword [ebp + 0xc], 0
cmp dword [0x425e24], 0
jne 0x401b57
lea eax, [esp + 0x12]
push 0x420158
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401b57
mov dword [ebp + 0xc], 1
and byte [esp + 0x14], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [esp + 0x15]
push 0x424f58
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
push ebx
push dword [0x41c458]
push dword [0x41c45c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
mov dword [ebp + 0x1014], 0x1f40
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401bb6
lea eax, [esp + 0x14]
push eax
call fcn.00411755
pop ecx
mov dword [ebp + 0x1014], eax
lea edi, [ebp + 0x1018]
push ebx
push edi
call fcn.004115a0
pop ecx
test eax, eax
pop ecx
jne 0x401bfd
push 0x424f58
push esi
push edi
push ebx
push dword [0x41c460]
push dword [0x41c444]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call fcn.00411747
pop ecx
mov ebx, eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebp, 0x1420
cmp dword [ebp], 0
jne 0x401c25
push 0x424f58
push 0
push dword [0x41c464]
push dword [0x41c444]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp], eax
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x402205
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x40221e
xor esi, esi
jmp 0x40224b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00411da0
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40226d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x402264
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x402210
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e28
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41b250
call fcn.00411bc4
sub esp, 0x5a4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
push edi
cmp byte [edi], 0x30
jne 0x404e60
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x404e9f
cmp cl, 0x58
je 0x404e9f
push edi
call fcn.004117e0
pop ecx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push 0x452
call fcn.00401754
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401797
test eax, eax
je 0x404f68
mov ecx, dword [ebp + 0x10]
call fcn.0040a918
test eax, eax
je 0x404eaa
push 0x424184
jmp 0x404eb3
push eax
call esi
push eax
call fcn.00404de5
jmp 0x404e65
mov ecx, dword [ebp + 0x10]
call fcn.0040a2be
push eax
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and byte [ebp - 0x5b0], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5af]
rep stosd dword es:[edi], eax
push dword [0x420a08]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.0040c9f5
lea eax, [ebp - 0x5b0]
mov esi, str.Languages
push eax
push ebx
push str.Count
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x404f68
push edi
push 0x420388
lea eax, [ebp - 0xac]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x2c]
push 0x13
push eax
lea eax, [ebp - 0xac]
push 0x424180
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x404f68
lea eax, [ebp - 0x2c]
push eax
call fcn.00404de5
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x404f87
inc edi
cmp edi, ebx
jb 0x404f13
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040178c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp + 0xc]
push 1
pop esi
mov dword [eax], ecx
jmp 0x404f6a