joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401160
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43a1e3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x448e28]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.0041ab26
xor edi, edi
mov dword [esp + 0x2c], edi
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemoryDC.0
mov dword [ebp + 4], edi
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x2c], 1
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
cmp dword [ebx + 0xc], edi
sete al
mov dword [esi + 0x30], eax
cmp eax, edi
je 0x401270
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041ae2b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_EqualRect]
lea edi, [esi + 0x20]
test eax, eax
je 0x40120d
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x401228
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [edi], ecx
mov ecx, dword [esp + 0x44]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0041afc9
test ebp, ebp
je 0x40124e
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0041b058
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
mov dword [esi + 0x18], eax
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0041ac42
jmp 0x401282
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0x14
Function at 0x402ed0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push edi
lea edi, [esi + 0x6c]
push edi
call fcn.0040a8c0
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, 0x91
jne 0x402f12
cmp byte [0x44a23f], bl
je 0x402f12
push ebx
push ebx
push esi
push 0x405860
push ebx
push ebx
mov byte [0x44a23f], bl
mov byte [esi + 0xf4], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call ebp
push 8
push 0x43fc5c
lea ecx, [esi + 0xa0]
call fcn.00408530
mov ecx, esi
call fcn.004020a0
mov dword [esi + 0xb0], ebx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
ja 0x402f54
call fcn.004202bb
mov ecx, dword [edi + 0xc]
fldz
fstp dword [ecx + 0x128]
mov eax, 0x92492493
mov ecx, dword [esi + 0x94]
sub ecx, dword [esi + 0x90]
mov edi, 1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
ja 0x402f8c
call fcn.004202bb
mov ecx, dword [esi + 0x90]
mov dword [ecx + 0x50], edi
mov ecx, dword [esi + 0x94]
sub ecx, dword [esi + 0x90]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x402fbe
call fcn.004202bb
mov ecx, dword [esi + 0x90]
mov dword [ecx + 0x88], edi
mov ecx, esi
call fcn.004020a0
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x402fea
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x64]
push edx
call ebp
mov dword [esi + 0x64], ebx
mov eax, dword [esi + 0x58]
push ebx
push ebx
push 0x7dc
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
pop edi
pop ebp
pop ebx
ret
Function at 0x4039b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x270
mov eax, dword [0x448e28]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
mov esi, ecx
call fcn.004221b0
xor eax, eax
xor edx, edx
push 0x206
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, 1
push edx
lea eax, [esp + 0x76]
push eax
mov dword [esp + 0x30], 0x44
mov word [esp + 0x60], cx
mov dword [esp + 0x5c], ecx
mov word [esp + 0x78], dx
call fcn.004221b0
push esi
push 0x43fdb4
lea ecx, [esp + 0x80]
push 0x104
push ecx
call fcn.0041fc04
add esp, 0x28
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ebx, [ebx]
mov edx, dword [ebx + 0x60]
push 0
push edx
call esi
test eax, eax
je 0x403a8b
cmp eax, 0x80
je 0x403a8b
cmp eax, 0xffffffff
je 0x403a8b
mov eax, dword [esp + 8]
push 0xc8
push eax
call esi
cmp eax, 0x102
je 0x403a60
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.0041f350
add esp, 0x270
ret
Function at 0x404210
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404284
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40425d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40427d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
pop ecx
ret 0xc
mov ecx, dword [esp + 0x14]
movzx edx, word [esp + 0x10]
push ebx
push edi
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
pop ebx
test ecx, ecx
jg 0x4042e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
pop ecx
ret 0xc
Function at 0x404f90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43a022
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x448e28]
xor eax, esp
mov dword [esp + 0x854], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448e28]
xor eax, esp
push eax
lea eax, [esp + 0x86c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x87c]
xor ebx, ebx
mov dword [esp + 0x874], ebx
push 0x1c4
lea eax, [esp + 0x4a0]
mov dword [esp + 0x34], ebx
push ebx
mov ecx, 0x11
mov esi, str.SoftwareDTLSoftDriveTheLife2013
lea edi, [esp + 0x460]
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x20], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004221b0
add esp, 0xc
call fcn.0041b120
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40502a
push 0x80004005
call fcn.00408c10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x464]
push edx
mov dword [esp + 0x884], ebx
push 0x80000001
mov dword [esp + 0x44], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4051b9
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x5c]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x68], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push 0x206
lea ecx, [esp + 0x256]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x25c], ax
call fcn.004221b0
push 0x207
lea edx, [esp + 0x671]
push ebx
push edx
mov byte [esp + 0x678], bl
call fcn.004221b0
add esp, 0x18
xor esi, esi
cmp dword [esp + 0x18], ebx
jbe 0x4051b9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea esp, [esp]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
inc eax
inc ecx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x664]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x264]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea edx, [esp + 0x250]
push str.AppPath
push edx
call fcn.0041fddb
add esp, 8
test eax, eax
jne 0x4051ae
push 0x206
lea ecx, [esp + 0x4e]
push ebx
push ecx
mov dword [esp + 0x2c], 7
mov word [esp + 0x54], ax
call fcn.004221b0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.AppPath
push edx
mov dword [esp + 0x34], 0x104
call edi
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405192
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.00408530
inc esi
cmp esi, dword [esp + 0x18]
jb 0x4050f0
mov eax, ebp
mov ecx, dword [esp + 0x86c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x854]
xor ecx, esp
call fcn.0041f350
add esp, 0x864
ret 4
Function at 0x4054f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40555d
lea ecx, [esp + 0xc]
push ecx
push 0x440034
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x8002000d
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
Function at 0x4082d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4082e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408324
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408320
lea ebx, [ebx]
cmp esi, eax
jae 0x408324
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408310
cmp esi, eax
jb 0x40832a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x409500
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x448e28]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [str.1a2b3c4d]
mov edx, dword [0x440404]
mov dword [esp], eax
mov al, byte [0x440408]
mov byte [esp + 8], al
xor eax, eax
mov dword [esp + 4], edx
test esi, esi
jbe 0x409540
nop
mov edx, eax
and edx, 7
mov dl, byte [esp + edx]
xor byte [ecx + eax], dl
inc eax
cmp eax, esi
jb 0x409530
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041f350
add esp, 0x10
ret

Function at 0x40ba10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, dword [0x448e28]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
mov edx, 0x10
mov byte [esp], al
mov dword [esp + 1], eax
mov dword [esp + 5], eax
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
cmp dword [ecx + 0x1c], edx
jb 0x40ba57
mov eax, dword [ecx + 8]
jmp 0x40ba5a
lea eax, [ecx + 8]
cmp dword [ecx + 0x38], edx
jb 0x40ba64
mov ecx, dword [ecx + 0x24]
jmp 0x40ba67
add ecx, 0x24
push eax
push 0x20
lea eax, [esp + 8]
push eax
push 0x440418
push ecx
push str.filter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp]
push ecx
call fcn.0041fea2
mov ecx, dword [esp + 0x24]
add esp, 4
xor ecx, esp
call fcn.0041f350
add esp, 0x24
ret
Function at 0x40be70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x448e28]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40be9d
push 0x5c
push esi
call fcn.00420f40
add esp, 8
test eax, eax
je 0x40be9d
lea esi, [eax + 1]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push ecx
push 0x400
push 0x400
push 0x44d378
call fcn.0041fb14
add esp, 0x14
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test esi, esi
je 0x40bf3d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40bee0
xor eax, eax
jmp 0x40bef4
lea eax, [edi + edi]
call fcn.00429740
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040c260
mov ecx, dword [ebp + 0xc]
movzx edx, word [ebp - 0xc]
push 0x44d378
push ecx
movzx ecx, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xe]
push edx
movzx edx, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push ecx
movzx ecx, word [ebp - 0x18]
push edx
push eax
push ecx
mov eax, ebx
call fcn.0040be10
push eax
push str.__s_d__d__d__d:_d:_d__s:_d____s_n
push 0x400
push 0x44db78
call fcn.0041fc04
add esp, 0x34
jmp 0x40bf7f
movzx edx, word [ebp - 0xc]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x10]
push 0x44d378
push edx
movzx edx, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push ecx
movzx ecx, word [ebp - 0x18]
push edx
push eax
push ecx
mov eax, ebx
call fcn.0040be10
push eax
push str.__s_d__d__d__d:_d:_d___s_n
push 0x400
push 0x44db78
call fcn.0041fc04
add esp, 0x2c
mov edx, dword [ebp + 8]
cmp byte [edx + 4], 0
je 0x40c02f
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x44db78
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x40bfa5
xor eax, eax
jmp 0x40bfbf
lea esi, [eax + eax]
mov eax, esi
call fcn.00429740
mov eax, esp
push 3
push esi
push 0x44db78
push eax
call fcn.00408090
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bfc2
sub eax, edx
push 0x44db78
mov ebx, eax
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x40bfe0
xor edi, edi
jmp 0x40bffc
lea esi, [eax + eax]
mov eax, esi
call fcn.00429740
mov eax, esp
push 3
push esi
push 0x44db78
push eax
call fcn.00408090
mov edi, eax
mov esi, dword [ebp + 8]
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
push ecx
push ebx
push 1
push edi
call fcn.00420ccf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
push eax
call fcn.00420edb
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041f350
mov esp, ebp
pop ebp
ret
Function at 0x40c990
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x10], 0
jne 0x40c9a7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 4]
push edx
push 0
push eax
push 0x40c9f0
push 0
push 0
call fcn.0042160b
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
setne al
pop edi
ret 4

Function at 0x40cee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.0041bbd1
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x43fc38
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40cf09
pop edi
pop esi
pop ecx
ret 4
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40cf40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40cf40
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40cf40
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40cf49
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push edi
push eax
call fcn.00425940
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0xc]
push ecx
push 1
xor edi, edi
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40cf95
mov edx, dword [esp + 0xc]
push edx
call fcn.0040de80
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
Function at 0x40e5c0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x240
mov eax, dword [0x448e28]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x12c]
push eax
mov dword [esp + 0x130], 0x114
call esi
mov edx, dword [esp + 0x13c]
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
mov dword [0x44e3bc], ecx
mov dword [0x44e3c0], eax
cmp edx, 2
jne 0x40e6ee
cmp ecx, 5
jne 0x40e68a
test eax, eax
jne 0x40e631
mov dword [0x44e5d0], 7
jmp 0x40e742
cmp eax, 1
jne 0x40e645
mov dword [0x44e5d0], 8
jmp 0x40e742
cmp eax, 2
jne 0x40e738
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x11c
call esi
mov al, byte [esp + 0x12a]
cmp al, 3
je 0x40e67b
cmp al, 2
je 0x40e67b
mov dword [0x44e5d0], 9
jmp 0x40e742
mov dword [0x44e5d0], 0xa
jmp 0x40e742
cmp ecx, 6
jne 0x40e6dd
test eax, eax
jne 0x40e6cc
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x11c
call esi
mov al, byte [esp + 0x12a]
cmp al, 3
je 0x40e6c0
cmp al, 2
je 0x40e6c0
mov dword [0x44e5d0], 0xb
jmp 0x40e742
mov dword [0x44e5d0], 0xc
jmp 0x40e742
cmp eax, 1
jne 0x40e738
mov dword [0x44e5d0], 0xd
jmp 0x40e742
cmp ecx, 4
jne 0x40e738
mov dword [0x44e5d0], 6
jmp 0x40e742
cmp edx, 1
jne 0x40e72a
cmp ecx, 4
jne 0x40e738
test eax, eax
jne 0x40e708
mov dword [0x44e5d0], 2
jmp 0x40e742
cmp eax, 0xa
jne 0x40e719
mov dword [0x44e5d0], 3
jmp 0x40e742
cmp eax, 0x5a
jne 0x40e738
mov dword [0x44e5d0], 4
jmp 0x40e742
mov dword [0x44e5d0], 1
test edx, edx
je 0x40e742
mov dword [0x44e5d0], 0
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
neg eax
cmp dword [0x44e3bc], 5
mov dword [0x44e3b8], eax
jl 0x40e830
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x11c
call esi
test eax, eax
je 0x40e830
mov cx, word [esp + 0x124]
mov eax, dword [0x44e5d0]
sub eax, 7
movzx edx, cx
mov dword [0x44e3c4], edx
je 0x40e7d1
sub eax, 1
jne 0x40e830
cmp cx, 1
jae 0x40e830
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlminint
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e830
mov ecx, dword [esp + 4]
push ecx
jmp 0x40e82a
cmp cx, 3
jb 0x40e830
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesAtapiParameters
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e825
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.EnableBigLba
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040df90
mov ecx, dword [esp + 0x240]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041f350
add esp, 0x240
ret
Function at 0x40fcf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4395fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x448e28]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00438028
push 4
mov dword [esp + 0x20], 0
call fcn.00412ddc
mov edi, eax
add esp, 4
test edi, edi
je 0x40fd6e
call fcn.00438378
mov dword [edi], eax
call fcn.004381a6
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004380ca
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40fd63
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004380f2
jmp 0x40fd70
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x41f350
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448e28]
jne 0x41f35a
repz ret
jmp fcn.00425502

Function at 0x42ef53
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.00424e66
and dword [ebp - 4], 0
cmp dword [0x44d068], 0
mov ebx, eax
jne 0x42f004
push 0x43dec8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42f0b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43debc
push edi
call esi
test eax, eax
je 0x42f0b5
push eax
call fcn.00424df4
mov dword [esp], 0x43deac
push edi
mov dword [0x44d068], eax
call esi
push eax
call fcn.00424df4
mov dword [esp], 0x43de98
push edi
mov dword [0x44d06c], eax
call esi
push eax
call fcn.00424df4
mov dword [esp], 0x43de7c
push edi
mov dword [0x44d070], eax
call esi
push eax
call fcn.00424df4
pop ecx
mov dword [0x44d078], eax
test eax, eax
je 0x42f004
push 0x43de64
push edi
call esi
push eax
call fcn.00424df4
pop ecx
mov dword [0x44d074], eax
mov eax, dword [0x44d074]
cmp eax, ebx
je 0x42f05c
cmp dword [0x44d078], ebx
je 0x42f05c
push eax
call fcn.00424e6f
push dword [0x44d078]
mov esi, eax
call fcn.00424e6f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42f05c
test edi, edi
je 0x42f05c
call esi
test eax, eax
je 0x42f053
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f053
test byte [ebp - 0xc], 1
jne 0x42f05c
or dword [ebp + 0x10], 0x200000
jmp 0x42f095
mov eax, dword [0x44d06c]
cmp eax, ebx
je 0x42f095
push eax
call fcn.00424e6f
pop ecx
test eax, eax
je 0x42f095
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42f095
mov eax, dword [0x44d070]
cmp eax, ebx
je 0x42f095
push eax
call fcn.00424e6f
pop ecx
test eax, eax
je 0x42f095
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44d068]
call fcn.00424e6f
pop ecx
test eax, eax
je 0x42f0b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f0b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003cf0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10003d0e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10003d03
pop esi
ret