joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432b80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62916a
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4f4], 0
lea ecx, [ebp - 0x4f0]
call fcn.0040e480
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], 0
jne 0x432bfb
mov ecx, dword [ebp + 8]
call fcn.0040e480
mov eax, dword [ebp - 0x4f4]
or eax, 1
mov dword [ebp - 0x4f4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f0]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x432d88
lea ecx, [ebp - 0x40c]
push ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x432d5f
mov dword [ebp - 0x14], 0
jmp 0x432c27
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movzx ecx, word [ebp + eax*2 - 0x40c]
test ecx, ecx
je 0x432d5f
push 0x642958
mov edx, dword [ebp - 0x14]
lea eax, [ebp + edx*2 - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x432c6e
push 0x642960
mov ecx, dword [ebp - 0x14]
lea edx, [ebp + ecx*2 - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x432c70
jmp 0x432c1e
mov eax, dword [ebp - 0x14]
mov cx, word [ebp + eax*2 - 0x40c]
mov word [ebp - 0x20], cx
mov edx, dword [ebp - 0x14]
mov ax, word [ebp + edx*2 - 0x40a]
mov word [ebp - 0x1e], ax
xor ecx, ecx
mov word [ebp - 0x1c], cx
push 0x64
lea edx, [ebp - 0x4d4]
push edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x432cd9
mov ecx, dword [ebp + 8]
call fcn.0040e480
mov ecx, dword [ebp - 0x4f4]
or ecx, 1
mov dword [ebp - 0x4f4], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f0]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x432d88
lea edx, [ebp - 0x4d4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x4d4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.005b91c8
add esp, 0xc
test eax, eax
jne 0x432d5a
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0040ed30
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0040ed30
lea ecx, [ebp - 0x4f0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov edx, dword [ebp - 0x4f4]
or edx, 1
mov dword [ebp - 0x4f4], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f0]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x432d88
jmp 0x432c1e
mov ecx, dword [ebp + 8]
call fcn.0040e480
mov eax, dword [ebp - 0x4f4]
or eax, 1
mov dword [ebp - 0x4f4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f0]
call fcn.0040e530
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret
Function at 0x432f80
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.005b50b1
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005b2e02
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005b4dbe
add esp, 8
mov byte [ebp - 1], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x432fea
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jg 0x433058
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5c
jne 0x433056
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov cx, word [eax + edx*2]
mov word [ebp - 0x18], cx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43303f
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43303f
mov byte [ebp - 1], 0
jmp 0x433058
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ax, word [ebp - 0x18]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x432fe1
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.005b467e
add esp, 4
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x435d70
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x435db5
xor eax, eax
jmp 0x435eb4
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x642bd4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x435e92
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.005b4de0
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x428]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x642bd8
lea eax, [ebp - 0x428]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x435e78
xor eax, eax
jmp 0x435eb4
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005b4dbe
add esp, 8
mov eax, 1
jmp 0x435eb4
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005b4dbe
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret
Function at 0x4362f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov word [ebp - 0x440], ax
push 0x206
push 0
lea ecx, [ebp - 0x43e]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x220], dx
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x444], 1
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push 0x642ca0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x4363c3
xor eax, eax
jmp 0x4364b7
lea edx, [ebp - 0x22c]
push edx
push 0x20019
push 0
push 0x642cac
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x4363f6
xor eax, eax
jmp 0x4364b7
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push 0
push 0x642cb8
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x43642c
xor eax, eax
jmp 0x4364b7
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x642cd4
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x440]
push eax
call fcn.005b86e0
add esp, 4
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call fcn.0041c6e0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4364b2
xor eax, eax
jmp 0x4364b7
mov eax, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret
Function at 0x436510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629553
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.005b50b1
add esp, 4
test eax, eax
jne 0x43654d
jmp 0x43660f
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00436710
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4365d7
push 0x642d10
lea ecx, [ebp - 0x48]
call fcn.0040e4b0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x48]
call fcn.0040e590
push 0x642d14
lea ecx, [ebp - 0x48]
call fcn.0040e5b0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040e5b0
lea ecx, [ebp - 0x48]
call fcn.0040e5d0
push eax
call fcn.00436fd0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
jmp 0x43660f
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436af0
add esp, 4
test eax, eax
jne 0x436600
push str.OpenUrl_By_CreateBrowseUrlByDefault_Err
call fcn.0043eb90
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.00436630
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret
Function at 0x436990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629616
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x206
push 0
lea ecx, [ebp - 0x22a]
push ecx
call fcn.005b4de0
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
lea ecx, [ebp + 0x10]
call fcn.0040e5d0
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x436a59
push 0x642f18
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov ecx, dword [ebp - 0x230]
or ecx, 1
mov dword [ebp - 0x230], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x2c]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x436ace
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp + 0x2c]
call fcn.0040e5d0
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov edx, dword [ebp - 0x230]
or edx, 1
mov dword [ebp - 0x230], edx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x2c]
call fcn.0040e530
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.005b4b30
mov esp, ebp
pop ebp
ret
Function at 0x436fd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2060
call fcn.005b5230
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x2060]
push eax
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x2060], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x2018]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x2008], dx
push 0x1ffe
push 0
lea eax, [ebp - 0x2006]
push eax
call fcn.005b4de0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x643010
lea edx, [ebp - 0x2008]
push edx
call fcn.005b50ec
add esp, 0xc
lea eax, [ebp - 0x2018]
push eax
lea ecx, [ebp - 0x2060]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x2008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x43707f
xor eax, eax
jmp 0x43709e
mov eax, dword [ebp - 0x2018]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2014]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret

Function at 0x437300
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x830], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x7e8]
push ecx
call fcn.005b4de0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x643074
lea eax, [ebp - 0x7d8]
push eax
call fcn.005b50ec
add esp, 0xc
lea ecx, [ebp - 0x7e8]
push ecx
lea edx, [ebp - 0x830]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x7d8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4373aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x834], eax
mov ecx, dword [ebp - 0x834]
push ecx
push str.CreateRunProcess_LstErr__d_
call fcn.0043eb90
add esp, 8
jmp 0x4373fb
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x4373e1
cmp dword [ebp + 0x10], 0
jle 0x4373c3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x838], eax
jmp 0x4373cd
mov dword [ebp - 0x838], 0xffffffff
mov ecx, dword [ebp - 0x838]
push ecx
mov edx, dword [ebp - 0x7e8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x7e8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x7e4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret
Function at 0x437410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0
push str.EXPLORER.EXE
call fcn.00437680
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x437466
jmp 0x4375da
lea ecx, [ebp - 8]
push ecx
push 0xf01ff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4375c9
lea eax, [ebp - 0x10]
push eax
push 1
push 1
push 0
push 0xf01ff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4375be
mov dword [ebp - 0x28], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x437507
push str.WTSGetActiveConsoleSessionId
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4374fd
call dword [ebp - 0x28]
mov dword [ebp - 0x80], eax
push 4
lea eax, [ebp - 0x80]
push eax
push 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4374fd
mov dword [ebp - 0xc], 0
jmp 0x4375da
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.005b4de0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x70], str.WinSta0Default
mov edx, 5
mov word [ebp - 0x48], dx
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x430
push 0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x437570
mov dword [ebp - 0xc], 0
jmp 0x4375da
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4375a5
mov dword [ebp - 0xc], 0
jmp 0x4375da
cmp dword [ebp - 0x30], 0
je 0x4375b5
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebp - 0xc], 1
jmp 0x4375c7
mov dword [ebp - 0xc], 0
jmp 0x4375da
jmp 0x4375d2
mov dword [ebp - 0xc], 0
jmp 0x4375da
xor eax, eax
jne 0x437435
cmp dword [ebp - 0x10], 0
je 0x4375f0
cmp dword [ebp - 0x10], 0xffffffff
je 0x4375f0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x437606
cmp dword [ebp - 8], 0xffffffff
je 0x437606
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x437616
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x437680
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62969a
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x4376b8
xor eax, eax
jmp 0x4378ab
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.005b4de0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.005b4dbe
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
call fcn.005b9fa7
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x45c], 0
push 0x228
push 0
lea edx, [ebp - 0x458]
push edx
call fcn.005b4de0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x43774c
xor eax, eax
jmp 0x4378ab
mov dword [ebp - 0x45c], 0x22c
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x43789c
xor edx, edx
mov word [ebp - 0x66c], dx
push 0x206
push 0
lea eax, [ebp - 0x66a]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x66c]
push edx
call fcn.005b4dbe
add esp, 8
lea eax, [ebp - 0x66c]
push eax
call fcn.005b9fa7
add esp, 4
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x460]
push edx
call fcn.005b501e
add esp, 8
test eax, eax
jne 0x437881
cmp dword [ebp + 0xc], 0
je 0x43786c
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x688]
push ecx
call fcn.004379b0
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x688]
push edx
call fcn.0043a5c0
add esp, 4
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x688]
call fcn.0040e5f0
cmp eax, dword [0x63f3a0]
je 0x437858
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x68c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x688]
call fcn.0040e530
mov eax, dword [ebp - 0x68c]
jmp 0x4378ab
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x688]
call fcn.0040e530
jmp 0x437881
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x454]
jmp 0x4378ab
lea ecx, [ebp - 0x45c]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x437771
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret
Function at 0x4379b0
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6296cd
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.005b4de0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x437b32
lea edx, [ebp - 0x224]
push edx
push 4
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x437a47
push 0x104
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x437b32
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
cmp dword [ebp - 0x228], 0
jne 0x437a8a
push 0x643138
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x437b32
cmp dword [ebp - 0x22c], 0
jne 0x437ab8
push 0x64314c
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x437b32
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x437b32
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.00432b80
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0040e5d0
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.005b4dbe
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0040e530
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
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.005b4b30
mov esp, ebp
pop ebp
ret