joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477880
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x4778ba
cmp dword [esp + 0x34], esi
je 0x4778ba
push 0x200
call fcn.0048c93d
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x4778c5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477a24
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x4779ba
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x47791d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477993
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x477988
mov eax, edi
mov dword [edi], 0x5c2e5c5c
call fcn.004777f0
cmp edx, ebx
jb 0x477988
ja 0x477982
cmp eax, dword [esp + 0x24]
jbe 0x477988
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
inc esi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
je 0x477910
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
ja 0x4779d0
cmp dword [esp + 0x24], 0
jbe 0x477a24
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push str._012I64X
push 0x200
call fcn.004758a0
add esp, 0x10
test eax, eax
jne 0x477a09
push edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.0048c860
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push edi
push edx
push str.MAC:
call fcn.00477420
add esp, 0xc
mov dword [esp + 0x18], eax
push edi
call fcn.0048c860
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x47a530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4e6228]
xor edi, edi
cmp ecx, edi
jne 0x47a57b
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
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x47a588
mov dword [ebp - 0x14], edi
jmp 0x47a5a0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x47a646
mov ecx, dword [0x4e6228]
mov eax, dword [ecx]
cmp eax, edi
je 0x47a567
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47a567
mov dword [ebp - 4], edi
mov ebx, 0x4e6228
call fcn.0047a660
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x47a5de
mov dword [ebp - 0x18], 1
push 0x4cd9e8
lea eax, [ebp - 0x18]
push eax
call fcn.0048f048
mov ecx, dword [0x4e6228]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x47a5f8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x47a60d
mov dword [ebp - 0x1c], 4
push 0x4cd9e8
lea edx, [ebp - 0x1c]
push edx
call fcn.0048f048
mov dword [ebp - 4], 0xffffffff
jmp 0x47a632
mov eax, dword [0x4e6228]
mov eax, dword [eax]
test eax, eax
je 0x47a644
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a660
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x47a68d
xor ecx, ecx
jmp 0x47a699
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x47a74d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x47a6c0
mov dword [esp + 0xc], esi
jmp 0x47a720
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x47a719
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47a70c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x47a720
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47a720
push 0x4c4440
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x47a720
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x47a743
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x47a6b2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x47a761
mov ecx, dword [ebx]
add ecx, 8
call fcn.0047a8d0
test eax, eax
je 0x47a761
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x47a770
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4ad4ab
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.0048f0a0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x47a808
push 0x4cd9e8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0048f048
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x47aa80
Capabilities:
Terminate process

Disassembly:
cmp eax, 0xffffffff
jne 0x47aa88
xor al, al
ret
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x47aabd
test esi, esi
je 0x47aabd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
je 0x47aab7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
Function at 0x47adb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0048f0a0
add esp, 0xc
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x47ae09
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x20c
ret
push str.ntdll.dll
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x47adf2
push str.RtlGetVersion
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x20c
ret

Function at 0x47ae50
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.0048f0a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x47ae9c
mov eax, 1
cmp dword [esp + 8], eax
je 0x47ae9e
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x118
ret

Function at 0x47aec0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.0048f0a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0048ac3c
add esp, 0x118
ret
Function at 0x47b3b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4afbcb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp esi, 0x23
je 0x47b40c
cmp esi, 0x1a
je 0x47b40c
mov eax, 0x4bcd08
mov ecx, edi
call fcn.00404900
jmp 0x47b511
push 0x206
lea ecx, [esp + 0x32]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x38], ax
call fcn.0048f0a0
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x47b45b
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], ax
push ebx
mov eax, 0x4bcd08
mov esi, edi
call fcn.004052b0
jmp 0x47b511
xor ecx, ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47b475
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
lea esi, [esp + 0x14]
call fcn.004052b0
push str.360TotalSecurity
mov eax, 0x11
mov edx, esi
mov dword [esp + 0x244], ebx
call fcn.0040adf0
mov eax, esi
cmp byte [esp + 0x248], bl
jne 0x47b4e5
push 0xffffffffffffffff
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
mov ecx, edi
mov word [edi + 4], dx
call fcn.00404cb0
cmp dword [esp + 0x28], 8
jb 0x47b511
mov eax, dword [esp + 0x14]
push eax
call fcn.00480ff0
add esp, 4
jmp 0x47b511
call fcn.00480ee0
test al, al
je 0x47b4fc
lea ecx, [esp + 0x10]
push ecx
mov esi, edi
call fcn.00404940
jmp 0x47b508
mov eax, 0x4bcd08
mov ecx, edi
call fcn.00404900
lea ecx, [esp + 0x10]
call fcn.00404970
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x238
ret

Function at 0x47bd20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4af131
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], edx
mov dword [esp + 0x14], edi
mov byte [edi + 4], dl
mov dword [esp + 0x3c], edx
mov eax, dword [eax]
xor ecx, ecx
mov word [esp + 0x1c], cx
mov ecx, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edx
lea ebx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, dx
jne 0x47bd86
sub ecx, ebx
sar ecx, 1
push ecx
lea esi, [esp + 0x1c]
call fcn.004052b0
push edi
mov ecx, esi
mov dword [esp + 0x40], 1
call fcn.0047bbb0
add esp, 4
cmp dword [esp + 0x30], 8
jb 0x47bdc6
mov edx, dword [esp + 0x1c]
push edx
call fcn.00480ff0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x47c190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c21b
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push str.Path
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c1f5
sub eax, edx
sar eax, 1
je 0x47c21d
cmp word [esi + eax*2 - 2], 0x5c
je 0x47c21d
mov edx, 0x5c
mov word [esi + eax*2], dx
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x47e640
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x4e0dcc]
test eax, eax
jl 0x47e67b
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x144
ret
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x4e0dcc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.0048f0a0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x47e6eb
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x47e73d
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47e73d
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x47e71d
cmp ax, 6
jne 0x47e73d
mov eax, 1
mov dword [0x4e0dcc], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor al, al
call fcn.0048ac3c
add esp, 0x144
ret
Function at 0x47efe0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b096d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x4e3954]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3954
call edx
add eax, 0x10
mov dword [esp + 8], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x230], ebx
push ecx
mov word [esp + 0x20], ax
call fcn.0048f0a0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x47f0e8
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f070
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00403b30
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0048f0a0
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0
push 0x4c5360
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x47f0e8
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f0c4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403b30
lea eax, [esp + 8]
jmp 0x47f114
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3954
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ebx, 1
mov byte [esp + 0x228], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00406650
add eax, 0x10
or ebx, 2
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x228], 0
test bl, 1
je 0x47f15a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f15a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x224
ret
Function at 0x480ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0
push esi
je 0x480f12
cmp dword [eax + 0x18], 8
jb 0x480ef2
mov esi, dword [eax + 4]
jmp 0x480ef5
lea esi, [eax + 4]
test esi, esi
je 0x480f12
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x480f16
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x480f1a
xor eax, eax
pop esi
ret
test al, 0x10
je 0x480f12
mov eax, 1
pop esi
ret

Function at 0x48ac3c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4dbe18]
jne 0x48ac46
repz ret
jmp fcn.0049115b

Function at 0x4a18fa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00493b80
and dword [ebp - 4], 0
cmp dword [0x4e38b0], 0
mov ebx, eax
jne 0x4a19ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a1a5c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a1a5c
push eax
call fcn.00493b0e
mov dword [esp], 0x4bc790
push edi
mov dword [0x4e38b0], eax
call esi
push eax
call fcn.00493b0e
mov dword [esp], 0x4bc77c
push edi
mov dword [0x4e38b4], eax
call esi
push eax
call fcn.00493b0e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e38b8], eax
call esi
push eax
call fcn.00493b0e
pop ecx
mov dword [0x4e38c0], eax
test eax, eax
je 0x4a19ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00493b0e
pop ecx
mov dword [0x4e38bc], eax
mov eax, dword [0x4e38bc]
cmp eax, ebx
je 0x4a1a03
cmp dword [0x4e38c0], ebx
je 0x4a1a03
push eax
call fcn.00493b89
push dword [0x4e38c0]
mov esi, eax
call fcn.00493b89
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a1a03
test edi, edi
je 0x4a1a03
call esi
test eax, eax
je 0x4a19fa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a19fa
test byte [ebp - 0xc], 1
jne 0x4a1a03
or dword [ebp + 0x10], 0x200000
jmp 0x4a1a3c
mov eax, dword [0x4e38b4]
cmp eax, ebx
je 0x4a1a3c
push eax
call fcn.00493b89
pop ecx
test eax, eax
je 0x4a1a3c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a1a3c
mov eax, dword [0x4e38b8]
cmp eax, ebx
je 0x4a1a3c
push eax
call fcn.00493b89
pop ecx
test eax, eax
je 0x4a1a3c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e38b0]
call fcn.00493b89
pop ecx
test eax, eax
je 0x4a1a5c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a1a5e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a783b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4e38d8], 0
push esi
jne 0x4a77ae
call fcn.004a76d4
test eax, eax
je 0x4a77f1
mov eax, dword [0x4e38d8]
cmp eax, 1
jne 0x4a77cf
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a77f1
pop esi
ret
push eax
call dword [0x4e38e0]
test eax, eax
jne 0x4a7839
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4a77f5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4e38d8]
call dword [0x4e38e0]
mov edi, eax
test edi, edi
je 0x4a781a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4a7836
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4e38d8]
call dword [0x4e38dc]
add edi, 0x10
cmp edi, esi
jb 0x4a7822
mov eax, edi
pop edi
pop esi
ret
jmp 0x4a779b

Function at 0x4a9320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x4a9358
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0048f0a0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4a9423
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4a9390
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x4a9423
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a93b2
mov eax, dword [0x4bd884]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a93d0
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a93e4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0048ac3c
add esp, 0x20c
ret
Function at 0x4a9b70
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00491130
mov eax, dword [0x4dbe18]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x4a9cdb
cmp dword [esp + 0x2c20], edi
je 0x4a9cdb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push pe_nt_image_headers32
push eax
call fcn.004a9590
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4a9cb4
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0048f0a0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a9ca7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.0048f0a0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.004ab480
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.004a9490
test eax, eax
jne 0x4a9ca7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x4a9cbe
inc ebx
cmp ebx, 0x10
jl 0x4a9bc0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0048ac3c
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0048ac3c
add esp, 0x2c14
ret