joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481560
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x48156b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x48166e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x66ab38]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x66ab38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x66ab38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x66ab38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x66ab38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x66ab38]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x66ab38]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x66ab38]
xor eax, edx
inc ecx
dec edi
jne 0x481586
pop edi
test esi, esi
je 0x481690
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x66ab38]
xor eax, edx
inc ecx
dec esi
jne 0x481672
pop esi
pop ebx
not eax
ret
Function at 0x4a1950
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
push esi
test edx, edx
push edi
je 0x4a19eb
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a19eb
push 0x7a2264
push edx
call fcn.004bb250
mov esi, eax
add esp, 8
test esi, esi
je 0x4a19eb
push ebx
push ebp
push 2
push 0
push esi
mov bl, 1
call fcn.004bbdfe
push esi
call fcn.004bbd07
mov ebp, dword [esp + 0x24]
mov edi, eax
push 0
push edi
push ebp
call fcn.004a1600
add esp, 0x1c
test al, al
je 0x4a19d9
push esi
call fcn.004bb8ef
mov eax, dword [ebp]
push esi
push edi
push 1
push eax
call fcn.004bb621
add esp, 0x14
cmp eax, edi
je 0x4a19c6
xor bl, bl
push esi
mov dword [ebp + 4], eax
call fcn.004bb08d
add esp, 4
mov al, bl
pop ebp
pop ebx
pop edi
pop esi
ret
push esi
xor bl, bl
call fcn.004bb08d
add esp, 4
mov al, bl
pop ebp
pop ebx
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x4a39b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4a39f7
mov edi, dword [esp + 0x10]
push edi
call fcn.004d226f
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.004bb621
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4a3a2b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4a3a2b
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x4a3a15
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x4a3a2b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004a3af0
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x4a3a5e
cmp edi, 0x5a
jle 0x4a3a5e
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x4a3a5e
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x4a3a8d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x4a3ad3
cmp ebx, 1
jge 0x4a3ad3
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x4a3ad3
mov al, byte [esi + 0x1d]
test al, al
jne 0x4a3ad3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x4a3ad3
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x4a3ad3
mov al, byte [esi + 0x1d]
test al, al
je 0x4a3ab3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004a3af0
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x4a4cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x4a4cd7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.004bb621
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.004bbd07
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.004bb621
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x4a4d0b
push esi
push ebx
push edi
mov ecx, ebp
call fcn.004a4de0
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4a4d20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7bd168]
xor edx, edx
cmp eax, edx
jne 0x4a4d46
xor eax, eax
mov byte [eax + 0x7bd068], al
inc eax
cmp eax, 0x100
jl 0x4a4d2e
mov dword [0x7bd168], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7bd068
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a4dd7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a4daa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a4d78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ab770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dfa5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004ac090
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x77ba0c
call fcn.004d226f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ab803
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004d226f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ab7fc
push 0
mov ecx, eax
call fcn.004a2950
mov dword [esi + 0xc], eax
jmp 0x4ab805
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ab805
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4cb602
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7a92cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004c035f
mov dword [ebp - 0x14], eax
cmp dword [0x7cfc84], edi
jne 0x4cb6f3
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4cb680
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4cb7d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4cb7d3
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4cb7d3
push eax
call ebx
push 0x783a2c
push esi
mov dword [0x7cfc84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x783a3c
push esi
mov dword [0x7cfc88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x7cfc8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7cfc94], eax
test eax, eax
je 0x4cb6f0
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7cfc90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4cb718
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4cb70b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4cb72d
push 4
pop eax
jmp 0x4cb7d5
cmp dword [ebp - 0x14], edi
je 0x4cb72d
push dword [0x7cfc84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4cb712
mov eax, dword [0x7cfc90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4cb78b
cmp dword [0x7cfc94], esi
je 0x4cb78b
push eax
call ebx
push dword [0x7cfc94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4cb78b
test eax, eax
je 0x4cb78b
call ecx
test eax, eax
je 0x4cb780
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4cb780
test byte [ebp - 8], 1
jne 0x4cb78b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4cb7bb
mov eax, dword [0x7cfc88]
cmp eax, esi
je 0x4cb7b8
push eax
call ebx
test eax, eax
je 0x4cb7b8
call eax
mov edi, eax
test edi, edi
je 0x4cb7b8
mov eax, dword [0x7cfc8c]
cmp eax, esi
je 0x4cb7b8
push eax
call ebx
test eax, eax
je 0x4cb7b8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x7cfc84]
call ebx
test eax, eax
je 0x4cb7d3
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4cb7d5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c40bc
leave
ret
Function at 0x4d48fe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d4936
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d2989
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d2961
jmp 0x4d4942
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d5ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d6032
call fcn.004dba70
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d6032
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d6029
xor eax, eax
jmp 0x4d603a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d6040
pop edi
pop esi
pop ebx
ret 4
Function at 0x402976
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x46b202
call fcn.00446d84
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x471bb8
lea ecx, [esi + 0x78]
mov dword [ebp - 4], 2
call fcn.0045f650
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.00426c5b
and byte [ebp - 4], 0
lea ecx, [esi + 0x30]
call fcn.0045f650
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
mov dword [esi], 0x471bb4
call fcn.00406787
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402ea9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
jne 0x402ec1
push 1
call fcn.0044707b
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00403094
push dword [eax]
call dword [0x491354]
lea ecx, [ebp + 0xc]
call fcn.0045f650
call fcn.00467ab0
call fcn.00467ab0
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [0x491424]
mov dword [esi + 0xd24], eax
mov byte [esi + 0xd61], bl
mov byte [esi + 0xd60], bl
mov byte [esi + 0xd63], bl
mov byte [esi + 0xd64], 1
mov eax, dword [0x491510]
mov dword [esi + 0xd7c], eax
mov eax, dword [0x491514]
mov dword [esi + 0xd80], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
lea ecx, [esi + 0x60]
mov dword [esi + 0xd78], eax
mov dword [esi + 0xd68], 1
mov dword [esi + 0x1100], ebx
mov dword [esi + 0x13e8], ebx
mov dword [esi + 0xd28], edi
mov dword [esi + 0x1104], ebx
call fcn.00406932
lea ecx, [edi + 0x194]
lea eax, [edi + 4]
mov dword [esi + 0xd38], ecx
lea ecx, [edi + 0x94]
mov dword [esi + 0xd3c], ecx
lea ecx, [edi + 0x178]
mov dword [esi + 0xd40], ecx
lea ecx, [edi + 0x11c]
mov dword [esi + 0xd44], ecx
lea ecx, [edi + 0x208]
mov dword [esi + 0xd48], ecx
lea ecx, [edi + 0x26c]
mov dword [esi + 0xd4c], ecx
lea ecx, [edi + 0x68]
mov dword [esi + 0xd2c], eax
mov dword [esi + 0xd50], ecx
lea eax, [edi + 0x134]
lea ecx, [edi + 0x78]
mov dword [esi + 0xd30], eax
mov dword [esi + 0xd54], ecx
lea eax, [edi + 0xb4]
lea ecx, [edi + 0x290]
add edi, 0x29c
mov dword [esi + 0xd34], eax
mov dword [esi + 0xd58], ecx
mov dword [esi + 0xd5c], edi
cmp dword [eax + 0x3c], 2
sete cl
cmp cl, bl
mov byte [esi + 0xd62], cl
je 0x40301d
mov dword [eax + 0x28], ebx
mov eax, dword [esi + 0xd38]
cmp dword [eax + 0x4c], ebx
je 0x403014
mov dword [eax + 0x4c], ebx
mov eax, dword [esi + 0xd34]
mov dword [eax + 0x44], ebx
mov eax, dword [esi + 0xd30]
push 3
pop edx
cmp dword [eax + 4], edx
jne 0x403037
mov dword [eax + 0x10], ebx
mov eax, dword [esi + 0xd30]
mov dword [eax + 0x14], ebx
mov eax, dword [esi + 0xd30]
cmp dword [eax + 4], edx
jne 0x40304b
mov eax, dword [esi + 0xd4c]
mov dword [eax + 4], ebx
mov eax, dword [esi + 0xd4c]
cmp dword [eax + 4], ebx
je 0x40305f
mov eax, dword [esi + 0xd34]
mov dword [eax + 0x44], ebx
cmp dword [esi + 0xd78], 1
jne 0x40308d
mov eax, dword [esi + 0xd44]
mov ecx, dword [eax + 4]
cmp ecx, 1
je 0x40307b
cmp ecx, 2
jne 0x40307e
mov dword [eax + 4], ebx
mov esi, dword [esi + 0xd44]
cmp dword [esi + 8], 2
jne 0x40308d
mov dword [esi + 8], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40680d
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x46b6c3
call fcn.00446d84
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041cf89
mov eax, dword [0x48d2d4]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.00426c22
mov eax, dword [0x48d2d4]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x78], eax
or dword [esi + 0x20], 0xffffffff
mov dword [esi], 0x471bb8
mov byte [esi + 0x18], 1
mov byte [esi + 0x1a], 1
mov byte [esi + 0x19], bl
mov byte [esi + 0x1b], bl
mov byte [esi + 0x1c], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x28], 0x32
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407112
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [ecx + 4]
xor ecx, ecx
cmp edx, ecx
jne 0x40711f
xor eax, eax
jmp 0x407170
cmp dword [esp + 4], ecx
mov eax, 0xaf31265a
jle 0x407143
push esi
mov esi, eax
shr esi, 0x1d
shl eax, 3
or esi, eax
movzx eax, byte [edx + ecx]
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jl 0x40712b
pop esi
mov ecx, dword [esp + 8]
dec ecx
je 0x407159
dec ecx
jne 0x407170
mov edx, eax
mov ecx, 0xffff
shr edx, 0xe
jmp 0x40716a
mov ecx, eax
shr ecx, 0xf
xor eax, ecx
mov ecx, 0xff
mov edx, eax
shr edx, 9
and edx, ecx
and eax, ecx
xor eax, edx
ret 8

Function at 0x407173
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
xor edi, edi
cmp dword [esi + 0xc], ebx
mov dword [esi + 8], eax
jle 0x4071ab
push ebp
mov eax, dword [esi + 4]
mov ecx, esi
lea ebp, [eax + edi]
call fcn.004071fb
xor al, byte [ebp]
xor al, bl
mov byte [ebp], al
mov eax, dword [esi + 4]
mov bl, byte [eax + edi]
inc edi
cmp edi, dword [esi + 0xc]
jl 0x407189
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4071b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and byte [ebp + 0xb], 0
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
mov dword [esi + 8], eax
jle 0x4071f5
push ebx
mov eax, dword [esi + 4]
mov ecx, esi
mov al, byte [eax + edi]
mov byte [ebp - 1], al
mov eax, dword [esi + 4]
lea ebx, [eax + edi]
call fcn.004071fb
xor al, byte [ebx]
xor al, byte [ebp + 0xb]
inc edi
mov byte [ebx], al
mov al, byte [ebp - 1]
cmp edi, dword [esi + 0xc]
mov byte [ebp + 0xb], al
jl 0x4071cb
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x407679
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x46b7ce
call fcn.00446d84
push ecx
push ecx
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov byte [esi + 8], al
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov cl, byte [ebp - 0xd]
mov dword [ebp - 4], eax
mov byte [esi + 0x18], cl
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov cl, byte [ebp - 0xd]
mov dword [esi + 0x2c], eax
mov byte [esi + 0x28], cl
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov cl, byte [ebp - 0xd]
mov dword [esi + 0x3c], eax
mov byte [esi + 0x38], cl
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov eax, dword [0x48d2d4]
lea edi, [esi + 0x50]
mov dword [edi], eax
lea ebx, [esi + 0x54]
mov byte [ebp - 4], 4
mov ecx, ebx
call fcn.00401bf8
fldz
mov ecx, edi
mov byte [ebp - 4], 5
fstp dword [esi + 0x4c]
mov dword [esi], 0x471d28
mov byte [esi + 0x48], 1
call fcn.0045f5d8
mov ecx, ebx
call fcn.00401c9e
mov ecx, esi
call fcn.004077c6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407689
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x46b7ce
call fcn.00446d84
push ecx
push ecx
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov byte [esi + 8], al
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov cl, byte [ebp - 0xd]
mov dword [ebp - 4], eax
mov byte [esi + 0x18], cl
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov cl, byte [ebp - 0xd]
mov dword [esi + 0x2c], eax
mov byte [esi + 0x28], cl
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov cl, byte [ebp - 0xd]
mov dword [esi + 0x3c], eax
mov byte [esi + 0x38], cl
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov eax, dword [0x48d2d4]
lea edi, [esi + 0x50]
mov dword [edi], eax
lea ebx, [esi + 0x54]
mov byte [ebp - 4], 4
mov ecx, ebx
call fcn.00401bf8
fldz
mov ecx, edi
mov byte [ebp - 4], 5
fstp dword [esi + 0x4c]
mov dword [esi], 0x471d28
mov byte [esi + 0x48], 1
call fcn.0045f5d8
mov ecx, ebx
call fcn.00401c9e
mov ecx, esi
call fcn.004077c6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40c8f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push dword [0x491744]
call dword [0x4912b4]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40c939
lea ecx, [ebp - 8]
push 0
push ecx
lea ecx, [ebp - 4]
push 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x419d0b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 4], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push str.open
push ecx
call dword [0x491394]
cmp eax, 0x20
mov dword [ebp + 8], eax
ja 0x419e1b
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
mov edi, SysReAllocStringLen
push str..htm
push edi
call fcn.0042a18a
test eax, eax
jne 0x419e1b
mov esi, dword [0x491364]
lea eax, [ebp - 0x414]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0042a18a
test eax, eax
jne 0x419e1b
lea eax, [ebp - 0x414]
push str.__1_
push eax
call fcn.0044867d
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x419ddc
lea eax, [ebp - 0x414]
push 0x48c288
push eax
call fcn.0044867d
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x419ddc
lea eax, [ebp - 0x414]
push eax
call dword [0x491378]
lea edi, [ebp + eax*2 - 0x416]
jmp 0x419de0
and word [edi], 0
push 0x48bf28
push edi
call esi
push dword [ebx]
push edi
call esi
lea eax, [ebp - 0x414]
push 0x400
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00447b54
add esp, 0xc
lea eax, [ebp - 0x814]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x419f38
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x46d765
call fcn.00446d84
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.00416d67
mov edx, dword [0x48d2d4]
lea ecx, [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ecx], edx
fldz
fstp qword [ebx + 0x30]
fldz
fstp qword [ebx + 0x28]
fldz
fstp qword [ebx + 0x60]
fldz
fstp qword [ebx + 0x58]
fldz
fstp qword [ebx + 0x78]
fldz
fstp qword [ebx + 0x70]
mov edx, dword [0x48d2d4]
mov dword [ebx + 0x80], edx
push 0x64
lea edi, [ebx + 0x48]
pop edx
lea esi, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
movsd dword es:[edi], dword [esi]
fld1
fstp qword [ebx + 0x58]
movsd dword es:[edi], dword [esi]
fld1
fstp qword [ebx + 0x60]
movsd dword es:[edi], dword [esi]
fldz
xor edx, edx
mov dword [ebx + 0x40], eax
mov dword [ebx], 0x472564
mov dword [ebx + 0x68], eax
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x44], edx
mov byte [ebp - 4], 2
fstp qword [ebx + 0x28]
fldz
fstp qword [ebx + 0x30]
mov byte [ebx + 0x19], 1
mov byte [ebx + 0x1a], 1
mov dword [ebx + 0x6c], eax
call fcn.0045f5d8
lea ecx, [ebx + 0x80]
call fcn.0045f5d8
lea eax, [ebx + 0x84]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
xor eax, eax
xor ecx, ecx
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x98], ecx
mov ecx, ebx
call fcn.0041a09e
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret