joyce8/EMBER2024-capa huggingface dataset:
Function at 0x136a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x137e808
push 0x136e288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x136a329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x136a329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0136d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x136a329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x136a329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x136a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0136a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x136ad20
Capabilities:
Query or enumerate registry value

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

Function at 0x136ad60
Capabilities:
Query or enumerate registry value

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

Function at 0x136ada0
Capabilities:
Query or enumerate registry value

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

Function at 0x136ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x136aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x136aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x1383320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0136cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x136aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x136ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x136b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x136b131
push esi
call fcn.0136e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0135d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x136b131
push 0
push ebp
call fcn.0135d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0135d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x136b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0135d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x136b121
push 0x1383918
push edi
call fcn.0136c3f0
push eax
push ebx
push esi
call fcn.0136af60
push 0x13838f8
push edi
call fcn.0136c3f0
push eax
push ebx
push esi
call fcn.0136af60
push 0x13838d8
push edi
call fcn.0136c3f0
push eax
push ebx
push esi
call fcn.0136af60
push 0x13838c0
push edi
call fcn.0136c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0136af60
push 0x13838a0
push edi
call fcn.0136c3f0
push eax
push ebx
push esi
call fcn.0136af60
push 0x1383888
push edi
call fcn.0136c3f0
push eax
push ebx
push esi
call fcn.0136af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x136c1b0
Capabilities:
Acquire debug privileges

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

Function at 0x136cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x136cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x137e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x136cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x136cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402003
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x4f9941
call fcn.004d1298
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push str.kcmpp.exe
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x402061
mov eax, dword [ebx + 8]
push 0x502f68
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x402061
cmp dword [0x550bdc], 0
je 0x40205a
push 0x502fcc
push ecx
call fcn.004022f5
add esp, 4
call fcn.0040233d
mov esi, eax
call fcn.00402366
xor eax, eax
jmp 0x4021f9
call fcn.00452ba4
test eax, eax
jne 0x402082
call fcn.00452d57
test eax, eax
jne 0x402082
cmp dword [0x550bdc], eax
je 0x40205a
push str.not_inst_number
jmp 0x402045
xor edi, edi
cmp dword [ebx + 0x10], edi
jne 0x402098
cmp dword [0x550bdc], edi
je 0x40205a
push str.switch_off
jmp 0x402045
cmp dword [ebx + 0x18], edi
je 0x4020b5
call fcn.0045e8d7
test eax, eax
je 0x4020b5
cmp dword [0x550bdc], edi
je 0x40205a
push str.switch_on_and_Pcmgr_close
jmp 0x402045
push ebx
call fcn.00401d56
mov eax, dword [0x550310]
mov esi, 0x550310
mov ecx, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x550310]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea esi, [ebx + 0x1c]
mov eax, esi
call fcn.00498dd2
test eax, eax
jne 0x402111
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.k_x.exe
lea eax, [ebp - 0x10]
call fcn.00401a57
jmp 0x40215c
mov eax, esi
call fcn.00498dd2
mov edi, eax
dec edi
je 0x40213f
push 0
call dword [sym.imp.MSVCR80.dll__time64]
pop ecx
push eax
call dword [sym.imp.MSVCR80.dll_srand]
mov esi, dword [sym.imp.MSVCR80.dll_rand]
pop ecx
call esi
call esi
call esi
cdq
idiv edi
jmp 0x402141
xor edx, edx
mov esi, edx
lea edi, [ebx + 0x1c]
call fcn.004171cc
push dword [eax]
lea eax, [ebp - 0x10]
push 0x503060
call fcn.00401a57
xor edi, edi
pop ecx
pop ecx
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push dword [ebx + 4]
push 0x502f98
call fcn.00401a57
mov eax, dword [ebx]
add esp, 0xc
push edi
mov edi, dword [ebp - 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402198
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x14]
jge 0x4021e3
xor edi, edi
jmp 0x4020ed
cmp dword [0x550bdc], 0
je 0x4021bb
push str.CopyFile_true
push ecx
call fcn.004022f5
add esp, 4
call fcn.0040233d
mov esi, eax
call fcn.00402366
lea eax, [ebp - 0x10]
push eax
mov esi, ebx
mov dword [ebp - 0x1c], 1
call fcn.00401fab
push dword [ebp + 8]
push edi
call fcn.0045eed2
pop ecx
pop ecx
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [edi - 0x10]
call fcn.004012f9
mov eax, dword [ebp - 0x1c]
call fcn.004d1370
ret 4
Function at 0x402be2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402bf9
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402c2e
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402c2a
cmp edi, eax
jae 0x402c2e
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402c1c
cmp edi, eax
jb 0x402c32
xor eax, eax
jmp 0x402c3c
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x406bcb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
cmp dword [edi + 0xc], 0xffffffff
jne 0x406c20
push esi
lea esi, [ebp - 4]
call fcn.00406c26
push dword [eax]
push 0
push 0x5039d0
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004012f9
test esi, esi
pop esi
je 0x406c11
push edi
call fcn.00406d7f
test eax, eax
jne 0x406c1a
call fcn.00406fa9
test eax, eax
je 0x406c1d
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
pop edi
leave
ret

Function at 0x406edf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0x18], 0
jne 0x406f15
push esi
lea esi, [ebp - 4]
call fcn.00406c26
push dword [eax]
push 2
push 0x5039f8
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004012f9
pop esi
mov eax, dword [edi + 0x18]
leave
ret

Function at 0x406fa9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 4], 0xffffffff
jne 0x406fdf
push esi
lea esi, [ebp - 4]
call fcn.00406c26
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004012f9
pop esi
mov eax, dword [edi + 4]
leave
ret

Function at 0x407182
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, edi
call fcn.004071cd
test eax, eax
jne 0x407196
push 0x60
pop eax
leave
ret
cmp dword [edi + 8], 0xffffffff
jne 0x4071c8
push esi
lea esi, [ebp - 4]
call fcn.00406c26
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004012f9
pop esi
mov eax, dword [edi + 8]
leave
ret
Function at 0x40723b
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4f3cec
call fcn.004d1298
and dword [ebp - 0x10], 0
mov edi, ecx
add edi, 0x14
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4072ae
lea esi, [ebp - 0x10]
call fcn.00406c26
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
mov esi, edi
call fcn.00401958
push eax
push 0x503ad0
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [edi]
test eax, eax
je 0x4072a7
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, edi
call fcn.00401385
mov eax, dword [edi]
sub eax, 0x10
call fcn.00401311
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
call fcn.004d1370
ret
Function at 0x4075ea
Capabilities:
Read .ini file

Disassembly:
push 0x28
mov eax, 0x4f3c85
call fcn.004d1298
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add eax, 0x1c
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 0x20], eax
je 0x407616
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 3
jne 0x4077d6
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea esi, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00406c26
mov byte [ebp - 4], 1
push dword [eax]
mov eax, 0x104
push eax
push eax
lea esi, [ebp + 8]
call fcn.00401958
push eax
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004012f9
cmp dword [ebp + 8], ebx
jne 0x407676
xor eax, eax
jmp 0x407680
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp + 8]
call fcn.00401385
push 0x503acc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp + 8]
call fcn.004077de
mov byte [ebp - 4], 2
mov edi, dword [eax]
mov eax, dword [0x550310]
mov ecx, 0x550310
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.004051f9
test al, al
jne 0x407720
xor esi, esi
cmp edi, esi
je 0x4076ea
call dword [0x54b0a4]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
dec ebx
jmp 0x4076ec
xor ebx, ebx
cmp ebx, esi
lea esi, [ebp - 0x14]
jle 0x40771b
push ebx
call fcn.004052a5
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push 0xffffffffffffffff
push edi
push ecx
call dword [0x54b0a4]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, ebx
mov edx, esi
call fcn.004053a6
jmp 0x407720
call fcn.00405459
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004012f9
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
je 0x4077c0
push edi
call dword [sym.imp.MSVCR80.dll_atof]
fstp qword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
mov edx, dword [esi + 4]
test edx, edx
pop ecx
jne 0x407755
xor ecx, ecx
jmp 0x40775d
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x40777d
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x40777d
mov eax, dword [esi + 8]
fld qword [ebp - 0x2c]
fstp qword [eax]
add eax, 8
mov dword [esi + 8], eax
jmp 0x40779b
mov ebx, dword [esi + 8]
cmp edx, ebx
jbe 0x40778a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, esi
call fcn.004078cf
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.004012f9
push 0x503acc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
lea ebx, [ebp + 8]
call fcn.004077de
jmp 0x40769f
lea eax, [edi - 0x10]
call fcn.004012f9
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x20]
call fcn.004d1370
ret 4
Function at 0x409a54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409ab7
cmp dword [ebp + 0xc], 1
je 0x409a90
cmp dword [ebp + 0xc], 2
je 0x409a90
push 0xd
pop eax
jmp 0x409ab7
test edi, edi
mov eax, dword [ebp - 4]
je 0x409ab1
test eax, eax
je 0x409aad
test al, 1
jne 0x409a8b
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x409ab1
jmp 0x409a8b
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x409bc0
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4f1033
call fcn.004d1298
mov esi, ecx
call fcn.0040995f
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00409ced
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x409cdf
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409cdc
lea eax, [ebp - 0x24]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x409cc9
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x409c92
mov ecx, dword [ebp - 0x14]
push 0x409997
push 0x409f2b
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.004d08f5
mov eax, edi
jmp 0x409c94
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x409cc9
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.00409f35
test eax, eax
jne 0x409cc4
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x409cc4
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x409cc9
call fcn.0040995f
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x28], vtable.Gdiplus::FontCollection.0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
call fcn.004d1370
ret
Function at 0x409e5e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x194], eax
xor eax, eax
push 0x20e
push eax
mov dword [ebp - 0x80], eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.00402d09
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
mov eax, esi
call fcn.004d0736
add ebp, 0x198
leave
ret
Function at 0x40e830
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
inc ebx
cmp eax, 0xf
push edi
mov esi, ecx
jne 0x40e85f
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0xbc]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x40e896
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x40e8b7
push dword [esi + 0x10]
mov dword [esi + 0xbc], ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x40e890
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e890
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [esi + 0xbc], 0
jne 0x40e856
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408418
jmp 0x40e858
cmp eax, 0x47
jne 0x40e8dc
push dword [ebp + 0x14]
lea edi, [esi + 0xbc]
mov eax, esi
mov dword [edi], ebx
call fcn.0040e934
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x40e854
cmp eax, 0x18
jne 0x40e896
push dword [ebp + 0x10]
mov dword [esi + 0xbc], ebx
call fcn.0040a932
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x40e914
push dword [esi + 8]
jmp 0x40e90a
mov ecx, dword [eax + 0x34]
shr ecx, 3
not ecx
test bl, cl
je 0x40e91e
push dword [eax + 8]
call fcn.00405678
cmp eax, edi
pop ecx
jne 0x40e8fb
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040b85f
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0xbc], edi
jne 0x40e856
jmp 0x40e896

Function at 0x4178b2
Capabilities:
Print debug messages

Disassembly:
push 0x10
mov eax, 0x4f0856
call fcn.004d1298
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00402d09
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.00417918
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004012f9
call fcn.004d1370
ret 4