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

Disassembly:
push 0x10
mov eax, 0x43dcd7
call fcn.00435db3
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 0x4113b6
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 0x4113b6
mov byte [ebp - 4], 1
push ebx
call fcn.00418557
pop ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 4], edi
jmp 0x41135f
cmp dword [esi + 0xc], 0
je 0x4113b6
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 0x4113b6
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 0x4113a4
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 0x44c714
push dword [esi + 0xc]
call edi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00435d11
ret 4

Function at 0x41336c
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x43e64e
call fcn.00435d7c
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, ebx
test esi, esi
je 0x413431
cmp word [esi], bx
je 0x413431
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4133c1
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00421d3c
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.004168ab
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00413312
test eax, eax
jne 0x413431
push 0x38
call fcn.00417f70
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.00404330
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], ebx
call fcn.00404390
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x40]
mov dword [ebp - 0x21c], esi
call fcn.00411cc7
mov eax, dword [ebp - 0x21c]
call fcn.00435d26
ret 4
Function at 0x414398
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x43e93a
call fcn.00435d7c
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 0x414480
cmp eax, 0xffffffff
je 0x414480
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.00404330
mov dword [ebp - 4], 1
mov ecx, eax
lea edi, [esi + 0x2d4]
call fcn.00404440
push eax
mov ecx, edi
call fcn.00415bd5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404040
cmp dword [esi + 0x2e4], ebx
jbe 0x414480
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00415e5f
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x41441a
xor eax, eax
jmp 0x41441c
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.00404430
push 0
lea ecx, [ebp - 0x34]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.00404150
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414453
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.00404040
sub dword [edi + 0x10], 1
jne 0x414471
and dword [edi + 0xc], 0
jmp 0x414474
inc dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x2e4], 0
ja 0x414403
mov eax, ebx
call fcn.00435d26
ret 8
Function at 0x414d83
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 0x414e0b
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 0x414e04
test dword [ebp - 0x408], 0xfffffffc
jbe 0x414e04
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 0x414de3
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.00417f51
mov esp, ebp
pop ebp
ret 4
Function at 0x414e1e
Capabilities:
Accept command line arguments

Disassembly:
push 0xc0
mov eax, 0x43ea67
call fcn.00435d7c
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push str.Module_File_Name:
mov dword [ebp - 0xc8], eax
call fcn.00404330
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push str.____Command_Line:
call fcn.00404330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push str.____File_Version:
call fcn.00404330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push str.______Process_ID:
call fcn.00404330
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push str.________Built_on:
call fcn.00404330
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push str.___Log_File_Name:__
call fcn.00404330
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.00404210
push 0x14
call fcn.00417f70
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 6
mov ecx, eax
push esi
call fcn.004112e0
mov edi, eax
mov byte [ebp - 4], 5
test edi, edi
je 0x414f08
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x414ef6
push eax
jmp 0x414efb
push str._no_version_info_
call fcn.00404210
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 0x414f3e
push dword [ebp - 0xa4]
push str.___ld_bytes_
push 0x104
push esi
call fcn.004095ed
add esp, 0x10
lea ecx, [ebp - 0x58]
push esi
call fcn.00404210
lea ecx, [ebp - 0x58]
call fcn.00404150
mov esi, dword [ebp - 0xc8]
mov edi, 0x40000000
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414cb3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00404210
lea ecx, [ebp - 0xa0]
call fcn.00404150
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414cb3
lea ecx, [ebp - 0x40]
call fcn.00404150
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414cb3
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x54]
push eax
lea ecx, [ebp - 0x88]
call fcn.00404fa0
lea ecx, [ebp - 0x88]
call fcn.00404150
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414cb3
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404fa0
lea ecx, [ebp - 0x70]
call fcn.00404150
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414cb3
mov ecx, esi
call fcn.00416b58
push eax
lea ecx, [ebp - 0x28]
call fcn.00404210
push 0x44fcd8
lea ecx, [ebp - 0x28]
call fcn.00404210
lea ecx, [ebp - 0x28]
call fcn.00404150
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.00414cb3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00404040
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00404040
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00404040
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00404040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00404040
call fcn.00435d26
ret 4
Function at 0x41506f
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x43eaa5
call fcn.00435d7c
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41526f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41509c
mov al, byte [eax]
jmp 0x41509f
mov al, byte [esi + 0x18]
test al, al
je 0x41526f
mov ecx, esi
call fcn.00416b58
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00404390
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404390
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x415105
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.00404260
push ebx
lea ecx, [ebp - 0x230]
jmp 0x415135
push ebx
push 0x104
push edi
call fcn.00421d3c
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404260
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00404260
test dword [esi + 0x10], 0x20000
je 0x415195
push edi
push 0
lea ecx, [ebp - 0x230]
call fcn.00404150
push eax
lea ecx, [ebp - 0x248]
call fcn.00404150
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x415195
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x415195
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x415195
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.00404260
mov ecx, esi
call fcn.00416b58
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.0043851d
pop ecx
test eax, eax
je 0x415213
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x4151c4
push 2
jmp 0x4151c6
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415213
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 0x41520c
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41520c
push edi
add ecx, 4
call fcn.00404260
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x415241
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.00414e1e
test dword [esi + 0x10], 0x100000
je 0x415241
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.00414d83
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41524d
mov byte [eax], 0
jmp 0x415251
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00404040
call fcn.00435d26
ret 4
Function at 0x415f65
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x43ec97
call fcn.00435d7c
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00404390
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x415fed
lea ecx, [ebp - 0x28]
call fcn.00404390
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.00416a89
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004051a0
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.004042b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404040
lea ecx, [ebp - 0x28]
call fcn.00404150
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.00404040
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416092
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004051a0
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00404150
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 0x41607e
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 0x41607c
test ebx, ebx
je 0x416077
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004130d5
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.00404040
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404040
mov eax, esi
call fcn.00435d26
ret 4
Function at 0x4160e8
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x43ed03
call fcn.00435d7c
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00404390
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x416170
lea ecx, [ebp - 0x28]
call fcn.00404390
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.00416a89
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004051a0
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.004042b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404040
lea ecx, [ebp - 0x28]
call fcn.00404150
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.00404040
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41624f
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004051a0
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00404150
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 0x41623b
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 0x416239
test ebx, ebx
je 0x416227
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.00404390
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.00404390
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x416229
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
inc dword [ecx]
jmp 0x41623b
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.00404040
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404040
mov eax, esi
call fcn.00435d26
ret 4
Function at 0x416956
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 0x4169d0
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 0x4169d0
cmp dword [ebp - 8], 1
jne 0x4169d0
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.00418557
mov esi, eax
pop ecx
test esi, esi
je 0x4169cf
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 0x4169c8
mov ecx, dword [ebp + 8]
push esi
call fcn.00404260
push esi
call fcn.00418560
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417460
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 0x429ccf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042998f

Function at 0x42ff28
Capabilities:
Read file on windows

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

Function at 0x42ff33
Capabilities:
Read file on windows

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

Disassembly:
push 0x20
mov eax, 0x43f168
call fcn.00435d7c
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4346ad
cmp byte [ebx + 0x3e], 0
je 0x4346ad
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.00418b01
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x4345dc
xor al, al
jmp 0x4346af
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.004348b3
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x43460c
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.00418b01
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x434641
sub eax, 1
je 0x434645
dec eax
sub eax, 1
je 0x43469b
xor bl, bl
jmp 0x43469d
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x434655
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x43467d
cmp eax, 0x10
jae 0x434664
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0043a224
add esp, 0x10
cmp esi, eax
jne 0x43463d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x43469b
test esi, esi
jne 0x434600
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409211
jmp 0x4345fa
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00409625
mov al, bl
jmp 0x4346af
mov al, 1
call fcn.00435d26
ret
Function at 0x41aea4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41aeb3
pop dword [ebp - 0x10]
mov eax, 0x41aeb3
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xdf5fd90
sub dword [ebp - 0x20], 0xbfa3b845
mov dword [ebp - 0x1c], 0x31ebe47f
add dword [ebp - 0x1c], 0x4767c6
mov dword [ebp - 0x18], 0x733443c6
add dword [ebp - 0x18], 0xd9180068
mov dword [ebp - 0x14], 0xabcfb6c8
sub dword [ebp - 0x14], 0xabcfb6c8
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x6e8ebb99
add dword [ebp - 0x20], 0x5e3adbd
mov dword [ebp - 0x1c], 0x12fa66ef
sub dword [ebp - 0x1c], 0xd18e057a
mov dword [ebp - 0x18], 0x19f0f346
add dword [ebp - 0x18], 0x497e7926
mov dword [ebp - 0x14], 0x2ac8219f
add dword [ebp - 0x14], 0xd537de61
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x4d751
push 0
call eax
mov ecx, 0x7e46efb7
sub ecx, 0x7e46a72a
xor edx, edx
add edx, eax
mov ebx, 0xfa9987df
add ebx, 0x5add821
add ebx, dword [ebp - 0x10]
mov edi, 0xf71a5ca0
mov esi, dword [ebx]
sub dword [ebp - 4], 0xbd5b6498
sub esi, edi
sub dword [ebp - 8], 0xef90d33a
mov dword [edx], esi
xor dword [ebp - 8], 0xcc113a6f
add edx, 0xfb993f14
add edx, 0x466c0f0
add ebx, 0x1e9dfbb
sub ebx, 0x1e9dfb7
loop 0x41afc2
add eax, 0x11507
mov ebx, eax
add eax, 0x63e9653d
sub eax, 0x63e96538
mov ecx, 0x65a888e1
sub ecx, 0x656888e1
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4016e4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4016f6
mov eax, dword [0x5dd09f]
shl eax, 2
mov dword [0x5dd0a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov edx, eax
call fcn.005cafa4
pop edx
call fcn.005caee8
call fcn.005cb100
push 0
call fcn.005ccd1c
pop ecx
push 0x5dd048
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [0x5dd0a7], eax
push 0
jmp fcn.005d6b34
Function at 0x4861d8
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
lea ebx, [ebp + 8]
lea esi, [ebp - 0x24]
mov eax, 0x5feef4
call fcn.005cc11c
mov word [esi + 0x10], 0xc
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx], ecx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 4
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 8
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0xc
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x10
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x14
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x18
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x1c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x20
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x24
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x28
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x2c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x30
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x34
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x38
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x44
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x48
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x4c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x50
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov ecx, dword [ebx]
mov byte [ecx + 0x55], 0
mov ecx, dword [ebx]
mov byte [ecx + 0x56], 0
mov eax, dword [ebx]
mov byte [eax + 0x57], 0
mov edx, dword [ebx]
mov byte [edx + 0x58], 0
mov ecx, dword [ebx]
mov byte [ecx + 0x59], 0
mov eax, dword [ebx]
mov byte [eax + 0x5a], 0
mov eax, dword [ebx]
add eax, 0x5c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x60
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x64
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x68
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x6c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x70
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x74
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x78
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret