joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023d0
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push str.softwaremicrosoftwindows_ntcurrentversionwinlogon
push 0x80000002
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xff0ff
call edi
test eax, eax
jne 0x40249d
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x40818c
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402480
sub eax, edx
mov edx, dword [ebp - 4]
inc eax
push eax
push esi
push 1
push 0
lea ecx, [ebp - 0x10c]
push ecx
push edx
jmp 0x4024de
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push str.softwaremicrosoftwindowscurrentversion_run
push 0x80000001
call edi
test eax, eax
jne 0x4024e4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024c5
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push str.userinit
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
je 0x4024fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004028b0
test eax, eax
je 0x4027b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401ff0
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call esi
test eax, eax
jne 0x4027d2
call fcn.00401db0
test eax, eax
je 0x4027d2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
push str.kernel32.dll
mov edi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40280b
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40280b
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], 0
je 0x402863
test edi, edi
je 0x40282b
push str._apppatch_
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402857
lea esi, [ebp - 0x108]
call fcn.004023d0
push 0
push 0x47800
push 0x40d0d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.00401600
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40289e
call fcn.00402510
call fcn.00402240
jmp 0x40289e
test edi, edi
je 0x40288e
push str._apppatch_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x40288e
call fcn.00402510
call fcn.00402360
call fcn.00402240
jmp 0x40289e
lea esi, [ebp - 0x108]
call fcn.004023d0
call fcn.00402360
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x494c7b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x49a358
call fcn.00495558
mov edi, 0x94
mov eax, edi
call fcn.00494260
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4a6d58], ecx
mov eax, dword [esi + 4]
mov dword [0x4a6d64], eax
mov edx, dword [esi + 8]
mov dword [0x4a6d68], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4a6d5c], esi
cmp ecx, 2
je 0x494cdb
or esi, 0x8000
mov dword [0x4a6d5c], esi
shl eax, 8
add eax, edx
mov dword [0x4a6d60], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x494d16
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x494d16
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x494d2e
cmp eax, 0x20b
je 0x494d1b
mov dword [ebp - 0x1c], esi
jmp 0x494d42
cmp dword [ecx + 0x84], 0xe
jbe 0x494d16
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x494d3c
cmp dword [ecx + 0x74], 0xe
jbe 0x494d16
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00496e1b
pop ecx
test eax, eax
jne 0x494d6e
cmp dword [0x4a6d28], 1
jne 0x494d5b
call fcn.004965d0
push 0x1c
call fcn.00496459
push 0xff
call fcn.004962be
pop ecx
pop ecx
call fcn.00496d79
mov dword [ebp - 4], esi
call fcn.00496bce
test eax, eax
jge 0x494d87
push 0x1b
call fcn.00494c56
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4a72f4], eax
call fcn.00496aac
mov dword [0x4a6d20], eax
call fcn.00496a0a
test eax, eax
jge 0x494dad
push 8
call fcn.00494c56
pop ecx
call fcn.004967d7
test eax, eax
jge 0x494dbe
push 9
call fcn.00494c56
pop ecx
push 1
call fcn.004962ee
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x494dd4
push eax
call fcn.00494c56
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0049677a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x494df5
movzx eax, word [ebp - 0x40]
jmp 0x494df8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00444d10
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x494e16
push edi
call fcn.00496419
call fcn.0049643b
jmp 0x494e48
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00495593
ret
Function at 0x496358
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4a6d98], esi
push edi
jne 0x496378
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4a6d94], esi
mov byte [0x4a6d90], al
jne 0x4963de
mov ecx, dword [0x4a72e8]
test ecx, ecx
je 0x4963bf
mov eax, dword [0x4a72e4]
sub eax, 4
cmp eax, ecx
jmp 0x4963b8
mov eax, dword [eax]
test eax, eax
je 0x4963aa
call eax
mov eax, dword [0x4a72e4]
sub eax, 4
cmp eax, dword [0x4a72e8]
mov dword [0x4a72e4], eax
jae 0x4963a2
mov eax, 0x49c020
mov esi, 0x49c024
cmp eax, esi
mov edi, eax
jae 0x4963de
mov eax, dword [edi]
test eax, eax
je 0x4963d7
call eax
add edi, 4
cmp edi, esi
jb 0x4963cf
mov eax, 0x49c028
mov esi, 0x49c030
cmp eax, esi
mov edi, eax
jae 0x4963fd
mov eax, dword [edi]
test eax, eax
je 0x4963f6
call eax
add edi, 4
cmp edi, esi
jb 0x4963ee
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x496417
push dword [ebp + 8]
mov dword [0x4a6d98], 1
call fcn.004962be
pop ebp
ret

Function at 0x496459
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x49d3a4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x49d400]
je 0x49648e
inc eax
cmp eax, 0x13
jb 0x49647f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x49d400]
jne 0x4965b4
mov eax, dword [0x4a6d28]
cmp eax, 1
je 0x49658c
cmp eax, edx
jne 0x4964be
cmp dword [0x49d3e4], 1
je 0x49658c
cmp ecx, 0xfc
je 0x4965b4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4964f4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004956b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00494e60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x496528
mov eax, edi
push eax
call fcn.00494e60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x49a39c
push edi
call fcn.00497c30
add esp, 0x10
push edi
call fcn.00494e60
push dword [esi + 0x49d404]
mov ebx, eax
call fcn.00494e60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00494260
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004956b0
push edi
push ebx
call fcn.004956c0
push 0x49a398
push ebx
call fcn.004956c0
push dword [esi + 0x49d404]
push ebx
call fcn.004956c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00497b29
add esp, 0x2c
jmp 0x4965b4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x49d404]
push dword [esi]
call fcn.00494e60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00494247
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x496aac
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4a6eb0]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x496af5
call edi
mov esi, eax
cmp esi, ebx
je 0x496adc
mov dword [0x4a6eb0], 1
jmp 0x496afa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x496af0
mov eax, ebp
mov dword [0x4a6eb0], eax
jmp 0x496af5
mov eax, dword [0x4a6eb0]
cmp eax, 1
jne 0x496b77
cmp esi, ebx
jne 0x496b06
call edi
mov esi, eax
cmp esi, ebx
je 0x496b7f
cmp word [esi], bx
mov eax, esi
je 0x496b1b
add eax, ebp
cmp word [eax], bx
jne 0x496b0d
add eax, ebp
cmp word [eax], bx
jne 0x496b0d
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x496b6c
push ebp
call fcn.004952c1
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x496b6c
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x496b68
push dword [esp + 0x10]
call fcn.004957a8
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x496bc7
cmp eax, ebp
je 0x496b83
cmp eax, ebx
je 0x496b83
xor eax, eax
jmp 0x496bc7
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x496b7f
cmp byte [esi], bl
je 0x496b9d
inc eax
cmp byte [eax], bl
jne 0x496b93
inc eax
cmp byte [eax], bl
jne 0x496b93
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.004952c1
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x496bb3
xor edi, edi
jmp 0x496bbe
push ebp
push esi
push edi
call fcn.00494ef0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x497b29
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a6eb8], ebx
push esi
push edi
jne 0x497ba9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x497be4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4a6eb8], eax
je 0x497be4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4a6ebc], eax
call esi
cmp dword [0x4a6d58], 2
mov dword [0x4a6ec0], eax
jne 0x497ba9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4a6ec8], eax
je 0x497ba9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4a6ec4], eax
mov eax, dword [0x4a6ec4]
test eax, eax
je 0x497bee
call eax
test eax, eax
je 0x497bd5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a6ec8]
test eax, eax
je 0x497bd5
test byte [ebp - 8], 1
jne 0x497bee
cmp dword [0x4a6d64], 4
jb 0x497be8
or byte [ebp + 0x12], 0x20
jmp 0x497c0d
xor eax, eax
jmp 0x497c1d
or byte [ebp + 0x12], 4
jmp 0x497c0d
mov eax, dword [0x4a6ebc]
test eax, eax
je 0x497c0d
call eax
mov ebx, eax
test ebx, ebx
je 0x497c0d
mov eax, dword [0x4a6ec0]
test eax, eax
je 0x497c0d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a6eb8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x497d54
Capabilities:
Parse pe header

Disassembly:
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 0x497d82
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x497d89
cmp ebx, dword [eax + 4]
jae 0x497d89
xor eax, eax
jmp 0x497f79
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x497d9a
xor eax, eax
inc eax
jmp 0x497f78
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x497db0
cmp ecx, edx
jae 0x497ef5
cmp dword [eax + 4], 0
je 0x497db9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x497da1
cmp dword [ebp + 8], 0
je 0x497ddb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x497ef5
cmp eax, esi
jae 0x497ef5
mov eax, dword [0x4a6ed0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x497e00
cmp dword [esi*4 + 0x4a6ed8], edi
je 0x497ef9
inc esi
cmp esi, eax
jl 0x497dee
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x497f75
cmp dword [ebp - 8], 0x1000000
jne 0x497f75
test byte [ebp - 0xc], 0xcc
je 0x497e7e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x497f75
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x497f75
cmp word [eax + 0x18], 0x10b
jne 0x497f75
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x497f75
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x497e7e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x497e7e
test byte [ecx + 0x27], 0x80
jne 0x497ef5
push 1
push 0x4a6f18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x497d92
mov ecx, dword [0x4a6ed0]
test ecx, ecx
mov edx, ecx
jle 0x497eb2
lea eax, [ecx*4 + 0x4a6ed4]
cmp dword [eax], edi
je 0x497eb2
dec edx
sub eax, 4
test edx, edx
jg 0x497ea6
test edx, edx
jne 0x497ee3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x497ebf
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x497ed7
lea eax, [edx*4 + 0x4a6ed8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x497ec5
cmp ecx, 0x10
jge 0x497ee3
inc ecx
mov dword [0x4a6ed0], ecx
push 0
push 0x4a6f18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x497d92
xor eax, eax
jmp 0x497f78
test esi, esi
jle 0x497d92
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4a6f18
call ebx
test eax, eax
jne 0x497d92
cmp dword [esi*4 + 0x4a6ed8], edi
je 0x497f4f
mov eax, dword [0x4a6ed0]
lea esi, [eax - 1]
test esi, esi
jl 0x497f3d
cmp dword [esi*4 + 0x4a6ed8], edi
je 0x497f39
dec esi
jns 0x497f2d
test esi, esi
jge 0x497f4d
cmp eax, 0x10
jge 0x497f48
inc eax
mov dword [0x4a6ed0], eax
lea esi, [eax - 1]
jmp 0x497f4f
je 0x497f67
xor ecx, ecx
test esi, esi
jl 0x497f67
lea eax, [ecx*4 + 0x4a6ed8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x497f55
push 0
push 0x4a6f18
call ebx
jmp 0x497d92
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x498d5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00494260
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x498df7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4a6d58]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x498df7
cmp eax, 1
je 0x498e18
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x498df7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x498dc4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x498df3
xor eax, eax
inc eax
jmp 0x498e37
cmp edi, eax
jae 0x498dfb
xor eax, eax
jmp 0x498e37
cmp eax, esi
jae 0x498e02
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4a6d58]
jmp 0x498e1b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6a04aee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6a040000], 0x5a4d
jne 0x6a04af05
mov ecx, dword [0x6a04003c]
cmp dword [ecx + 0x6a040000], 0x4550
lea edx, [ecx + 0x6a040000]
je 0x6a04af10
ret
cmp word [ecx + 0x6a040018], 0x10b
jne 0x6a04af05
push esi
movzx eax, word [ecx + 0x6a040014]
push ebx
movzx esi, word [ecx + 0x6a040006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6a040000
test si, si
je 0x6a04af58
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6a04af4e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6a04af5a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6a04af40
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10001b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10031740]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.10001b00
mov eax, dword [0x10033ae0]
mov dword [ebp - 0x10], eax
push 0x1002d864
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], 0
jne 0x10001b89
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
jmp 0x10001bf4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10001bb7
cmp dword [ebp - 0x18], 0
ja 0x10001bca
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
jmp 0x10001bf4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e532
mov esp, ebp
pop ebp
ret
Function at 0x1000b090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025f58
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10031740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x1000b0d0
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x1000b0dc
mov al, 1
jmp 0x1000b27f
mov dword [ebp - 0x54], 8
call fcn.10005580
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.10005580
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.10005500
add esp, 8
movzx eax, al
test eax, eax
je 0x1000b11f
xor al, al
jmp 0x1000b27f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.100083c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.100078b0
mov ecx, eax
call fcn.10008f60
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.10002c70
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.100078b0
mov ecx, eax
call fcn.10008f60
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.1000b620
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x1000b19a
cmp dword [ebp - 0x3c], 1
je 0x1000b1a1
cmp dword [ebp - 0x3c], 3
je 0x1000b23b
jmp 0x1000b253
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.100078b0
mov ecx, eax
call fcn.10008f60
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x1000b204
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.100078b0
mov ecx, eax
call fcn.10008f60
push eax
call fcn.1000fbcf
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x1000b204
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b10
mov al, byte [ebp - 0x34]
jmp 0x1000b27f
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x1000b227
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b10
mov al, byte [ebp - 0x31]
jmp 0x1000b27f
cmp dword [ebp - 0x38], 0
jne 0x1000b239
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10008a50
jmp 0x1000b26b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b10
mov al, byte [ebp - 0x33]
jmp 0x1000b27f
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b10
mov al, byte [ebp - 0x32]
jmp 0x1000b27f
jmp 0x1000b132
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e532
mov esp, ebp
pop ebp
ret
Function at 0x1000ba30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10031740]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000baed
mov dword [ebp - 0x14], 1
mov ecx, 0xc
imul edx, ecx, 0
lea eax, [ebp + edx - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp dword [ebp + 8], 0
je 0x1000ba95
mov dword [ebp - 0x24], 2
jmp 0x1000ba9c
mov dword [ebp - 0x24], 0
mov ecx, 0xc
imul edx, ecx, 0
mov eax, dword [ebp - 0x24]
mov dword [ebp + edx - 8], eax
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000bad4
mov dword [ebp - 0x20], 1
jmp 0x1000badb
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000baf1
xor eax, eax
jmp 0x1000baf4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e532
mov esp, ebp
pop ebp
ret 4