joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403088
push 0x402570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x406764], 0xffffffff
or dword [0x406768], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4066f4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4066f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40676c], eax
call fcn.00402561
cmp dword [0x404430], 0
jne 0x4024b3
push 0x40255e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040254c
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4066ec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4066e8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00402580
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov byte [ebp - 0x314], 0
mov dword [ebp - 0x310], 0
jmp 0x4028c5
mov eax, dword [ebp - 0x310]
add eax, 1
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x310]
cmp ecx, dword [0x420aa4]
jae 0x402900
mov edx, dword [ebp - 0x310]
mov eax, dword [0x420aa8]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x10]
jne 0x4028fe
mov eax, dword [ebp - 0x310]
mov ecx, dword [0x420aa8]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x31c], edx
jmp 0x4028b6
mov eax, dword [ebp - 0x31c]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
jne 0x4029e4
mov edx, dword [ebp - 0x31c]
add edx, 0x210
push edx
push 0x41b2e8
lea eax, [ebp - 0x208]
push eax
call fcn.0040dddb
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x31c]
add ecx, 8
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
jne 0x4029a7
lea edx, [ebp - 0x318]
push edx
push 0x2001f
push 0
mov eax, dword [ebp - 0x31c]
add eax, 8
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4029a5
mov byte [ebp - 0x314], 1
jmp 0x4029e2
mov ecx, dword [ebp - 0x31c]
add ecx, 0x10c
push ecx
push 0x41b2f8
lea edx, [ebp - 0x208]
push edx
call fcn.0040dddb
add esp, 0xc
mov eax, dword [ebp - 0x320]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402835
add esp, 0xc
jmp 0x4029f5
mov dword [ebp - 0x318], VariantCopy
mov byte [ebp - 0x314], 1
mov eax, dword [ebp - 0x314]
and eax, 0xff
test eax, eax
je 0x402acd
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x402a68
mov eax, dword [0x41b0bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
add ecx, 8
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
mov edx, dword [ebp - 0x31c]
mov dword [0x420aac], edx
mov eax, dword [ebp - 0x318]
mov dword [0x41b0bc], eax
cmp dword [ebp + 8], 0
je 0x402acd
mov ecx, dword [ebp - 0x31c]
add ecx, 0x10c
push ecx
push 0x41b318
lea edx, [ebp - 0x104]
push edx
call fcn.0040dddb
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 0x3ec
push 0x111
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [ebp - 0x314]
mov esp, ebp
pop ebp
ret
Function at 0x402b38
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402b68
mov eax, dword [ebp - 0xc]
jmp 0x402bd8
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402bb2
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402b38
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402bb0
jmp 0x402bb2
jmp 0x402b6f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0x103
je 0x402bca
mov eax, dword [ebp - 0xc]
jmp 0x402bd8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esp, ebp
pop ebp
ret
Function at 0x402bdc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x41b34c
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x402c30
jmp 0x402d13
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x41b37c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402c5a
cmp dword [ebp - 0xc], 0
jne 0x402c5f
jmp 0x402d11
mov edx, dword [ebp - 0xc]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x402c79
jmp 0x402d0f
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x41b38c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402ca5
cmp dword [ebp - 4], 7
je 0x402ca7
jmp 0x402d0d
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x402ce8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402cd2
mov dword [ebp - 0x10], 1
jmp 0x402ce8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 8], edx
jmp 0x402cad
cmp dword [ebp - 0x1c], 0
je 0x402cf8
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], 0
je 0x402d08
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x402d15
jmp 0x402ce8
jmp 0x402ce8
jmp 0x402ce8
jmp 0x402ce8
mov esp, ebp
pop ebp
ret
Function at 0x4038ca
Capabilities:
Get file system object information
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040db27
add esp, 4
mov dword [ebp - 0x170], eax
mov edx, dword [ebp - 0x170]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403971
push 0x41b53c
mov edx, dword [ebp - 0x170]
push edx
call fcn.00403837
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403946
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x41b54c
mov edx, dword [ebp - 0x170]
push edx
call fcn.00403837
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403971
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x16c], 0
push 0x101
push 0x160
lea edx, [ebp - 0x16c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp dword [ebp - 0x16c], 0
jne 0x4039b4
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.0040da3e
add esp, 4
mov eax, dword [ebp - 0x16c]
mov esp, ebp
pop ebp
ret
Function at 0x4039cd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push 0x3ed
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x12c], 5
lea edx, [ebp - 0x234]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], 0x104
lea eax, [ebp - 0x12c]
push eax
push 0
push 0x1005
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
movsx ecx, byte [eax + 0x111]
test ecx, ecx
je 0x403b2b
push 0x41b558
call fcn.0040dd60
add esp, 4
push eax
push 0x41b56c
mov edx, dword [ebp - 0x130]
add edx, 0x111
push edx
call fcn.0040e320
add esp, 0xc
test eax, eax
jne 0x403ab2
push 0x41b580
call fcn.0040dd60
add esp, 4
mov ecx, dword [ebp - 0x130]
lea edx, [ecx + eax + 0x111]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040dc70
add esp, 8
jmp 0x403ace
mov ecx, dword [ebp - 0x130]
add ecx, 0x111
push ecx
lea edx, [ebp - 0x234]
push edx
call fcn.0040dc70
add esp, 8
push 0x5c
lea eax, [ebp - 0x234]
push eax
call fcn.0040e530
add esp, 8
test eax, eax
je 0x403b0e
push 0x5c
lea ecx, [ebp - 0x234]
push ecx
call fcn.0040e530
add esp, 8
add eax, 1
push eax
push 0x41b594
lea edx, [ebp - 0x104]
push edx
call fcn.0040dddb
add esp, 0xc
jmp 0x403b29
lea eax, [ebp - 0x234]
push eax
push 0x41b5b8
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040dddb
add esp, 0xc
jmp 0x403b46
lea edx, [ebp - 0x234]
push edx
push 0x41b5dc
lea eax, [ebp - 0x104]
push eax
call fcn.0040dddb
add esp, 0xc
push 1
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0x41b600
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret
Function at 0x404e9f
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404ecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404f28
push 0x10000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404efa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404f28
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x404f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4057b7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 2
push 0xffffffffffffffff
push 0x100c
push 0x3ed
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 4
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0x1005
push 0x3ed
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x111]
test ecx, ecx
je 0x405856
push 0x3c
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.0040deb0
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0x41b960
mov ecx, dword [ebp - 8]
add ecx, 0x111
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esp, ebp
pop ebp
ret

Function at 0x40585a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40587b
xor eax, eax
jmp 0x405996
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 2
push 0xffffffffffffffff
push 0x100c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4058a4
xor eax, eax
jmp 0x405996
push 0x6590
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0x104
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0x102d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x20], 2
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x1019
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40597a
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0040df20
add esp, 8
mov dword [ebp - 0x28], eax
push 1
push 0x41b96c
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040dfe0
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x64], 0x104
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0x102d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4058fd
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x24]
push edx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret
Function at 0x40802e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
lea eax, [ebp - 0x134]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40805f
mov eax, dword [ebp + 0x18]
jmp 0x4080f4
mov dword [ebp - 4], 0x12c
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4080e4
mov ecx, dword [ebp + 0x1c]
and ecx, 0xff
test ecx, ecx
jne 0x4080bf
push 0x41be98
lea edx, [ebp - 0x130]
push edx
call fcn.0040dc80
add esp, 8
push 0x41be9c
lea eax, [ebp - 0x130]
push eax
call fcn.0040dc80
add esp, 8
mov cl, byte [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407fcc
add esp, 0x14
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x40c41e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call fcn.0040d06a
mov byte [0x420ab0], al
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x41fe90], eax
cmp dword [0x41fe90], 0
jne 0x40c451
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x41fe90], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 8]
mov dword [0x420564], eax
push 0x41cf6c
push 0x41cf80
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x420a9c], eax
push 0x30
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040deb0
add esp, 0xc
mov dword [ebp - 0x38], 0x30
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x1e
mov edx, dword [0x420564]
mov dword [ebp - 0x24], edx
push 0x41cf90
mov eax, dword [0x420564]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x20], eax
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x41cf98
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebp - 0xc], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x40b492
mov dword [ebp - 0x10], 0x41cfa0
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x401094
push 0xe0ffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x41cfac
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0x40b492
push 0
push 0x41cfb4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41cfc0
mov ecx, dword [0x420564]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 4], eax
push 0
push 0
push 0
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40c5e3
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
je 0x40c5b9
jmp 0x40c58d
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
je 0x40c5cd
jmp 0x40c58d
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40c58d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d936
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 0x40d98c
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x418444
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d97f
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40d98e
xor eax, eax
pop esi
leave
ret 4

Function at 0x41498c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41fa90
cmp edx, dword [eax]
je 0x4149ae
add eax, 8
inc ecx
cmp eax, 0x41fb20
jl 0x41499f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41fa90]
jne 0x414adc
mov eax, dword [0x420c84]
cmp eax, 1
je 0x414ab6
test eax, eax
jne 0x4149df
cmp dword [0x41d1b4], 1
je 0x414ab6
cmp edx, 0xfc
je 0x414adc
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414a16
lea eax, [ebp - 0x1a4]
push 0x418940
push eax
call fcn.0040dc70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040dd60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414a59
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040dd60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41893c
push edi
call fcn.004159f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x418920
push eax
call fcn.0040dc70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040dc80
lea eax, [ebp - 0xa0]
push 0x41891c
push eax
call fcn.0040dc80
push dword [esi + 0x41fa94]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dc80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00416707
add esp, 0x2c
pop edi
jmp 0x414adc
lea eax, [ebp + 8]
lea esi, [esi + 0x41fa94]
push 0
push eax
push dword [esi]
call fcn.0040dd60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x7f16d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040630e
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x7f16d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7f16d0], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401520
jmp 0x401523