joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46be10
Capabilities:
Check if file exists
Create directory
Get file attributes
Link many functions at runtime

Disassembly:
push esi
push 0x6d103c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push eax
mov dword [0x72a064], eax
call esi
mov dword [0x72a270], eax
mov eax, dword [0x72a064]
push str.ZwQueryInformationFile
push eax
call esi
mov ecx, dword [0x72a064]
push 0x6d3150
push ecx
mov dword [0x72a280], eax
call esi
mov edx, dword [0x72a064]
push 0x6d1024
push edx
mov dword [0x72a278], eax
call esi
mov dword [0x72a274], eax
mov eax, dword [0x72a064]
push str.ZwSetInformationFile
push eax
call esi
mov ecx, dword [esp + 8]
mov dword [0x72a27c], eax
push ecx
mov eax, SysReAllocString
mov ecx, 0x104
mov edx, 0x72a068
call fcn.0046a1f0
pop esi
test eax, eax
jge 0x46bea9
xor edx, edx
mov word [0x72a068], dx
lea eax, [edx + 0x57]
ret
push 0x72a068
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46bed0
push 0
push 0x72a068
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46bed0
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
ret

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

Disassembly:
sub esp, 0x210
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
push ebx
xor esi, esi
call ebp
cmp eax, 0xffffffff
jne 0x46c180
mov esi, 3
mov dword [esp + 8], 0
test ebx, ebx
je 0x46c165
push edi
lea edi, [esp + 0xc]
mov ecx, 0x104
mov edx, ebx
call fcn.0046a1b0
pop edi
test eax, eax
jl 0x46c16a
mov ecx, dword [esp + 8]
add ecx, ecx
jmp 0x46c16c
mov eax, 0x80070057
xor ecx, ecx
test eax, eax
jne 0x46c180
shr ecx, 1
je 0x46c180
cmp word [ebx + ecx*2], 0x5c
je 0x46c199
sub ecx, 1
jne 0x46c174
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005c397a
add esp, 0x210
ret
lea esi, [ebx + ecx*2]
test esi, esi
je 0x46c1f9
push 0x72a068
mov eax, SysReAllocString
mov ecx, 0x104
lea edx, [esp + 0x10]
call fcn.0046a1f0
push esi
lea esi, [esp + 0x10]
call fcn.0046a170
mov eax, esi
push eax
call ebp
cmp eax, 0xffffffff
je 0x46c1f9
mov ecx, esi
push ecx
mov eax, SysReAllocString
mov ecx, 0x104
mov edx, ebx
call fcn.0046a1f0
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005c397a
add esp, 0x210
ret
mov ecx, dword [esp + 0x214]
pop esi
pop ebp
xor ecx, esp
mov eax, 3
call fcn.005c397a
add esp, 0x210
ret
Function at 0x46cd70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x680
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x67c], eax
mov eax, dword [esp + 0x684]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
push 0x72a068
mov eax, SysReAllocString
mov ecx, 0x104
lea edx, [esp + 0x27c]
call fcn.0046a1f0
lea edi, [esp + 0x10]
mov ecx, 0x104
lea edx, [esp + 0x278]
call fcn.0046a1b0
test eax, eax
jl 0x46cde8
mov eax, dword [esp + 0x10]
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x278]
push str..Q
mov eax, closesocket
call fcn.0046a1f0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46cea5
mov edi, dword [sym.imp.RPCRT4.dll_UuidFromStringW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x104
lea eax, [esp + 0x54]
jmp 0x46ce20
cmp word [eax], 0
je 0x46ce30
add eax, 2
sub ecx, 1
jne 0x46ce20
jmp 0x46ce8e
test ecx, ecx
je 0x46ce8e
mov eax, 0x104
sub eax, ecx
add eax, eax
shr eax, 1
sub eax, 4
lea esi, [eax + eax]
push esi
lea eax, [esp + 0x5a]
push eax
lea ecx, [esp + 0x488]
push ecx
call fcn.005c9060
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x484]
xor edx, edx
push ecx
mov word [esp + esi + 0x488], dx
call edi
test eax, eax
jne 0x46ce8e
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00494ae0
add esp, 8
test al, al
je 0x46cea5
lea ecx, [esp + 0x28]
push ecx
push ebx
call ebp
test eax, eax
jne 0x46ce12
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x68c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005c397a
add esp, 0x680
ret
Function at 0x470b90
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x607a63
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov dword [esp + 4], 0x72b4e8
call fcn.0042d9d0
mov dword [esp + 0x1a4], 0
push 0x72b50c
mov dword [0x72b4e8], 0x6d3da0
call fcn.0040b8d0
mov byte [esp + 0x1a4], 1
push 0x72b518
mov dword [0x72b514], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x190
lea eax, [esp + 0xc]
push 0
push eax
mov dword [0x72b510], 0
call fcn.005c8fb0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esp + 0x1a4], 0xffffffff
mov eax, 0x72b4e8
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.005c397a
add esp, 0x1a4
ret

Function at 0x470d70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x607a29
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040b8d0
mov dword [esp + 0x24], esi
push 0x100000
mov dword [esp + 0x18], 1
call fcn.005c40dd
add esp, 4
push 0x100000
mov ebp, eax
push esi
push ebp
call fcn.005c8fb0
mov edi, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
lea ebx, [ebx]
push 0
mov ecx, 0x100000
sub ecx, esi
push ecx
lea edx, [esi + ebp]
push edx
push ebx
call edi
test eax, eax
jle 0x470df9
add esi, eax
jmp 0x470de0
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov byte [esi + ebp], 0
call fcn.0040b760
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00433a20
add esp, 8
mov byte [esp + 0x24], 2
mov edi, dword [esp + 0x2c]
call fcn.0040ddb0
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x18]
call fcn.0040ba40
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x10]
call fcn.0040b810
push ebp
call fcn.005c4000
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x470e70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ff378
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x88], 1
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x13
xor ebx, ebx
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x470ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x470edb
mov eax, dword [esp + 0x18]
mov esi, eax
cmp eax, ebx
jne 0x470edd
mov esi, edi
push 0x44
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.005c8fb0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x14]
mov eax, 1
push ecx
mov dword [esp + 0x38], 0x44
mov word [esp + 0x68], ax
call fcn.0040b8d0
mov byte [esp + 0x88], 2
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
push edx
push eax
push str._s__s
lea edi, [esp + 0x20]
call fcn.0042a2d0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x470f5e
mov ecx, dword [eax - 0xc]
push ecx
mov edx, edi
push edx
call fcn.0040de10
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x470ff2
cmp dword [0x71038c], 3
jl 0x470f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser____i
push str.RunProcessWaitR
push 3
call fcn.00579a92
add esp, 0x10
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x14]
call fcn.0040ba40
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x90]
call fcn.0040ba40
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.0040ba40
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov byte [esp + 0x88], 1
lea ecx, [esp + 0x14]
call fcn.0040ba40
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x90]
call fcn.0040ba40
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.0040ba40
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x7c
ret
Function at 0x475770
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x602e52
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0xd8], eax
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xf0], esi
mov edi, ecx
push edi
mov ecx, str.SYSTEM
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
call fcn.0040b990
mov dword [esp + 0xf0], esi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [esp + 0xc], esi
cmp eax, 0xffffffff
je 0x475862
lea ecx, [esp + 0xc]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x475862
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x475857
push 0xc6
lea ecx, [esp + 0x22]
xor eax, eax
push esi
push ecx
mov word [esp + 0x28], ax
call fcn.005c8fb0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x475851
mov eax, dword [esp + 0x10]
cmp eax, esi
jbe 0x475851
xor ecx, ecx
lea edx, [esp + 0x1c]
mov word [esp + eax*2 + 0x1c], cx
call fcn.0040bab0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.005c397a
add esp, 0xe8
ret

Function at 0x476d30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ff338
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x24], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
add esi, 0xffffffe4
mov word [ecx + 4], ax
push eax
mov eax, esi
call fcn.0040d740
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 0xffffffff
mov ecx, esi
mov edx, esi
mov esi, dword [esp + 0x38]
call fcn.00476e10
add esp, 0x1c
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x477b90
Capabilities:
Create thread
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61648a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x477db1
call fcn.00435ad0
call fcn.00477a10
lea eax, [esp + 0x10]
push str._journal
push eax
mov ecx, 0x72aa04
call fcn.00424670
add esp, 8
mov dword [esp + 0x48], 0
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
or ebx, 0xffffffff
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x10]
call fcn.0040b810
lea ecx, [esp + 0x10]
push str._shm
push ecx
mov ecx, 0x72aa04
call fcn.00424670
add esp, 8
mov dword [esp + 0x48], 1
mov eax, dword [eax]
push eax
call esi
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x10]
call fcn.0040b810
lea edx, [esp + 0x10]
push str._wal
push edx
mov ecx, 0x72aa04
call fcn.00424670
add esp, 8
mov dword [esp + 0x48], 2
mov eax, dword [eax]
push eax
call esi
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x10]
call fcn.0040b810
lea eax, [esp + 0x10]
push eax
call fcn.0043bc20
add esp, 4
mov dword [esp + 0x48], 3
mov edi, 0x72aa0c
call fcn.0040ddb0
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x10]
call fcn.0040ba40
cmp dword [0x71038c], 1
jl 0x477cfd
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
push ecx
call fcn.0040b930
mov dword [esp + 0x4c], 4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x50], ebx
call fcn.00405b60
mov dword [esp + 0x50], 5
mov eax, dword [eax]
push eax
push str.HddId:__s
push str.AVSuiteService::Process
push 1
call fcn.00579a92
add esp, 0x18
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x10]
call fcn.0040b810
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ecx, [esp + 0x24]
push ecx
call fcn.00437ca0
add esp, 4
mov dword [esp + 0x48], 6
mov esi, eax
call fcn.00477dd0
mov dword [esp + 0x48], ebx
lea edx, [esp + 0x24]
push edx
call fcn.004380f0
call fcn.004bae40
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
push 0
push 0
push esi
push 0x477b10
push 0
push 0
mov dword [esp + 0x34], eax
call fcn.005c4af6
add esp, 0x18
push ebx
push 0
lea ecx, [esp + 0x24]
push ecx
push 2
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x477db1
lea edi, [esi + 0xc0]
call fcn.004bcde0
call fcn.00497e50
mov eax, dword [esp + 0x20]
test eax, eax
je 0x477db1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x477db1
mov edx, dword [esp + 0x20]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478360
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607979
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, 0x6ca128
call fcn.0040b990
mov dword [ebp - 4], ebx
mov esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push str.SELECT_c_value_FROM_global_params_WHERE_c_name____
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
call fcn.004cf4b0
mov byte [ebp - 4], 2
push str.LastBackup
push esi
lea eax, [ebp - 0x1c]
call fcn.004cf350
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004cf140
mov byte [ebp - 4], 3
cmp byte [ebp - 0x28], bl
jne 0x4783fe
xor esi, esi
lea edi, [ebp - 0x30]
call fcn.004cece0
mov edx, eax
mov edi, dword [ebp + 0xc]
call fcn.0040bab0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x30]
call fcn.004cebd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004cef10
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x479290
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x602d4e
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x234], eax
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov dword [esp + 0x250], 0
lea edi, [esp + 0x258]
call fcn.0040bd70
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or edi, 0xffffffff
mov dword [esp + 0x14], esi
cmp esi, edi
je 0x479315
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x47934f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x250], edi
lea ecx, [esp + 0x258]
call fcn.0040ba40
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.005c397a
add esp, 0x244
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x479360
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040b990
mov byte [esp + 0x250], 1
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x47939d
mov ecx, esi
lea eax, [esp + 0x10]
call fcn.004123c0
mov edx, dword [esp + 0x10]
lea eax, [esi + 1]
push eax
push edx
call fcn.005c44a8
add esp, 8
test esi, esi
jl 0x479478
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x479478
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + esi*2], cx
mov ecx, dword [esp + 0x258]
test ecx, ecx
je 0x479422
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x479422
push ecx
push eax
call fcn.005c476a
add esp, 8
test eax, eax
je 0x479422
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x479422
mov eax, dword [esp + 0x20]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x479422
push 0
push esi
call ebp
push esi
call edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x250], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47944a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x479360
mov eax, dword [esp + 0x14]
push eax
call edi
mov dword [esp + 0x250], 0xffffffff
jmp 0x47931c
push 0x80070057
call fcn.00403d10
int3
Function at 0x479490
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0
push 4
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x4794c5
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x4794d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
cmp dword [esp + 0x10], ebx
je 0x4794f4
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4794d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x47a3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616130
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 3
mov word [esi], ax
call fcn.00497e50
mov dword [ebp + 0xc], 3
mov dword [ebp - 0x18], edi
mov edi, 4
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
push str.Start
push str.SYSTEMCurrentControlSet_servicesUSBSTOR
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ecx, ecx
cmp dword [ebp + 0xc], edi
sete cl
mov dword [esi + 8], ecx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47a550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6160d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 3
mov word [esi], ax
call fcn.00497e50
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
push str.WriteProtect
push str.SYSTEMCurrentControlSetControlStorageDevicePolicies
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ecx, ecx
cmp dword [ebp + 0xc], edi
setne cl
mov dword [esi + 8], ecx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47a910
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7300
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x47a972
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47a9c5
push 0x80020013
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47b4a0
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x5ff230
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x711ab8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push eax
call fcn.00479510
add esp, 4
test al, al
je 0x47b57a
mov edx, dword [ebp - 0x18]
mov dword [0x72a524], edx
cmp dword [ebp + 0xe0], esi
jne 0x47b517
call fcn.00435600
cmp eax, esi
je 0x47b517
mov dword [0x72a524], eax
mov ecx, dword [0x72a524]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x47b57a
xor edx, edx
mov word [ebp], dx
push 0xc6
push esi
lea eax, [ebp + 2]
push eax
call fcn.005c8fb0
add esp, 0xc
mov dword [ebp - 0x14], 0x64
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x47b574
mov eax, dword [ebp - 0x14]
cmp eax, esi
jbe 0x47b574
xor ecx, ecx
mov word [ebp + eax*2], cx
lea edx, [ebp]
mov edi, 0x72af60
call fcn.0040bab0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.005c397a
add ebp, 0xcc
mov esp, ebp
pop ebp
ret 0x14