joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4751b0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4e97bc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4751c3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax

Function at 0x475286
Capabilities:
Encrypt data using des

Disassembly:
cmp dword [esp + 0x10c], 1
je 0x475204
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4e9864]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x475236
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47523a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x47522b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x475258
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47525c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x47524d
xor ecx, ecx
mov eax, 0x4e97cc
xor ebx, ebx
mov bl, byte [ecx + 0x4e9874]
cmp byte [esp + ebx + 0x14], 0
je 0x475287
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
invalid
add byte [ebx], dh
fisttp dword [edx + 0x4e988c99]
add byte [eax + 0x141c7c], al
xor ebx, ebx
mov bl, byte [ecx + 0x4e988c]
cmp byte [esp + ebx + 0x14], 0
je 0x47529e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x47526e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4751f7
lea edx, [esp + 0x84]
push edx
call fcn.004752e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x475585
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov ebx, dword [esi]
mov eax, ecx
mov edi, ecx
add esi, 4
shl eax, 0x1c
shr edi, 4
or eax, edi
add esi, 4
xor eax, ebx
add esi, 4
mov ebx, eax
mov edi, eax
shr ebx, 0x10
and ebx, 0x3f
add esi, 4
shr edi, 0x18
mov ebp, dword [ebx*4 + 0x4e9aa4]
mov ebx, eax
fadd dword [ebx - 0x1f7cc019]
aas
fadd dword [ebx - 0x1f7cc019]
aas
shr ebx, 8
mov edi, dword [edi*4 + 0x4e98a4]
and ebx, 0x3f
or edi, ebp
mov ebp, dword [ebx*4 + 0x4e9ca4]
mov ebx, dword [eax*4 + 0x4e9ea4]
mov eax, dword [esi - 0xc]
or edi, ebp
xor eax, ecx
or edi, ebx
mov ebx, eax
mov ebp, eax
shr ebx, 0x18
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x4e99a4]
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4e9ba4]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
and eax, 0x3f
or ebx, dword [ebp*4 + 0x4e9da4]
mov ebp, dword [eax*4 + 0x4e9fa4]
or ebx, ebp
or ebx, edi
xor edx, ebx
mov ebx, dword [esi - 8]
mov eax, edx
mov edi, edx
shl eax, 0x1c
shr edi, 4
or eax, edi
xor eax, ebx
mov ebx, eax
mov edi, eax
shr ebx, 0x10
and ebx, 0x3f
shr edi, 0x18
mov ebp, dword [ebx*4 + 0x4e9aa4]
mov ebx, eax
and edi, 0x3f
and eax, 0x3f
shr ebx, 8
mov edi, dword [edi*4 + 0x4e98a4]
and ebx, 0x3f
or edi, ebp
mov ebp, dword [ebx*4 + 0x4e9ca4]
mov ebx, dword [eax*4 + 0x4e9ea4]
mov eax, dword [esi - 4]
or edi, ebp
xor eax, edx
or edi, ebx
mov ebx, eax
mov ebp, eax
shr ebx, 0x18
and ebx, 0x3f
shr ebp, 0x10
mov ebx, dword [ebx*4 + 0x4e99a4]
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4e9ba4]
mov ebp, eax
and eax, 0x3f
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4e9da4]
mov ebp, dword [eax*4 + 0x4e9fa4]
mov eax, dword [esp + 0x10]
or ebx, ebp
or ebx, edi
xor ecx, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x475554
mov eax, ecx
pop edi
shl eax, 0x1f
shr ecx, 1
or eax, ecx
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
xor edx, ecx
xor eax, ecx
mov ecx, edx
mov esi, eax
shl ecx, 0x1f
shr edx, 1
or ecx, edx
and esi, 0xff00ff
mov edx, ecx
shr edx, 8
and edx, 0xff00ff
xor edx, esi
xor eax, edx
shl edx, 8
xor ecx, edx
mov esi, eax
mov edx, ecx
and esi, 0x33333333
shr edx, 2
and edx, 0x33333333
xor edx, esi
xor eax, edx
shl edx, 2
xor ecx, edx
mov edx, eax
mov esi, ecx
shr edx, 0x10
and esi, 0xffff
xor edx, esi
xor ecx, edx
shl edx, 0x10
xor eax, edx
mov esi, ecx
mov edx, eax
and esi, 0xf0f0f0f
shr edx, 4
and edx, 0xf0f0f0f
xor edx, esi
mov esi, edx
shl esi, 4
xor esi, eax
mov eax, dword [esp + 0x14]
xor edx, ecx
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], edx
pop ebx
pop ecx
ret
Function at 0x478040
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x478087
mov edi, dword [esp + 0x10]
push edi
call fcn.004a7673
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.00490617
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 0x4780bb
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4780bb
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x4780a5
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x4780bb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00478180
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 0x4780ee
cmp edi, 0x5a
jle 0x4780ee
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x4780ee
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 0x47811d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x478163
cmp ebx, 1
jge 0x478163
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x478163
mov al, byte [esi + 0x1d]
test al, al
jne 0x478163
mov ebx, dword [0x4b6374]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x478163
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x478163
mov al, byte [esi + 0x1d]
test al, al
je 0x478143
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00478180
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x479340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x479367
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.00490617
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.004909ae
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.00490617
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x47939b
push esi
push ebx
push edi
mov ecx, ebp
call fcn.00479560
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4793b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x503f5c]
xor edx, edx
cmp eax, edx
jne 0x4793d6
xor eax, eax
mov byte [eax + 0x503e5c], al
inc eax
cmp eax, 0x100
jl 0x4793be
mov dword [0x503f5c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x503e5c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x479467
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 0x47943a
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 0x479408
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4794e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x479533
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47951a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47fef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b56de
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.00480810
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4c97a4
call fcn.004a7673
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47ff83
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a7673
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47ff7c
push 0
mov ecx, eax
call fcn.00476ff0
mov dword [esi + 0xc], eax
jmp 0x47ff85
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47ff85
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 0x100044c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 4], 0
jmp 0x100044f3
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x14]
jae 0x1000451b
mov eax, dword [0x100afbdc]
mov dword [ebp - 0xc], eax
push 0
push 1
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0xc]
jmp 0x100044ea
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10004710
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
sub eax, 4
mov dword [ebp - 8], eax
push 0
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [0x100afbd8]
mov dword [ebp - 0x10], ecx
push 0
push 4
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.10004540
cmp eax, dword [ebp + 0x10]
jae 0x100047b3
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.10004540
mov ecx, dword [ebp - 8]
sub ecx, eax
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
push 0
push 4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.10004540
cmp eax, dword [ebp + 0x10]
jbe 0x100047f7
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.10004540
add eax, dword [ebp - 8]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
push 0
push 4
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006dd0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
lea eax, [ebp + 8]
push eax
mov ecx, 0x100afb50
call fcn.10009b80
cmp eax, 1
je 0x10006e03
jmp 0x10006fa6
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x4c]
call fcn.1000ad60
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp + 8]
push ecx
mov ecx, 0x100afb50
call fcn.10009cd0
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10006e6a
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0xb37a]
test edx, edx
jne 0x10006e52
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1fa5c], 0
je 0x10006e6a
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x1fa44
push ecx
lea ecx, [ebp - 0x4c]
call fcn.1000aba0
jmp 0x10006ec9
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x1d6ec]
test eax, eax
je 0x10006ec9
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1d6b8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1d6b0]
mov dword [ebp - 0x24], ecx
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x10096e68
call fcn.1000b5b0
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x10096e6c
call fcn.1000b5b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
call fcn.1005c080
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1fa60]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1fa74]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1fa6c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1d6b4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
call fcn.10041470
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x10006f32
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.10006fc0
mov dword [ebp - 0x28], eax
jmp 0x10006f39
mov dword [ebp - 0x28], 0
lea edx, [ebp + 8]
push edx
mov ecx, 0x100afb50
call fcn.10009bc0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10006f6a
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.10006a30
add esp, 8
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10006f97
cmp dword [ebp - 0x18], 0
je 0x10006f97
mov edx, dword [ebp - 0x18]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.1000abe0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10007940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x1c
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea edx, [ebp - 8]
push edx
push 0x40
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x1000
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.10063ea0
add esp, 0xc
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x100079c4
jmp 0x10007a29
mov ecx, dword [ebp + 8]
push ecx
call fcn.10007940
add esp, 4
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100079f4
mov eax, 1
jmp 0x10007a2e
mov edx, dword [ebp - 4]
mov dword [edx], 0xe9
mov eax, dword [ebp - 4]
add eax, 1
mov ecx, 0x10007090
sub ecx, eax
sub ecx, 4
mov edx, dword [ebp - 4]
mov dword [edx + 1], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10009780
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
lea eax, [ebp - 0x1ac]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100097a8
xor al, al
jmp 0x10009823
mov ecx, 2
mov word [ebp - 0x1c], cx
movzx edx, word [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x18], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100097ec
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x10009823
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10009811
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x10009823
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10009890
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x1008a390
push 1
push 0
push 0x1008a3b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x10009941
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0xc]
push edx
push 0x1008a3a0
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x10009933
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x1c], eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1000c0a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov dword [ebp - 0x14], ecx
call fcn.10010800
mov word [ebp - 6], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 6]
push ecx
call fcn.10010870
add esp, 8
movzx edx, al
test edx, edx
je 0x1000c0db
lea eax, [ebp + 8]
push eax
call fcn.10010810
add esp, 4
jmp 0x1000c282
mov ecx, dword [ebp - 0x14]
call fcn.10011360
test eax, eax
je 0x1000c125
mov ecx, dword [ebp - 0x14]
call fcn.10011360
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.100112a0
cmp esi, eax
jae 0x1000c125
lea ecx, [ebp + 8]
push ecx
call fcn.1000c290
add esp, 4
mov word [ebp - 8], ax
mov ecx, dword [ebp - 0x14]
call fcn.10011110
mov dx, word [ebp - 8]
mov word [eax], dx
mov ax, word [ebp + 8]
jmp 0x1000c282
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x4c], 0
jne 0x1000c138
call fcn.10010800
jmp 0x1000c282
mov ecx, dword [ebp - 0x14]
call fcn.10010b30
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x38], 0
jne 0x1000c196
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 8]
push ecx
call fcn.1000c290
add esp, 4
mov word [ebp - 0xa], ax
mov edx, dword [ebp - 0x20]
push edx
movzx eax, word [ebp - 0xa]
push eax
call fcn.100043f0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1000c184
mov dx, word [ebp + 8]
mov word [ebp - 2], dx
jmp 0x1000c18d
call fcn.10010800
mov word [ebp - 2], ax
mov ax, word [ebp - 2]
jmp 0x1000c282
mov dword [ebp - 0x30], 0x20
lea eax, [ebp + 8]
push eax
call fcn.1000c290
add esp, 4
mov word [ebp - 0x10], ax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x24]
call fcn.100029b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1000c27d
cmp dword [ebp - 0x18], 1
jle 0x1000c1fb
cmp dword [ebp - 0x18], 3
je 0x1000c249
jmp 0x1000c27d
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x54]
sub ecx, edx
mov dword [ebp - 0x1c], ecx
je 0x1000c22d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 1
lea eax, [ebp - 0x54]
push eax
call fcn.1006bb58
add esp, 0x10
cmp dword [ebp - 0x1c], eax
je 0x1000c22d
call fcn.10010800
jmp 0x1000c282
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x3e], 1
lea edx, [ebp - 0x10]
cmp dword [ebp - 0x2c], edx
je 0x1000c242
mov ax, word [ebp + 8]
jmp 0x1000c282
call fcn.10010800
jmp 0x1000c282
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, word [ebp - 0x10]
push edx
call fcn.100043f0
add esp, 8
movzx eax, al
test eax, eax
je 0x1000c26e
mov cx, word [ebp + 8]
mov word [ebp - 4], cx
jmp 0x1000c277
call fcn.10010800
mov word [ebp - 4], ax
mov ax, word [ebp - 4]
jmp 0x1000c282
call fcn.10010800
pop esi
mov esp, ebp
pop ebp
ret 4