joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000269f
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x100122cc]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.10009fc0
mov edi, dword [ebp + 0x90]
lea eax, [ebp - 0x80]
add esp, 0xc
xor ecx, ecx
sub edi, eax
mov esi, 0xcc
lea eax, [ebp + ecx - 0x80]
mov dl, byte [edi + eax]
xor dl, 0x27
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x100026e5
push esi
lea eax, [ebp - 0x80]
push eax
push dword [0x10013164]
call fcn.10002466
mov ecx, dword [ebp + 0x84]
add esp, 0xc
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.100042df
add ebp, 0x88
leave
ret

Function at 0x1000279a
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x100122cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x3f
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x43]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x44], 0
call fcn.10009fc0
push 0x40
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.10002ae7
lea eax, [ebp - 0x44]
push 0x40
push eax
push eax
mov eax, 0x1000fe60
call fcn.10002a70
add esp, 0x24
cmp dword [ebp + 0x10], 1
jne 0x10002831
mov ebx, esi
mov dword [ebp - 0x68], 0x10
push 8
pop ecx
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
call fcn.100029a3
pop ecx
xor eax, eax
mov cl, byte [ebp + eax - 0x44]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x20
jb 0x1000280e
push 8
pop ecx
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x44]
add ebx, 0x30
dec dword [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
jne 0x100027f7
jmp 0x1000287a
mov dword [ebp - 0x68], 0xf
lea ebx, [esi + 0x2d0]
push 8
pop ecx
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x44]
call fcn.100029a3
pop ecx
xor eax, eax
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, 0x20
jb 0x10002855
dec dword [ebp - 0x68]
push 8
pop ecx
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x24]
sub ebx, 0x30
cmp dword [ebp - 0x68], 0
rep movsd dword es:[edi], dword [esi]
jge 0x1000283e
lea eax, [ebp - 0x44]
push 0x40
push eax
push eax
mov eax, 0x1000fea0
call fcn.10002a70
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
xor esi, esi
mov bl, byte [ebp + esi - 0x44]
mov ecx, esi
and ecx, 7
mov eax, esi
shl bl, cl
shr eax, 3
add eax, edx
or byte [eax], bl
inc esi
cmp esi, 0x40
jb 0x10002899
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100042df
leave
ret
Function at 0x10002916
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100122cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x44], 0
call fcn.10009fc0
push 0x40
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.10002ae7
lea eax, [ebp - 0x44]
push 0x38
push eax
push eax
mov eax, str.91__
call fcn.10002a70
add esp, 0x24
xor esi, esi
movsx ebx, byte [esi + 0x1000ff98]
lea eax, [ebp - 0x44]
call fcn.10002ab3
lea eax, [ebp - 0x28]
call fcn.10002ab3
push 0x30
lea eax, [ebp - 0x44]
push eax
push edi
mov eax, 0x1000ff68
call fcn.10002a70
add esp, 0xc
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x10002960
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100042df
leave
ret

Function at 0x100029a3
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100122cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x2f
lea eax, [ebp - 0x33]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x34], 0
call fcn.10009fc0
push 0x30
lea eax, [ebp - 0x34]
push edi
push eax
mov eax, 0x1000fee0
call fcn.10002a70
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
add esp, 0x18
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x34]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x30
jb 0x100029ea
mov ebx, edi
lea esi, [ebp - 0x32]
xor edi, edi
mov dword [ebp - 0x3c], 8
mov al, byte [esi - 1]
mov cl, byte [esi - 2]
add al, al
add al, byte [esi]
add cl, cl
add cl, byte [esi + 3]
add al, al
add al, byte [esi + 1]
movsx ecx, cl
add al, al
add al, byte [esi + 2]
add ecx, edi
movsx eax, al
shl ecx, 4
push 4
lea eax, [eax + ecx + 0x1000ffa8]
push eax
push ebx
call fcn.10002ae7
add esp, 0xc
add edi, 4
add esi, 6
add ebx, 4
dec dword [ebp - 0x3c]
jne 0x10002a07
push 0x20
push dword [ebp - 0x38]
mov eax, 0x1000ff10
push dword [ebp - 0x38]
call fcn.10002a70
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100042df
leave
ret
Function at 0x100042df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100122cc]
jne 0x100042e9
repz ret
jmp fcn.1000519b

Function at 0x1000b158
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.10008259
and dword [ebp - 4], 0
cmp dword [0x10013b10], 0
mov ebx, eax
jne 0x1000b209
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000b2ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000b2ba
push eax
call fcn.100081e7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10013b10], eax
call esi
push eax
call fcn.100081e7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10013b14], eax
call esi
push eax
call fcn.100081e7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10013b18], eax
call esi
push eax
call fcn.100081e7
pop ecx
mov dword [0x10013b20], eax
test eax, eax
je 0x1000b209
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100081e7
pop ecx
mov dword [0x10013b1c], eax
mov eax, dword [0x10013b1c]
cmp eax, ebx
je 0x1000b261
cmp dword [0x10013b20], ebx
je 0x1000b261
push eax
call fcn.10008262
push dword [0x10013b20]
mov esi, eax
call fcn.10008262
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000b261
test edi, edi
je 0x1000b261
call esi
test eax, eax
je 0x1000b258
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000b258
test byte [ebp - 0xc], 1
jne 0x1000b261
or dword [ebp + 0x10], 0x200000
jmp 0x1000b29a
mov eax, dword [0x10013b14]
cmp eax, ebx
je 0x1000b29a
push eax
call fcn.10008262
pop ecx
test eax, eax
je 0x1000b29a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000b29a
mov eax, dword [0x10013b18]
cmp eax, ebx
je 0x1000b29a
push eax
call fcn.10008262
pop ecx
test eax, eax
je 0x1000b29a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10013b10]
call fcn.10008262
pop ecx
test eax, eax
je 0x1000b2ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000b2bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x431d83
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x43fe28]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.00416f53
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 0x401260
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00417258
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 0x4011fd
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x401218
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.004173f6
test ebp, ebp
je 0x40123e
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.00417485
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.0041706f
jmp 0x401272
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 0x4021d0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push esi
push 0x402270
push 0
push 0
mov dword [esi + 0x98], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x7c]
sub ecx, dword [esi + 0x78]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x402218
call fcn.0041cb3f
mov ecx, dword [esi + 0x78]
mov dword [ecx + 0x50], 1
mov ecx, dword [esi + 0x7c]
sub ecx, dword [esi + 0x78]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x402253
call fcn.0041cb3f
mov ecx, dword [esi + 0x78]
mov dword [ecx + 0x88], 1
ret
mov edx, dword [esi + 0x78]
mov dword [edx + 0x88], 1
ret

Function at 0x402f90
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 0x403004
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 0x402fdd
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 0x402ffd
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 0x403068
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 0x403088
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 0x403d50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x431c12
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x43fe28]
xor eax, esp
mov dword [esp + 0x854], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fe28]
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.0041dcd0
add esp, 0xc
call fcn.004177e3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403dea
push 0x80004005
call fcn.004068a0
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 0x403f79
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.0041dcd0
push 0x207
lea edx, [esp + 0x671]
push ebx
push edx
mov byte [esp + 0x678], bl
call fcn.0041dcd0
add esp, 0x18
xor esi, esi
cmp dword [esp + 0x18], ebx
jbe 0x403f79
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.0041c685
add esp, 8
test eax, eax
jne 0x403f6e
push 0x206
lea ecx, [esp + 0x4e]
push ebx
push ecx
mov dword [esp + 0x2c], 7
mov word [esp + 0x54], ax
call fcn.0041dcd0
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 0x403f52
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.004065a0
inc esi
cmp esi, dword [esp + 0x18]
jb 0x403eb0
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.0041baef
add esp, 0x864
ret 4
Function at 0x404350
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x43fe28]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
push 0x103
xor ebx, ebx
lea eax, [esp + 0x35]
mov edi, edx
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x34], edi
mov byte [esp + 0x1b], 0
mov byte [esp + 0x3c], 0
call fcn.0041dcd0
push 0xff
lea ecx, [esp + 0x149]
push ebx
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x150], bl
call fcn.0041dcd0
add esp, 0x18
cmp edi, ebx
je 0x40455d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4043d3
push ebx
push ebx
push 0x104
sub eax, edx
lea edx, [esp + 0x3c]
push edx
sar eax, 1
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40455d
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x40455d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, ebx
je 0x404532
mov edx, dword [esp + 0x24]
push edi
push esi
push edx
lea eax, [esp + 0x3c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404532
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404532
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xProductVersion
lea eax, [esp + 0x144]
push 0x100
push eax
call fcn.0041c718
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x140]
push eax
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404532
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x404532
mov edi, 0x30
push esi
call fcn.0041c74c
cdq
add esp, 4
mov ecx, edi
call fcn.0041ff70
add dword [esp + 0x18], eax
push 0x437e6c
push esi
adc dword [esp + 0x24], edx
mov ebx, esi
call fcn.0041c760
mov esi, eax
add esp, 8
test esi, esi
jne 0x404508
push 0x437e70
push ebx
call fcn.0041c760
mov esi, eax
add esp, 8
test esi, esi
je 0x404532
sub edi, 0x10
inc esi
test edi, edi
jg 0x4044c5
push esi
call fcn.0041c74c
cdq
mov ecx, eax
mov eax, dword [esp + 0x2c]
add esp, 4
add ecx, dword [esp + 0x18]
mov byte [esp + 0xf], 1
adc edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041baef
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0041baef
mov esp, ebp
pop ebp
ret
Function at 0x404580
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 0x4045ed
lea ecx, [esp + 0xc]
push ecx
push 0x437e74
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 0x406030
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 0x406049
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406084
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406080
lea ebx, [ebx]
cmp esi, eax
jae 0x406084
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406070
cmp esi, eax
jb 0x40608a
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 0x409580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.00418294
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x437ad8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4095a9
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 0x4095e0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4095e0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4095e0
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4095e9
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.00422d00
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 0x409635
mov edx, dword [esp + 0xc]
push edx
call fcn.0040a520
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 0x40ac70
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x240
mov eax, dword [0x43fe28]
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 [0x445368], ecx
mov dword [0x44536c], eax
cmp edx, 2
jne 0x40ad9e
cmp ecx, 5
jne 0x40ad3a
test eax, eax
jne 0x40ace1
mov dword [0x445374], 7
jmp 0x40adf2
cmp eax, 1
jne 0x40acf5
mov dword [0x445374], 8
jmp 0x40adf2
cmp eax, 2
jne 0x40ade8
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x11c
call esi
mov al, byte [esp + 0x12a]
cmp al, 3
je 0x40ad2b
cmp al, 2
je 0x40ad2b
mov dword [0x445374], 9
jmp 0x40adf2
mov dword [0x445374], 0xa
jmp 0x40adf2
cmp ecx, 6
jne 0x40ad8d
test eax, eax
jne 0x40ad7c
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x11c
call esi
mov al, byte [esp + 0x12a]
cmp al, 3
je 0x40ad70
cmp al, 2
je 0x40ad70
mov dword [0x445374], 0xb
jmp 0x40adf2
mov dword [0x445374], 0xc
jmp 0x40adf2
cmp eax, 1
jne 0x40ade8
mov dword [0x445374], 0xd
jmp 0x40adf2
cmp ecx, 4
jne 0x40ade8
mov dword [0x445374], 6
jmp 0x40adf2
cmp edx, 1
jne 0x40adda
cmp ecx, 4
jne 0x40ade8
test eax, eax
jne 0x40adb8
mov dword [0x445374], 2
jmp 0x40adf2
cmp eax, 0xa
jne 0x40adc9
mov dword [0x445374], 3
jmp 0x40adf2
cmp eax, 0x5a
jne 0x40ade8
mov dword [0x445374], 4
jmp 0x40adf2
mov dword [0x445374], 1
test edx, edx
je 0x40adf2
mov dword [0x445374], 0
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
neg eax
cmp dword [0x445368], 5
mov dword [0x444324], eax
jl 0x40aee0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x11c
call esi
test eax, eax
je 0x40aee0
mov cx, word [esp + 0x124]
mov eax, dword [0x445374]
sub eax, 7
movzx edx, cx
mov dword [0x445370], edx
je 0x40ae81
sub eax, 1
jne 0x40aee0
cmp cx, 1
jae 0x40aee0
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 0x40aee0
mov ecx, dword [esp + 4]
push ecx
jmp 0x40aeda
cmp cx, 3
jb 0x40aee0
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 0x40aed5
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.0040a630
mov ecx, dword [esp + 0x240]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041baef
add esp, 0x240
ret