joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458cc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x240], 0x615d00
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x240]
mov ax, word [edx]
mov word [ebp - 0x22a], ax
mov ecx, dword [ebp - 0x238]
mov dx, word [ebp - 0x22a]
mov word [ecx], dx
mov eax, dword [ebp - 0x240]
add eax, 2
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x238]
add ecx, 2
mov dword [ebp - 0x238], ecx
cmp word [ebp - 0x22a], 0
jne 0x458cff
lea edx, [ebp - 0x228]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x458d8b
push 0x61422a
mov ecx, dword [ebp + 8]
call fcn.00406610
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 8]
jmp 0x458e5c
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x458e0d
mov dword [ebp - 0x23c], 0x615d04
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x23c]
mov ax, word [edx]
mov word [ebp - 0x22c], ax
mov ecx, dword [ebp - 0x230]
mov dx, word [ebp - 0x22c]
mov word [ecx], dx
mov eax, dword [ebp - 0x23c]
add eax, 2
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x230]
add ecx, 2
mov dword [ebp - 0x230], ecx
cmp word [ebp - 0x22c], 0
jne 0x458dc5
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.0042ffe0
add esp, 8
lea edx, [ebp - 0x224]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406650
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x224]
call fcn.004066a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058846b
mov esp, ebp
pop ebp
ret
Function at 0x45a7b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8d78
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x5c]
call fcn.00410490
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x4e]
test ecx, ecx
je 0x45a805
mov dword [ebp - 0x68], 1
jmp 0x45a80c
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push 6
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x5c], 1
push 0x61425d
lea ecx, [ebp - 0x58]
call fcn.00408b30
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov ecx, dword [ebp - 0x60]
or ecx, 1
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00409a10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058846b
mov esp, ebp
pop ebp
ret 4
Function at 0x46f96c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x46f9b1
call fcn.0047a2ac
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46f9b1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46f9cd
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047a445
mov ebx, eax
test edi, edi
je 0x46f9cb
test esi, esi
je 0x46f9cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x475cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0047a2ac
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x475ce7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00475d08
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f0be2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00479703
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4f0c1e
call fcn.004f0e01
mov dword [esi + 0xc], 1
jmp 0x4f0c23
call fcn.004f0e01
cmp dword [esi], 0
je 0x4f0c6c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4f0c46
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0046fa24
jmp 0x4f0c57
push 0xff
mov ecx, esi
call fcn.00413bf0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046d913
jmp 0x4f0c90
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4f0c90
push dword [esi]
push dword [ebp - 4]
call fcn.0047ce07
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f0d56
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004f0e01
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4f0d9e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046fa24
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0046d913
jmp 0x4f0da9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0047ce07
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x553532
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005841b0
call fcn.0047a300
cmp dword [eax + 0x14], 0
jne 0x55354d
mov ecx, esi
pop esi
jmp fcn.00552935
pop esi
ret

Function at 0x55fd34
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004c0739
call fcn.0047a300
cmp dword [eax + 0x14], 0
jne 0x55fd4f
mov ecx, esi
pop esi
jmp fcn.0055f61d
pop esi
ret
Function at 0x5a0615
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00592bfe
mov dword [ebp - 0x14], eax
cmp dword [0x64e8c8], esi
jne 0x5a0708
push 0x800
push esi
push 0x60a160
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5a0695
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5a07e8
push esi
push esi
push 0x60a160
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5a07e8
push 0x60a178
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5a07e8
push eax
call ebx
push 0x60a184
push edi
mov dword [0x64e8c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x60a194
push edi
mov dword [0x64e8cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x64e8d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64e8d8], eax
test eax, eax
je 0x5a0705
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64e8d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5a072d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a0720
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5a0742
push 4
pop eax
jmp 0x5a07ea
cmp dword [ebp - 0x14], esi
je 0x5a0742
push dword [0x64e8c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5a0727
mov eax, dword [0x64e8d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5a07a0
cmp dword [0x64e8d8], edi
je 0x5a07a0
push eax
call ebx
push dword [0x64e8d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5a07a0
test eax, eax
je 0x5a07a0
call ecx
test eax, eax
je 0x5a0795
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5a0795
test byte [ebp - 8], 1
jne 0x5a07a0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5a07d0
mov eax, dword [0x64e8cc]
cmp eax, edi
je 0x5a07cd
push eax
call ebx
test eax, eax
je 0x5a07cd
call eax
mov esi, eax
test esi, esi
je 0x5a07cd
mov eax, dword [0x64e8d0]
cmp eax, edi
je 0x5a07cd
push eax
call ebx
test eax, eax
je 0x5a07cd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x64e8c8]
call ebx
test eax, eax
je 0x5a07e8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5a07ea
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058846b
mov esp, ebp
pop ebp
ret
Function at 0x5b0483
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
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 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 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 0x10003217
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x10022aee], 0
jne 0x100032a5
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10003391
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x10022325]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.10001b83
mov dword [0x10022aee], eax
mov dword [ebp - 4], esp
mov eax, 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push dword [0x10022aee]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 4], esp
je 0x100032a5
push 0x7f
push 0x40106d1
push 6
call fcn.1000a216
add esp, 0xc
push dword [ebp + 8]
call fcn.100034d1
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.1000b4b0
add esp, 0x10
mov dword [ebp - 8], eax
push 0x1002232d
push dword [ebp - 8]
push 0x10022337
mov ecx, 3
call fcn.100031c0
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100032f7
push ebx
call fcn.1000a20a
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push dword [0x10022aee]
push 0x80000005
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1000331d
mov eax, 0x10022340
push eax
push 3
mov ebx, 0x914
call fcn.1000b580
add esp, 0x28
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10003340
push ebx
call fcn.1000a20a
add esp, 4
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
push dword [ebp + 0xc]
push dword [0x10022aee]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x10003386
push 0x142
push 0x40106d1
push 6
call fcn.1000a216
add esp, 0xc
jmp 0x1000338b
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10003391
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Packed with generic packer
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
jne 0x10003426
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.1000ad60
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x10022b76]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000340d
push 0x9e
push 0x40106da
push 6
call fcn.1000a216
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10003420
push ebx
call fcn.1000a20a
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1000
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10003460
push 0xbe
push 0x40106da
push 6
call fcn.1000a216
add esp, 0xc
pushal
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x10003482
mov edx, dword [eax + 0x3c]
add edx, eax
cmp word [edx], 0x4550
jne 0x10003482
mov edx, dword [edx + 0x154]
add eax, edx
mov dword [ebp - 4], eax
popal
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push 0x1000
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100034c3
push 0x31e
push 0x40106da
push 6
call fcn.1000a216
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100034cb
mov esp, ebp
pop ebp
ret 8

Function at 0x10003c8a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x10003cc2
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x10003cb0
mov al, 1
jmp 0x10003d13
cmp dword [ebx + 0x54], ecx
jne 0x10003cb9
mov al, 2
jmp 0x10003d13
cmp dword [ebx + 0x7c], ecx
jne 0x10003d13
mov al, 3
jmp 0x10003d13
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x10003cd7
mov al, 4
jmp 0x10003d13
cmp ecx, 5
jne 0x10003cf7
cmp ebx, 0
jne 0x10003ce5
mov al, 5
jmp 0x10003d13
cmp ebx, 1
jne 0x10003cee
mov al, 6
jmp 0x10003d13
cmp ebx, 2
jne 0x10003cf7
mov al, 7
jmp 0x10003d13
cmp ecx, 6
jne 0x10003d03
cmp ebx, 0
jne 0x10003d05
mov al, 8
jmp 0x10003d13
cmp ebx, 1
jne 0x10003d0c
mov al, 9
cmp ebx, 2
jne 0x10003d13
mov al, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006763
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x80000006
push 0
push 0x1000732d
push 1
mov ebx, 0x9dc
call fcn.1000b660
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x100067d0
push 0x5c
push 0x4015176
push 6
call fcn.1000a216
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x10022b7e]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100067ff
push 0x5c
push 0x4015176
push 6
call fcn.1000a216
add esp, 0xc
push 0x80000006
push 0
push 0x10008127
push 1
mov ebx, 0x9dc
call fcn.1000b660
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x10006863
push 0xc5
push 0x4015176
push 6
call fcn.1000a216
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x10022b7e]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10006892
push 0xc5
push 0x4015176
push 6
call fcn.1000a216
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x10006dea
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10006e39
push 0x24
push 0x40102df
push 6
call fcn.1000a216
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10006e50
mov eax, 0x10022340
jmp 0x10006f22
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x1bc
call fcn.1000b100
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10006e83
push ebx
call fcn.1000a20a
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10006f3a
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10006ec5
push 0xb9
push 0x40102df
push 6
call fcn.1000a216
add esp, 0xc
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10006f03
push 0xe2
push 0x40102df
push 6
call fcn.1000a216
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x10006f1d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1000a204
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10006f22
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10006f33
push ebx
call fcn.1000a20a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10009e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
jne 0x10009e85
push 0x80000005
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x10009e6f
mov eax, 0x10022340
push eax
push 1
mov ebx, 0x194
call fcn.1000bba0
add esp, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0x10]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 8], esp
je 0x10009ebd
push 0x87
push 0x40102e0
push 6
call fcn.1000a216
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10009ecf
jmp 0x10009f4a
push dword [ebp + 0xc]
call fcn.10006f3a
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10009f0c
push 0xee
push 0x40102e0
push 6
call fcn.1000a216
add esp, 0xc
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
cmp dword [ebp - 8], esp
je 0x10009f4a
push 0x110
push 0x40102e0
push 6
call fcn.1000a216
add esp, 0xc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000b180
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x1000b200
push edi
call dword [0x1002316c]
add esp, 4
test eax, eax
jbe 0x1000b200
test esi, esi
je 0x1000b1be
cmp esi, 0xffffffff
je 0x1000b1be
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x1000b242
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x1000b1ec
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x1000b200
jmp 0x1000b1fb
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x1000b200
mov ebp, 1
test esi, esi
je 0x1000b242
cmp esi, 0xffffffff
je 0x1000b242
test ebp, ebp
jne 0x1000b279
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x1000b24f
call edi
test eax, eax
je 0x1000b242
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x1000b279
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x1000b22a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x1000b242
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x1000b279
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x1000b25c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x1002316c]
inc eax
push eax
call fcn.1000a710
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x1000c870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x1000c891
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1000c8eb
inc edi
cmp edi, esi
jl 0x1000c885
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x1000c920
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1000c8da
cmp byte [eax], bl
je 0x1000c8f5
cmp byte [eax + 1], bl
je 0x1000c8fe
cmp byte [eax + 2], bl
je 0x1000c908
cmp byte [eax + 3], bl
je 0x1000c914
add eax, 4
cmp eax, edi
jb 0x1000c8b1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4