joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411360
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x43dd77
call fcn.00435e56
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.NGUtils::AFileVersionInfo.0
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.NGUtils::CFileVersionInfo.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x411436
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x411436
mov byte [ebp - 4], 1
push ebx
call fcn.004185da
pop ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 4], edi
jmp 0x4113df
cmp dword [esi + 0xc], 0
je 0x411436
push dword [esi + 0xc]
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x411436
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
push str.VarFileInfoTranslation
push dword [esi + 0xc]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x411424
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 4]
push eax
push 0x44c734
push dword [esi + 0xc]
call edi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00435db4
ret 4

Function at 0x4133ee
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x43e6ee
call fcn.00435e1f
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, ebx
test esi, esi
je 0x4134b3
cmp word [esi], bx
je 0x4134b3
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x413443
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00421e5d
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0041692f
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00413394
test eax, eax
jne 0x4134b3
push 0x38
call fcn.00418010
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
mov byte [esi], 1
call fcn.004043d0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], ebx
call fcn.00404430
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x40]
mov dword [ebp - 0x21c], esi
call fcn.00411d47
mov eax, dword [ebp - 0x21c]
call fcn.00435dc9
ret 4
Function at 0x41441c
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x43e9da
call fcn.00435e1f
mov esi, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x2e4], ebx
jle 0x414504
cmp eax, 0xffffffff
je 0x414504
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.004043d0
mov dword [ebp - 4], 1
mov ecx, eax
lea edi, [esi + 0x2d4]
call fcn.004044e0
push eax
mov ecx, edi
call fcn.00415c59
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004040e0
cmp dword [esi + 0x2e4], ebx
jbe 0x414504
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00415ee3
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x41449e
xor eax, eax
jmp 0x4144a0
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.004044d0
push 0
lea ecx, [ebp - 0x34]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.004041f0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4144d7
add ebx, dword [ebp - 0x34]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
dec ecx
and ecx, dword [edi + 0xc]
mov ecx, dword [eax + ecx*4]
call fcn.004040e0
sub dword [edi + 0x10], 1
jne 0x4144f5
and dword [edi + 0xc], 0
jmp 0x4144f8
inc dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x2e4], 0
ja 0x414487
mov eax, ebx
call fcn.00435dc9
ret 8
Function at 0x414e07
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x45900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov ebx, ecx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x414e8f
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x414e88
test dword [ebp - 0x408], 0xfffffffc
jbe 0x414e88
add ebx, 0xbc
push 0x104
push ebx
push dword [ebp + esi*4 - 0x404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x408]
inc esi
shr eax, 2
cmp esi, eax
jb 0x414e67
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417ff1
mov esp, ebp
pop ebp
ret 4
Function at 0x414ea2
Capabilities:
Accept command line arguments

Disassembly:
push 0xc0
mov eax, 0x43eb07
call fcn.00435e1f
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push str.Module_File_Name:
mov dword [ebp - 0xc8], eax
call fcn.004043d0
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push str.____Command_Line:
call fcn.004043d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push str.____File_Version:
call fcn.004043d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push str.______Process_ID:
call fcn.004043d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push str.________Built_on:
call fcn.004043d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push str.___Log_File_Name:__
call fcn.004043d0
mov byte [ebp - 4], 5
lea esi, [ebx + 0xbc]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea ecx, [ebp - 0x58]
call fcn.004042b0
push 0x14
call fcn.00418010
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 6
mov ecx, eax
push esi
call fcn.00411360
mov edi, eax
mov byte [ebp - 4], 5
test edi, edi
je 0x414f8c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x414f7a
push eax
jmp 0x414f7f
push str._no_version_info_
call fcn.004042b0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
lea eax, [ebp - 0xc4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x414fc2
push dword [ebp - 0xa4]
push str.___ld_bytes_
push 0x104
push esi
call fcn.0040967c
add esp, 0x10
lea ecx, [ebp - 0x58]
push esi
call fcn.004042b0
lea ecx, [ebp - 0x58]
call fcn.004041f0
mov esi, dword [ebp - 0xc8]
mov edi, 0x40000000
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414d37
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xa0]
call fcn.004042b0
lea ecx, [ebp - 0xa0]
call fcn.004041f0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414d37
lea ecx, [ebp - 0x40]
call fcn.004041f0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414d37
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x54]
push eax
lea ecx, [ebp - 0x88]
call fcn.00405040
lea ecx, [ebp - 0x88]
call fcn.004041f0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414d37
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.00405040
lea ecx, [ebp - 0x70]
call fcn.004041f0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414d37
mov ecx, esi
call fcn.00416bdc
push eax
lea ecx, [ebp - 0x28]
call fcn.004042b0
push 0x44fcf8
lea ecx, [ebp - 0x28]
call fcn.004042b0
lea ecx, [ebp - 0x28]
call fcn.004041f0
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414d37
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.004040e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004040e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.004040e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004040e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.004040e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004040e0
call fcn.00435dc9
ret 4
Function at 0x4150f3
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x43eb45
call fcn.00435e1f
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4152f3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415120
mov al, byte [eax]
jmp 0x415123
mov al, byte [esi + 0x18]
test al, al
je 0x4152f3
mov ecx, esi
call fcn.00416bdc
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00404430
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404430
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x415189
push edi
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00404300
push ebx
lea ecx, [ebp - 0x230]
jmp 0x4151b9
push ebx
push 0x104
push edi
call fcn.00421e5d
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404300
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00404300
test dword [esi + 0x10], 0x20000
je 0x415219
push edi
push 0
lea ecx, [ebp - 0x230]
call fcn.004041f0
push eax
lea ecx, [ebp - 0x248]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x415219
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x415219
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x415219
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.00404300
mov ecx, esi
call fcn.00416bdc
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.004385bd
pop ecx
test eax, eax
je 0x415297
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x415248
push 2
jmp 0x41524a
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415297
lea eax, [ebp - 0x254]
push eax
push edi
push 0x104
push 0
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x415290
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x415290
push edi
add ecx, 4
call fcn.00404300
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x4152c5
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.00414ea2
test dword [esi + 0x10], 0x100000
je 0x4152c5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.00414e07
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4152d1
mov byte [eax], 0
jmp 0x4152d5
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004040e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.004040e0
call fcn.00435dc9
ret 4
Function at 0x415fe9
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x43ed37
call fcn.00435e1f
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00404430
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x416071
lea ecx, [ebp - 0x28]
call fcn.00404430
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.00416b0d
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00405240
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00404350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004040e0
lea ecx, [ebp - 0x28]
call fcn.004041f0
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004040e0
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416116
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00405240
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004041f0
push eax
mov edi, 0x88
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x416102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x416100
test ebx, ebx
je 0x4160fb
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00413157
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
inc dword [eax]
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004040e0
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004040e0
mov eax, esi
call fcn.00435dc9
ret 4
Function at 0x41616c
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x43eda3
call fcn.00435e1f
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00404430
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x4161f4
lea ecx, [ebp - 0x28]
call fcn.00404430
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.00416b0d
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00405240
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00404350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004040e0
lea ecx, [ebp - 0x28]
call fcn.004041f0
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004040e0
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4162d3
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00405240
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004041f0
push eax
push 0x48
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x4162bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x48
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 0xc], edi
test edi, edi
je 0x4162bd
test ebx, ebx
je 0x4162ab
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 4
xor ebx, ebx
mov dword [edi + 4], ebx
lea ecx, [edi + 0x14]
mov dword [edi], vtable.NGLogging::CExtMonitorSettings.0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
call fcn.00404430
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.00404430
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x4162ad
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
inc dword [ecx]
jmp 0x4162bf
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004040e0
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004040e0
mov eax, esi
call fcn.00435dc9
ret 4
Function at 0x4169da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x416a54
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416a54
cmp dword [ebp - 8], 1
jne 0x416a54
mov eax, dword [ebp - 4]
xor ecx, ecx
push esi
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004185da
mov esi, eax
pop ecx
test esi, esi
je 0x416a53
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416a4c
mov ecx, dword [ebp + 8]
push esi
call fcn.00404300
push esi
call fcn.004185e3
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esp, ebp
pop ebp
ret 0x2c

Function at 0x429ff9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429cb9

Function at 0x42ffca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042fc8d

Function at 0x42ffd5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042fe0e
Function at 0x434630
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x43f208
call fcn.00435e1f
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x43474d
cmp byte [ebx + 0x3e], 0
je 0x43474d
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00418b84
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x43467c
xor al, al
jmp 0x43474f
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00434953
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4346ac
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.00418b84
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x4346e1
sub eax, 1
je 0x4346e5
dec eax
sub eax, 1
je 0x43473b
xor bl, bl
jmp 0x43473d
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x4346f5
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x43471d
cmp eax, 0x10
jae 0x434704
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0043a2c4
add esp, 0x10
cmp esi, eax
jne 0x4346dd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x43473b
test esi, esi
jne 0x4346a0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004092a0
jmp 0x43469a
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004096b4
mov al, bl
jmp 0x43474f
mov al, 1
call fcn.00435dc9
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x728008], 0x8088405
inc edx
mov dword [ebx + 0x728008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x70c53a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70c541
ret