joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ab88
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ac67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov byte [eax + 0x34], dl
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x46abcf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.00403958
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x46ac51
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
je 0x46ac51
xor eax, eax
push ebp
push 0x46ac26
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov dl, 1
mov eax, dword [0x416990]
call fcn.0041a7d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov cl, 6
mov eax, dword [ebp - 4]
call fcn.0046a330
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46ac51
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ac6e
lea eax, [ebp - 0xc]
call fcn.004046a8
ret

Function at 0x473420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.0041a31c
mov dword [ebp - 0x18], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x47329c]
call fcn.00473538
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x473528
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, 0x30
call fcn.004733e8
test al, al
je 0x4734f4
mov byte [ebp - 5], 5
mov dl, 1
mov eax, dword [0x416a80]
call fcn.00403928
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
call fcn.00473664
mov dl, 1
mov eax, dword [0x45fd30]
call fcn.0046011c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0x200
mov edx, 0x400
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004657dc
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0041a33c
mov eax, dword [ebp - 0x14]
call fcn.0047106c
cmp al, 4
jne 0x4734f4
mov byte [ebp - 5], 6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47352f
mov eax, dword [ebp - 0xc]
call fcn.00403958
mov eax, dword [ebp - 0x10]
call fcn.00403958
mov eax, dword [ebp - 0x14]
call fcn.00403958
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041a33c
ret
Function at 0x476320
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4763ee
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xc]
or ax, 2
mov word [ebp - 0x12], ax
movzx eax, word [ebp - 0x12]
mov dx, word [ebp - 0x12]
xor dx, 1
movzx edx, dx
imul edx
shr eax, 8
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor byte [edx + ecx], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.0045f7c0
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
and eax, 0xff
mov edx, dword [ebp - 4]
add dword [edx + 8], eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 8], 0x8088405
inc eax
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
shr eax, 0x18
mov edx, dword [ebp - 4]
xor al, byte [edx + 0xc]
and eax, 0xff
mov edx, dword [0x481c5c]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x476346
mov esp, ebp
pop ebp
ret
Function at 0x4764d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0041a31c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
jmp 0x4765ae
mov eax, dword [ebp - 4]
call fcn.0047646c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x10]
mov ecx, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004763f4
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor byte [ecx + edx + 0x10], al
mov eax, dword [ebp - 4]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov al, byte [ecx + eax + 0x10]
call fcn.004765e8
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xc
jne 0x476528
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
je 0x476573
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x1b]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x1f]
sete byte [ebp - 0xd]
jmp 0x476598
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x1b]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x1f]
jne 0x47658f
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x1a]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x1e]
je 0x476593
xor eax, eax
jmp 0x476595
mov al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4765ab
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx]
inc byte [ebp - 0xe]
cmp byte [ebp - 0xd], 0
jne 0x4765c3
mov al, byte [ebp - 0xe]
mov edx, dword [ebp - 4]
cmp al, byte [edx + 0x34]
jb 0x4764f5
cmp byte [ebp - 0xd], 0
jne 0x4765da
mov dl, 1
mov eax, dword [0x45b6ec]
call fcn.0045c940
call fcn.004040e4
mov al, byte [ebp - 0xd]
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4765e8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov al, byte [ebp - 1]
call fcn.0045f7c0
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0xff
mov edx, dword [ebp - 8]
add dword [edx + 4], eax
mov eax, dword [ebp - 8]
imul eax, dword [eax + 4], 0x8088405
inc eax
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
shr eax, 0x18
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
call fcn.0045f7c0
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x478a24
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
je 0x478a69
mov eax, dword [ebp - 4]
add eax, 4
push eax
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb8]
mov dl, 1
mov eax, dword [0x4761d0]
call fcn.00476240
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x478aaa
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xf0]
mov dword [eax + 0x28], ecx
mov ecx, dword [edx + 0xf4]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x30
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb8]
call fcn.004046fc
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xbc]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x34], al
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 4]
mov dl, 1
mov eax, dword [0x476e30]
call fcn.00476ec4
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x478bb4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0046e750
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x20], al
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0046e714
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 8]
call fcn.0046e8f8
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x21], al
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x90]
mov dword [eax + 0x28], ecx
mov ecx, dword [edx + 0x94]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x100]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x104]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44], 0
je 0x478b93
mov eax, dword [ebp - 0x18]
add eax, 0x3c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.004046fc
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xaa]
mov edx, dword [ebp - 0x18]
mov word [edx + 0x44], ax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x39], 1
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x3c]
mov edx, dword [ebp - 0x18]
mov word [edx + 0x46], ax
mov eax, dword [ebp - 0x18]
call fcn.00476fe4
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478bbb
mov eax, dword [ebp - 0x18]
call fcn.00403958
ret
Function at 0x47b6f8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47b8c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
mov dl, 1
mov eax, dword [0x416790]
call fcn.00403928
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x47b85d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0047b504
lea eax, [ebp - 0x30]
mov ecx, 0x47b8e0
mov edx, dword [ebp - 0x18]
call fcn.004049d0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov edx, 0x3f
call fcn.0047b57c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x47b847
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0
push dword [ebp - 0x18]
push 0x47b8f0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404a44
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x1c]
call fcn.00404b84
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x47b7e6
test byte [ebp - 0x28], 0x10
je 0x47b7e6
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 0x1c]
call fcn.0047b6f8
mov byte [ebp - 0x21], al
jmp 0x47b82b
cmp dword [ebp - 0xc], 0
je 0x47b7f8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0xc]
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x47b82b
push 0x80
mov eax, dword [ebp - 0x1c]
call fcn.00404b84
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x47b82b
mov eax, dword [ebp - 0x1c]
call fcn.004091fc
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
jne 0x47b83b
mov byte [ebp - 0xd], 0
cmp byte [ebp - 5], 0
jne 0x47b847
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x47b78c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b864
lea eax, [ebp - 0x14]
call fcn.0040e2f4
ret
Function at 0x47b938
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47b9ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b84
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x47b9d6
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404d10
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b84
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47b9d6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x47b9fc
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47b9d6
cmp dword [ebp - 0x14], 0x34
jne 0x47b9d6
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b9f3
lea eax, [ebp - 0x1c]
call fcn.004046a8
ret

Function at 0x47bc10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47bd79
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004031e4
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x481c2c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x481c30], eax
mov eax, dword [ebp - 0x24]
mov dword [0x481c34], eax
mov eax, dword [0x4820e8]
cmp dword [eax], 2
sete byte [0x481b9c]
push 0x47bd84
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.0047b8f4
cmp byte [0x481b9c], 0
jne 0x47bc9c
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0047b938
test al, al
je 0x47bc9c
mov eax, dword [ebp - 0x4c]
mov dword [0x484208], eax
jmp 0x47bca3
xor eax, eax
mov dword [0x484208], eax
call fcn.0047ba90
and eax, 0x7f
cmp eax, 0xb
ja case.0x47bcb4.0
jmp dword [eax*4 + 0x47bcbb]
mov byte [0x481b88], 1
jmp case.0x47bcb4.0
mov byte [0x481b8c], 1
jmp case.0x47bcb4.0
mov byte [0x481b90], 1
jmp case.0x47bcb4.0
mov byte [0x481b94], 1
jmp case.0x47bcb4.0
mov byte [0x481b98], 1
jmp case.0x47bcb4.0
mov byte [0x481ba0], 1
mov byte [0x481ba4], 1
jmp case.0x47bcb4.0
mov byte [0x481ba0], 1
mov byte [0x481ba8], 1
jmp case.0x47bcb4.0
mov byte [0x481ba0], 1
mov byte [0x481bac], 1
jmp case.0x47bcb4.0
mov byte [0x481bb0], 1
jmp case.0x47bcb4.0
mov byte [0x481bb4], 1
jmp case.0x47bcb4.0
mov byte [0x481bb8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd80
lea eax, [ebp - 4]
call fcn.004046a8
ret
Function at 0x47beb4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47bf3f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2e]
xor ecx, ecx
mov edx, 0x1e
call fcn.004031e4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], 3
lea eax, [ebp - 0x10]
mov ecx, 0x47bf58
mov edx, dword [ebp - 8]
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00404b84
mov dword [ebp - 0x26], eax
mov al, byte [ebp - 9]
call fcn.0047be78
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x2e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete byte [ebp - 0xa]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bf46
lea eax, [ebp - 0x10]
call fcn.004046a8
ret

Function at 0x47bff4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x3c
call fcn.004031e4
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x600
mov eax, dword [ebp - 4]
call fcn.00404b84
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.0047b424
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
call fcn.0047b424
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4

Function at 0x47c064
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x3c
call fcn.004031e4
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x740
mov eax, dword [ebp - 4]
call fcn.00404b84
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
call fcn.0047b424
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
call fcn.0047b424
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x47c130
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_WaitForInputIdle
jmp 0x47c115
push 1
push 0
push 0
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_PeekMessageA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47c10a
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_DispatchMessageA
cmp dword [ebp - 0x14], 1
sbb eax, eax
inc eax
test al, al
jne 0x47c0dc
push 0xa
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x47c0dc
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4
Function at 0x47e800
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e8e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x47e8f8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov eax, dword [ebp - 4]
push eax
push 0x47e968
lea eax, [ebp - 8]
mov ecx, 0x47e90c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.004049d0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, 0x47e918
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.004049d0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0047c860
push 0
lea eax, [ebp - 0x10]
mov ecx, 0x47e944
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00404b84
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x47e958
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
call fcn.004049d0
mov eax, dword [ebp - 0x14]
call fcn.00404b84
push eax
call sub.kernel32.dll_CopyFileA
mov ecx, 0x47e8f8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x94]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e8e8
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004046cc
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4cc0e2
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4d767c]
mov edx, dword [0x4d766c]
sub eax, edx
push esi
mov esi, ecx
cmp eax, esi
jae 0x4cc129
push 0x7fec
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, eax
pop ecx
test edx, edx
jne 0x4cc11d
push eax
mov esi, 0x7d5
xor ecx, ecx
push esi
call fcn.004cb5e7
push esi
call dword [sym.imp.msvcrt.dll_exit]
lea ecx, [edx + 0x7fec]
mov dword [0x4d767c], ecx
lea ecx, [esi + 3]
mov eax, edx
and ecx, 0xfffffffc
add ecx, edx
mov dword [0x4d766c], ecx
pop esi
ret

Function at 0x4cc563
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x4cef70
call fcn.004cd5a8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4d7710
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4cc5a8
cmp eax, esi
jne 0x4cc59b
xor esi, esi
inc esi
mov edi, esi
jmp 0x4cc5ab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4cc57f
xor esi, esi
inc esi
cmp dword [0x4d7714], esi
jne 0x4cc5bd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4cc5f7
cmp dword [0x4d7714], ebx
jne 0x4cc5f1
mov dword [0x4d7714], esi
push 0x41d6f4
push 0x41d6e4
call fcn.004cc6dc
pop ecx
pop ecx
test eax, eax
je 0x4cc5f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4cc6cc
mov dword [0x4d4ee4], esi
cmp dword [0x4d7714], esi
jne 0x4cc61a
push 0x41d6e0
push 0x41d6b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4d7714], 2
test edi, edi
jne 0x4cc627
xor eax, eax
mov ecx, 0x4d7710
xchg dword [ecx], eax
cmp dword [0x4d771c], 0
je 0x4cc653
push 0x4d771c
call fcn.004cd400
pop ecx
test eax, eax
je 0x4cc653
push ebx
push 2
push ebx
mov esi, dword [0x4d771c]
mov ecx, esi
call dword [0x4d8248]
call esi
push dword [0x4d4ef0]
push dword [0x4d4eec]
push dword [0x4d4ee8]
call fcn.0045c5ad
add esp, 0xc
mov dword [0x4d4ee0], eax
cmp dword [0x4d4ef8], 0
jne 0x4cc6b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4d4ee4], 0
jne 0x4cc6c5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4d4ee0]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00579000
jmp 0x4cc563

Function at 0x4cd2f4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4cef90
call fcn.004cd5a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4cd354
cmp eax, 0xffffffff
je 0x4cd354
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4cd34d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4cd34d
cmp edx, 0x10000000
jae 0x4cd34d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4cd34a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4