joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0042d850
mov eax, dword [0x445824]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0xc04]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4179e6
dec eax
test eax, eax
jle 0x41787b
mov ecx, 0x5c
lea ecx, [ecx]
cmp word [ebp + eax*2 - 0xc04], cx
je 0x417871
dec eax
test eax, eax
jg 0x417860
jmp 0x41787b
xor ecx, ecx
mov word [ebp + eax*2 - 0xc02], cx
push esi
push edi
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov byte [ebp - 0x404], 0
call fcn.00422ed0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0xc04]
push eax
push 0
push 0
call esi
push 0
push 0
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0xc04]
push edx
push 0
push 0
call esi
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
jmp 0x4178e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4178e0
sub eax, edx
lea ecx, [ebp - 0x404]
push ecx
mov edx, eax
call fcn.00416f40
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1402]
push eax
mov word [ebp - 0x1404], dx
call fcn.00422ed0
lea eax, [ebp - 0x404]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417920
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, edx
inc eax
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0
call esi
lea ecx, [ebp - 0x404]
lea edi, [ecx + 1]
jmp 0x417950
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x417950
push eax
sub ecx, edi
lea edx, [ebp - 0x1404]
push edx
inc ecx
push ecx
lea eax, [ebp - 0x404]
push eax
push 0
push 0
call esi
lea ecx, [ebp - 0x1408]
push ecx
push str.SYSTEMCurrentControlSetControlVersionForcorResourcesTimeZone
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
pop edi
pop esi
test eax, eax
jne 0x4179d9
lea edx, [ebp - 0x1404]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x1408]
add eax, eax
push eax
lea eax, [ebp - 0x1404]
push eax
push 1
push 0
push str.WorkPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4179d9
mov edx, dword [ebp - 0x1408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
Function at 0x4185b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4185ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4185ca
xor eax, eax
ret
mov eax, 1
ret
Function at 0x41d1a0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push 0x41d180
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
push 0x41ac90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x44faec], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x44faec]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret
Function at 0x41d270
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x445824]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x44ec68
push 0
push 0
push 0x2c
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_SharedVGXVGXlong.sys
push 0x44ec68
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44ec68
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [0x451504], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x44ec68
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x500000
jbe 0x41d310
push 0x44ec68
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x451504]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebx]
xor esi, esi
push esi
push 0x45055c
push 0x43d8bc
push 0x800
push edx
call dword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x41d34f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
mov eax, dword [0x45055c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x450a94
push 0x43d8dc
push eax
call edx
test eax, eax
js 0x41d33c
mov eax, dword [0x450a94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x43d8a4
push eax
call edx
test eax, eax
js 0x41d33c
mov eax, dword [0x450a94]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx]
mov ecx, dword [eax]
push 0xa
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x41d33c
mov eax, dword [0x450a94]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x3c
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x41d33c
mov eax, dword [0x450a94]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
test eax, eax
js 0x41d33c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x14
mov dword [0x453c60], eax
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
cmp ax, 0xff81
je 0x41d40d
mov dword [0x451f74], esi
cmp ax, 1
jne 0x41d417
mov dword [0x451f74], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
Function at 0x41d430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x451504]
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 2
push 4
push 0
push 2
push 0x40000000
push 0x44ec68
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d4a4
push 2
push 0
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x451504]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d4b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x445824]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
push 0
push 0x453448
call fcn.00422ed0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x800
push 0x453448
push eax
mov dword [0x4529e4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x806]
push ecx
xor esi, esi
mov word [ebp - 0x808], ax
call fcn.00422ed0
mov edx, dword [0x4529e4]
add esp, 0xc
cmp edx, dword [0x4524ac]
je 0x41d5b9
push 0x453448
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x41d5ad
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
movzx eax, word [ebp - 0x810]
push ecx
movzx ecx, word [ebp - 0x812]
push edx
movzx edx, word [ebp - 0x816]
push eax
movzx eax, word [ebp - 0x818]
push ecx
push edx
push eax
push 0x453448
lea ecx, [ebp - 0x808]
push 0x440eb8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edi, [ebp - 0x808]
call fcn.0041d430
push 0x800
push esi
push 0x453448
call fcn.00422ed0
add esp, 0x30
mov esi, 1
mov edx, dword [0x4529e4]
mov dword [0x4524ac], edx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041fa5e
mov esp, ebp
pop ebp
ret
Function at 0x41fa5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445824]
jne 0x41fa68
repz ret
jmp fcn.004266e7

Function at 0x432c0d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445824]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00428d95
and dword [ebp - 0x14], 0
cmp dword [0x44de34], 0
mov dword [ebp - 0x18], eax
jne 0x432cc0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432d68
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432d68
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44de34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44de38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44de3c], eax
call edi
push eax
call esi
mov dword [0x44de44], eax
test eax, eax
je 0x432cc0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44de40], eax
mov eax, dword [0x44de40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432d19
cmp dword [0x44de44], ecx
je 0x432d19
push eax
call esi
push dword [0x44de44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432d19
test ebx, ebx
je 0x432d19
call edi
test eax, eax
je 0x432d10
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432d10
test byte [ebp - 8], 1
jne 0x432d19
or dword [ebp + 0x10], 0x200000
jmp 0x432d4c
mov eax, dword [0x44de38]
cmp eax, dword [ebp - 0x18]
je 0x432d4c
push eax
call esi
test eax, eax
je 0x432d4c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432d4c
mov eax, dword [0x44de3c]
cmp eax, dword [ebp - 0x18]
je 0x432d4c
push eax
call esi
test eax, eax
je 0x432d4c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44de34]
call esi
test eax, eax
je 0x432d68
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432d6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa5e
leave
ret
Function at 0x1001956
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1001987
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100198e
cmp ebx, dword [ebp + 8]
jae 0x100198e
xor eax, eax
jmp 0x1001b7e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100199f
xor eax, eax
inc eax
jmp 0x1001b7d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10019b5
cmp ecx, edx
jae 0x1001afa
cmp dword [eax + 4], 0
je 0x10019be
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10019a6
cmp dword [ebp + 8], 0
je 0x10019e0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1001afa
cmp eax, esi
jae 0x1001afa
mov eax, dword [0x1003018]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1001a05
cmp dword [esi*4 + 0x1003020], edi
je 0x1001afe
inc esi
cmp esi, eax
jl 0x10019f3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001b7a
cmp dword [ebp - 8], 0x1000000
jne 0x1001b7a
test byte [ebp - 0xc], 0xcc
je 0x1001a83
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1001b7a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001b7a
cmp word [eax + 0x18], 0x10b
jne 0x1001b7a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1001b7a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1001a83
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1001a83
test byte [ecx + 0x27], 0x80
jne 0x1001afa
push 1
push 0x1003060
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1001997
mov ecx, dword [0x1003018]
test ecx, ecx
mov edx, ecx
jle 0x1001ab7
lea eax, [ecx*4 + 0x100301c]
cmp dword [eax], edi
je 0x1001ab7
dec edx
sub eax, 4
test edx, edx
jg 0x1001aab
test edx, edx
jne 0x1001ae8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1001ac4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1001adc
lea eax, [edx*4 + 0x1003020]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1001aca
cmp ecx, 0x10
jge 0x1001ae8
inc ecx
mov dword [0x1003018], ecx
push 0
push 0x1003060
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1001997
xor eax, eax
jmp 0x1001b7d
test esi, esi
jle 0x1001997
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1003060
call ebx
test eax, eax
jne 0x1001997
cmp dword [esi*4 + 0x1003020], edi
je 0x1001b54
mov eax, dword [0x1003018]
lea esi, [eax - 1]
test esi, esi
jl 0x1001b42
cmp dword [esi*4 + 0x1003020], edi
je 0x1001b3e
dec esi
jns 0x1001b32
test esi, esi
jge 0x1001b52
cmp eax, 0x10
jge 0x1001b4d
inc eax
mov dword [0x1003018], eax
lea esi, [eax - 1]
jmp 0x1001b54
je 0x1001b6c
xor ecx, ecx
test esi, esi
jl 0x1001b6c
lea eax, [ecx*4 + 0x1003020]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1001b5a
push 0
push 0x1003060
call ebx
jmp 0x1001997
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001a90
call fcn.010017b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10013c4
cmp eax, esi
jne 0x10013b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10013c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100139e
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10013da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001409
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001403
mov dword [0x100236c], esi
push 0x10010b8
push 0x10010ac
call fcn.01001300
pop ecx
pop ecx
test eax, eax
je 0x1001409
jmp 0x100152d
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100142d
push 0x10010a8
push 0x10010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x100145b
push 0x1002374
call fcn.01001729
pop ecx
test eax, eax
je 0x100145b
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10014c5
cmp cx, bx
je 0x1001480
cmp dword [ebp - 0x1c], ebx
jne 0x10014c5
movzx ecx, word [eax]
cmp cx, bx
je 0x1001495
cmp cx, 0x20
ja 0x1001495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001480
test byte [ebp - 0x40], 1
je 0x10014a1
movzx ecx, word [ebp - 0x3c]
jmp 0x10014a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x100150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10014d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100146a
cmp dword [0x1002034], ebx
jne 0x1001518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x1001539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010017f9
ret
call fcn.01001901
jmp 0x1001361
Function at 0x100aadd
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
je 0x100ab81
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
push edi
mov edi, 0x10013b4
push edi
push eax
call esi
push edi
push ebx
call esi
add esp, 0x10
jmp 0x100ab5d
push 0x100139c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100ab65
push 0x1001380
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100ab73
push 0xffffffffffffffff
push 0x100136c
push 0xffffffffffffffff
push ebx
xor ebx, ebx
inc ebx
push ebx
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x100ab56
mov eax, dword [ebp + 8]
mov dword [eax], ebx
push edi
push 0
call esi
pop ecx
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x100ab16
jmp 0x100ab7f
mov dword [ebp - 4], 1
call fcn.01011864
jmp 0x100ab7f
mov dword [ebp - 4], 1
call fcn.01011458
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 4

Function at 0x100cebf
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0xc]
lea ebx, [esi + 0x50]
push ebx
xor edi, edi
push edi
push esi
push 0x100d168
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x100cf20
mov dword [ebp - 4], edi
push 1
mov edi, 0x1038860
push edi
call fcn.0102667d
mov ecx, dword [0x1038858]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], esi
call fcn.0100cf37
push edi
mov esi, eax
call fcn.01024fbf
jmp 0x100cf2b
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov esi, SysReAllocStringLen
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100e3e8
Capabilities:
Access the windows event log
Check if file exists
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1037f7c]
push ebx
push esi
push edi
push dword [0x1037260]
xor ebx, ebx
push ebx
push 6
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
cmp esi, ebx
mov edi, 0x148
jne 0x100e487
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100e47b
push ebx
lea eax, [ebp - 0x30]
push eax
call fcn.0100e015
cmp eax, ebx
mov dword [ebp - 0x14], eax
jl 0x100e4bb
push dword [0x1037260]
lea eax, [ebp - 0x30]
push edi
push ebx
mov dword [ebp - 0xc], eax
push 0x8000004
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
jne 0x100e470
mov dword [ebp - 0x14], 0x80041003
push dword [ebp - 0x20]
call fcn.0100dbce
pop ecx
jmp 0x100e482
mov dword [ebp - 0x14], 0x80041003
cmp dword [ebp - 0x14], ebx
jl 0x100e4b0
push edi
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
jne 0x100e49e
mov dword [ebp - 0x14], 0x80041003
cmp dword [ebp - 0x14], ebx
jl 0x100e4b0
mov dword [0x1038914], esi
mov dword [0x1038918], eax
jmp 0x100e528
cmp esi, ebx
je 0x100e4bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100e528
mov eax, dword [0x1037260]
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 1
push dword [ebp - 0x18]
push 0x80000040
push ebx
push 2
push dword [0x1038928]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x100e51f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
call fcn.010248c0
leave
ret
Function at 0x1011231
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1037f7c]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x20c], ecx
call fcn.01010b83
xor eax, eax
cmp edi, eax
je 0x1011294
push 0x100130c
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.01011193
push edi
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.01011193
xor eax, eax
push eax
lea ecx, [ebp - 0x208]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x204]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10112e6
test ebx, ebx
je 0x10112ea
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x20c]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10112ea
xor eax, eax
jmp 0x10112f9
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010248c0
leave
ret 0x10

Function at 0x101130d
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1037f7c]
push ebx
push esi
push edi
lea esi, [ebp + 0x10]
lea edi, [ebp - 0x414]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov esi, 0x80
push esi
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x1003f30
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.01010b83
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.01011193
push 0x1003f14
lea eax, [ebp - 0x104]
push eax
push 0x1003f08
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01011165
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x14
lea eax, [ebp - 0x204]
push eax
mov ebx, SysReAllocStringLen
push ebx
call edi
cmp dword [ebp + 8], 0
je 0x1011407
push 0x1003ef8
push esi
lea eax, [ebp - 0x304]
push eax
call fcn.01010b83
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x304]
push eax
call fcn.01011193
lea eax, [ebp - 0x304]
push eax
push ebx
call edi
push 0x1003edc
lea eax, [ebp - 0x104]
push eax
push 0x1003f08
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01011165
add esp, 0x14
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
cmp dword [ebp + 0xc], 0
je 0x1011438
push 0x1003ebc
lea eax, [ebp - 0x104]
push eax
push 0x1003f08
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01011165
add esp, 0x14
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
lea eax, [ebp - 0x104]
push eax
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.010248c0
leave
ret 0x18