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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x30004298]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
je 0x30008316
mov dword [eax], esi
push 0x300023a8
lea ecx, [ebp - 0x214]
call fcn.30005f6e
mov edi, eax
cmp edi, esi
jl 0x30008433
push ebx
lea ecx, [ebp - 0x214]
call fcn.30005f6e
mov edi, eax
cmp edi, esi
jl 0x30008433
lea eax, [ebp - 0x21c]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push dword [ebp - 0x214]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x3000840d
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x210]
mov eax, edi
push eax
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x220]
shr eax, 1
cmp eax, 3
mov word [ebp + eax*2 - 0x210], si
jb 0x300083d5
cmp word [ebp - 0x210], 0x22
jne 0x300083d5
lea eax, [ebp + eax*2 - 0x214]
cmp word [eax], 0x22
jne 0x300083d5
lea edi, [ebp - 0x20e]
mov word [eax], si
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp - 0x218]
call fcn.30005f6e
mov edi, eax
cmp edi, esi
jl 0x30008433
mov ecx, dword [ebp - 0x224]
cmp ecx, esi
je 0x30008433
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x218], esi
mov dword [ecx], eax
jmp 0x30008433
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.30006dd8
push dword [ebp - 0x214]
push 0x30002358
push esi
call fcn.30006d4e
add esp, 0xc
mov edi, 0x80004005
push dword [ebp - 0x218]
mov esi, dword [sym.imp.MSO.dll_Ordinal_3057]
call esi
push dword [ebp - 0x214]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3000e693
leave
ret 8
Function at 0x3000845c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
call dword [0x30011340]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x30008555
movzx eax, word [ebp + 0x10]
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x300084b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.30006dd8
push dword [ebp + 0x10]
push ebx
push 0x30001b28
jmp 0x30008507
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x300084dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.30006dd8
push dword [ebp + 0x10]
push ebx
push 0x30001ac8
jmp 0x30008507
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x3000850a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x300115a8
push eax
mov ecx, esi
call fcn.30006dd8
push dword [ebp + 0x10]
push ebx
push 0x30001a78
push esi
jmp 0x30008526
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x30008537
push dword [ebp + 0x10]
push ebx
push 0x30001a08
push 0x300115a8
call fcn.30006d4e
add esp, 0x10
mov dword [ebp - 4], 0x80004005
jmp 0x30008553
push dword [ebp + 0x14]
lea ecx, [ebp + 0x10]
push eax
call fcn.30007c3b
mov ecx, dword [eax]
and dword [eax], 0
push dword [ebp + 0x10]
mov dword [esi], ecx
call dword [sym.imp.MSO.dll_Ordinal_3057]
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0x10
Function at 0x3000925f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x30009278
push 0x80004005
call fcn.30005d64
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x3000927a
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x300097e1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x30004298]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push edi
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x208], esi
call fcn.300091d2
cmp eax, esi
mov dword [ebp - 0x210], eax
je 0x3000986b
cmp eax, 2
je 0x30009849
cmp eax, 3
je 0x30009849
push eax
push edi
push 0x30002ab8
push esi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.3000e5de
add esp, 0x18
lea ecx, [ebp - 0x208]
call fcn.3000916d
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3000e693
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x30009889
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.300097e1
cmp eax, esi
jne 0x300098d1
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x30009873
lea ecx, [ebp - 0x208]
call fcn.3000916d
push dword [ebp - 0x214]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.3000916d
mov eax, esi
jmp 0x3000985a
Function at 0x3000ac01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x30004298]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x410], eax
call dword [0x30011340]
mov eax, dword [ebp - 0x40c]
xor esi, esi
push 2
push esi
push edi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x408], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x40c], eax
jne 0x3000ac89
push edi
push 0x300031bc
push esi
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.3000e5de
add esp, 0x14
call fcn.30009086
mov esi, eax
jmp 0x3000adbd
push dword [ebp - 0x410]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x3000acd4
mov eax, ebx
shr eax, 0x10
test ax, ax
mov eax, 0x30003168
je 0x3000acb1
mov eax, 0x30003110
push dword [ebp - 0x410]
push ebx
push eax
push esi
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.3000e5de
add esp, 0x18
call fcn.30009086
jmp 0x3000adaf
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x410], eax
jne 0x3000ad03
push 0x300030dc
push esi
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.3000e5de
add esp, 0x10
jmp 0x3000acca
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x3000ad55
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x3000ad32
lea ecx, [ebp - 0x408]
call fcn.30009791
mov esi, 0x8007000e
lea ecx, [ebp - 0x41c]
call fcn.30007837
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.3000e693
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.30009c83
mov ebx, dword [ebp - 0x408]
cmp ebx, esi
jne 0x3000ad72
mov esi, 0x8007000e
jmp 0x3000adb1
call dword [0x30011340]
push edi
push ebx
push edi
push dword [ebp - 0x410]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x3000acca
mov ecx, dword [ebp - 0x408]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.3000aa4f
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x3000ad37
lea ecx, [ebp - 0x408]
call fcn.30009791
jmp 0x3000ad37
Function at 0x3000ccce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x3000cd26
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x3000cd17
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x3000cd13
cmp esi, eax
jae 0x3000cd17
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x3000cd05
cmp esi, eax
jb 0x3000cd1b
xor eax, eax
jmp 0x3000cd25
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x3000daf1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x30004298]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.3000da30
mov eax, 0x30000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x3000db40
cmp dword [ebp - 0x1c], 5
jb 0x3000db58
jmp 0x3000db54
cmp dword [ebp - 0x10], 1
jne 0x3000db58
cmp dword [ebp - 0x1c], 4
ja 0x3000db54
jne 0x3000db58
cmp dword [ebp - 0x18], 0
jbe 0x3000db58
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x30004000
call fcn.30007746
test eax, eax
jge 0x3000db79
mov byte [0x3001157c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.3000e693
add ebp, 0x78
leave
ret
Function at 0x3000df4f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x30004298]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x3000df8b
xor eax, eax
jmp 0x3000e0b1
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x3000dfa7
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push ebx
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov edi, 0x300041b0
push edi
call fcn.3000df24
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x3000dfe7
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x3000e099
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000419c
push ebx
call edi
push 0x3000417c
push ebx
mov dword [ebp - 0x478], eax
call edi
cmp eax, esi
mov dword [ebp - 0x470], eax
je 0x3000e099
cmp dword [ebp - 0x474], esi
mov ebx, 0x30004168
mov edi, 0x30004118
je 0x3000e071
cmp dword [ebp - 0x478], esi
je 0x3000e099
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, esi
jne 0x3000e06a
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, esi
je 0x3000e09d
cmp eax, 0x642
je 0x3000e09d
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x3000e09d
xor eax, eax
jmp 0x3000e0af
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x3001167c], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3000e693
leave
ret 4
Function at 0x3000e18d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x30004298]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x300040b0
push 0x80000002
mov dword [ebp - 0x214], ebx
xor esi, esi
mov dword [ebp - 0x218], 0x208
mov word [ebp - 0x210], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x30004234
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x214], ebx
je 0x3000e218
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x3000e243
cmp eax, 0x208
ja 0x3000e243
shr eax, 1
mov esi, eax
je 0x3000e243
lea eax, [ebp + esi*2 - 0x212]
cmp word [eax], 0x5c
je 0x3000e243
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x3000e236
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov word [ebp + esi*2 - 0x210], bx
call fcn.3000e0ff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.3000e693
leave
ret 4

Function at 0x3000e26d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30004298]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push 0x300041e0
push 0x80000002
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x300041c0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x218]
shr eax, 1
cmp dword [ebp - 0x214], esi
mov word [ebp + eax*2 - 0x210], si
je 0x3000e2f5
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x30004250
call fcn.3000df24
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
pop esi
jne 0x3000e327
push 0x30004244
call fcn.3000e18d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3000e693
leave
ret
Function at 0x3000e5df
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x300042b8
push 0x3000429c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3000e614
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x30004298
push ebx
call edi
test esi, esi
mov dword [0x30004298], esi
jne 0x3000e678
mov dword [0x30004298], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x30011344], 0x44bf19b1
pop ebx
leave
ret

Function at 0x3000e693
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30004298]
jne 0x3000f0fb
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300117b8], eax
mov dword [0x300117b4], ecx
mov dword [0x300117b0], edx
mov dword [0x300117ac], ebx
mov dword [0x300117a8], esi
mov dword [0x300117a4], edi
mov word [0x300117d0], ss
mov word [0x300117c4], cs
mov word [0x300117a0], ds
mov word [0x3001179c], es
mov word [0x30011798], fs
mov word [0x30011794], gs
pushfd
pop dword [0x300117c8]
mov eax, dword [ebp]
mov dword [0x300117bc], eax
mov eax, dword [ebp + 4]
mov dword [0x300117c0], eax
lea eax, [ebp + 8]
mov dword [0x300117cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30011708], 0x10001
mov eax, dword [0x300117c0]
mov dword [0x300116bc], eax
mov dword [0x300116b0], 0xc0000409
mov dword [0x300116b4], 1
mov eax, dword [0x30004298]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30011344]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30011700], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300045f8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30011700], 0
jne 0x3000f1eb
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x3000e6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300042e4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000e6f8
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x300042dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x3000e6f8
mov al, 1
jmp 0x3000e6fa
xor al, al
leave
ret 8
Function at 0x404ce9
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
mov eax, dword [esi + 0x38]
cmp eax, 0xd
jge 0x404de8
mov ecx, dword [esi + 0x34]
sub ecx, eax
cmp ecx, 0x10
jg 0x404de8
mov ebp, 1
mov ecx, dword [esp + 0x18]
mov edi, ebp
cmp dword [esi + 0x3c], ebp
sbb al, al
and al, 0xf3
add al, 0x2d
mov byte [ecx], al
mov ebx, dword [esi + 0x38]
test ebx, ebx
jge 0x404d71
mov byte [ecx + 1], 0x30
mov al, byte [0x40c0e8]
mov edi, 3
mov byte [ecx + 2], al
mov eax, dword [esi + 0x38]
cdq
xor eax, edx
sub eax, edx
cmp eax, ebp
jle 0x404d57
inc ebp
mov byte [ecx + edi], 0x30
inc edi
mov eax, dword [esi + 0x38]
cdq
xor eax, edx
sub eax, edx
cmp eax, ebp
jg 0x404d45
xor edx, edx
cmp dword [esi + 0x34], edx
jle 0x404de2
mov al, byte [esi + edx]
inc edx
mov byte [ecx + edi], al
inc edi
cmp dword [esi + 0x34], edx
jg 0x404d62
jmp 0x404de2
mov eax, dword [esi + 0x34]
cmp ebx, eax
jl 0x404db0
xor edx, edx
test eax, eax
jle 0x404d8b
mov al, byte [esi + edx]
inc edx
mov byte [ecx + edi], al
inc edi
cmp dword [esi + 0x34], edx
jg 0x404d7e
xor edx, edx
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
js 0x404da5
inc edx
mov byte [ecx + edi], 0x30
inc edi
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
cmp eax, edx
jge 0x404d95
mov al, byte [0x40c0e8]
mov byte [ecx + edi], al
inc edi
jmp 0x404de2
xor edx, edx
inc ebx
test ebx, ebx
jle 0x404dc7
mov al, byte [esi + edx]
inc edx
mov byte [ecx + edi], al
inc edi
mov eax, dword [esi + 0x38]
inc eax
cmp eax, edx
jg 0x404db7
mov al, byte [0x40c0e8]
mov byte [ecx + edi], al
inc edi
cmp dword [esi + 0x34], edx
jle 0x404de2
mov al, byte [esi + edx]
inc edx
mov byte [ecx + edi], al
inc edi
cmp dword [esi + 0x34], edx
jg 0x404dd5
mov byte [ecx + edi], 0
jmp 0x404df2
push dword [esp + 0x18]
push esi
call fcn.00404c7b
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x10005300
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c8cb
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x100662ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xd8]
mov esi, dword [ebp + 0xc]
push 0xc8
push 0
mov dword [ebp - 0x100], edi
push eax
mov dword [ebp - 0xf4], 0
call fcn.1002dbf0
add esp, 0xc
lea eax, [ebp - 0xd8]
push 0
push 0x100
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleA]
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005378
sub ecx, edx
jne 0x100053ad
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0xf
mov byte [edi], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0xf4], 1
jmp 0x100054bd
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000542c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 2
push 0
push esi
mov dword [ebp - 0xf8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0xfc], eax
test eax, eax
je 0x10005425
push dword [ebp - 0xf8]
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xf8], eax
test eax, eax
jne 0x10005464
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xf4], 1
jmp 0x100054bd
push eax
lea ecx, [ebp - 0xf0]
call fcn.10008c40
mov dword [ebp - 4], 1
push dword [ebp - 0xf8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.10008b40
mov dword [ebp - 0xf4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf0]
call fcn.1000fc00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c009
mov esp, ebp
pop ebp
ret
Function at 0x10008e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d1ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100662ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.10012fc8
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x10008f31
push eax
push esi
call fcn.10013d81
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.1001357a
int3