joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x3c]
movzx edx, word [eax + ecx + 0x14]
add eax, ecx
push ebx
movzx ebx, word [eax + 6]
push ebp
lea edx, [edx + eax + 0x18]
push esi
xor eax, eax
test ebx, ebx
push edi
mov dword [esp + 0x10], edx
jle 0x401054
jmp 0x401030
mov edi, str..rsrc
mov esi, edx
mov ecx, 6
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x40104c
add eax, 1
add edx, 0x28
cmp eax, ebx
jl 0x401030
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
cmp eax, ebx
je 0x40111c
mov esi, dword [edx + 0x14]
movzx edi, word [esi + ecx + 0xc]
add esi, ecx
movzx ecx, word [esi + 0xe]
add ecx, edi
test ecx, ecx
lea eax, [esi + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
jle 0x40111c
mov ecx, dword [eax]
cmp ecx, 3
je 0x40108f
cmp ecx, 0xe
jne 0x4010f8
mov edi, dword [eax + 4]
and edi, 0x7fffffff
movzx ecx, word [edi + esi + 0xe]
movzx ebp, word [edi + esi + 0xc]
add edi, esi
add ecx, ebp
xor ebx, ebx
test ecx, ecx
jle 0x4010f8
lea ebp, [edi + 0x14]
nop
mov eax, dword [ebp]
test eax, 0x80000000
jbe 0x4010e0
and eax, 0x7fffffff
mov eax, dword [eax + esi + 0x14]
mov ecx, dword [eax + esi + 4]
add eax, esi
push ecx
mov ecx, esi
sub ecx, dword [edx + 0xc]
push 0
add ecx, dword [eax]
push ecx
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
movzx eax, word [edi + 0xe]
movzx ecx, word [edi + 0xc]
add ebx, 1
add eax, ecx
add ebp, 8
cmp ebx, eax
jl 0x4010b0
mov eax, dword [esp + 0x14]
movzx edi, word [esi + 0xe]
movzx ebx, word [esi + 0xc]
mov ecx, dword [esp + 0x1c]
add ecx, 1
add eax, 8
add edi, ebx
cmp ecx, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
jl 0x401083
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x401890
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
sub esp, 0x67c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x674], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x475]
push ebx
push eax
mov byte [esp + 0x47c], bl
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x589]
push ebx
push ecx
mov byte [esp + 0x590], bl
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll_strcpy_s]
push str.explorer.exe
lea edx, [esp + 0x48c]
push 0x104
push edx
call esi
mov ebp, dword [sym.imp.MSVCR80.dll__strlwr]
lea eax, [esp + 0x494]
push eax
call ebp
push str.kernel32.dll
lea ecx, [esp + 0x5a4]
push 0x104
push ecx
call esi
lea edx, [esp + 0x5ac]
push edx
call ebp
push 0x103
lea eax, [esp + 0x3a5]
push ebx
push eax
mov byte [esp + 0x3ac], bl
call sub.MSVCR80.dll_memset
add esp, 0x44
push 0x124
lea ecx, [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x401ab7
lea edx, [esp + 0x18]
push edx
push edi
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4019ef
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x36c]
push 0x104
push ecx
call esi
lea edx, [esp + 0x374]
push edx
call ebp
add esp, 0x10
lea ecx, [esp + 0x470]
lea eax, [esp + 0x368]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4019d3
cmp dl, bl
je 0x4019cf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4019d3
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4019b3
xor eax, eax
jmp 0x4019d8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x401ad2
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401984
mov esi, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebp
cmp esi, ebx
je 0x401ab7
push 0x220
lea ecx, [esp + 0x148]
push ebx
push ecx
mov dword [esp + 0x14c], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401ab7
lea edx, [esp + 0x140]
push edx
push esi
mov dword [esp + 0x148], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x401ab4
mov edi, dword [sym.imp.MSVCR80.dll_strstr]
jmp 0x401a60
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x36c]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_strcpy_s]
lea edx, [esp + 0x374]
push edx
call dword [sym.imp.MSVCR80.dll__strlwr]
lea eax, [esp + 0x588]
push eax
lea ecx, [esp + 0x37c]
push ecx
call edi
add esp, 0x18
test eax, eax
jne 0x401adb
lea edx, [esp + 0x140]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x401a60
push esi
call ebp
xor eax, eax
mov ecx, dword [esp + 0x684]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004058f0
add esp, 0x67c
ret
mov esi, dword [esp + 0x20]
jmp 0x4019f1
push esi
call ebp
mov eax, dword [esp + 0x15c]
jmp 0x401ab9
Function at 0x402380
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4060b6
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov eax, dword [esp + 0x114]
mov edi, edx
mov dword [esp + 0x28], eax
mov ebx, ecx
mov eax, edi
call fcn.004022b0
add edi, ebx
mov esi, eax
lea ebx, [esi + 0xcc]
cmp ebx, edi
mov dword [esp + 0x18], edi
ja 0x402547
push 0xc7
xor ebp, ebp
lea ecx, [esp + 0x31]
push ebp
push ecx
mov byte [esp + 0x38], 0
call sub.MSVCR80.dll_memset
mov ecx, 0x33
lea edi, [esp + 0x38]
mov dword [esp + 0x100], ebp
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0xf3], 0xef
jne 0x40242f
xor eax, eax
nop
xor byte [esp + eax + 0x2c], 0xef
add eax, 1
cmp eax, 0xcc
jb 0x402420
cmp byte [esp + 0xf3], 0
jne 0x402547
mov edi, dword [esp + 0xf4]
lea edx, [edi + ebx]
cmp edx, dword [esp + 0x18]
ja 0x402547
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
lea esi, [esp + 0x20]
mov byte [esp + 0x10c], 1
call fcn.004047c0
mov edi, dword [esp + 0xf4]
lea esi, [esp + 0x18]
mov ebp, eax
call fcn.004047c0
test ebp, ebp
mov esi, eax
je 0x402512
test esi, esi
je 0x402512
mov eax, dword [esp + 0xf4]
push eax
push ebx
push ebp
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x100]
push esi
push 0xb
push ecx
push ebp
mov ecx, str.iloverabbit
call fcn.00404810
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x44]
add esp, 0x1c
push esi
lea edx, [esp + 0x30]
push edx
call fcn.004056b0
mov esi, eax
mov byte [esp + 0x10c], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4024f2
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x10c], 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40250e
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
jmp 0x402549
mov byte [esp + 0x10c], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40252b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x10c], 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402547
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.004058f0
add esp, 0xfc
ret
Function at 0x402f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4061fb
mov eax, dword fs:[0]
push eax
sub esp, 0x918
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x910], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x92c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x93c]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4030c6
test bl, 1
jne 0x4030c6
push 0x3ff
xor esi, esi
lea eax, [esp + 0x529]
push esi
push eax
mov byte [esp + 0x530], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x408a40
push str._sRecord.dll
lea ecx, [esp + 0x52c]
push 0x400
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
lea edx, [esp + 0x534]
push 0x4072d0
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 0x18
test bl, 0x10
mov ebx, dword [sym.imp.MSVCR80.dll_fprintf]
mov edi, eax
je 0x402fde
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00402ad0
add esp, 0x10
jmp 0x4030a6
mov eax, ebp
call fcn.00405350
cmp eax, 0x6400000
jge 0x4030a6
lea esi, [esp + 0x1c]
call fcn.00405560
mov eax, ebp
mov ecx, esi
mov dword [esp + 0x934], 0
call fcn.004055f0
test eax, eax
je 0x403089
mov edx, esi
push edx
call fcn.00402580
mov esi, eax
add esp, 4
cmp esi, 0xa
je 0x40302d
cmp esi, 0xb
je 0x40302d
cmp esi, 0xc
jne 0x403089
add dword [esp + 0x14], 1
mov ecx, esi
lea edx, [esp + 0x1c]
call fcn.00402960
test eax, eax
je 0x403062
add dword [esp + 0x18], 1
test edi, edi
je 0x403089
cmp esi, 0xb
mov eax, 0x407290
jbe 0x403059
mov eax, 0x407294
push ebp
push eax
push str.TREAT___s_OK____s_n
jmp 0x40307c
test edi, edi
je 0x403089
cmp esi, 0xb
mov eax, 0x407290
jbe 0x403075
mov eax, 0x407294
push ebp
push eax
push str.TREAT___s_FAIL__s_n
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 0x14
lea eax, [esp + 0x1c]
call fcn.004055a0
lea eax, [esp + 0x1c]
mov dword [esp + 0x934], 0xffffffff
call fcn.004055a0
test edi, edi
je 0x4030c6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.__FILES:_d___TREAT:_d___n_n
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
mov ecx, dword [esp + 0x92c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x910]
xor ecx, esp
call fcn.004058f0
add esp, 0x924
ret
Function at 0x403840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4061fb
mov eax, dword fs:[0]
push eax
sub esp, 0x918
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x910], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x92c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x93c]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4039ec
test bl, 1
jne 0x4039ec
push 0x3ff
xor esi, esi
lea eax, [esp + 0x529]
push esi
push eax
mov byte [esp + 0x530], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x408a40
push str._sRecord.dll
lea ecx, [esp + 0x52c]
push 0x400
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
lea edx, [esp + 0x534]
push 0x4072d0
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 0x18
test bl, 0x10
mov ebx, dword [sym.imp.MSVCR80.dll_fprintf]
mov edi, eax
je 0x40391e
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00403430
add esp, 0x10
jmp 0x4039cc
mov eax, ebp
call fcn.00405350
cmp eax, 0x3200000
jge 0x4039cc
lea esi, [esp + 0x1c]
call fcn.00405560
mov eax, ebp
mov ecx, esi
mov dword [esp + 0x934], 0
call fcn.004055f0
test eax, eax
je 0x4039af
mov edx, esi
push edx
call fcn.00402580
add esp, 4
cmp eax, 0xb
je 0x40396b
cmp eax, 0xc
je 0x40396b
cmp eax, 1
jne 0x4039af
mov esi, 1
add dword [esp + 0x14], esi
push eax
lea ecx, [esp + 0x20]
call fcn.004030f0
add esp, 4
test eax, eax
je 0x403995
add dword [esp + 0x18], esi
test edi, edi
je 0x4039af
push ebp
push str.INJECT_OK____s_n
jmp 0x40399f
test edi, edi
je 0x4039af
push ebp
push str.INJECT_FAIL__s_n
push edi
call ebx
add esp, 0xc
push edi
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
lea eax, [esp + 0x1c]
call fcn.004055a0
lea eax, [esp + 0x1c]
mov dword [esp + 0x934], 0xffffffff
call fcn.004055a0
test edi, edi
je 0x4039ec
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.__FILES:_d___INJECT:_d___n_n
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
mov ecx, dword [esp + 0x92c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x910]
xor ecx, esp
call fcn.004058f0
add esp, 0x924
ret
Function at 0x404810
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
push 0xff
lea eax, [esp + 0x19]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x20], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov byte [esp + eax + 0x14], al
add eax, 1
cmp eax, 0x100
jb 0x404850
xor ecx, ecx
xor esi, esi
xor edx, edx
mov eax, ecx
div dword [esp + 0x124]
mov bl, byte [esp + ecx + 0x14]
movzx eax, bl
add eax, esi
add ecx, 1
movzx edx, byte [edx + edi]
add edx, eax
and edx, 0xff
cmp ecx, 0x100
mov esi, edx
movzx edx, byte [esp + esi + 0x14]
mov byte [esp + ecx + 0x13], dl
mov byte [esp + esi + 0x14], bl
jb 0x404862
mov edx, dword [esp + 0x120]
xor esi, esi
xor edi, edi
test edx, edx
jbe 0x404907
mov ecx, ebp
mov ebp, dword [esp + 0x11c]
sub ebp, ecx
jmp 0x4048c0
add esi, 1
and esi, 0xff
mov al, byte [esp + esi + 0x14]
movzx ebx, al
add ebx, edi
and ebx, 0xff
mov edi, ebx
movzx ebx, byte [esp + edi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], al
movzx ebx, byte [esp + esi + 0x14]
add ebx, eax
and ebx, 0xff
movzx eax, byte [esp + ebx + 0x14]
xor al, byte [ecx + ebp]
add ecx, 1
sub edx, 1
mov byte [ecx - 1], al
jne 0x4048c0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004058f0
add esp, 0x108
ret

Function at 0x404a50
Capabilities:
Get common file path

Disassembly:
push 0x400
push 0
push 0x40aa90
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
push 0x40aa90
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x404a96
push str.c:windows_temp_
push 0x400
push 0x40aa90
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov eax, 0x40aa90
ret
mov eax, 0x40aa90
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404aa0
sub eax, edx
cmp byte [eax + 0x40aa8f], 0x5c
jne 0x404ad1
mov eax, 0x40aa90
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404ac0
sub eax, edx
mov byte [eax + 0x40aa8f], cl
push 0x5c
push 0x40aa90
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
je 0x404a78
mov ecx, dword [str.temp_]
mov dword [eax + 1], ecx
mov dx, word [0x40739c]
mov word [eax + 5], dx
mov eax, 0x40aa90
ret

Function at 0x404b00
Capabilities:
Get common file path

Disassembly:
push 0x400
push 0
push 0x40a690
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
push 0x40a690
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x404b46
push str.c:windows_system32_
push 0x400
push 0x40a690
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov eax, 0x40a690
ret
mov eax, 0x40a690
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404b50
sub eax, edx
cmp byte [eax + 0x40a68f], 0x5c
je 0x404b84
push edi
mov edi, 0x40a690
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404b70
mov ax, word [0x407380]
mov word [edi], ax
pop edi
mov eax, 0x40a690
ret
Function at 0x404b90
Capabilities:
Get common file path

Disassembly:
push 0x400
push 0
push 0x40a290
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
push 0x40a290
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x404bd6
push str.c:windowsdebug_
push 0x400
push 0x40a290
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov eax, 0x40a290
ret
mov eax, 0x40a290
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404be0
sub eax, edx
cmp byte [eax + 0x40a28f], 0x5c
jne 0x404c11
mov eax, 0x40a290
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c00
sub eax, edx
mov byte [eax + 0x40a28f], cl
push 0x5c
push 0x40a290
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
je 0x404bb8
mov ecx, dword [str.debug_]
mov dword [eax + 1], ecx
mov dx, word [0x4073d0]
mov word [eax + 5], dx
mov cl, byte [0x4073d2]
mov byte [eax + 7], cl
mov eax, 0x40a290
ret

Function at 0x404c50
Capabilities:
Get common file path

Disassembly:
push 0x400
push 0
push 0x40ae90
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40ae90
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x404c7d
jmp fcn.00404a50
mov eax, 0x40ae90
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c85
sub eax, edx
cmp byte [eax + 0x40ae8f], 0x5c
je 0x404cb6
push edi
mov edi, 0x40ae90
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404ca2
mov ax, word [0x407380]
mov word [edi], ax
pop edi
mov eax, 0x40ae90
ret
Function at 0x4050f0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Encode data using xor
Get common file path

Disassembly:
sub esp, 0x994
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x98c], eax
push ebx
push edi
push 0x7ff
lea eax, [esp + 0x195]
push 0
push eax
mov byte [esp + 0x19c], 0
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x99]
push 0
push ecx
mov byte [esp + 0xa0], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x103
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov bl, 0x9d
jne 0x405202
mov cl, 0xdd
mov al, 0x6f
mov byte [esp + 0x73], cl
mov byte [esp + 0x78], cl
mov byte [esp + 0x71], 9
mov byte [esp + 0x72], al
mov byte [esp + 0x74], 0x3c
mov byte [esp + 0x75], 0x4c
mov byte [esp + 0x76], 0xec
mov byte [esp + 0x77], 0x5c
mov byte [esp + 0x79], bl
mov byte [esp + 0x7a], al
mov byte [esp + 0x7b], bl
mov byte [esp + 0x7c], 0x3d
mov byte [esp + 0x7d], bl
mov byte [esp + 0x7e], 0xed
mov byte [esp + 0x7f], 0xfc
mov byte [esp + 0x80], 0x7c
mov byte [esp + 0x81], 0x99
mov byte [esp + 0x82], 0x89
mov byte [esp + 0x83], al
mov byte [esp + 0x84], 0xaa
mov byte [esp + 0x70], 0x63
lea ecx, [esp + 0x70]
mov al, byte [ecx + 1]
add ecx, 1
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x4051d6
xor eax, eax
jmp 0x4051f0
mov cl, byte [esp + eax + 0x70]
mov byte [esp + eax + 0x88], cl
add eax, 1
test cl, cl
jne 0x4051f0
lea eax, [esp + 0x88]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405210
sub eax, edx
cmp byte [esp + eax + 0x87], 0x5c
je 0x405243
lea edi, [esp + 0x88]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405230
mov ax, word [0x407380]
mov word [edi], ax
mov cl, 0x9c
mov al, 0xa8
mov byte [esp + 0x62], cl
mov byte [esp + 0x6b], cl
mov byte [esp + 0x61], bl
mov byte [esp + 0x63], 0x7c
mov byte [esp + 0x64], 0xec
mov byte [esp + 0x65], 0x48
mov byte [esp + 0x66], 0xfc
mov byte [esp + 0x67], 0x2d
mov byte [esp + 0x68], 0xfc
mov byte [esp + 0x69], al
mov byte [esp + 0x6a], 0x58
mov byte [esp + 0x6c], al
mov byte [esp + 0x6d], pe_nt_image_headers32
mov byte [esp + 0x6e], bl
mov byte [esp + 0x6f], 0xaa
mov byte [esp + 0x60], 0x25
lea ecx, [esp + 0x60]
mov al, byte [ecx + 1]
add ecx, 1
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x405295
push esi
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x19c]
push 0x800
push eax
call dword [sym.imp.MSVCR80.dll_sprintf_s]
push 0x40
lea ecx, [esp + 0x34]
push 0
push ecx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0x20
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x1b0]
push edx
push 0
mov word [esp + 0x70], 0
mov dword [esp + 0x6c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x994]
pop edi
pop ebx
xor ecx, esp
call fcn.004058f0
add esp, 0x994
ret
Function at 0x405390
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x20], 0
call dword [0x40a270]
mov esi, eax
cmp esi, 0xffffffff
je 0x4053d4
push 0
lea ecx, [esp + 8]
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4053dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x4053ce
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
add esp, 8
ret

Function at 0x4054b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [0x40a270]
mov edi, eax
cmp edi, 0xffffffff
je 0x40554a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x40554a
test esi, esi
jne 0x405501
mov eax, dword [esp + 0x14]
pop edi
mov dword [ebp], esi
mov dword [eax], esi
pop esi
mov eax, 1
pop ebp
ret
push esi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
je 0x40554a
push esi
push 0
push edi
call sub.MSVCR80.dll_memset
push esi
push edi
mov eax, ebx
call fcn.00405390
add esp, 0x14
cmp eax, 0xffffffff
jne 0x405550
mov ecx, dword [ebp]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [ebp], 0
mov dword [edx], 0
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
ret

Function at 0x4058b0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [eax]
rol cl, 4
xor cl, 0xaa
mov byte [eax], cl
je 0x4058d0
mov edx, eax
mov edi, edi
mov cl, byte [edx + 1]
add edx, 1
rol cl, 4
xor cl, 0xaa
mov byte [edx], cl
jne 0x4058c0
ret

Function at 0x4058f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4058fa
repz ret
jmp fcn.00405c6a
Function at 0x2e33b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x2e33f0
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x2edf2c]
test eax, eax
jne 0x2e3414
mov ecx, 0xb98d61a4
call fcn.002e3f40
mov edx, 0x522321a7
mov ecx, eax
call fcn.002e3ea0
mov dword [0x2edf2c], eax
call eax
mov ebx, eax
mov eax, dword [0x2edaf8]
test eax, eax
jne 0x2e343c
mov ecx, 0xb98d61a4
call fcn.002e3f40
mov edx, 0xb27f9f0b
mov ecx, eax
call fcn.002e3ea0
mov dword [0x2edaf8], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x2e34f2
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x2e34e2
cmp ebx, 8
jb 0x2e34c7
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x2e3486
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x2e34c7
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x2e34a0
cmp edx, ebx
jae 0x2e34e2
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x2e34d0
mov edx, dword [esp + 0x18]
test edx, edx
je 0x2e34f0
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret