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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf21d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xf21d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf21d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xf21d94
push eax
push esi
call fcn.00f2420b
add esp, 8
pop esi
ret 0x10

Function at 0xf21da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf21e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xf21e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xf3a320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f23dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xf21dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xf21e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf21ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xf21eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xf3a320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f23dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xf21eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xf21e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xf22000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xf22131
push esi
call fcn.00f25145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00f14080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xf22131
push 0
push ebp
call fcn.00f143a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00f14260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xf2208b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00f142f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xf22121
push 0xf3a918
push edi
call fcn.00f233f0
push eax
push ebx
push esi
call fcn.00f21f60
push 0xf3a8f8
push edi
call fcn.00f233f0
push eax
push ebx
push esi
call fcn.00f21f60
push 0xf3a8d8
push edi
call fcn.00f233f0
push eax
push ebx
push esi
call fcn.00f21f60
push 0xf3a8c0
push edi
call fcn.00f233f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00f21f60
push 0xf3a8a0
push edi
call fcn.00f233f0
push eax
push ebx
push esi
call fcn.00f21f60
push 0xf3a888
push edi
call fcn.00f233f0
push eax
push ebx
push esi
call fcn.00f21f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xf231b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f23140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f23140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f23140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f23140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf23bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf23c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf3587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf23c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf23c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x404052
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402f7f
xor ebx, ebx
cmp dword [0x40ea1c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x404127
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x404092
xor eax, eax
jmp 0x4041eb
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40408b
push eax
call fcn.00402f1c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea1c], eax
call esi
push eax
call fcn.00402f1c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea20], eax
call esi
push eax
call fcn.00402f1c
mov dword [0x40ea24], eax
lea eax, [ebp - 8]
push eax
call fcn.00402345
test eax, eax
pop ecx
pop ecx
je 0x4040f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040393b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x404127
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402f1c
cmp eax, ebx
pop ecx
mov dword [0x40ea2c], eax
je 0x404127
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f1c
pop ecx
mov dword [0x40ea28], eax
mov eax, dword [0x40ea28]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4041a0
cmp dword [0x40ea2c], esi
je 0x4041a0
push eax
call fcn.00402f88
pop ecx
call eax
cmp eax, ebx
je 0x40416d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40ea2c]
call fcn.00402f88
pop ecx
call eax
test eax, eax
je 0x40416d
test byte [ebp - 0x18], 1
jne 0x4041a0
lea eax, [ebp - 0xc]
push eax
call fcn.0040237c
test eax, eax
pop ecx
je 0x404188
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040393b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x404197
or dword [ebp + 0x10], 0x200000
jmp 0x4041d1
or dword [ebp + 0x10], 0x40000
jmp 0x4041d1
mov eax, dword [0x40ea20]
cmp eax, esi
je 0x4041d1
push eax
call fcn.00402f88
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4041d1
mov eax, dword [0x40ea24]
cmp eax, esi
je 0x4041d1
push dword [ebp - 4]
push eax
call fcn.00402f88
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40ea1c]
call fcn.00402f88
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405ebb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e098]
jne 0x405ec5
repz ret
jmp fcn.004074f5
Function at 0x4010e2
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0x481c41a8
xor esi, esi
push eax
call fcn.00401f15
xor byte [esi + section..data], al
inc esi
pop ecx
cmp esi, 0x5090
jb 0x4010ea
pop esi
ret

Function at 0x40163d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push 0x24
push eax
call fcn.00401d7a
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
sete al
mov esp, ebp
pop ebp
ret

Function at 0x401931
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
cmp dword [esp + 0x28], 0
push ebx
push ebp
push edi
jne 0x401945
xor eax, eax
jmp 0x401a6c
push esi
mov esi, dword [esp + 0x34]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401a69
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x20], esi
add ecx, esi
je 0x401a69
cmp ecx, esi
jb 0x401a69
lea eax, [esi + 0x1000]
cmp ecx, eax
jae 0x401a69
cmp dword [ecx], 0x4550
jne 0x401a69
movzx eax, word [ecx + 0x18]
mov edi, 0x10b
mov edx, dword [ecx + 0x50]
cmp ax, di
jne 0x40199f
mov ebx, dword [ecx + 0x78]
jmp 0x4019a5
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x401a69
cmp ax, di
jne 0x4019b7
mov eax, dword [ecx + 0x7c]
jmp 0x4019bd
mov eax, dword [ecx + 0x8c]
lea edi, [ebx + esi]
mov dword [esp + 0x10], eax
cmp edi, esi
jb 0x401a69
lea eax, [edx + esi]
cmp edi, eax
jae 0x401a69
mov ebp, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add ebp, esi
mov edx, dword [edi + 0x24]
add ecx, esi
add edx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp ebp, esi
jb 0x401a69
cmp ebp, eax
jae 0x401a69
cmp ecx, esi
jb 0x401a69
cmp ecx, eax
jae 0x401a69
cmp edx, esi
jb 0x401a69
cmp edx, eax
jae 0x401a69
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jbe 0x401a64
mov eax, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x28], eax
movzx eax, word [edx + ebp*2]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x24], ecx
cmp ecx, ebx
jb 0x401a40
mov eax, dword [esp + 0x10]
add eax, ebx
cmp ecx, eax
jae 0x401a40
lea eax, [ecx + esi]
mov dword [esp + 0x2c], eax
jmp 0x401a45
and dword [esp + 0x2c], 0
push dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x40]
test eax, eax
je 0x401a64
mov ecx, dword [esp + 0x18]
inc ebp
mov edx, dword [esp + 0x1c]
cmp ebp, dword [edi + 0x18]
jb 0x401a11
xor eax, eax
inc eax
jmp 0x401a6b
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x401db2
Capabilities:
64-bit execution via heavens gate

Disassembly:
push 0x33
call 0x401db9
add dword [esp], 5
retf
Function at 0x401e03
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, 0x1000
push esi
call fcn.00401d23
mov dword [ebp - 8], eax
pop ecx
test eax, eax
jne 0x401e26
xor eax, eax
jmp 0x401f0e
mov ecx, dword [ebp + 8]
and dword [ebp - 0xc], 0
cdq
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esp
and esp, 0xfffffff8
nop
nop
push 0x33
call 0x401e4f
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x40198e
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x4019cf
mov dword [ebp - 0xc], 0
jmp 0x401a0b
mov dword [esp + 4], str.AppData
mov eax, dword [ebp - 4]
mov dword [esp], eax
call fcn.00401a10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x401a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x401ab1
cmp dword [ebp - 4], 1
jne 0x401ab1
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x401ab1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x402970
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00403200
call fcn.00402b20
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4029a8
jmp 0x402a44
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x4029a7
cmp cl, 0x22
je 0x402a00
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
je 0x402a20
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x402a20
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
jne 0x4029e0
jmp 0x402a20
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test edx, eax
jne 0x402a00
cmp cl, 0x22
je 0x402a80
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x402a3e
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x402a30
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x402a62
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00401300
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x402a20

Function at 0x402b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, 0x17
mov ebp, esp
push ebx
sub esp, 0x14
lea ebx, [ebp + 0xc]
mov dword [esp + 8], edx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], str.Mingw_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x402ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov ebx, eax
test edi, edi
mov dword [ebp - 8], esi
mov esi, edx
jne 0x402bc7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
mov eax, 0x1c
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402c75
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
setne dl
cmp eax, 4
setne al
movzx eax, al
test eax, edx
jne 0x402c4e
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
setne dl
cmp eax, 4
setne al
movzx eax, al
test eax, edx
je 0x402bba
lea eax, [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x402bba
lea eax, [ebp - 0x3c]
mov ecx, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x402c00
mov dword [esp + 8], ebx
mov ebx, 0x1c
mov dword [esp + 4], ebx
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402b40
nop
Function at 0x23a014d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
sub esp, 0x28
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x23a01514
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x480
push str.d:_builds_temporary_activitymon20_sources_actbasic_advapi.h
lea ecx, [esp + 0xc]
call fcn.23a01270
push 0x23c614bc
lea edx, [esp + 4]
push edx
call fcn.23a49c94
mov esp, ebp
pop ebp
ret 4

Function at 0x23a01600
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
call fcn.23a01710
mov ebx, dword [ebp + 8]
push 0x80
push 3
push 1
push SysReAllocStringLen
push ebx
mov ecx, esi
call fcn.23a01460
mov edi, eax
test edi, edi
je 0x23a0164d
push edi
push ebx
push str.open___s___failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x23a01686
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x480
push str.d:_builds_temporary_activitymon20_sources_actbasic_advapi.h
lea ecx, [esp + 0x1c]
call fcn.23a01270
push 0x23c614bc
lea ecx, [esp + 0x14]
push ecx
call fcn.23a49c94
mov edx, dword [esi]
push 0
push eax
push 0
push 2
push 0
push edx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x23a016c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CreateFileMapping___failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x23a016fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.MapViewOfFile___failed_with_0x_08X_error
call dword [0x23c41f24]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x23a01790
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
push ebx
cmp eax, 0xffffffff
je 0x23a017d5
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x23a017eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x23a0187f
cmp dword [edi + 0x18], 8
jb 0x23a0186c
mov ecx, dword [edi + 4]
jmp 0x23a0186f
mov ecx, edi
call fcn.23a02510
push eax
call ebp
mov dword [edi + 0x1c], eax
cmp eax, 0xffffffff
je 0x23a01888
lea esi, [ebx + 0x2c]
mov ecx, 0x23c40c04
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x23a0181b
test dx, dx
je 0x23a01817
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x23a0181b
add eax, 4
add ecx, 4
test dx, dx
jne 0x23a017f5
xor eax, eax
jmp 0x23a01820
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x23a017a0
mov ecx, 0x23c40c08
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x23a01856
test dx, dx
je 0x23a01852
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x23a01856
add eax, 4
add ecx, 4
test dx, dx
jne 0x23a01830
xor eax, eax
jmp 0x23a0185b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x23a017a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
lea ecx, [edi + 4]
push eax
push ecx
push str.FindNextFile___s___failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x18], 8
jb 0x23a01899
mov ecx, dword [edi + 4]
jmp 0x23a0189c
lea ecx, [edi + 4]
push eax
push ecx
push str.FindFirstFile___s___failed_with_0x_08X_error
call dword [0x23c41f28]
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
Function at 0x23a018c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x23bdda48
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x23c68938]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x23a0192d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x86
push str.......Sources_actBasic_advapi.cpp
lea ecx, [esp + 0x30]
call fcn.23a01270
push 0x23c614bc
lea edx, [esp + 0x28]
push edx
call fcn.23a49c94
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x80], eax
lea eax, [edi + 0xa]
lea esi, [esp + 0x1c]
call fcn.23a01a00
push eax
mov eax, dword [ebp + 8]
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x23a01982
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x8d
push str.......Sources_actBasic_advapi.cpp
lea ecx, [esp + 0x30]
call fcn.23a01270
push 0x23c614bc
lea ecx, [esp + 0x28]
push ecx
call fcn.23a49c94
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x23c40c38
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x23a019c6
push 0x4e23
push 0x94
push str.......Sources_actBasic_advapi.cpp
lea ecx, [esp + 0x58]
call fcn.23a01270
push 0x23c614bc
lea ecx, [esp + 0x50]
push ecx
call fcn.23a49c94
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov dword [ebx], edx
mov eax, dword [eax + 0xc]
mov dword [ebx + 4], eax
test esi, esi
je 0x23a019e2
push esi
call fcn.23a4accd
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4