joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457f2b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x457fe4
xor eax, eax
cmp ax, word [esi]
je 0x457fe4
push 0x410
push eax
lea eax, [ebp - 0x414]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x457fe4
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x457fe0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.downlevel
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x457fe4
mov al, 1
jmp 0x457fe6
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004619c0
leave
ret

Function at 0x4581a1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x60]
mov word [ebp - 0x54], 0x500
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4581f9
lea eax, [ebp - 0x5c]
push eax
push 0x4c
lea eax, [ebp - 0x50]
push eax
push 1
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x60]
test eax, eax
jne 0x458208
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4581f9
push esi
push dword [ebp - 0x64]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
jmp 0x4581fb
Function at 0x45845d
Capabilities:
Get token membership
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x458481
xor al, al
jmp 0x458580
push eax
call fcn.00457cb2
pop ecx
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x4584a0
mov al, 1
jmp 0x458580
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
push 8
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
push 0x12
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0x14], 3
jne 0x4584f5
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x13
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x458570
cmp dword [ebp - 0x1c], 1
jne 0x458570
test esi, esi
je 0x458570
lea eax, [ebp - 0x20]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], ebx
je 0x458570
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret
Function at 0x45858d
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x33c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4585c4
xor al, al
jmp 0x4586b1
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4586a8
lea eax, [ebp - 0x314]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x458691
push dword [ebp - 0x330]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4586a6
cmp dword [ebp + 0xc], ebx
jl 0x458645
or dword [ebp - 0x10c], 0xffffffff
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x458645
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10c], eax
jne 0x45868b
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameA
push 0x3e7
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x33c]
lea eax, [ebp - 0x338]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4585e3
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret
Function at 0x458980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x4a2964
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x458a33
cmp dword [ebp - 0x18], edi
je 0x458a33
movzx eax, word [ebx + 0xe]
mov dword [ebx], 0x28
mov dword [ebx + 0x10], edi
cmp eax, 0x10
jae 0x4589d8
push 4
pop edi
mov cl, al
shl edi, cl
push esi
mov esi, dword [ebx + 0x14]
lea eax, [edi + 0x36]
push dword [ebp - 0x18]
mov dword [ebp - 0xa], eax
mov ecx, 0x4d42
add eax, esi
mov word [ebp - 0x14], cx
mov dword [ebp - 0x12], eax
xor eax, eax
push 0xe
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
mov eax, dword [ebx]
add eax, edi
push eax
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
push esi
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret

Function at 0x458d67
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x10
push 0x4b01a8
call fcn.00462080
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor edi, edi
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x458e40
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x458daa
cmp eax, 0x80010119
jne 0x458e3a
push ebx
push 0x4a4dfc
push 1
push edi
push 0x4a4dec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x458e3a
mov dword [ebp - 4], edi
mov ecx, dword [ebx]
mov esi, dword [ecx]
lea eax, [ebx + 4]
push eax
push edi
push edi
push 0x80
push edi
push edi
push edi
push str.ROOTCIMV2
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x46a894]
call dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x458e10
test eax, eax
js 0x458e33
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push dword [ebx + 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x458e33
mov byte [ebx + 8], 1
xor eax, eax
jmp 0x458e43
mov ecx, ebx
call fcn.00458e53
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458f5b
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
mov esi, ecx
movlpd qword [ebp - 0x10], xmm0
call fcn.00458f09
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x458fd0
cmp dword [edi + 4], 0
je 0x458fd0
push 0x1d4c0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x458fb9
mov eax, dword [edi + 8]
xor esi, esi
inc esi
mov dword [0x4b9ef8], eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x458fd3
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.00458fef
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 8]
jmp 0x458fd3
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x458fdf
call fcn.004126fd
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004619c0
leave
ret

Function at 0x459091
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 8]
push eax
push 4
push edx
push 0x459100
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x4590bc
xor al, al
jmp 0x4590ed
mov eax, dword [esi]
push dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
add ecx, 0xc
call fcn.0040d270
mov eax, dword [esi]
mov ecx, 0x4b9de8
push dword [eax + 8]
push dword [ebp + 8]
call fcn.00458ece
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x4591ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45922f
cmp dword [ebp - 8], 1
je 0x459204
cmp dword [ebp - 8], 2
jne 0x45921f
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x459229
test ecx, ecx
je 0x459224
test cl, 1
jne 0x45921f
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x459229
push 0xd
pop eax
jmp 0x45922f
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret 0xc
Function at 0x4594ad
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 2
push eax
xor edi, edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.00454977
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push esi
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
test esi, esi
je 0x45950d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004619c0
leave
ret 0x10
Function at 0x4597bc
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b5898]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
je 0x4597e6
lea eax, [ebp - 0x20]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4597e6
mov eax, dword [ebp - 0x1c]
jmp 0x4597e8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004619c0
leave
ret

Function at 0x459830
Capabilities:
Start service

Disassembly:
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x459848
xor al, al
jmp 0x45986b
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004597bc
inc esi
cmp eax, 4
je 0x459868
cmp esi, 0x64
jl 0x459848
cmp eax, 4
sete al
pop edi
pop esi
ret

Function at 0x45b76c
Capabilities:
Read file via mapping

Disassembly:
push 0x10
push 0x4b0540
call fcn.00462080
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 0x28]
xor ebx, ebx
cmp dword [eax + 0x18], ebx
je 0x45b78e
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x45b7f3
mov edi, ebx
cmp dword [esi], edi
je 0x45b7b3
push dword [ebp + 8]
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
je 0x45b7f3
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 1
mov al, byte [ecx + edi]
mov byte [ecx + edi], al
mov al, byte [edi + edx - 1]
mov byte [edi + edx - 1], al
mov dword [esi + 0xc], edx
mov byte [ebp - 0x19], 1
jmp 0x45b7f3
mov dword [ebp - 4], 0xfffffffe
add esi, 0x28
cmp dword [esi + 0x18], ebx
je 0x45b809
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45e0b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x45e0be
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
ret 0x14

Function at 0x45e4a1
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x45e5c1
xor eax, eax
cmp ax, word [edi]
je 0x45e5c1
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x45e4cc
call fcn.0045e3dc
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x45e5c1
test eax, eax
je 0x45e5c1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x40
jb 0x45e5c1
push ebx
push edi
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x45e5c1
test eax, eax
je 0x45e5c1
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x45e5c1
lea edx, [ecx + edi]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
cmp eax, 0x40
jb 0x45e5c1
lea edi, [eax + ecx]
lea eax, [edi + 0xf8]
mov dword [esi + 0x10], edi
cmp edx, eax
jb 0x45e5c1
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x45e5c1
cmp dword [edi], 0x4550
jne 0x45e5c1
movzx eax, word [edi + 4]
mov edx, 0x14c
mov ecx, eax
cmp cx, dx
je 0x45e5a1
mov edx, 0x8664
cmp cx, dx
je 0x45e598
mov ecx, 0xaa64
cmp ax, cx
jne 0x45e5c1
mov bl, 1
mov eax, 0x108
jmp 0x45e5a6
mov eax, 0xf8
lea edx, [edi + eax]
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], edx
movzx ecx, word [edi + 6]
imul ecx, ecx, 0x28
add ecx, edx
cmp dword [ebp - 4], ecx
jb 0x45e5c1
mov al, 1
jmp 0x45e5ca
mov ecx, esi
call fcn.0045e3dc
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x460bb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp byte [ebp + 0x10], 0
je 0x460bde
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
pop esi
pop ebp
ret 0xc
Function at 0x409853
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4098cd
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x4008
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4098b6
cmp dword [ebp + 0x14], 1
je 0x4098bb
cmp dword [ebp + 0x14], 2
je 0x4098bb
xor eax, eax
mov word [esi], ax
push dword [ebp - 4]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0x14

Function at 0x4098f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4165cc]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x4165d0]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40993c
test edi, edi
jne 0x4098fd
mov word [esi], ax
jmp 0x40993e
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x409b59
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409b77
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
ret 4

Function at 0x438caa
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
sub esp, 4
mov dword [esp], 0xa6a859bb
pop eax
sub eax, 0x6bb77bc3
call fcn.00438ced
dec edi
mov edi, 0xe26d2f93
or eax, eax
xor dword [ecx], edx
add eax, 0xa2acab1c
dec edi
inc ecx
sub edi, edi
add eax, edi
cmp ecx, esi
jne fcn.00438caa
sub edi, 1
ret
Function at 0x10119ee
Capabilities:
Encode data using xor

Disassembly:
stosb byte es:[edi], al
ret 0x7d6a
cmp al, 0x1a
dec edi
push es
push ds
out dx, eax
mov bh, 0x67
xor cl, byte [ebx - 0x50db0ba4]
inc byte [eax]
push ebx
push esp
jno 0x10119c2
fadd st(6)
jecxz 0x1011a19
fbstp tbyte [ebp - 0x7b]
sal dword [edx], 0xb6
jb 0x1011950
xchg esp, eax
sub esi, dword [ebp - 0x18]
or dword [ebp - 0x4f2558f8], edx
pop edx
mov edi, 0x727859ed
or byte [edi - 0x40a54f26], ah
in eax, dx
pop ecx
js 0x1011a34
mov bl, 0x22
pushfd
dec edx
movsb byte es:[edi], byte [esi]
xchg byte [edi - 0x16a972ac], ah
xchg ecx, eax
in al, 0x64
pushfd
scasb al, byte es:[edi]
inc esp
xchg esi, eax
cmp al, 0x89
push 2
mov esi, eax
xchg esp, eax
cmp eax, 0xe6d3a951
stosb byte es:[edi], al
xor ebx, eax
mov bl, 0x7b
jge 0x10119b8
invalid
pop ecx
mov byte [0xca70387a], al
push ds
cwde
mov ah, 0x8b
je 0x1011a2e
jno 0x1011992
ljmp 0x197a:0xb687f4e
mov edx, 0xdb381094
sbb dword [ecx + 0x6ed1d022], ebp
cmp byte [ebx + 0x9bd43f0], bh
cmpsb byte [esi], byte es:[edi]
loope 0x1011a88
fist word [ebx + 0x5b]
push ebx
pop ebx
salc
pop si
xchg edi, eax
xchg edx, eax
sbb ah, byte [edi]
pop edx
inc esi
xchg edx, eax
and al, cl
jbe 0x1011a9f
mov ss, word [ebp + ebx*2 + 0x39]
cmp edx, dword [esi - 0x93b6643]
mov dword [0xae5f9e80], eax
cld
js 0x1011aba
ja 0x1011aa7
mov cl, 0x6d
cmp dword [eax + 0x71fbd6d7], esi
dec ecx
jno 0x1011aa4
out 0xcc, al
cld
in eax, dx
mov eax, 0x2d11fbf7
and dword [edi + 0x11], ebp
popal
ror byte [esp + esi*4], 1
retf 0x37fe
jmp 0x7e3afd06
jae 0x1011a59
adc ebx, dword [ebp - 0x4384084e]
idiv dword [ebx - 0x44]
mov byte [0xf4748099], al
inc ebp
or dword [ecx], 0x4c
fsub st(7)
and esi, dword [edi + 0x29b5c616]
push 0xffffffffffffffbc
pushfd
lodsb al, byte [esi]
pop ss
xor eax, 0x571fa2d3
xchg dword [ebx], edi
out dx, eax
pop ss
aas
cld
rcr ch, cl
fnstenv [ebx + 0x2f]
scasd eax, dword es:[edi]
sar byte [ecx], 1
imul esi, dword [ecx], 0xffffffd9
cmp dword [edx], esi
adc dword [ecx], eax
inc ebx
lcall 0xd6b0, 0x82de8147
sbb edx, ecx
mov edi, 0x28f7ae5c
or byte [eax], ch
mov dl, 0xe1
ret 0x34e5