joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4582f6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041ac26
add esp, 0xc
lea eax, [ebp - 0x108]
mov dword [ebp - 8], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x458358
mov edx, dword [ebp - 4]
push edx
push 0x524d10
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c5c
push 0x80
call fcn.00408afe
add esp, 4
test eax, eax
jne 0x45839c
push 0x524d2c
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, 0x53e080
call fcn.004880ab
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
xor eax, eax
jmp 0x458407
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00419059
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x4583d4
push 0x524d3c
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 0x1c]
push ecx
mov ecx, 0x53e080
call fcn.004880ab
xor edx, edx
mov dx, word [0x539ade]
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
push 0x80
call fcn.00408b57
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x45b9e8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041ac26
add esp, 0xc
lea eax, [ebp - 0x108]
mov dword [ebp - 8], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x45ba4a
mov edx, dword [ebp - 4]
push edx
push 0x525164
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c5c
push 0x80
call fcn.00408afe
add esp, 4
test eax, eax
jne 0x45ba8e
push 0x525180
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, 0x53e080
call fcn.004880ab
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
xor eax, eax
jmp 0x45baf9
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00419059
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x45bac6
push 0x525190
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 0x1c]
push ecx
mov ecx, 0x53e080
call fcn.004880ab
xor edx, edx
mov dx, word [0x539ade]
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
push 0x80
call fcn.00408b57
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x45f083
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041ac26
add esp, 0xc
lea eax, [ebp - 0x108]
mov dword [ebp - 8], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x45f0e5
mov edx, dword [ebp - 4]
push edx
push 0x5255a0
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c5c
push 0x80
call fcn.00408afe
add esp, 4
test eax, eax
jne 0x45f129
push 0x5255bc
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, 0x53e080
call fcn.004880ab
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
xor eax, eax
jmp 0x45f194
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00419059
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x45f161
push 0x5255cc
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 0x1c]
push ecx
mov ecx, 0x53e080
call fcn.004880ab
xor edx, edx
mov dx, word [0x539ade]
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
push 0x80
call fcn.00408b57
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x461830
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], str.INK_CARTRIDGE
push str.IDC_INK_ALIGN_CAPTION
mov eax, dword [ebp - 4]
push eax
call fcn.0044e26e
add esp, 8
push eax
mov ecx, dword [ebp - 8]
call fcn.004e7795
push str.IDC_ALIGNDLG2_STR1
mov ecx, dword [ebp - 4]
push ecx
call fcn.0044e26e
add esp, 8
push eax
push 0x7fe
mov ecx, dword [ebp - 8]
call fcn.004e763c
mov ecx, eax
call fcn.004e7795
push str.IDC_ALIGNDLG2_STR2
mov edx, dword [ebp - 4]
push edx
call fcn.0044e26e
add esp, 8
push eax
push 0x7ff
mov ecx, dword [ebp - 8]
call fcn.004e763c
mov ecx, eax
call fcn.004e7795
push 0x539d00
push 0
push str.InkjetScanStr
push 0x525844
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4618e9
push str.IDC_ALIGNDLG2_STR3_START
mov eax, dword [ebp - 4]
push eax
call fcn.0044e26e
add esp, 8
push eax
push 0x800
mov ecx, dword [ebp - 8]
call fcn.004e763c
mov ecx, eax
call fcn.004e7795
jmp 0x46190f
push str.IDC_ALIGNDLG2_STR3
mov ecx, dword [ebp - 4]
push ecx
call fcn.0044e26e
add esp, 8
push eax
push 0x800
mov ecx, dword [ebp - 8]
call fcn.004e763c
mov ecx, eax
call fcn.004e7795
push str.IDC_ALIGNDLG2_STR4
mov edx, dword [ebp - 4]
push edx
call fcn.0044e26e
add esp, 8
push eax
push 0x801
mov ecx, dword [ebp - 8]
call fcn.004e763c
mov ecx, eax
call fcn.004e7795
mov esp, ebp
pop ebp
ret
Function at 0x46df56
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041ac26
add esp, 0xc
lea eax, [ebp - 0x108]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
push 0x529044
lea edx, [ebp - 0x18c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c5c
push 0x80
call fcn.00408afe
add esp, 4
test eax, eax
jne 0x46dfe4
push 0x529060
mov ecx, dword [ebp - 0x190]
mov edx, dword [ecx + 0x1c]
push edx
mov ecx, 0x53e080
call fcn.004880ab
xor eax, eax
jmp 0x46e04f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00419059
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x46e01c
push 0x529070
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, 0x53e080
call fcn.004880ab
xor ecx, ecx
mov cx, word [0x539ade]
imul ecx, ecx, 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
push 0x80
call fcn.00408b57
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x48011f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8655
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push esi
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401900
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x48017e
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 8]
call fcn.00408660
cmp dword [ebp - 0x20], eax
jge 0x4802c6
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp + 8]
call fcn.00480680
movsx edx, al
cmp edx, 0x3c
jne 0x4801b1
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4802c1
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp + 8]
call fcn.00480680
movsx edx, al
cmp edx, 0x3e
jne 0x4802c1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x58]
sub edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp + 8]
call fcn.004e167d
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe8]
call fcn.00401920
push eax
call fcn.004cf71f
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.004e812c
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x480260
mov ecx, dword [ebp - 0x1c]
push ecx
push str._RCP_iGroupDial_:__d
lea edx, [ebp - 0xd8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x288
mov esi, dword [0x53a6fc]
add esi, ecx
mov eax, dword [ebp - 0x1c]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x1c]
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x48028d
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
sar edx, cl
mov cl, byte [esi + eax + 0x82]
or cl, dl
mov eax, dword [ebp - 0x1c]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x288
mov esi, dword [0x53a6fc]
add esi, edx
mov byte [esi + eax + 0x82], cl
jmp 0x480175
cmp dword [ebp - 0x24], 0
je 0x4802e5
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x288
mov ecx, dword [0x53a6fc]
mov edx, dword [ebp - 0x24]
mov dword [ecx + eax + 0x284], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e812c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004e812c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x483b9f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041ac26
add esp, 0xc
lea eax, [ebp - 0x108]
mov dword [ebp - 8], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x483c01
mov edx, dword [ebp - 4]
push edx
push 0x52dc38
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c5c
push 0x80
call fcn.00408afe
add esp, 4
test eax, eax
jne 0x483c45
push 0x52dc54
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, 0x53e080
call fcn.004880ab
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
xor eax, eax
jmp 0x483cb0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00419059
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x483c7d
push 0x52dc64
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 0x1c]
push ecx
mov ecx, 0x53e080
call fcn.004880ab
xor edx, edx
mov dx, word [0x539ade]
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
push 0x80
call fcn.00408b57
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x484bcb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov dword [ebp - 0x104], ecx
push 0xff0000
mov ecx, dword [ebp - 0x104]
add ecx, 0x14cc
call fcn.00429f20
push 0x20
push 0
push 0x1036
mov ecx, dword [ebp - 0x104]
add ecx, 0x14cc
call fcn.00406580
push 0x539f08
push 0xff
lea eax, [ebp - 0x100]
push eax
push 0x52ded0
push 0x52ded4
push 0x52dedc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
push 0x28
push 1
lea ecx, [ebp - 0x100]
push ecx
push 0
mov ecx, dword [ebp - 0x104]
add ecx, 0x14cc
call fcn.004e2b68
push 0x539f08
push 0xff
lea edx, [ebp - 0x100]
push edx
push str.Name
push str.IDS_NAME
push 0x52def8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
push 0x64
push 0
lea eax, [ebp - 0x100]
push eax
push 1
mov ecx, dword [ebp - 0x104]
add ecx, 0x14cc
call fcn.004e2b68
push 0x539f08
push 0xff
lea ecx, [ebp - 0x100]
push ecx
push 0x52df00
push str.Size
push 0x52df10
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
push 0x50
push 0
lea edx, [ebp - 0x100]
push edx
push 2
mov ecx, dword [ebp - 0x104]
add ecx, 0x14cc
call fcn.004e2b68
mov esp, ebp
pop ebp
ret
Function at 0x48504e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8865
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
mov dword [ebp - 0x41c], ecx
push 0
lea ecx, [ebp - 0x410]
call fcn.004ae770
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0xffffffff
jne 0x4850dd
mov dword [ebp - 0x414], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x410]
call fcn.00429cb0
mov eax, dword [ebp - 0x414]
jmp 0x4851e0
push 0
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
push 0
lea edx, [ebp - 0xd8]
push edx
call fcn.004cf390
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00401920
push eax
push str._PJL_SET_PSFORMNAME_s_n
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0x10]
push ecx
push str._PJL_SET_PSFORMSIZE_d_n
mov edx, dword [ebp - 0xdc]
lea eax, [ebp + edx - 0xd8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0xdc]
add ecx, eax
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x52df84
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp + eax - 0xd8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edx, dword [ebp - 0xdc]
add edx, eax
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xf0]
call fcn.004e8265
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x3b0], ecx
mov dword [ebp - 0x3ac], 0
lea ecx, [ebp - 0x410]
call fcn.004e4531
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x410]
call fcn.00429cb0
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4860a1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041ac26
add esp, 0xc
lea eax, [ebp - 0x108]
mov dword [ebp - 8], eax
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x486103
mov edx, dword [ebp - 4]
push edx
push 0x52e1c4
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c5c
push 0x80
call fcn.00408afe
add esp, 4
test eax, eax
jne 0x486147
push 0x52e1e0
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, 0x53e080
call fcn.004880ab
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
xor eax, eax
jmp 0x4861b2
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00419059
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x48617f
push 0x52e1f0
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 0x1c]
push ecx
mov ecx, 0x53e080
call fcn.004880ab
xor edx, edx
mov dx, word [0x539ade]
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x190]
call fcn.004e7c71
push 0x80
call fcn.00408b57
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x486b83
Capabilities:
Create directory
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f89bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
lea ecx, [ebp - 0x31c]
call fcn.00401900
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x324]
call fcn.00401900
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x118], 0x100
push 0x100
lea eax, [ebp - 0x318]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x318]
push ecx
call fcn.004d03c0
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004cf9b0
add esp, 8
push 0x52e304
lea eax, [ebp - 0x318]
push eax
call fcn.004cf9c0
add esp, 8
lea ecx, [ebp - 0x318]
push ecx
push 0x100
lea edx, [ebp - 0x424]
push edx
push 0x53e150
push 0x52e310
push 0x52e318
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x52e320
lea ecx, [ebp - 0x31c]
call fcn.004e82b5
lea eax, [ebp - 0x320]
push eax
push 1
push 0
lea ecx, [ebp - 0x31c]
call fcn.00401920
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x486ca4
mov ecx, dword [ebp - 0x320]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x486d5f
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x52e364
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x486d39
push 0x52e374
lea eax, [ebp - 0x114]
push eax
call fcn.004cf9c0
add esp, 8
push 0
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x52e378
lea edx, [ebp - 0x114]
push edx
call fcn.004cf9c0
add esp, 8
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.004cf9c0
add esp, 8
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x114]
push ecx
push 0x5396f4
call fcn.004cf9b0
add esp, 8
push 0x52e380
push 0x5396f4
call fcn.004cf9c0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x324]
call fcn.004e812c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x31c]
call fcn.004e812c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x487124
Capabilities:
Copy file
Create directory
Persist via run registry key
Query or enumerate registry value
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8a26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x618
lea ecx, [ebp - 0x31c]
call fcn.00401900
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x324]
call fcn.00401900
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x118], 0x100
push 0x100
lea eax, [ebp - 0x318]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x318]
push ecx
call fcn.004d03c0
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004cf9b0
add esp, 8
push 0x52e464
lea eax, [ebp - 0x318]
push eax
call fcn.004cf9c0
add esp, 8
lea ecx, [ebp - 0x318]
push ecx
push 0x100
lea edx, [ebp - 0x424]
push edx
push 0x53e154
push 0x52e470
push 0x52e478
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x52e480
lea ecx, [ebp - 0x31c]
call fcn.004e82b5
lea eax, [ebp - 0x320]
push eax
push 1
push 0
lea ecx, [ebp - 0x31c]
call fcn.00401920
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x487245
mov ecx, dword [ebp - 0x320]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x487382
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.Local_AppData
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4872da
push 0x52e4d4
lea eax, [ebp - 0x114]
push eax
call fcn.004cf9c0
add esp, 8
push 0
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.PSU_
lea edx, [ebp - 0x114]
push edx
call fcn.004cf9c0
add esp, 8
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.004cf9c0
add esp, 8
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x114]
push ecx
push 0x5396f4
call fcn.004cf9b0
add esp, 8
push 0x52e4e0
push 0x5396f4
call fcn.004cf9c0
add esp, 8
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x524]
push eax
call fcn.004cf9b0
add esp, 8
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x624]
push edx
call fcn.004cf9b0
add esp, 8
push 0
push 0x52e4e4
lea eax, [ebp - 0x624]
push eax
call fcn.004cf9c0
add esp, 8
push eax
push 0x52e4f0
lea ecx, [ebp - 0x524]
push ecx
call fcn.004cf9c0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x624]
push edx
push 0x539d00
call fcn.004cf9b0
add esp, 8
push 0x80
push 0x539d00
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x324]
call fcn.004e812c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x31c]
call fcn.004e812c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4881ec
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8b23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x11c]
call fcn.00401900
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x124], 0
push 0x539d00
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0
push str.OEMID
push 0x52e774
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.SoftwareSSPrint_
lea ecx, [ebp - 0x11c]
call fcn.004e82b5
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.004e8508
push 0x539d00
push 0
push str.REGCURRENT
push 0x52e79c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4882ad
mov dword [ebp - 0x120], OleUIBusyA
jmp 0x4882b7
mov dword [ebp - 0x120], reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x120]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x11c]
call fcn.00401920
push eax
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x4883ea
mov dword [ebp - 0x12c], 0x104
mov byte [ebp - 0x110], 0
push 0x539d00
push 0x100
lea ecx, [ebp - 0x110]
push ecx
push str.SMCntCode
push str.LANGKEY
push 0x52e7b8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x128]
call fcn.00401900
mov byte [ebp - 4], 1
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x128]
call fcn.004e82b5
mov byte [ebp - 0x110], 0
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
lea ecx, [ebp - 0x128]
call fcn.00401920
push eax
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x4883bf
movsx eax, byte [ebp - 0x110]
test eax, eax
je 0x4883b0
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004e82b5
mov dword [ebp - 0x124], 1
jmp 0x4883bd
push 0x52e7c0
mov ecx, dword [ebp + 8]
call fcn.004e82b5
jmp 0x4883cc
push 0x52e7c4
mov ecx, dword [ebp + 8]
call fcn.004e82b5
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.004e812c
jmp 0x4883f7
push 0x52e7c8
mov ecx, dword [ebp + 8]
call fcn.004e82b5
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.004e812c
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4