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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ad87
add esp, 0xfffffff0
call fcn.004035f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e174
mov eax, dword [0x46817c]
cmp word [eax + 2], 0
jne 0x45adaf
mov eax, dword [0x46817c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c4f0
mov eax, dword [0x468238]
cmp word [eax + 2], 0
jne 0x45adc9
mov eax, dword [0x468238]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c6e8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4155bc]
call fcn.0040329c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4155bc]
call fcn.0040329c
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420758]
call fcn.0042806c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45af50
mov eax, dword [0x468090]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042843c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cc98
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x468090]
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.0040c9a4
test eax, eax
je 0x45aebe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408bb4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9cc
test eax, eax
je 0x45aed2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00404310
mov eax, dword [0x467f5c]
cmp byte [eax], 0
jne 0x45af06
mov eax, ebx
call fcn.0045b078
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045ce74
mov eax, ebx
call fcn.0045d838
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45af46
call fcn.00403648
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b2f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x469bec]
cmp dword [eax + 0x30], 0
je 0x45b3a2
cmp dword [ebx + 0x94], 0
jne 0x45b39c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b288
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b39c
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 0x45b362
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b39c
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.00417b24
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b371
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45bf04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45bf39
push 0x100
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.00404190
jmp 0x45bf46
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d050
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d091
mov eax, esi
call fcn.004436b8
test al, al
je 0x45d091
mov eax, dword [ebx + 0x84]
call fcn.004433b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d091
push 0
mov eax, dword [ebx + 0x84]
call fcn.004433b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45dd88
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414b34]
call fcn.00404a38
xor eax, eax
push ebp
push 0x45decc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x467e74], 0
jne 0x45dddb
mov ecx, dword [0x467f6c]
mov dl, 1
mov eax, dword [0x4073f0]
call fcn.0040bbd0
call fcn.00403a58
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402ce0
mov eax, ebx
call fcn.00404908
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45dedc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004059ec
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404918
test eax, eax
jle 0x45de73
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45de6c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404328
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404310
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408230
test eax, eax
jne 0x45de6c
mov ebx, 0x15
jmp 0x45de78
mov ebx, 0x10
jmp 0x45de78
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x467e74]
call fcn.0045dce0
mov eax, dword [ebp - 8]
call fcn.0045dce0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ded3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004040c4
lea eax, [ebp - 0x10]
mov edx, dword [0x414b34]
call fcn.00404b08
ret

Function at 0x45f0cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45f13d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x467ea4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x45f127
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0045f0bc
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45eb64]
call fcn.0045f164
mov dword [0x467f08], eax
mov eax, dword [ebp - 4]
call fcn.0045f06c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f144
lea eax, [ebp - 8]
call fcn.004059ec
ret
Function at 0x46555c
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4655de
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x4655e8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x4655a4
mov dword [esp + 0x18], 2
jmp 0x4655aa
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
add esp, 0x1c
pop ebx
ret

Function at 0x4655fc
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, ecx
mov esi, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov al, 1
call fcn.0046555c
mov eax, esi
call fcn.00404360
add eax, eax
inc eax
call fcn.0040272c
mov ebx, eax
mov eax, esi
call fcn.00404360
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, esi
call fcn.00404ea4
test edi, edi
jbe 0x465647
mov dword [esp + 8], edi
jmp 0x465655
lea ecx, [esp + 8]
xor edx, edx
mov eax, dword [esp]
call fcn.0046541c
mov eax, dword [esp + 8]
push eax
push 0
push 0x2a
call sub.kernel32.dll_OpenProcess
mov esi, eax
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
mov edi, eax
add edi, edi
push 4
push 0x1000
push edi
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov ebp, eax
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push edi
push ebx
push ebp
push esi
call sub.kernel32.dll_WriteProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4656d2
push 0x4656e8
push 0x4656f8
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
xor edx, edx
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
push 0
push ebp
push eax
push 0
push 0
push esi
call sub.kernel32.dll_CreateRemoteThread
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0040274c
mov eax, dword [esp + 4]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x465b50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x15c]
mov edx, dword [0x4073d0]
call fcn.00404a38
mov esi, 0x469cd4
xor eax, eax
push ebp
push 0x465cb0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, dword [esi]
call fcn.00404138
lea eax, [ebp - 0x160]
mov ecx, 0x465cc8
mov edx, dword [esi]
call fcn.004043ac
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.004088e8
mov ebx, eax
mov eax, dword [0x469cd0]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc8]
cmp al, 1
jne 0x465c11
lea eax, [ebp - 0x164]
mov ecx, 0x465cdc
mov edx, dword [esi]
call fcn.004043ac
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.004088e8
mov ebx, eax
test ebx, ebx
jne 0x465c6e
push 0
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x150]
mov edx, 0x465ce8
call fcn.004043ac
mov eax, dword [ebp - 0x168]
call fcn.00404560
push eax
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x150]
mov edx, dword [esi]
call fcn.004043ac
mov eax, dword [ebp - 0x16c]
call fcn.00404560
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x15c]
call fcn.00408938
mov ebx, eax
test ebx, ebx
je 0x465c15
lea eax, [ebp - 0x15c]
call fcn.0040895c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465cb7
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.004040c4
lea eax, [ebp - 0x15c]
mov edx, dword [0x4073d0]
call fcn.00404b08
lea eax, [ebp - 4]
call fcn.004040a0
ret
Function at 0x402850
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub esp, 8
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
xor edi, edi
push edx
mov dword [eax], edi
push ebx
mov dword [ecx], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4028ec
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4028d4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x4331dc
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4028d4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, 1
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
mov dword [eax], edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x403820
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x403857
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403857
mov eax, 1
ret
xor eax, eax
ret

Function at 0x403860
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0x18], edi
jne 0x403877
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4038aa
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4038aa
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x4038be
cmp eax, 2
je 0x4038be
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
test eax, eax
je 0x4038be
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
ret

Function at 0x4038d0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4038f5
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x403940
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x403968
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x403c10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x403c67
mov eax, dword [esp]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add esp, 0x54
ret
xor eax, eax
add esp, 0x54
ret

Function at 0x403cb0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
mov edi, ecx
call fcn.00403c70
test eax, eax
jne 0x403da8
call fcn.00427455
mov eax, dword [eax + 8]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00409440
lea ecx, [esp + 0x10]
push str.RxMpegX.ax
lea esi, [edi + 0xc0]
push ecx
push str._s_s
push esi
call fcn.0041dff2
mov eax, dword [esi]
push eax
call fcn.00409530
add esp, 0x1c
test eax, eax
jne 0x403d30
lea edx, [esp + 8]
push edx
push str.Filter.RxMpegX
call fcn.00407b10
add esp, 8
mov dword [edi + 0xc4], eax
test eax, eax
je 0x403da8
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.0041f739
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esi]
lea eax, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0x10]
push str._s_regsvr32.exe__s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x18]
push edx
call fcn.00403c10
add esp, 0x14
test eax, eax
je 0x403d7f
call fcn.00403c70
test eax, eax
je 0x403d7f
mov eax, 1
jmp 0x403d81
xor eax, eax
test eax, eax
mov dword [edi + 0xc8], eax
jne 0x403da8
mov eax, dword [edi + 0xc4]
test eax, eax
je 0x403da8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [edi + 0xc4], 0
pop edi
pop esi
add esp, 0x208
ret

Function at 0x403dc0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x403e50
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x403e29
lea ecx, [esp + 4]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esi + 0xc0]
lea eax, [esp + 4]
push edx
push eax
lea ecx, [esp + 0x110]
push str._s_regsvr32.exe__s__u__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x118]
push edx
call fcn.00403c10
add esp, 0x14
mov dword [esi + 0xc8], 0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x403e50
mov eax, dword [esi + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc4], 0
pop esi
add esp, 0x208
ret
Function at 0x406150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], vtable.CMenu.0
mov dword [esp + 0x10], ebx
mov eax, dword [0x433748]
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], eax
mov byte [esp + 0x1c], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
lea ecx, [esp + 0x10]
call fcn.00424599
cmp eax, ebx
jne 0x4061d9
lea ecx, [esp + 8]
mov byte [esp + 0x1c], bl
call fcn.0041f5fc
mov dword [esp + 0xc], vtable.CMenu.0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 2
call fcn.004245f0
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
lea ecx, [esp + 0xc]
push edi
push ecx
mov ecx, esi
call fcn.00405ff0
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
test eax, eax
jle 0x4061fe
mov edx, dword [esp + 0x14]
push ebx
push ebx
push 0x800
push edx
call edi
push 0x7a
lea ecx, [esp + 0x10]
call fcn.0042419c
mov edx, dword [esi + 0x14e8]
mov ecx, dword [esi + 0x18e4]
xor eax, eax
cmp edx, ebx
sete al
mov edx, dword [esp + 0x14]
or eax, ecx
mov ecx, dword [esp + 0xc]
neg eax
sbb eax, eax
push ecx
and eax, 3
push 0x6a
push eax
push edx
call edi
mov eax, dword [esp + 0x14]
push ebx
push ebx
push 0x800
push eax
call edi
push 0x78
lea ecx, [esp + 0x10]
call fcn.0042419c
mov eax, dword [esi + 0x18e8]
mov ecx, dword [esi + 0x18e4]
neg eax
mov edx, dword [esp + 0xc]
sbb eax, eax
push edx
and eax, 8
push 0x68
neg ecx
sbb ecx, ecx
and ecx, 3
or eax, ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call edi
push 0x79
lea ecx, [esp + 0x10]
call fcn.0042419c
mov eax, dword [esi + 0x18ec]
mov ecx, dword [esi + 0x18e4]
neg eax
mov edx, dword [esp + 0xc]
sbb eax, eax
push edx
and eax, 8
push 0x69
neg ecx
sbb ecx, ecx
and ecx, 3
or eax, ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call edi
push 0x7e
lea ecx, [esp + 0x10]
call fcn.0042419c
mov eax, dword [esi + 0x18e0]
mov ecx, dword [esi + 0x18e4]
neg eax
mov edx, dword [esp + 0xc]
sbb eax, eax
push edx
and eax, 8
push 0x6b
neg ecx
sbb ecx, ecx
and ecx, 3
or eax, ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push 0x800
push ecx
call edi
push 0x77
lea ecx, [esp + 0x10]
call fcn.0042419c
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push edx
push 0x10
push ebx
push eax
call edi
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edx
push eax
push 2
lea ecx, [esp + 0x24]
call fcn.00421db0
lea ecx, [esp + 0x10]
call fcn.004245f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call fcn.0041f5fc
mov dword [esp + 0x10], vtable.CMenu.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 3
call fcn.004245f0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x407b10
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.00408c50
mov edi, eax
add esp, 4
test edi, edi
je 0x407bca
call fcn.00427455
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x407bca
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x120]
lea edx, [esp + 0x14]
push esi
push ebp
push 0x4334a0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebp
push 0x100
push 2
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x407bca
call fcn.00427455
mov eax, dword [eax + 8]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x408ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push eax
mov byte [ebp], 0
call fcn.00408c50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408f3a
call fcn.00427455
mov eax, dword [eax + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x408f3a
call fcn.00427455
mov eax, dword [eax + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
push esi
push edi
call fcn.00408d60
add esp, 0xc
test eax, eax
je 0x408f3a
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub esi, eax
push edx
push ebp
add esi, edi
push ecx
push esi
push eax
call fcn.00408e10
add esp, 0x14
xor eax, eax
pop edi
test ebx, ebx
pop esi
pop ebp
setne al
pop ebx
ret

Function at 0x408f50
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push eax
call fcn.00408ec0
add esp, 0x14
test eax, eax
je 0x408f90
cmp byte [esi], 0
jne 0x408fa4
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push ebx
push edi
push esi
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebp
pop ebx
ret