joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ebda
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x18
call fcn.10026bb6
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [0x10046fa7], 0
jne 0x1001ecb4
mov ebx, dword [0x10046eb7]
call fcn.1000100e
mov eax, 0
cmp eax, ecx
jl 0x1001ec3c
push 1
call fcn.10026bbc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0x1003f2b3
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001562
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1001ec68
push ebx
call fcn.10026bb0
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.10001817
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1001ec89
push ebx
call fcn.10026bb0
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x10046fa7], eax
push htons
push 0
push 0x1000c553
push 1
mov ebx, 0x9dc
call fcn.10027060
add esp, 0x10
mov dword [0x10046fab], eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 1
push 0
push dword [0x10046fab]
push dword [0x10046fa7]
call fcn.1000963a
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1001ed14
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.1000c1a7
cmp dword [ebp - 8], 0
je 0x1001ed6d
push 2
push dword [ebp - 8]
call fcn.1001e5aa
cmp dword [ebp + 0x1c], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1001ed64
push 1
push 0xffffffff
push dword [ebp + 0x18]
push dword [ebp - 8]
call fcn.1000c234
lea eax, [ebp - 8]
push eax
call fcn.1000c4ab
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x1001ed7e
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10025faf
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret

Function at 0x10027ae0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10027b49
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10026e50
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x100284f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1002850e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10028503
pop esi
ret

Function at 0x10028540
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100285d2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x100285c4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x100285bc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10028585
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x1002bbe8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b4a8
push 0x1002d084
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x1002bc6e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x1002bc46
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x1002bc74
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x1002bc3e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x1002bc3e
mov al, 1
jmp 0x1002bc40
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002bcd3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x1004a1e5]
test esi, esi
je 0x1002bcf7
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x1002bcdb
pop esi
pop ecx
ret

Function at 0x1002bcfa
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId_1]
cmp dword [0x1004a1f1], eax
je 0x1002bd10
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x1004a201]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x1002bd5d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1002bd4e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1002bd4e
push eax
call fcn.1002bdc4
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1002d15c
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1002bd1f
mov dword [0x1004a201], ebx
call fcn.1002bd9d
mov esi, dword [0x1004a1fd]
cmp esi, ebx
je 0x1002bd8a
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1002d15c
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1002bd72
pop edi
mov dword [0x1004a1fd], ebx
mov dword [0x1004a1f1], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1002c047
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1004a1f5]
push esi
test eax, eax
push edi
jne 0x1002c0b1
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x1002c0af
push 8
call fcn.1002d1c8
mov esi, eax
pop ecx
test esi, esi
jne 0x1002c073
push 8
pop edi
jmp 0x1002c08e
push edi
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1002c09f
call dword [sym.imp.kernel32.dll_GetLastError_1]
push esi
mov edi, eax
call fcn.1002d15c
pop ecx
and dword [0x1004a1f9], 0
mov dword [0x1004a1f5], edi
mov eax, edi
jmp 0x1002c0b1
mov dword [esi + 4], edi
mov eax, dword [0x1004a1fd]
mov dword [esi], eax
mov dword [0x1004a1fd], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x1002c36e
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x1002c392
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x1002c395
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x1002c3a8
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1002c3af
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x1004a1e9]
mov ecx, dword [0x1004a1e5]
test eax, eax
jne 0x1002c3c9
test ecx, ecx
je 0x1002c3de
mov eax, ecx
mov dword [0x1004a1e9], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x1002c3de
cmp edx, dword [ebp + 8]
jb 0x1002c3de
cmp edx, dword [ebp - 4]
jbe 0x1002c537
mov eax, ecx
test ecx, ecx
mov dword [0x1004a1e9], eax
je 0x1002c40e
test eax, eax
je 0x1002c402
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002c402
cmp ecx, dword [ebp + 8]
jb 0x1002c402
cmp ecx, dword [ebp - 4]
jbe 0x1002c537
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x1004a1e9], eax
jne 0x1002c3ed
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x1002c476
cmp edi, 0x70000000
jb 0x1002c433
cmp edi, 0x80000000
ja 0x1002c433
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x1002c476
cmp dword [ebp - 0x10], ebx
jne 0x1002c44e
cmp dword [ebp - 0x14], ebx
jae 0x1002c45e
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x1002c41e
jmp 0x1002c476
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.kernel32.dll_VirtualAlloc_1]
test eax, eax
mov dword [0x1004a1e9], eax
jne 0x1002c4ed
cmp esi, dword [ebp - 4]
jae 0x1002c55e
cmp esi, 0x70000000
jb 0x1002c494
cmp esi, 0x80000000
ja 0x1002c494
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x1002c55e
cmp dword [ebp - 0x10], ebx
jne 0x1002c4e2
cmp dword [ebp - 0x14], ebx
jb 0x1002c4e2
mov ecx, esi
and ecx, 0xffff
je 0x1002c4ca
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.kernel32.dll_VirtualAlloc_1]
test eax, eax
mov dword [0x1004a1e9], eax
jne 0x1002c4ed
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x1002c476
mov dword [eax], 0x52727464
mov eax, dword [0x1004a1e9]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x1004a1e9]
mov edx, dword [0x1004a1e5]
mov dword [eax + 4], edx
mov eax, dword [0x1004a1e9]
mov dword [0x1004a1e5], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x1002c51f
mov eax, dword [0x1004a1e9]
mov dword [eax + 8], ecx
mov eax, dword [0x1004a1e9]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x1002c55e
cmp esi, dword [ebp - 4]
ja 0x1002c55e
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1002d170
add esp, 0xc
mov eax, esi
jmp 0x1002c560
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002c565
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b4b8
push 0x1002d084
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x1002c5da
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x1002c5d6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x1002c5d6
cmp word [eax + 0x14], 0
jne 0x1002c5cb
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x1002c5dc
mov eax, ecx
jmp 0x1002c5c5
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002c5eb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetCurrentThreadId_1]
cmp dword [0x1004a1f1], eax
je 0x1002c60a
mov eax, 0x10dd
jmp 0x1002c6e0
mov eax, dword [0x1004a1f5]
test eax, eax
jne 0x1002c6e0
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1002c626
push 6
pop eax
jmp 0x1002c6e0
cmp dword [edi], 0
jne 0x1002c638
push 6
pop eax
mov dword [0x1004a1f5], eax
jmp 0x1002c6da
push 0x18
call fcn.1002d1c8
mov esi, eax
pop ecx
test esi, esi
jne 0x1002c64b
push 8
pop edi
jmp 0x1002c6c4
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.1002bb80
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x1002c6b9
cmp ecx, 0x17
ja 0x1002c6b9
cmp dword [edi + 0x1c], eax
jne 0x1002c6b9
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1002c68f
call dword [sym.imp.kernel32.dll_GetLastError_1]
mov edi, eax
jmp 0x1002c6c4
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x1004a201]
mov dword [esi], eax
mov dword [0x1004a201], esi
xor eax, eax
jmp 0x1002c6e0
cmp dword [0x1004a1ed], edx
push 9
pop edi
jne 0x1002c6ca
mov dword [0x1004a1f5], edi
test esi, esi
je 0x1002c6d5
push esi
call fcn.1002d15c
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x1004a1f9], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001f2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10089290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1007e762
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10020810
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1001f314
jmp dword [ecx*4 + 0x1001f47c]
mov al, byte [esi]
test al, al
je 0x1001f342
cmp al, 0x20
je 0x1001f32e
cmp al, 0xa1
jne 0x1001f342
cmp byte [esi + 1], al
jne 0x1001f342
test al, 0x80
je 0x1001f33a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1001f342
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001f321
test ecx, ecx
je case.default.0x1001f314
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1001f314
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1001f388
cmp dl, 0xa1
jne 0x1001f37c
cmp byte [eax + 1], 0xa1
jne 0x1001f37c
test ecx, ecx
jne 0x1001f374
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001f39c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1001f3b6
jmp 0x1001f39c
cmp dl, 0x20
jne 0x1001f39a
test ecx, ecx
jne 0x1001f393
mov edi, eax
mov ecx, 1
jmp 0x1001f39c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1001f35c
cmp ecx, 1
jne case.default.0x1001f314
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001f314
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001f314
mov al, byte [esi]
test al, al
je 0x1001f40e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1001f3f4
mov cl, byte [esi + 1]
test cl, cl
je 0x1001f40e
cmp al, 0xa1
jne 0x1001f3e4
cmp cl, al
je 0x1001f3f1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10020aa0
inc esi
jmp 0x1001f406
cmp al, 0x20
je 0x1001f406
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10020ae0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001f3cd
push 0
lea ecx, [esp + 0x14]
call fcn.10020ae0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10030610
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1001f441
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1009b468
call fcn.10020a10
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1007e6f4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10027a70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10089a2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1007e469
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10027af2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1007c220
mov eax, dword [eax]
push 0x100ac220
push eax
call fcn.1006eec4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1007e6f4
test bl, bl
je 0x10027af2
push 0x100ac220
lea ecx, [esp + 0xc]
call fcn.1007ea84
push 0x100afd78
lea ecx, [esp + 0xc]
call fcn.1007ea84
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10027b2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1007e6f4
jmp 0x10027bf9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10027bb2
lea edx, [esp + 0x7c]
push 0x100afd74
push edx
call fcn.1006eec4
add esp, 8
test eax, eax
je 0x10027bb2
lea eax, [esp + 0x7c]
push 0x100afd70
push eax
call fcn.1006eec4
add esp, 8
test eax, eax
je 0x10027bb2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10027b42
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1007e6f4
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x100283f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10028452
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x10028460
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10089aab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100b632c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x10028598
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100284c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1007e6f4
xor eax, eax
jmp 0x1002860f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1007e831
push esi
lea ecx, [esp + 0xc]
call fcn.1007eac0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x100285ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.100283f0
test eax, eax
jne 0x100285ed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.100283f0
test eax, eax
jne 0x100285ed
lea eax, [esp + 0x14]
push 0x100afd8c
push eax
call fcn.1006ff00
mov esi, eax
add esp, 8
test esi, esi
jne 0x100285cc
lea ecx, [esp + 0x14]
push 0x100afd88
push ecx
call fcn.1006fe80
mov esi, eax
add esp, 8
test esi, esi
jne 0x100285cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x100285cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1007e7e1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100284de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1007e6f4
xor eax, eax
jmp 0x1002860f
mov byte [esi], 0
push 0x100afd84
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.1007e6f4
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x1003c230
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x1003c29e
cmp si, 0x69
ja 0x1003c29e
add esi, 0xffd0
cmp si, 0x11
je 0x1003c26e
push 0x11
call edi
test ax, ax
jge 0x1003c26e
or esi, 0x2000
cmp si, 0x10
je 0x1003c283
push 0x10
call edi
test ax, ax
jge 0x1003c283
or esi, 0x4000
cmp si, 0x12
je 0x1003c298
push 0x12
call edi
test ax, ax
jge 0x1003c298
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1003c2ab
mov esi, 0xbd
jmp 0x1003c25f
cmp si, 0x6e
jne 0x1003c2b8
mov esi, 0xbe
jmp 0x1003c25f
cmp si, 0x6f
jne 0x1003c259
mov esi, 0xbf
jmp 0x1003c25f

Function at 0x1003da60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100c6aa0]
xor edx, edx
cmp eax, edx
jne 0x1003da86
xor eax, eax
mov byte [eax + 0x100c69a0], al
inc eax
cmp eax, 0x100
jl 0x1003da6e
mov dword [0x100c6aa0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100c69a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1003db17
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 0x1003daea
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 0x1003dab8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1003db90
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 0x1003dbe3
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 0x1003dbca
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