joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002928
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004040]
jne 0x1002931
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1004188], eax
mov dword [0x1004184], ecx
mov dword [0x1004180], edx
mov dword [0x100417c], ebx
mov dword [0x1004178], esi
mov dword [0x1004174], edi
mov word [0x10041a0], ss
mov word [0x1004194], cs
mov word [0x1004170], ds
mov word [0x100416c], es
mov word [0x1004168], fs
mov word [0x1004164], gs
pushfd
pop dword [0x1004198]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x100419c], ecx
mov dword [0x1004190], eax
mov dword [0x10040d8], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x1004094], eax
mov eax, dword [0x1004040]
xor edi, edi
mov dword [0x100418c], ecx
mov dword [0x1004088], 0xc0000409
inc edi
mov dword [0x100408c], edi
mov dword [ebp - 4], eax
mov eax, dword [0x1004044]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1002a0c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418008]
jne 0x40100a
repz ret
jmp fcn.00401671

Function at 0x40482b
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.00402cea
and dword [ebp - 4], 0
cmp dword [0x419cb0], 0
mov ebx, eax
jne 0x4048dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40498d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40498d
push eax
call fcn.00402c78
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419cb0], eax
call esi
push eax
call fcn.00402c78
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419cb4], eax
call esi
push eax
call fcn.00402c78
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419cb8], eax
call esi
push eax
call fcn.00402c78
pop ecx
mov dword [0x419cc0], eax
test eax, eax
je 0x4048dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402c78
pop ecx
mov dword [0x419cbc], eax
mov eax, dword [0x419cbc]
cmp eax, ebx
je 0x404934
cmp dword [0x419cc0], ebx
je 0x404934
push eax
call fcn.00402cf3
push dword [0x419cc0]
mov esi, eax
call fcn.00402cf3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404934
test edi, edi
je 0x404934
call esi
test eax, eax
je 0x40492b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40492b
test byte [ebp - 0xc], 1
jne 0x404934
or dword [ebp + 0x10], 0x200000
jmp 0x40496d
mov eax, dword [0x419cb4]
cmp eax, ebx
je 0x40496d
push eax
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40496d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40496d
mov eax, dword [0x419cb8]
cmp eax, ebx
je 0x40496d
push eax
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40496d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419cb0]
call fcn.00402cf3
pop ecx
test eax, eax
je 0x40498d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40498f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4f23dc]
push ebx
push esi
mov esi, dword [0x4f2224]
mov ebx, eax
cmp eax, 0x5dd
jne 0x41549a
push 0
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x418c60]
call fcn.00415360
cmp dword [0x4f23dc], 0x2f
jne 0x4154b5
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.004153a0
add esp, 4
cmp dword [0x4f23dc], 0x568
pop esi
pop ebx
jne 0x4154dc
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x5001f0d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x4c], 0x70747468
mov dword [ebp - 0x48], 0x702f2f3a
mov dword [ebp - 0x44], 0x68637461
mov dword [ebp - 0x40], 0x6963702e
mov dword [ebp - 0x3c], 0x6968636b
mov dword [ebp - 0x38], 0x632e616e
mov dword [ebp - 0x34], 0x702f6d6f
mov dword [ebp - 0x30], 0x68637461
mov dword [ebp - 0x2c], 0x6f666e69
mov dword [ebp - 0x28], 0x7265732f
mov dword [ebp - 0x24], 0x6c726576
mov dword [ebp - 0x20], 0x2e747369
mov dword [ebp - 0x1c], 0x747874
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], eax
call 0x5001f84
js 0xf0592e71
add dl, byte [eax + 0x33]
add ecx, 2
jmp 0x5001f8f
push ecx
ret
Function at 0x40390b
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x42ae21
call fcn.0040d509
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, ebx
test esi, esi
je 0x4039d0
cmp word [esi], bx
je 0x4039d0
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x403960
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00413a21
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00408498
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004038b1
test eax, eax
jne 0x4039d0
push 0x38
call fcn.0040cff7
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.004013b9
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], ebx
call fcn.00402195
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x40]
mov dword [ebp - 0x21c], esi
call fcn.0040602f
mov eax, dword [ebp - 0x21c]
call fcn.0040d4b3
ret 4
Function at 0x4047cc
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x42b0ac
call fcn.0040d509
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
cmp dword [ebx + 0x2e4], esi
jle 0x4048aa
cmp eax, 0xffffffff
je 0x4048aa
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.004013b9
mov dword [ebp - 4], 1
lea edi, [ebx + 0x2d4]
push eax
mov ecx, edi
call fcn.004063ef
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018e3
jmp 0x4048a1
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00406a6d
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x404841
xor eax, eax
jmp 0x404843
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.0040147a
push 0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.00402326
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x404880
add esi, dword [ebp - 0x38]
mov dword [ebp - 0x30], esi
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.004018e3
sub dword [edi + 0x10], 1
jne 0x40489e
and dword [edi + 0xc], 0
jmp 0x4048a1
inc dword [edi + 0xc]
cmp dword [ebx + 0x2e4], 0
ja 0x40482a
mov eax, esi
call fcn.0040d4b3
ret 8
Function at 0x4052ba
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x43f06c]
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 0x405342
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 0x40533b
test dword [ebp - 0x408], 0xfffffffc
jbe 0x40533b
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 0x40531a
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.0040cd5c
mov esp, ebp
pop ebp
ret 4
Function at 0x4055ee
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x42b217
call fcn.0040d509
mov ebx, ecx
mov dword [ebp - 0x250], ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x405816
mov eax, dword [edi + 0x14]
test eax, eax
je 0x40561b
mov al, byte [eax]
jmp 0x40561e
mov al, byte [edi + 0x18]
test al, al
je 0x405816
mov ecx, edi
call fcn.00408769
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.00402195
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402195
mov byte [ebp - 4], 1
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add ebx, 0xbc
test eax, eax
je 0x405694
push ebx
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push ebx
call fcn.004013ea
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x248]
call fcn.00401786
push esi
call fcn.004013ea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
jmp 0x4056d6
push esi
push 0x104
push ebx
call fcn.00413a21
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push esi
call fcn.004013ea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00401786
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
call fcn.004013ea
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x248]
call fcn.00401786
test dword [edi + 0x10], 0x20000
je 0x405744
push ebx
push 0
lea ecx, [ebp - 0x230]
call fcn.00402326
push eax
lea ecx, [ebp - 0x248]
call fcn.00402326
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x405744
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x405744
mov esi, dword [edi + 0x14]
test esi, esi
je 0x405744
lea eax, [ebp - 0x218]
push eax
call fcn.004013ea
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
call fcn.00401786
mov ecx, edi
call fcn.00408769
mov esi, eax
push esi
mov dword [ebp - 0x24c], esi
call fcn.00413618
pop ecx
test eax, eax
je 0x4057ba
xor eax, eax
test dword [edi + 0x10], 0x10000
push eax
push 0x80
je 0x405773
push 2
jmp 0x405775
push 4
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057ba
lea eax, [ebp - 0x254]
push eax
push ebx
push 0x104
push 0
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4057b3
push ebx
mov ecx, edi
call fcn.0040877e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [edi + 0xc], 0x40000000
je 0x4057e8
mov esi, dword [ebp - 0x250]
mov ecx, esi
push edi
call fcn.00405355
test dword [edi + 0x10], 0x100000
je 0x4057e8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.004052ba
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4057f4
mov byte [eax], 0
jmp 0x4057f8
mov byte [edi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004018e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.004018e3
call fcn.0040d4b3
ret 4
Function at 0x4071bb
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x42b45a
call fcn.0040d509
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00402195
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x407243
lea ecx, [ebp - 0x28]
call fcn.00402195
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.00408688
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00407713
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.004022d5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004018e3
lea ecx, [ebp - 0x28]
call fcn.00402326
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.004018e3
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4072e8
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00407713
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402326
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 0x4072d4
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 0x4072d2
test ebx, ebx
je 0x4072cd
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.0040366a
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.004018e3
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004018e3
mov eax, esi
call fcn.0040d4b3
ret 4
Function at 0x40733e
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x42b4c6
call fcn.0040d509
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00402195
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x4073c6
lea ecx, [ebp - 0x28]
call fcn.00402195
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.00408688
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00407713
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.004022d5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004018e3
lea ecx, [ebp - 0x28]
call fcn.00402326
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.004018e3
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4074a5
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00407713
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402326
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 0x407491
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 0x40748f
test ebx, ebx
je 0x40747d
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.00402195
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.00402195
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x40747f
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
inc dword [ecx]
jmp 0x407491
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.004018e3
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004018e3
mov eax, esi
call fcn.0040d4b3
ret 4
Function at 0x408543
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 0x4085c5
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 0x4085c5
cmp dword [ebp - 8], 1
jne 0x4085c5
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.0040d02a
mov esi, eax
pop ecx
test esi, esi
je 0x4085c4
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 0x4085bd
push esi
call fcn.004013ea
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00401786
push esi
call fcn.0040d033
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408b80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x408ba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x408fce
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x42b867
call fcn.0040d540
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 0x4090a4
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 0x4090a4
mov byte [ebp - 4], 1
push ebx
call fcn.0040d02a
pop ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 4], edi
jmp 0x40904d
cmp dword [esi + 0xc], 0
je 0x4090a4
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 0x4090a4
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
push 0x439750
push dword [esi + 0xc]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x409092
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 0x438f84
push dword [esi + 0xc]
call edi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040d49e
ret 4
Function at 0x4094a0
Capabilities:
Create process on windows

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

Function at 0x409570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x409650
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret 8

Function at 0x409810
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40a360
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esp, ebp
pop ebp
ret 8
Function at 0x40b5bd
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x42ba29
call fcn.0040d509
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40b6da
cmp byte [ebx + 0x3e], 0
je 0x40b6da
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040d498
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x40b609
xor al, al
jmp 0x40b6dc
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.0040b8e0
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x40b639
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.0040d498
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x40b66e
sub eax, 1
je 0x40b672
dec eax
sub eax, 1
je 0x40b6c8
xor bl, bl
jmp 0x40b6ca
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x40b682
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x40b6aa
cmp eax, 0x10
jae 0x40b691
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00416afc
add esp, 0x10
cmp esi, eax
jne 0x40b66a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x40b6c8
test esi, esi
jne 0x40b62d
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00406edd
jmp 0x40b627
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040663a
mov al, bl
jmp 0x40b6dc
mov al, 1
call fcn.0040d4b3
ret

Function at 0x41ee52
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041eb15

Function at 0x41ee5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ec96

Function at 0x422d74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422a34
Function at 0x82a370
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 0x82a38e
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 0x853074
push ecx
mov edi, eax
call fcn.0083e198
mov esi, eax
add esp, 8
test esi, esi
jne 0x82a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0083e02e
push esi
call fcn.0083dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret