joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e6a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48d30b
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov eax, dword [esp + 0x484]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor bl, bl
xor esi, esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], esi
test bl, bl
jne 0x43e850
push 0x200
lea ecx, [esp + 0x274]
push 0
push ecx
call fcn.0046fba0
push esi
lea edx, [esp + 0x280]
push str..Scsi_d:
push edx
mov edx, 0xff
call fcn.0043e880
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43e842
xor ebx, ebx
push 0x22d
lea ecx, [esp + 0x44]
push 0
push ecx
call fcn.0046fba0
mov edx, dword [str.SCSIDISK]
mov eax, dword [0x49dfb0]
add esp, 0xc
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x22d
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
push edx
push 0x3c
mov dword [esp + 0x5c], eax
mov eax, edx
push eax
push 0x4d008
push edi
mov dword [esp + 0x60], 0x1c
mov dword [esp + 0x6c], 0x2710
mov dword [esp + 0x78], 0x211
mov dword [esp + 0x70], 0x1b0501
mov byte [esp + 0x86], 0xec
mov byte [esp + 0x88], bl
call ebp
test eax, eax
je 0x43e829
cmp byte [esp + 0xa2], 0
je 0x43e829
push 0x13
push 0xa
lea ecx, [esp + 0x74]
lea esi, [esp + 0x2c]
call fcn.0043e150
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0
push eax
mov dword [esp + 0x488], 0
call fcn.00402760
mov dword [esp + 0x47c], 0xffffffff
cmp dword [esp + 0x3c], 0x10
jb 0x43e824
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0045352f
add esp, 4
mov byte [esp + 0x17], 1
inc ebx
cmp ebx, 2
jl 0x43e759
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [esp + 0x17]
mov esi, dword [esp + 0x18]
inc esi
cmp esi, 0x10
mov dword [esp + 0x18], esi
jl 0x43e6f8
mov al, bl
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.0046fd33
add esp, 0x46c
ret 4
Function at 0x43f620
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x491b88]
mov word [ebp - 0x2a8], ax
push 0x7e
push 0
lea ecx, [ebp - 0x2a6]
push ecx
call fcn.0046fba0
add esp, 0xc
push 0x104
call fcn.0046fc69
add esp, 4
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00402160
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x43f688
xor eax, eax
jmp 0x43f848
push 0x491b8c
mov eax, dword [ebp - 0x214]
push eax
call fcn.00402540
add esp, 8
push eax
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.0043f8c0
add esp, 8
mov dword [ebp - 0x2b0], 0
push 0x104
push 0
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.0046fba0
add esp, 0xc
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2ac]
mov dword [ecx + eax*4], 0x491b94
mov edx, dword [ebp - 0x2b0]
add edx, 1
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2ac]
mov dword [ecx + eax*4], 0x491b9c
mov edx, dword [ebp - 0x2b0]
add edx, 1
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x2ac]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.00402230
add esp, 8
mov dx, word [0x491ba0]
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0046fba0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0043f8e0
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str._.xml
lea ecx, [ebp - 0x210]
push ecx
call fcn.0043f900
add esp, 8
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x214]
push eax
call fcn.004026b0
add esp, 8
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.004024d0
add esp, 4
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.0046fb04
add esp, 4
push 0x10
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0046fba0
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00403200
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov cx, word [0x491bb0]
mov word [ebp - 0x330], cx
push 0x7e
push 0
lea edx, [ebp - 0x32e]
push edx
call fcn.0046fba0
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
push 0x10
lea ecx, [ebp - 0x224]
push ecx
call fcn.00403180
add esp, 0xc
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.0046ff07
add esp, 8
test eax, eax
jne 0x43f846
mov eax, 1
jmp 0x43f848
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret
Function at 0x440a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x440a59
xor eax, eax
jmp 0x440a99
mov eax, dword [ebp - 4]
mov dword [eax + 8], 1
mov ecx, dword [ebp - 4]
add ecx, 0x30
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x440aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x440a94
xor eax, eax
jmp 0x440a99
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x440ac0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x440ae9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
je 0x440b42
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
cmp eax, dword [ebp - 4]
je 0x440b2b
push 0x2710
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x440b2b
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
je 0x440b62
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], 0
mov ecx, dword [ebp - 8]
add ecx, 0x34
call fcn.00442010
mov esp, ebp
pop ebp
ret
Function at 0x440d10
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
push 0
push 0x492498
push 0x49249c
push 0
push 0x4924a0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 0
jne 0x440d71
mov ecx, dword [ebp - 8]
call fcn.00440e20
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x440d67
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
push 0
push 6
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call ecx
add esp, 0xc
or eax, 0xffffffff
jmp 0x440e17
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0
je 0x440d8f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
push 0
push 5
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
call eax
add esp, 0xc
mov ecx, dword [ebp - 8]
cmp dword [ecx + 8], 0
je 0x440dd7
push 0xa
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x440dc1
cmp dword [ebp - 0xc], 0x102
je 0x440dcb
jmp 0x440dcd
mov ecx, dword [ebp - 8]
call fcn.00440c00
jmp 0x440dd5
jmp 0x440dd5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x440d8f
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 0
je 0x440df7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x440e15
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
push 0
push 7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call ecx
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4417f0
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x492540
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0x4400000
push 5
push 0x492548
mov ecx, dword [ebp + 8]
add ecx, 0x54
call fcn.00417120
push eax
call fcn.00471016
add esp, 0xc
test eax, eax
jne 0x441867
mov eax, dword [ebp - 0x14]
or eax, 0x800000
or eax, 0x1000
or eax, 0x2000
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x492554
push str.HTTP_1.0
mov eax, dword [ebp + 0x10]
push eax
push 0x49256c
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44189c
jmp 0x4419a5
mov edx, dword [ebp + 8]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xac]
mov edx, dword [eax + 0x10]
or edx, dword [ecx + 0x14]
je 0x441908
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [eax + 8]
push edx
push str.Range:_bytes_I64u__r_n
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x10000000
lea ecx, [ebp - 0x98]
push ecx
call fcn.00470944
add esp, 4
push eax
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x441908
jmp 0x4419a5
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x441996
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0x2f0d
je 0x441942
cmp dword [ebp - 0x9c], 0x2f19
jne 0x441994
mov dword [ebp - 0xa0], 4
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xa4]
push eax
push 0x1f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov edx, dword [ebp - 0xa4]
or edx, 0x3380
mov dword [ebp - 0xa4], edx
push 4
lea eax, [ebp - 0xa4]
push eax
push 0x1f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
jmp 0x441908
jmp 0x4419a5
mov dword [ebp - 8], 1
xor edx, edx
jne 0x441817
cmp dword [ebp - 8], 0
jne 0x4419cd
mov ecx, dword [ebp - 0xa8]
call fcn.00440e20
cmp dword [ebp - 4], 0
je 0x4419cd
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4419e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00470944
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x441a42
jmp 0x441ae0
cmp dword [ebp - 0x34], 0xffffffff
je 0x441a60
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004710bc
add esp, 0x10
cmp dword [ebp - 0x28], 0xffffffff
je 0x441a7e
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004710bc
add esp, 0x10
cmp dword [ebp - 0xc], 0xffffffff
je 0x441aa4
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0xc]
jbe 0x441aa4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.004710bc
add esp, 0x10
cmp dword [ebp - 4], 0xffffffff
je 0x441ad6
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
cmp dword [ebp + 0x24], edx
jbe 0x441ad6
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x24]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x20]
lea edx, [ecx + eax*2]
push edx
call fcn.004710bc
add esp, 0x10
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 0x24]
mov word [eax], cx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x441af0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 0x4400000
push 3
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x441b35
mov ecx, dword [ebp - 8]
call fcn.00440e20
xor eax, eax
jmp 0x441b38
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x441b40
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x441b5b
mov ecx, dword [ebp - 8]
call fcn.00440e20
xor eax, eax
jmp 0x441b9d
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0046fba0
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x441b9a
mov ecx, dword [ebp - 8]
call fcn.00440e20
xor eax, eax
jmp 0x441b9d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x442c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0046fba0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x492790
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 8]
push ecx
push 0x20119
push 0
lea edx, [ebp - 0x218]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x442ccb
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x445856
xor al, al
jmp 0x445858
mov al, 1
pop ebp
ret
Function at 0x445e90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.0046fba0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x445f00
xor eax, eax
jmp 0x445fe7
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x445fd4
lea eax, [ebp - 0x214]
push eax
call fcn.0047179b
add esp, 4
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], str.EXPLORER.EXE
mov ecx, dword [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x248]
push edx
call fcn.0047157f
add esp, 8
test eax, eax
jne 0x445fb9
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x240]
push ecx
push 0xf01ff
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
jmp 0x445fe7
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x445f25
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret
Function at 0x446000
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.00445e90
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4460dd
push 0x800
push 0
lea eax, [ebp - 0x838]
push eax
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0x83c], 0x400
lea ecx, [ebp - 0x83c]
push ecx
lea edx, [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x20
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0x28], 0x20
lea ecx, [ebp - 0x838]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 1
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x30], 0
je 0x4460dd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [ebp - 0x840], eax
cmp dword [ebp - 0x840], 0
je 0x4460dd
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret
Function at 0x446b00
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a6ef
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x2c]
call fcn.00416ff0
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], 0
je 0x446bbb
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x446bbb
xor ecx, ecx
mov word [ebp - 0x23c], cx
push 0x206
push 0
lea edx, [ebp - 0x23a]
push edx
call fcn.0046fba0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x446bb1
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004170d0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00417050
mov edx, dword [ebp - 0x240]
or edx, 1
mov dword [ebp - 0x240], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00417080
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.0046fd33
mov esp, ebp
pop ebp
ret 8
Function at 0x447f70
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a8a7
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4ae830]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x34]
call fcn.00416ff0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x448115
mov dword [ebp - 0x38], 0
jmp 0x447fe7
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x10]
jge 0x44810b
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax*4]
push edx
lea ecx, [ebp - 0x34]
call fcn.004170d0
push 0
push str._TaskName
lea ecx, [ebp - 0x34]
call fcn.00434330
cmp eax, dword [0x49ca44]
je 0x448106
mov eax, dword [0x49ca44]
push eax
push 0
push 0x4937ac
lea ecx, [ebp - 0x34]
call fcn.00434330
add eax, 1
push eax
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0041ddf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00417130
movzx edx, al
test edx, edx
jne 0x4480fa
lea ecx, [ebp - 0x70]
call fcn.00416ff0
mov byte [ebp - 4], 2
push 0x4937b0
lea ecx, [ebp - 0x70]
call fcn.004170d0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.00417100
push 0x4937d4
lea ecx, [ebp - 0x70]
call fcn.0041c940
mov dword [ebp - 0xac], 0x3c
push 0x38
push 0
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0x9c], 0x4937d8
lea ecx, [ebp - 0x70]
call fcn.00417120
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa8], 0x400
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xa0], 0x4937ec
lea edx, [ebp - 0xac]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00417080
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00417080
jmp 0x447fde
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xb0]
call fcn.00448150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00417080
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret