joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x4f9bd4], eax
je 0x491afc
pop edi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f9bd8]
test eax, eax
jne 0x491c26
test edi, edi
jne 0x491b22
lea eax, [edi + 0x57]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x491b3b
cmp dword [ebx], 0
jne 0x491b52
mov dword [0x4f9bd8], 6
mov dword [0x4f9bdc], ebx
pop edi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret 8
push esi
push 0x18
call fcn.00450e28
mov esi, eax
add esp, 4
test esi, esi
jne 0x491b6b
lea edi, [eax + 8]
jmp 0x491c08
push 0
push dword [ebx]
call fcn.00491a30
push 0
push edi
mov dword [ebp - 0xc], eax
call fcn.00491a30
mov edi, dword [ebp - 0xc]
mov edx, eax
movzx ecx, byte [edi + 0x36]
mov eax, dword [edi + 0x40]
sub eax, ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x491bfa
cmp ecx, 0x1e
ja 0x491bfa
cmp dword [edi + 0x44], edx
jne 0x491bfa
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push 0x40
push ecx
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x491bbf
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x491c08
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 4], 1
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov eax, dword [0x4f9be4]
mov dword [esi], eax
xor eax, eax
mov dword [0x4f9be4], esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4f9bcc], 0
mov edi, 9
jne 0x491c12
mov dword [0x4f9bd8], edi
test esi, esi
je 0x491c1d
push 0x18
push esi
call fcn.00450975
add esp, 8
mov dword [0x4f9bdc], ebx
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00450df0
mov esp, ebp
pop ebp
ret 8
Function at 0x491c40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x4f9bd4], eax
je 0x491c70
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x4f9be4]
push edi
test esi, esi
je 0x491cdd
push ebx
nop dword [eax]
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [esi + 4], 0
jne 0x491cc9
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x491cc9
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.00495790
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push 0x18
push esi
call fcn.00450975
add esp, 8
mov esi, edi
test edi, edi
jne 0x491c80
pop ebx
mov dword [0x4f9be4], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov esi, dword [0x4f9bc4]
mov edi, eax
test esi, esi
je 0x491d1c
lea eax, [ebp - 8]
push eax
push 0x20
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
push 0x10000
push esi
push edi
call sub.KERNEL32.dll_FlushInstructionCache
mov esi, dword [esi + 4]
test esi, esi
jne 0x491cf8
mov edi, dword [0x4f9be0]
test edi, edi
je 0x491d41
push dword [edi + 4]
call sub.KERNEL32.dll_ResumeThread
mov esi, dword [edi]
push 8
push edi
call fcn.00450975
add esp, 8
mov edi, esi
test esi, esi
jne 0x491d26
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
mov dword [0x4f9be0], 0
mov dword [0x4f9bd4], 0
pop esi
call fcn.00450df0
mov esp, ebp
pop ebp
ret

Function at 0x491d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4f9bd4], 0
jne 0x491e0b
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x4f9bd4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x491e0b
push esi
mov esi, dword [0x4f9bc4]
mov dword [0x4f9be4], eax
mov dword [0x4f9be0], eax
mov dword [0x4f9bdc], eax
test esi, esi
je 0x491ddc
nop dword [eax]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x491df2
mov esi, dword [esi + 4]
test esi, esi
jne 0x491dc0
xor eax, eax
mov dword [0x4f9bd8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x4f9bd8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
Function at 0x4922e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f9bd8]
test eax, eax
jne 0x49235f
push edi
call sub.KERNEL32.dll_GetCurrentThread
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x492300
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.00450e28
mov esi, eax
add esp, 4
test esi, esi
jne 0x492316
lea edi, [eax + 8]
jmp 0x492333
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x49234b
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push 8
push esi
call fcn.00450975
add esp, 8
pop esi
mov dword [0x4f9bd8], edi
mov eax, edi
mov dword [0x4f9bdc], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x4f9be0]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x4f9be0], esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x493940
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c55a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f4164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 2
push edi
call fcn.00452164
lea esi, [edi + 0x30]
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00450e28
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00493d50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x495a10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, 0xfffffffe
je 0x495a2f
mov ecx, dword [esi + 4]
add ecx, edi
xor ecx, dword [eax + edi]
call fcn.00450df0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add ecx, edi
xor ecx, dword [eax + edi]
pop edi
pop esi
pop ebp
jmp fcn.00450df0

Function at 0x4ad5cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ad442

Function at 0x4b06b6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b0333
Function at 0x401320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
push edi
mov dword [esp + 0x10], 0
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
call ebx
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
lea eax, [esp + 0x14]
push eax
push str.Software
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40140e
lea ecx, [esp + 0x18]
push ecx
push 0x5f
push 0x405e64
call fcn.0040353e
mov edx, dword [esp + 0x20]
add esp, 8
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401403
mov dword [esp + 0x1c], 4
call esi
push 0
call edi
call ebx
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x128]
push eax
lea ecx, [esp + 0x24]
push 0x405e60
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

Function at 0x401420
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [esp + 4]
push eax
push str.Software
push SysReAllocString
call esi
test eax, eax
jne 0x4014d9
lea ecx, [esp + 8]
push ecx
push 0x5f
push 0x405e64
call fcn.0040353e
mov edx, dword [esp + 0x10]
add esp, 8
push eax
push edx
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4014d2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push 0x405e7c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 4
lea edx, [esp + 0x220]
push edx
push 4
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
pop esi
add esp, 0x210
ret
Function at 0x4015a0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x204
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
push edi
xor eax, eax
mov ecx, 0x7e
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
call ebx
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0x1e8
mov dword [esp + 0x20], 0x67
mov dword [esp + 0x2c], eax
call esi
push 0
call edi
call ebx
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov ecx, dword [0x409514]
mov dword [esp + 0x24], 3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x1b8], 0x1b7740
mov dword [esp + 0x28], 0x800
call esi
push 0
call edi
call ebx
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
cmp dword [ebp + 0xc], 3
je 0x40172e
mov dword [esp + 0x1fc], 2
call esi
push 0
call edi
call ebx
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [0x409508]
lea edx, [eax + eax*2]
mov ecx, dword [edx*4 + 0x4070f0]
test ecx, ecx
je 0x4016b2
push 0x3f
push ecx
lea eax, [esp + 0x1c4]
push eax
call fcn.00403270
mov eax, dword [0x409508]
add esp, 0xc
lea ecx, [eax + eax*2]
mov eax, dword [ecx*4 + 0x4070f4]
test eax, eax
je 0x4016d6
push 0xff
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.00403270
add esp, 0xc
call esi
push 0
call edi
call ebx
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
cmp eax, 1
mov dword [esp + 0x10], ecx
je 0x401736
mov dword [0x409510], 0x7530
call esi
push 0
call edi
call ebx
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
or dword [esp + 0x24], 0x10
jmp 0x401736
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
call esi
push 0
call edi
call ebx
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4017c2
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push str.RedrawWindow
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + 0x10], eax
call esi
push 0
call edi
call ebx
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4017c2
mov ecx, dword [esp + 0x14]
push 0x181
push 0
push 0
push ecx
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401eb0
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov esi, 0x407040
lea ecx, [ecx]
mov eax, dword [esi]
push 0
push eax
call edi
add esi, 0x24
cmp esi, 0x4070ac
jl 0x401ec0
pop edi
pop esi
ret

Function at 0x402010
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
lea eax, [esp + 4]
push eax
push 0x64
push 0x405f9c
xor bl, bl
call fcn.0040353e
add esp, 8
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402065
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40205a
mov bl, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret

Function at 0x402070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4020c4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.User_Agent
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4020b9
mov bl, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x4020d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40210c
pop edi
mov eax, 0x3f3
pop ebx
add esp, 0x10c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0xc]
push 0x105
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
call esi
test eax, eax
jne 0x402140
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.004020d0
add esp, 8
test eax, eax
je 0x402113
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop edi
pop ebx
add esp, 0x10c
ret
Function at 0x4033fd
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
mov dword [esp + 0x10], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
call ebp
push esi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x403461
call edi
push esi
call ebx
call ebp
push esi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
test byte [esp + 0x10], 0x20
jne 0x403461
mov al, 1
jmp 0x403463
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x403469
Capabilities:
Terminate process

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push str.iexp
push eax
call fcn.00404150
lea eax, [esp + 0x1c]
push 0x406304
push eax
call fcn.00404160
lea eax, [esp + 0x24]
push eax
call fcn.004039da
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0x14
mov dword [esp + 0x10], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
xor esi, esi
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
jmp 0x403506
push esi
push dword [esp + 0x14]
push esi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
lea eax, [esp + 0x14]
push str.iexp
push eax
call fcn.00404150
lea eax, [esp + 0x1c]
push 0x406304
push eax
call fcn.00404160
lea eax, [esp + 0x24]
push eax
call fcn.004039da
add esp, 0x14
mov dword [esp + 0x10], eax
call edi
push esi
call ebx
call ebp
push esi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
call edi
push esi
call ebx
call ebp
push esi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
cmp dword [esp + 0x10], esi
jne 0x4034bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x40353e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
xor ebx, ebx
push ebx
call ebp
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x14]
add byte [esp + 0x18], 0x64
cmp byte [eax], bl
mov esi, 0x409520
je 0x4035cf
mov dword [esp + 0x14], eax
sub dword [esp + 0x14], esi
call edi
push ebx
call ebp
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x14]
mov al, byte [eax + esi]
xor al, byte [esp + 0x18]
mov byte [esi], al
inc esi
call edi
push ebx
call ebp
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
mov eax, dword [esp + 0x14]
cmp byte [eax + esi], bl
jne 0x403584
call edi
push ebx
call ebp
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push ebx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.KERNEL32.DLL_PulseEvent]
pop edi
mov byte [esi], bl
pop esi
pop ebp
mov eax, 0x409520
pop ebx
ret

Function at 0x40363b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
leave
ret
Function at 0x403890
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
push 0x7f
mov byte [ebp - 0x208], bl
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp byte [esi + 1], 0x3a
mov byte [ebp - 0x608], bl
mov ecx, 0xff
lea edi, [ebp - 0x607]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 1], bl
stosb byte es:[edi], al
mov dword [ebp - 8], ebx
je 0x40390c
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x608]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40391a
push esi
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x403997
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x403997
push str.SizeofResource
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
push ebx
call eax
mov edi, eax
cmp edi, ebx
je 0x403997
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403997
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [ebp - 1], 1
cmp dword [ebp + 0x14], ebx
pop edi
pop esi
pop ebx
je 0x4039af
lea eax, [ebp - 0x608]
push eax
call fcn.004037f0
pop ecx
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
leave
ret

Function at 0x403b6f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403c0c
mov eax, 0x104
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00404370
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403be6
push dword [ebp + 0x14]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x403c03
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x403caf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [ebp + 0xc], ebx
jle 0x403d3b
push edi
xor edi, edi
mov eax, dword [esi + 8]
add eax, edi
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x403cde
call ecx
jmp 0x403cf1
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 4]
push dword [eax]
call fcn.00403b6f
add esp, 0x10
push ebx
call fcn.004035f5
mov ecx, dword [esi + 8]
push ebx
mov dword [ecx + edi + 0x14], eax
call fcn.004035f5
pop ecx
pop ecx
mov ecx, dword [esi + 8]
mov dword [ecx + edi + 0x18], eax
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 8]
push ebx
add eax, edi
push eax
push 0x403c0f
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [esi + 8]
inc dword [ebp + 0xc]
mov dword [ecx + edi + 0x1c], eax
mov eax, dword [ebp + 0xc]
add edi, 0x20
cmp eax, dword [esi + 4]
jl 0x403cce
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8