joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1362058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.013621a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x136207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x136206a
add dl, dl
jne 0x1362089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13620dc
xor eax, eax
add dl, dl
jne 0x1362096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x136217d
add dl, dl
jne 0x13620a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13620b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13620bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13620c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x13620d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1362075
mov eax, 1
add dl, dl
jne 0x13620ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13620f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13620e1
sub eax, ebx
mov ebx, 1
jne 0x1362128
mov ecx, 1
add dl, dl
jne 0x136210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1362119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1362105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1362075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x136213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x136214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1362136
cmp eax, 0x7d00
jae 0x136216d
cmp eax, 0x500
jb 0x1362168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1362075
cmp eax, 0x7f
ja 0x1362170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1362075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x136219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1362075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4017e8
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
mov edi, 0x42f78c
push edi
push 0x6c
push ebx
mov dword [0x439540], ebx
call esi
xor ebp, ebp
cmp eax, ebp
je 0x401819
push eax
push ebx
push 0x439690
call fcn.00408e7d
mov eax, dword [0x439540]
push edi
push 0x7b
push eax
mov ebx, eax
call esi
cmp eax, ebp
je 0x401836
push eax
push ebx
push 0x439698
call fcn.00408e7d
mov eax, dword [0x439540]
push edi
push 0x71
push eax
mov ebx, eax
call esi
cmp eax, ebp
je 0x401853
push eax
push ebx
push 0x439680
call fcn.00408e7d
mov eax, dword [0x439540]
push edi
push 0x77
push eax
mov ebx, eax
call esi
cmp eax, ebp
je 0x401870
push eax
push ebx
push 0x4396b0
call fcn.00408e7d
mov eax, dword [0x439540]
push edi
push 0x78
push eax
mov ebx, eax
call esi
cmp eax, ebp
je 0x40188d
push eax
push ebx
push 0x4396a8
call fcn.00408e7d
mov eax, dword [0x439540]
push edi
push 0x80
push eax
mov ebx, eax
call esi
cmp eax, ebp
je 0x4018ad
push eax
push ebx
push 0x4396b8
call fcn.00408e7d
mov eax, dword [0x439540]
push edi
push 0x75
push eax
mov ebx, eax
call esi
cmp eax, ebp
je 0x4018ca
push eax
push ebx
push 0x4396a0
call fcn.00408e7d
mov eax, dword [0x439540]
push edi
push 0x70
push eax
mov ebx, eax
call esi
cmp eax, ebp
je 0x4018e7
push eax
push ebx
push 0x439688
call fcn.00408e7d
mov eax, dword [0x439540]
push edi
push 0x81
push eax
mov ebx, eax
call esi
cmp eax, ebp
je 0x401907
push eax
push ebx
push 0x4396c0
call fcn.00408e7d
xor esi, esi
inc esi
push esi
call fcn.00417357
push esi
mov dword [0x439524], eax
call fcn.00417357
push esi
mov dword [0x439520], eax
call fcn.00417357
push esi
mov dword [0x439528], eax
call fcn.00417357
add esp, 0x10
push str.B5B4BCBD_inst_mtx
push ebp
push ebp
mov dword [0x43952c], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40195a
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405f35
call fcn.0040a0a7
push 0x8c
call fcn.00417357
pop ecx
cmp eax, ebp
je 0x40197c
mov edi, eax
call fcn.004014fe
jmp 0x40197e
xor eax, eax
mov dword [0x439548], eax
call fcn.00404018
test al, al
je 0x4019b2
push 0x40
push str.Gamevance
push str.You_already_have_required_software_for_playing_games.
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x43c2d4
push 0x43c028
call fcn.0040613a
pop ecx
pop ecx
jmp 0x401953
call fcn.00409e1d
test eax, eax
jne 0x4019d7
call fcn.00409fae
test al, al
jne 0x4019d7
push 0x43c004
push 0x43c01c
call fcn.0040613a
pop ecx
pop ecx
jmp 0x4019ee
push dword [esp + 0x14]
call fcn.0040a8cf
pop ecx
test eax, eax
je 0x4019ee
mov eax, dword [esp + 0x14]
call fcn.00404c64
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x402efd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
xor ebx, ebx
cmp byte [0x439538], bl
push edi
push 1
sete byte [ebp - 1]
call fcn.0040a08c
test eax, eax
je 0x403100
cmp byte [ebp - 1], bl
je 0x403100
push 0x103
lea eax, [ebp - 0x43f]
push ebx
push eax
mov byte [ebp - 0x440], bl
call fcn.00416e30
add esp, 0xc
push 0x95
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00416e30
add esp, 0xc
mov esi, 0xc7
push esi
lea eax, [ebp - 0x337]
push ebx
push eax
mov byte [ebp - 0x338], bl
call fcn.00416e30
add esp, 0xc
push esi
lea eax, [ebp - 0x1cf]
push ebx
push eax
mov byte [ebp - 0x1d0], bl
call fcn.00416e30
add esp, 0xc
push 0x28
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x28
push eax
call fcn.004033e0
push 0x3f
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.00416e30
lea eax, [ebp - 0x70]
add esp, 0x14
push eax
call fcn.004059b1
cmp dword [0x439534], 0x20
pop ecx
mov eax, 0x43c024
jge 0x402fdf
mov eax, 0x43c01c
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
push str.HKABw11oGrCiUoZEuW0a
push 0x4382cc
push 0x43ca24
mov edi, 0xc8
lea eax, [ebp - 0x1d0]
push edi
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
cmp eax, ebx
jle 0x40302f
xor byte [ebp + ecx - 0x1d0], 0x83
inc ecx
cmp ecx, eax
jl 0x403022
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x338]
mov dword [ebp - 8], edi
call fcn.004013aa
add esp, 0xc
push 0x9f
lea eax, [ebp - 0x26f]
push ebx
push eax
mov byte [ebp - 0x270], bl
call fcn.00416e30
lea eax, [ebp - 0x338]
add esp, 0xc
push eax
mov ebx, 0xa0
lea edi, [ebp - 0x270]
call fcn.00402e7b
lea eax, [ebp - 0x440]
mov dword [esp], 0x104
push eax
call fcn.0040a4bd
mov eax, edi
push eax
push str.http:__www.gamevance.com_aj_ty.php
push 0x43ca38
add ebx, 0xfffffff6
lea eax, [ebp - 0x108]
push ebx
push eax
call esi
add esp, 0x14
push 9
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edi, 0x43ca40
push edi
push eax
call dword [0x439508]
cmp eax, 0x20
jg 0x403100
lea eax, [ebp - 0x270]
push eax
push str.http:__www.gamevance.com_aj_ty.php
push 0x43ca48
lea eax, [ebp - 0x108]
push ebx
push eax
call esi
add esp, 0x14
push 9
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
push eax
call dword [0x439508]
pop edi
pop esi
mov byte [0x439539], 1
pop ebx
leave
ret
Function at 0x403171
Capabilities:
Enumerate processes
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
and dword [esp], 0
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40319b
xor eax, eax
jmp 0x40322f
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x403216
lea eax, [esp + 0x34]
push eax
xor edi, edi
call fcn.00416f90
pop ecx
test eax, eax
jbe 0x4031e1
lea esi, [esp + edi + 0x34]
movsx eax, byte [esi]
push eax
call fcn.004178d1
mov byte [esi], al
lea eax, [esp + 0x38]
push eax
inc edi
call fcn.00416f90
pop ecx
pop ecx
cmp edi, eax
jb 0x4031c1
movzx ecx, byte [esp + 0x34]
lea eax, [esp + 0x34]
mov edx, 0x1505
jmp 0x4031fa
imul edx, edx, 0x21
inc eax
add edx, ecx
movzx ecx, byte [eax]
test ecx, ecx
jne 0x4031f1
cmp edx, dword [ebp + 8]
je 0x40321c
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4031b0
jmp 0x403224
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4033a2
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.MMAP_PS_AV_STRING_AB1098C2_33CF_4001_A246_0C68E4DFE2D3
push dword [esp + 0x10]
xor esi, esi
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
pop esi
je 0x4033dd
push dword [esp + 8]
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, 1
ret
xor al, al
ret
Function at 0x403e79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push str.0ED403E8_470A_4a8a_85A4_D7688CFE39A3
push dword [ebp + 8]
call fcn.00417240
pop ecx
pop ecx
test eax, eax
jne 0x403e99
xor al, al
leave
ret
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.00416e30
push dword [ebp + 8]
xor edi, edi
inc esi
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
call fcn.00403f71
push dword [ebp + 8]
mov byte [ebp - 1], al
push str.CLSID_sInprocServer32
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x2c
lea eax, [ebp - 8]
push eax
push edi
push ebx
lea eax, [ebp - 0x114]
push eax
mov esi, 0x80000000
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403f41
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403f38
xor al, al
jmp 0x403f6c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push 3
push ebx
push edi
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x403f6a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
je 0x403f6a
mov eax, edi
jmp 0x403f6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404071
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
mov esi, 0x104
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.SHLWAPI.dll_StrNCatA]
push esi
push 0x42f274
push dword [ebp + 8]
call edi
push esi
push dword [0x437c40]
push dword [ebp + 8]
call edi
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x4041dd
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x404209
xor eax, eax
jmp 0x404262
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x40421c
xor eax, eax
jmp 0x404261
push ebx
lea eax, [esi + 1]
push eax
push 8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
je 0x404255
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404255
xor eax, eax
cmp esi, edi
jle 0x404255
xor byte [eax + ebx], 0x74
inc eax
cmp eax, esi
jl 0x40424c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret

Function at 0x404265
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x404286
xor eax, eax
inc eax
jmp 0x4042db
push edi
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4042b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4042da
cmp byte [esi], bl
je 0x4042bf
mov eax, esi
xor byte [eax], 0x74
inc eax
cmp byte [eax], bl
jne 0x4042b7
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40442f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0xa
push str.RDATA
push dword [0x439540]
mov dword [ebp - 4], eax
call dword [0x43957c]
mov esi, eax
push esi
push dword [0x439540]
call dword [0x439580]
push esi
push dword [0x439540]
mov edi, eax
call dword [0x439578]
push edi
mov esi, eax
call dword [0x439584]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
lea eax, [esi + 0x10]
push eax
push 8
push dword [ebp - 4]
call edi
push esi
push ebx
push eax
mov dword [ebp - 8], eax
call fcn.00417900
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add esp, 0xc
xor ecx, ecx
test eax, eax
jle 0x4044bc
mov edx, dword [ebp - 8]
lea edx, [edx + ecx*2]
mov ebx, 0x2d02
xor word [edx], bx
inc ecx
cmp ecx, eax
jl 0x4044a9
mov eax, esi
imul eax, eax, 0xa
sub eax, 0xffffff80
push eax
push 8
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call edi
push 0
push 0
push esi
push dword [ebp - 8]
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00411265
push dword [ebp - 8]
xor esi, esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebx]
jmp 0x404504
cmp eax, dword [ebp + 8]
je 0x40450a
inc esi
mov eax, esi
imul eax, eax, 0xc
mov eax, dword [eax + ebx]
test eax, eax
jg 0x4044f6
jmp 0x404539
imul esi, esi, 0xc
add esi, ebx
push dword [esi + 4]
push 8
push dword [ebp - 4]
call edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [edx], eax
push dword [esi + 4]
mov eax, dword [esi + 8]
add eax, ebx
push eax
push dword [ecx]
call fcn.00417900
add esp, 0xc
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x404541
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0040442f
add esp, 0xc
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404591
xor eax, eax
jmp 0x4045bb
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4046b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret

Function at 0x404731
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x313]
push ebx
push eax
mov byte [ebp - 0x314], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x417]
push ebx
push eax
mov byte [ebp - 0x418], bl
call fcn.00416e30
push esi
lea eax, [ebp - 0x51b]
push ebx
push eax
mov byte [ebp - 0x51c], bl
call fcn.00416e30
add esp, 0x3c
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 1
jne 0x4047cb
xor al, al
jmp 0x4048fa
push str.MozillaFirefox_
mov esi, 0x104
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.004172c8
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00416eb5
push str.profiles.ini
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004172c8
add esp, 0x24
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4047c4
push edi
push ebx
push str.Profile_d
lea eax, [ebp - 0x314]
push 0x14
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
call fcn.00416f6e
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, 0x42f040
jmp 0x404892
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x51c]
push eax
push ebx
push str.Name
lea eax, [ebp - 0x314]
push eax
call edi
lea eax, [ebp - 0x51c]
push str.default
push eax
call fcn.00417240
pop ecx
pop ecx
test eax, eax
je 0x4048b9
inc dword [ebp - 8]
push dword [ebp - 8]
lea eax, [ebp - 0x314]
push str.Profile_d
push 0x14
push eax
call fcn.00416f6e
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push ebx
push str.Path
lea eax, [ebp - 0x314]
push eax
call edi
test eax, eax
jne 0x404844
jmp 0x4048f6
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push esi
push eax
mov byte [ebp - 1], 1
call fcn.004172c8
push 0x42f274
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.004172c8
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp + 8]
call fcn.00416eb5
add esp, 0x24
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048fe
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call fcn.00416e30
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
add esp, 0xc
lea eax, [ebp - 0x168]
push eax
push ebx
push ebx
push 0x801c
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x168]
push eax
call esi
test eax, eax
jg 0x404962
lea eax, [ebp - 0x168]
push eax
push ebx
push ebx
push 0x801a
push ebx
call edi
lea eax, [ebp - 0x168]
push eax
call esi
test eax, eax
jg 0x404976
xor eax, eax
jmp 0x4049fa
push 0x104
push 0x43ca54
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatA]
push 0x63
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x168]
push eax
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0x43c003
push 0x43ca7c
push 0x43ca84
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x64]
push eax
call esi
push ebx
push ebx
xor ecx, ecx
push 3
test eax, eax
push ebx
setg cl
push 3
push 0x80000000
lea eax, [ebp - 0x168]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4049f8
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4049ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.00416e30
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x801c
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x10c]
push eax
call edi
test eax, eax
jg 0x404a63
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push 0x801a
push ebx
call esi
lea eax, [ebp - 0x10c]
push eax
call edi
test eax, eax
jle 0x404bf7
push 0x43cab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x43cac4
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x404bf7
mov esi, dword [sym.imp.SHLWAPI.dll_StrNCatA]
mov edi, 0x104
push edi
push 0x43cad8
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [ebp - 4]
push edi
push 0x43caf0
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [ebp - 4]
push edi
push 0x43cafc
lea eax, [ebp - 0x10c]
push eax
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x10c]
push eax
mov ebx, 0x43cb34
push ebx
push 0x43cb38
mov edi, 0x43cb08
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0x43cb3c
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push 0x4395d4
mov ebx, 0x43cb40
push ebx
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
mov edi, 0x43cb48
push 0x43cb80
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push 0x4395dc
push 0x43cb84
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push 0x4395d4
push ebx
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
mov edi, 0x43cb8c
push 0x43cbc0
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push 0x4395a0
push 0x43cbcc
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x18]
push 0x43cbd4
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x1c]
push 0x43cbdc
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push 0x4395b4
push 0x43cbe4
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x10]
push 0x43cbf0
push edi
call esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x14]
push 0x43cbf8
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret