joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f00d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4197a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b3e7
mov dword [ebp - 0x14], eax
cmp dword [0x4356c0], esi
jne 0x40f100
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f08d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f1e0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f1e0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f1e0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4356c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4356c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4356c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4356d0], eax
test eax, eax
je 0x40f0fd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4356cc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f125
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f118
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f13a
push 4
pop eax
jmp 0x40f1e2
cmp dword [ebp - 0x14], esi
je 0x40f13a
push dword [0x4356c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f11f
mov eax, dword [0x4356cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f198
cmp dword [0x4356d0], edi
je 0x40f198
push eax
call ebx
push dword [0x4356d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f198
test eax, eax
je 0x40f198
call ecx
test eax, eax
je 0x40f18d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f18d
test byte [ebp - 8], 1
jne 0x40f198
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f1c8
mov eax, dword [0x4356c4]
cmp eax, edi
je 0x40f1c5
push eax
call ebx
test eax, eax
je 0x40f1c5
call eax
mov esi, eax
test esi, esi
je 0x40f1c5
mov eax, dword [0x4356c8]
cmp eax, edi
je 0x40f1c5
push eax
call ebx
test eax, eax
je 0x40f1c5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4356c0]
call ebx
test eax, eax
je 0x40f1e0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f1e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ef8
mov esp, ebp
pop ebp
ret
Function at 0x10024ea4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10024eb3
pop dword [ebp - 0xc]
mov eax, 0x138f3aa1
sub eax, 0x38cebee
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3dd7c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x5f3ec65f
sub ecx, 0x5f3e72c3
xor ebx, ebx
add ebx, eax
mov edi, 0x667e0275
add edi, 0xa985d78b
add edi, dword [ebp - 0xc]
mov edx, 0xe9368065
add edx, 0x7a4290d
mov dword [ebp - 4], 0x9faa80ec
mov esi, dword [edi]
sub dword [ebp - 8], edi
xor esi, edx
xor dword [ebp - 8], edx
mov dword [ebx], esi
sub dword [ebp - 8], 0x42d2ed05
add ebx, 4
add edi, 4
loop 0x10024f0f
add eax, 0x14143
mov ebx, eax
add eax, 5
mov ecx, 0x269529c1
add ecx, 0xe96ad63f
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x404150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00419abb

Function at 0x406674
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x553be0
call fcn.00534d23
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, eax
test edi, edi
je 0x40674a
cmp word [edi], ax
je 0x40674a
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4066c6
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00537433
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040a612
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040661e
mov esi, eax
test esi, esi
jne 0x40674a
push 0x38
call fcn.0041516f
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x406725
lea eax, [ebp - 0x218]
mov byte [esi], 1
push eax
lea ecx, [esi + 4]
call fcn.00404880
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
and dword [esi + 0x1c], 0
call fcn.00404e31
mov byte [ebp - 4], 0
jmp 0x406727
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x40674a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x40]
call fcn.004090df
mov esi, dword [ebp - 0x21c]
mov eax, esi
call fcn.00534cd2
ret 4
Function at 0x4076f2
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x553f16
call fcn.00534d23
mov ebx, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x30], eax
cmp dword [ebx + 0x2e4], edi
jle 0x4077bd
cmp eax, 0xffffffff
je 0x4077bd
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x28]
call fcn.00404880
mov dword [ebp - 4], 1
lea esi, [ebx + 0x2d4]
push eax
mov ecx, esi
call fcn.004091a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404190
jmp 0x4077b4
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004096da
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x407762
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov ecx, dword [eax + ecx*4]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x40777a
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x2c]
add eax, eax
push edx
push eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407794
add edi, dword [ebp - 0x2c]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
dec ecx
and ecx, dword [esi + 0xc]
mov ecx, dword [eax + ecx*4]
call fcn.00404190
dec dword [esi + 0x10]
jne 0x4077b1
and dword [esi + 0xc], 0
jmp 0x4077b4
inc dword [esi + 0xc]
cmp dword [ebx + 0x2e4], 0
ja 0x40774d
mov eax, edi
call fcn.00534cd2
ret 8
Function at 0x40813c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x553fd5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5c11b0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5c11b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0x14]
lea ecx, [esp + 0x18]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x2c], eax
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 7
call fcn.004046d0
and dword [esp + 0x40], 0
lea eax, [esp + 0x18]
push eax
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [esi + 0x10]
call fcn.00407e42
test dword [ebp + 0xc], 0x8000000
jne 0x4081c7
test dword [esi + 0x10], 0x80000
je 0x408201
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmovae eax, dword [esp + 0x18]
push eax
call ebx
mov ecx, edi
call fcn.00407302
cmp dword [eax + 0x14], 8
jb 0x4081ed
mov eax, dword [eax]
push eax
call ebx
push dword [esp + 0x14]
call ebx
push 0x59a870
call ebx
mov ebx, dword [esp + 0x14]
mov ecx, esi
call fcn.0040a892
push eax
call fcn.00534589
pop ecx
test eax, eax
jne 0x40821b
cmp dword [edi + 0x2e8], eax
je 0x408233
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ebx
cmovae eax, dword [esp + 0x1c]
mov ecx, edi
push eax
push esi
call fcn.004077c7
test dword [esi + 0x10], 0x10000000
je 0x408249
lea eax, [edi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
or dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00404190
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0053398f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408277
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5c11b0]
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 0x4082ff
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 0x4082f8
test dword [ebp - 0x408], 0xfffffffc
jbe 0x4082f8
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 0x4082d7
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.0053398f
mov esp, ebp
pop ebp
ret 4
Function at 0x409c9c
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x554352
call fcn.00534d23
mov esi, ecx
push 7
xor ebx, ebx
mov dword [ebp - 0x5c], esi
pop edi
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x40]
push ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
call fcn.004046d0
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x409d3b
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.004046d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.0040a7b1
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0040a0ee
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a064
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404190
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
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.00404190
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409de3
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040a0ee
pop ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, 0x88
cmovae eax, dword [ebp - 0x28]
push eax
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 0x409dcf
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 0x409dcd
test ebx, ebx
je 0x409dc8
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00406424
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.00404190
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404190
mov eax, esi
call fcn.00534cd2
ret 4
Function at 0x409e39
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x5543be
call fcn.00534d23
mov esi, ecx
push 7
xor ebx, ebx
mov dword [ebp - 0x5c], esi
pop edi
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x40]
push ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
call fcn.004046d0
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x409ed8
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.004046d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.0040a7b1
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0040a0ee
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a064
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404190
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
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.00404190
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409fbc
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040a0ee
pop ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
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 0x409fa8
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 0x409fa6
test ebx, ebx
je 0x409f92
mov dword [ebp - 0x60], 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.00404e31
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.00404e31
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x409f94
xor ebx, ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x409fa0
add eax, 4
jmp 0x409fa2
mov eax, ebx
inc dword [eax]
jmp 0x409fa8
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.00404190
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404190
mov eax, esi
call fcn.00534cd2
ret 4
Function at 0x40a684
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 0x40a6fe
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 0x40a6fe
cmp dword [ebp - 8], 1
jne 0x40a6fe
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.004151a1
mov esi, eax
pop ecx
test esi, esi
je 0x40a6fd
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 0x40a6f6
mov ecx, dword [ebp + 8]
push esi
call fcn.00404830
push esi
call fcn.0041519c
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e8e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.004212fb
push 5
push esi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40e94c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e94c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40e94c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40e94c
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40e94c
push esi
push dword [ebp - 4]
push esi
push edi
call fcn.0053425b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410a88
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x5551d6
call fcn.00534d59
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 0x410b5e
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 0x410b5e
mov byte [ebp - 4], 1
push ebx
call fcn.004151a1
pop ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 4], edi
jmp 0x410b07
cmp dword [esi + 0xc], 0
je 0x410b5e
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 0x410b5e
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
push 0x59d4e8
push dword [esi + 0xc]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x410b4c
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 0x59a7e0
push dword [esi + 0xc]
call edi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00534cbe
ret 4

Function at 0x410e10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateProcessW]

Function at 0x410e60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateThread]

Function at 0x410e70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00536cc9
add esp, 0x18
pop ebp
ret

Function at 0x410ed0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TerminateThread]

Function at 0x410fb0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]

Function at 0x4114a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]

Function at 0x4116e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x4116f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteW]
Function at 0x412483
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x7c
mov eax, 0x554ae7
call fcn.00534d23
mov esi, ecx
push ecx
push ecx
push 0x1a3
push str.NGUtils::CFileUtils::DeleteFileW
push 0x5ce830
push dword [0x5cdd9c]
lea ecx, [ebp - 0x88]
call fcn.0040514c
and dword [ebp - 4], 0
push 8
pop edi
cmp dword [esi + 0x14], edi
jb 0x4124c3
mov eax, dword [esi]
jmp 0x4124c5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412520
test bl, 1
je 0x412539
and ebx, 0xfffffffe
cmp dword [esi + 0x14], edi
jb 0x4124e4
mov eax, dword [esi]
jmp 0x4124e6
mov eax, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x412539
cmp dword [esi + 0x14], edi
jb 0x4124f9
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push str.::SetFileAttributes__s__0x_X___error_d
push 0x1b2
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.00405445
add esp, 0x1c
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.004051b5
mov al, bl
call fcn.00534cd2
ret
cmp dword [esi + 0x14], edi
jb 0x412542
mov eax, dword [esi]
jmp 0x412544
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41257e
cmp dword [esi + 0x14], edi
jb 0x412556
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.::DeleteFile__s___error_d
push 0x1b9
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.00405445
add esp, 0x18
jmp 0x412520
mov bl, 1
jmp 0x412522

Function at 0x4128ed
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], ebx
mov esi, edi
jmp 0x412902
mov ebx, dword [ebp - 4]
add edi, 0x200
test esi, esi
je 0x412913
push esi
call fcn.0041519c
pop ecx
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004151a1
mov esi, eax
pop ecx
test esi, esi
je 0x412977
xor eax, eax
mov word [esi], ax
lea eax, [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x412940
mov eax, dword [eax]
push eax
push edi
push esi
push 0x59a448
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
lea ecx, [edi - 1]
cmp ebx, ecx
jae 0x4128ff
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00404830
push esi
call fcn.0041519c
xor eax, eax
cmp eax, ebx
pop ecx
sbb eax, eax
neg eax
jmp 0x412979
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412982
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55557c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5c11b0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5c11b0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x10], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
jmp 0x4129de
mov ebx, dword [esp + 0x14]
add edi, 0x200
test esi, esi
je 0x4129ef
push esi
call fcn.0041519c
pop ecx
push edi
call fcn.004151a1
mov esi, eax
pop ecx
test esi, esi
je 0x412aa2
xor eax, eax
mov byte [esi], al
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
mov dword [esp + 0x48], eax
lea ecx, [ebx + 4]
cmp dword [ecx + 0x14], 8
jb 0x412a2d
mov edx, dword [ecx]
jmp 0x412a2f
mov edx, ecx
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
lea eax, [edx + eax*2]
jb 0x412a3d
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00412ec2
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push edi
push esi
push 0x59a534
push dword [esp + 0x2c]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402a30
lea edx, [edi - 1]
cmp ebx, edx
jae 0x4129da
mov ecx, dword [esp + 0x18]
push esi
call fcn.00402b90
push esi
call fcn.0041519c
xor eax, eax
cmp eax, ebx
pop ecx
sbb eax, eax
neg eax
jmp 0x412aa4
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053398f
mov esp, ebp
pop ebp
ret 0xc