joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f77
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x224
push 0xffffffffffffffff
push 0x41b770
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x22c]
lea eax, [ebp + 0x18]
push 0x104
push 0
push eax
call fcn.00403817
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x404fd6
mov eax, dword [esi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x41c610
push eax
lea eax, [ebp + 0x18]
push eax
call ebx
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4050e0
push 0x104
lea eax, [ebp + 0x11c]
push 0
push eax
call fcn.00403817
add esp, 0xc
test byte [ebp - 0x14c], 0x10
je 0x40509b
lea eax, [ebp - 0x120]
push 0x41c568
push eax
call fcn.0040f6d0
pop ecx
pop ecx
test eax, eax
je 0x4050c3
lea eax, [ebp - 0x120]
push 0x41c614
push eax
call fcn.0040f6d0
pop ecx
pop ecx
test eax, eax
je 0x4050c3
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40505f
mov eax, dword [esi]
lea ecx, [ebp - 0x120]
push ecx
push eax
lea eax, [ebp + 0x11c]
push eax
call ebx
lea eax, [ebp + 0x11c]
push eax
lea ecx, [ebp]
call fcn.00404e12
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
call fcn.00404f77
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp]
call fcn.004055fb
jmp 0x4050c3
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4050a5
mov eax, dword [esi]
lea ecx, [ebp - 0x120]
push ecx
push eax
lea eax, [ebp + 0x11c]
push eax
call ebx
lea eax, [ebp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405004
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x4050e8
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x220]
xor ecx, ebp
call fcn.004088ba
add ebp, 0x224
leave
ret
Function at 0x405117
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405138
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4051ce
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
lea eax, [ebp - 0x24]
push 0x41c618
push eax
call fcn.00404df8
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40516c
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40519f
inc edi
jmp 0x405150
push 0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x128]
push eax
call fcn.0040c300
pop ecx
push eax
lea eax, [ebp - 0x128]
mov ecx, esi
push eax
call fcn.00405704
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004088ba
leave
ret

Function at 0x4053a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x103
jb 0x4053d4
xor eax, eax
jmp 0x405420
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x208
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
lea ecx, [ebp - 0x108]
lea esi, [ebp - 0x310]
cmove esi, ecx
push esi
call fcn.0040c300
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00405704
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004088ba
leave
ret
Function at 0x405f95
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [0x427d6e]
test edi, edi
jg 0x405fab
and dword [0x427ea8], 0
xor eax, eax
pop edi
ret
mov eax, 0x800
cmp edi, eax
push esi
cmova edi, eax
push edi
push dword [0x427eb0]
push dword [0x424c20]
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [0x424c3c], 0
mov esi, eax
mov dword [0x427ea8], esi
je 0x406029
cmp esi, 0xffffffff
je 0x406029
cmp esi, edi
je 0x40603a
test esi, esi
js 0x406029
mov ax, word [0x424024]
push dword [0x424c40]
inc ax
movzx eax, ax
push eax
call fcn.00403a15
mov esi, dword [0x427ea8]
test esi, esi
jne 0x406023
push edi
push dword [0x427eb0]
push dword [0x424c20]
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
mov dword [0x427ea8], esi
cmp esi, 0xffffffff
cmovne edi, esi
cmp esi, edi
je 0x40603a
push 2
call fcn.0040175f
mov esi, dword [0x427ea8]
sub dword [0x427d6e], esi
cmp dword [0x424c30], 0
mov edi, dword [0x427eb0]
mov dword [0x427eac], edi
je 0x406076
test esi, esi
je 0x406076
call fcn.00407e0b
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.00407edc
inc edi
pop ecx
sub esi, 1
jne 0x406059
mov esi, dword [0x427ea8]
lea eax, [esi - 1]
mov dword [0x427ea8], eax
mov eax, esi
pop esi
pop edi
ret
Function at 0x407e5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x424c38]
mov esi, dword [ebp + 8]
call fcn.00407e25
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004037f3
add esp, 0x10
xor esi, esi
call fcn.00407e0b
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.00407edc
inc esi
pop ecx
cmp esi, 0xc
jl 0x407e8d
cmp dword [0x424c34], 0
movzx ecx, byte [ebp - 5]
movzx eax, byte [0x427d67]
pop esi
jne 0x407ec4
movzx eax, byte [0x427d6d]
cmp cx, ax
je 0x407ece
or eax, 0xffffffff
jmp 0x407ed0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004088ba
leave
ret

Function at 0x407edc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x427440]
mov eax, ecx
xor eax, dword [esp + 4]
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4276c0]
xor eax, ecx
mov ecx, dword [0x427448]
mov dword [0x427440], eax
movzx eax, al
add eax, dword [0x427444]
imul eax, eax, 0x8088405
inc eax
mov dword [0x427444], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4276c0]
mov dword [0x427448], ecx
ret
Function at 0x1005e07
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_printf]
push edi
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp + 8]
push 0x1001b20
call esi
add esp, 0xc
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1005f14
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test ebx, 0xfffffffe
jne 0x1005e9e
cmp eax, 0x78
jne 0x1005eb6
test bl, 1
je 0x1005e5f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1005f14
call edi
cmp eax, 0x11
jne 0x1005e9a
push 0x1001b00
call esi
pop ecx
not ebx
and ebx, 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1005f14
call edi
test eax, eax
je 0x1005f14
push 0xa
push 0x1001b0c
push 0x100375c
call esi
add esp, 0xc
mov eax, 0xfffffbf8
jmp 0x1005f27
cmp eax, 0x11
jne 0x1005e9a
push 0x10039e8
push 0x10039d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [ebp - 4], 0
or dword [ebp - 8], 0xffffffff
test eax, eax
je 0x1005f02
not ebx
and ebx, 1
push ebx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0x1005d4b
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1005f02
xor eax, eax
inc eax
jmp 0x1005f04
xor eax, eax
neg eax
sbb eax, eax
and eax, 0x408
add eax, 0xfffffbf8
jmp 0x1005f27
push 0xa
push 0x1001b18
push 0x100375c
call esi
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1008883
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1004550
call fcn.01008af4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10088be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10088be
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10088d6
cmp eax, 0x20b
je 0x10088c3
mov dword [ebp - 0x1c], edi
jmp 0x10088ea
cmp dword [ecx + 0x84], 0xe
jbe 0x10088be
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10088e4
cmp dword [ecx + 0x74], 0xe
jbe 0x10088be
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100f44c], 0xffffffff
or dword [0x100f450], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100a404]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100a400]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100f454], eax
call fcn.01008af0
cmp dword [0x100a050], edi
jne 0x1008945
push fcn.01008af0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01008ade
push 0x1001188
push 0x1001184
call sub.msvcrt.dll__initterm
mov eax, dword [0x100a3fc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100a3f8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001180
push 0x100117c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010071c4
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10089bc
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10089f1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01008b2d
ret

Function at 0x1008ba3
Capabilities:
Read file on windows

Disassembly:
push 0x100a408
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
dec eax
cmp eax, dword [0x100f440]
jge 0x1008c30
mov ecx, dword [0x100a434]
mov edx, dword [0x100a438]
push edi
mov edi, ecx
imul edi, eax
sub edx, edi
cmp ecx, edx
pop edi
jl 0x1008bd2
mov ecx, edx
mov dword [esi + 0x20], ecx
mov edx, dword [0x100a434]
imul edx, eax
mov dword [esi + 0x24], edx
imul ecx, dword [0x100a43c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [0x100a410]
mov eax, edx
push esi
shl edx, cl
push 0
push dword [esi + 0x1c]
push dword [esi + 0x14]
mov dword [esi + 8], edx
mov ecx, dword [0x100a40c]
push dword [esi + 0x18]
shr eax, cl
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1008c47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1008c47
push 0x1004694
call fcn.01009295
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1008c47
push 0x100466c
call fcn.01009295
ret
Function at 0x1008c48
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebp, ebp
cmp word [esp + 0x1c], bp
jne 0x1008cd5
cmp word [esp + 0x3c], 5
jb 0x1008cd5
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor eax, eax
inc eax
push eax
mov dword [esp + 0x14], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push eax
call edi
cmp dword [esp + 0x30], ebp
mov dword [esp + 0x18], eax
jbe 0x1008cc6
cmp dword [esp + 0x10], 0
je 0x1008cc6
test ebp, ebp
je 0x1008ca6
xor eax, eax
inc eax
mov ecx, ebp
shl eax, cl
push eax
call esi
push eax
call edi
push ebx
mov eax, 1
cpuid
mov dword [esp + 0x18], edx
pop ebx
test byte [esp + 0x17], 2
jne 0x1008cbf
and dword [esp + 0x10], 0
inc ebp
cmp ebp, dword [esp + 0x30]
jb 0x1008c8e
push dword [esp + 0x18]
call esi
push eax
call edi
mov eax, dword [esp + 0x10]
jmp 0x1008cd7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x41f6ec
Capabilities:
Encode data using xor

Disassembly:
and eax, 0xfffffdd7
aas
jb 0x41f6b0
clc
fidiv word [ebx]
imul esi, dword [ebx], 0x59
mov ecx, dword [eax]
call dword [ecx + 0x30]
popfd
into
xor bl, bl
cmp byte [edx - 0x7a009f06], dl
ror byte [edx - 0x17c2965], 0xff
pop ebx
mov esi, 0xd4968b9b
mov dl, 0x31
mov edx, esi
popfd
xchg esi, eax
cmp eax, 0xc4c11a45
xchg esp, eax
lodsb al, byte [esi]
mov ecx, 0xd8a97d29
mov ecx, 0xdb10d775
pop edi
ja 0x41f672
ret
inc ax
push esi
mov esi, edx
inc dh
add byte [0x35108600], al
adc eax, 0xe1ac0009
fld dword [esi]
sar dword [ebp - 0x66], 0
jge 0x41f688
add byte [esi], bl
jge 0x41f688
add byte [esi], bl
xor byte [eax - 0x834b174], bh
mov eax, 0xf7cb4e8c
inc ebx
add byte [ebx + 0x743d60c6], cl
push ss
cld
aad 0x1b
cmpsd dword [esi], dword es:[edi]
call fcn.00420164
jp 0x41f6d6
je 0x41f721
test dword [ebp - 0x31cf81e4], ebx
and dword [ecx - 0x6eefec01], edx
and eax, 0xe8ffff90
xchg edi, eax
stosb byte es:[edi], al
je 0x41f745
sar byte [ebx - 0x32], cl
jnp 0x41f6f1
xor esi, dword [ebx + 0x3ca0aef8]
or byte [esi + 0x2f007a74], dh
call 0xd90b986f
add byte [0x1050400], dl
add byte [esi], al
push esi
adc al, 0x81
adc eax, 0x80f274f5
push ecx
inc edi
invalid

Function at 0x421338
Capabilities:
Authenticate hmac

Disassembly:
and byte [ecx + 0x15], ah
cld
mov ebx, 0x7181aaf8
invalid

Function at 0x4213ac
Capabilities:
Authenticate hmac

Disassembly:
xchg edx, eax
jno 0x421309
mov esp, 0x1a6097eb
in eax, 0x36
sub al, 0x53
movsd dword es:[edi], dword [esi]
add ch, byte cs:[edi + 0x66]
arpl word [edi], sp
jb 0x421340
jge 0x4213e8
outsb dx, byte [esi]
aaa
cmp dword [edx], esp
mov eax, 0x6f606e28
Function at 0x866370
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 0x86638e
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 0x88f074
push ecx
mov edi, eax
call fcn.0087a198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8663cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0087a02e
push esi
call fcn.00879fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x869850
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 0x8698ae
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 0x894720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8698ba
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.0087a1e1
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 0x8698ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x894720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x86992a
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.0087b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x869957
mov word [eax], si
add eax, 2
push eax
call fcn.0087b030
add esp, 4
jmp 0x869959
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 0x8698ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8698b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x86a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x88f458
push ecx
call fcn.0087a1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0087a1e1
add esp, 0x10
jmp 0x86a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0087a20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00879dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0086a050
mov eax, dword [0x894728]
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 0x86a13b
push esi
call fcn.00869fb0
add esp, 4
mov dword [0x894728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x86a14c
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.00869ff0
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 0x86d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x86d4b7
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 0x86d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x86d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x86d47e
add edx, ecx
cmp ebx, edx
jb 0x86d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x86d467
xor ecx, ecx
jmp 0x86d4a2
test eax, eax
jne 0x86d492
xor ecx, ecx
jmp 0x86d4a2
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.0086d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x86d8f0
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 0x86d921
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 0x86d946
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 0x86d96e
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 0x86d993
push ecx
push esi
call fcn.0086d4c0
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 0x86ec00
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 0x86ec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x86ec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x86ec38
add edx, eax
cmp ebx, edx
jb 0x86ec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x86ec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x86ec50
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 0x86ec70
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 0x86ecb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x86ec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x86eca8
add edx, ecx
cmp ebx, edx
jb 0x86ecb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x86ec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x86ef60
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.0087b145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x86effb
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 0x86efdd
lea eax, [esp + 0x18]
push eax
jmp 0x86efe2
push 0x894720
call fcn.0087afd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x86efb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x86ef40
push 4
push ecx
push eax
call fcn.0087b43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret