joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436680
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4683d8]
push 0
lea ecx, [esp + 0x20]
call fcn.0045fd7f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436020
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045fcad
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045c56b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045c56b
push 1
push 0
push 0
mov ecx, esi
call fcn.0045c513
push 1
push 0
push 1
mov ecx, esi
call fcn.0045c513
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045fdf1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436800
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045fd7f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436020
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045fcad
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4683d8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4368c4
cmp dword [esp + 0x40], 1
jne 0x4368c2
cmp ecx, eax
jge 0x4368c4
mov eax, ecx
cmp eax, 0xc8
jge 0x4368d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436680
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4683dc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045fdf1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437050
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466f63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045a98c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x46da18
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x46cab8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x468090]
push eax
mov ecx, edi
call fcn.00460027
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00461543
test eax, eax
je 0x43716c
mov ecx, dword [esp + 0x3c]
call fcn.00460054
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4683b8]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x437130
push edi
mov ecx, esi
call fcn.0045d6b2
mov ecx, esi
call fcn.004372d0
cmp dword [esp + 0x38], 1
jne 0x437165
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045d7ed
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x439b90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439bc3
push esi
call fcn.0043cc90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x439bbc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x439c49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x439c32
mov eax, dword [esi + 8]
test eax, eax
je 0x439be7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x439c2e
cmp eax, 2
je 0x439c32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x439bda
cmp eax, 3
je 0x439c0d
cmp eax, 1
jne 0x439bda
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x439bda
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x439bda
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00439c70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x439c58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00439c70
add esp, 4
pop esi
ret
Function at 0x4464b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x467460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00446060
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004460e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004460e0
lea ecx, [esi + 0xc]
call fcn.00459365
lea ecx, [esi + 0x10]
call fcn.00459365
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00447680
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00447680
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00447680
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004593da
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004593da
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1002ea10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100cf950
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.100c43e6
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10030810
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1002ea64
jmp dword [ecx*4 + 0x1002ebcc]
mov al, byte [esi]
test al, al
je 0x1002ea92
cmp al, 0x20
je 0x1002ea7e
cmp al, 0xa1
jne 0x1002ea92
cmp byte [esi + 1], al
jne 0x1002ea92
test al, 0x80
je 0x1002ea8a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1002ea92
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002ea71
test ecx, ecx
je case.default.0x1002ea64
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1002ea64
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1002ead8
cmp dl, 0xa1
jne 0x1002eacc
cmp byte [eax + 1], 0xa1
jne 0x1002eacc
test ecx, ecx
jne 0x1002eac4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002eaec
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1002eb06
jmp 0x1002eaec
cmp dl, 0x20
jne 0x1002eaea
test ecx, ecx
jne 0x1002eae3
mov edi, eax
mov ecx, 1
jmp 0x1002eaec
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002eaac
cmp ecx, 1
jne case.default.0x1002ea64
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002ea64
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002ea64
mov al, byte [esi]
test al, al
je 0x1002eb5e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1002eb44
mov cl, byte [esi + 1]
test cl, cl
je 0x1002eb5e
cmp al, 0xa1
jne 0x1002eb34
cmp cl, al
je 0x1002eb41
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10030ae0
inc esi
jmp 0x1002eb56
cmp al, 0x20
je 0x1002eb56
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10030b20
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002eb1d
push 0
lea ecx, [esp + 0x14]
call fcn.10030b20
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10041c50
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1002eb91
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10101a10
call fcn.10030a10
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100c4378
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x100301b0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100cfa68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x10128738]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.1002fc80
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10030252
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1003030b
mov edx, dword [esi + 8]
push edx
call fcn.100409d0
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x100302a2
cmp eax, 0x80000301
jne 0x10030270
mov eax, dword [esi]
jmp 0x1003027d
push 0
push esi
push 0x7d1
call fcn.10045eb0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10030300
jmp 0x100302fa
cmp eax, 0x80000004
jne 0x100302d1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10030300
jmp 0x100302fa
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x10030300
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10030300
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.100c4378
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10039800
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d042b
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.100c40ed
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10039882
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100c1637
mov eax, dword [eax]
push 0x1011dd20
push eax
call fcn.100b3d04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100c4378
test bl, bl
je 0x10039882
push 0x1011dd20
lea ecx, [esp + 0xc]
call fcn.100c4708
push 0x1011dd2c
lea ecx, [esp + 0xc]
call fcn.100c4708
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 0x100398be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100c4378
jmp 0x10039989
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 0x10039942
lea edx, [esp + 0x7c]
push 0x1011dd28
push edx
call fcn.100b3d04
add esp, 8
test eax, eax
je 0x10039942
lea eax, [esp + 0x7c]
push 0x1011dd24
push eax
call fcn.100b3d04
add esp, 8
test eax, eax
je 0x10039942
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 0x100398d2
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.100c4378
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 0x1003a190
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 0x1003a1f2
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 0x1003a200
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d04ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10128738]
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 0x1003a338
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1003a266
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100c4378
xor eax, eax
jmp 0x1003a3af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100c44b5
push esi
lea ecx, [esp + 0xc]
call fcn.100c4744
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 0x1003a38d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.1003a190
test eax, eax
jne 0x1003a38d
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.1003a190
test eax, eax
jne 0x1003a38d
lea eax, [esp + 0x14]
push 0x1011dd3c
push eax
call fcn.100b4d80
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003a36c
lea ecx, [esp + 0x14]
push 0x1011dd38
push ecx
call fcn.100b4d00
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003a36c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1003a36f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100c4465
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1003a27e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100c4378
xor eax, eax
jmp 0x1003a3af
mov byte [esi], 0
push 0x1011dd34
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.100c4378
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 0x1004d9e0
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 0x1004da4e
cmp si, 0x69
ja 0x1004da4e
add esi, 0xffd0
cmp si, 0x11
je 0x1004da1e
push 0x11
call edi
test ax, ax
jge 0x1004da1e
or esi, 0x2000
cmp si, 0x10
je 0x1004da33
push 0x10
call edi
test ax, ax
jge 0x1004da33
or esi, 0x4000
cmp si, 0x12
je 0x1004da48
push 0x12
call edi
test ax, ax
jge 0x1004da48
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1004da5b
mov esi, 0xbd
jmp 0x1004da0f
cmp si, 0x6e
jne 0x1004da68
mov esi, 0xbe
jmp 0x1004da0f
cmp si, 0x6f
jne 0x1004da09
mov esi, 0xbf
jmp 0x1004da0f

Function at 0x1004efd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d1791
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, dword [esp + 0x160]
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.100c3391
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.100c3657
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.100c43e6
lea ecx, [esp + 0xc]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.100c45c1
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.100c4378
test edi, edi
je 0x1004f11e
mov edx, dword [0x10128738]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x1004f10d
cmp byte [esp + 0x44], 0x2e
je 0x1004f0f2
lea eax, [esp + 0xc]
push 0x1011e79c
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.100c45c1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.100c4465
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.100c4378
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.100c4708
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x1004f0d8
push 1
jmp 0x1004f0da
push 0
push eax
mov ecx, esi
call fcn.100c379c
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.100c3506
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1004f07e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.100c4378
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.100c4378
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x1004f150
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100d17b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
lea ecx, [esp + 8]
call fcn.100c32fe
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], esi
call fcn.100c35f7
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x44], 1
call fcn.1004efd0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
mov ebx, eax
jle 0x1004f1ed
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x28]
cmp dword [eax + esi*4], 0
je 0x1004f1dc
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + esi*4]
push eax
call fcn.1004f150
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, dword [edx + esi*4]
push eax
call edi
jmp 0x1004f1e6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
push eax
call ebp
inc esi
cmp esi, ebx
jl 0x1004f1b6
pop edi
pop ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.100c362a
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.100c3331
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x1004f220
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x20
jne 0x1004f232
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x1004f22a
cmp byte [esi], 0
je 0x1004f261
cmp byte [esi + 1], 0x3a
jne 0x1004f24f
mov al, byte [esi + 2]
test al, al
je 0x1004f261
cmp al, 0x5c
jne 0x1004f24f
mov al, byte [esi + 3]
test al, al
je 0x1004f261
push esi
call fcn.1004f150
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1004f600
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x101390d0]
xor edx, edx
cmp eax, edx
jne 0x1004f626
xor eax, eax
mov byte [eax + 0x10138fd0], al
inc eax
cmp eax, 0x100
jl 0x1004f60e
mov dword [0x101390d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10138fd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1004f6b7
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 0x1004f68a
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 0x1004f658
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1004f730
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 0x1004f783
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 0x1004f76a
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