joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4806c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4aa711
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x60], eax
push ebp
push esi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ebp
call fcn.00418a40
mov dword [esp + 0x78], ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 1
call fcn.004347c0
push ebp
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x80], 1
call fcn.00420780
push eax
call fcn.0047ecc0
add esp, 0xc
test eax, eax
je 0x480899
lea ecx, [esp + 0xc]
call fcn.0045f770
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.00434840
mov edx, dword [eax]
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 4]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
call fcn.00434880
push eax
lea ecx, [esp + 0x10]
call fcn.00434a00
test al, al
je 0x48088d
lea ebp, [ebx + 0x40]
lea ecx, [esp + 0xc]
call fcn.00434910
push eax
lea ecx, [esp + 0x38]
call fcn.00418a70
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 2
call fcn.00480bd0
mov ecx, ebp
mov byte [esp + 0x78], 3
call fcn.0040f0f0
mov esi, eax
push esi
call fcn.00416a50
add esp, 4
push eax
push 0
push esi
lea ecx, [esp + 0x5c]
call fcn.0045cc00
test eax, eax
jne 0x480846
add dword [esp + 0x14], 1
mov ecx, edi
call fcn.0044a3d0
test al, al
je 0x4807f5
lea eax, [esp + 0x34]
push eax
jmp 0x48080c
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.0042a6f0
add esp, 8
test al, al
je 0x480813
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.00418ad0
lea esi, [ebx + 0x24]
mov ecx, esi
call fcn.0044a3d0
test al, al
je 0x480828
lea eax, [esp + 0x34]
push eax
jmp 0x48083f
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.0042a6f0
add esp, 8
test al, al
je 0x480846
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00418ad0
lea ecx, [esp + 0x50]
call fcn.00418c50
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 1
call fcn.00418c50
lea ecx, [esp + 0xc]
call fcn.00434940
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00434880
push eax
lea ecx, [esp + 0x10]
call fcn.00434a00
test al, al
jne 0x480790
cmp dword [esp + 0x14], 3
jge 0x480899
push 0x4bd07c
mov ecx, edi
call fcn.00418b00
lea ecx, [esp + 0x18]
call fcn.00434810
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004851ae
add esp, 0x70
ret
Function at 0x480a80
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4aa6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
cmp dword [ebp + 4], 0
je 0x480b4e
lea esi, [esp + 0x30]
call fcn.0047f860
mov edi, esi
mov dword [esp + 0x58], 0
call fcn.00481430
lea edi, [ebp + 8]
push edi
lea ecx, [esp + 0x18]
call fcn.00480bd0
push eax
mov ebx, esi
mov byte [esp + 0x5c], 1
call fcn.00481500
xor ebx, ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], bl
call fcn.00418c50
mov ecx, esi
call fcn.00420780
push eax
mov ecx, edi
call fcn.00420780
push eax
push str.Copy_File___s______s_
mov esi, 0x4d1508
call fcn.00481e10
add esp, 0xc
call fcn.00481bc0
push 1
lea ecx, [esp + 0x34]
call fcn.00420780
push eax
mov ecx, edi
call fcn.00420780
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x30]
mov dword [ebp + 4], ebx
call fcn.00418c50
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004851ae
add esp, 0x48
ret 4

Function at 0x480d10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a73eb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x2a]
push 0
push eax
mov dword [esp + 0x10], 0
mov word [esp + 0x30], 0
call fcn.004863a0
mov eax, 1
add esp, 0xc
test byte [0x4d161c], al
jne 0x480d94
or dword [0x4d161c], eax
mov ecx, 0x4d1600
call fcn.00418a40
push 0x4ac900
call fcn.004868a0
add esp, 4
mov ecx, 0x4d1600
call fcn.0044a3d0
test al, al
je 0x480dea
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xc]
call fcn.00418aa0
push eax
mov ecx, 0x4d1600
mov dword [esp + 0x23c], 0
call fcn.00418ad0
lea ecx, [esp + 8]
mov dword [esp + 0x238], 0xffffffff
call fcn.00418c50
push 0x4d1600
mov ecx, esi
call fcn.00418a70
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004851ae
add esp, 0x238
ret
Function at 0x480e20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a8972
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x214], eax
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
call fcn.00418a40
push 0x208
lea eax, [esp + 0x16]
mov dword [esp + 0x22c], 0
push 0
push eax
mov dword [esp + 0x14], 1
mov word [esp + 0x1c], 0
call fcn.004863a0
add esp, 0xc
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.00418b00
call fcn.00481430
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004851ae
add esp, 0x224
ret

Function at 0x480ef0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a8972
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x214], eax
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
call fcn.00418a40
push 0x208
lea eax, [esp + 0x16]
mov dword [esp + 0x22c], 0
push 0
push eax
mov dword [esp + 0x14], 1
mov word [esp + 0x1c], 0
call fcn.004863a0
add esp, 0xc
push 0
push 0x19
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.00418b00
call fcn.00481430
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004851ae
add esp, 0x224
ret

Function at 0x480fc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a8972
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x214], eax
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
call fcn.00418a40
push 0x208
lea eax, [esp + 0x16]
mov dword [esp + 0x22c], 0
push 0
push eax
mov dword [esp + 0x14], 1
mov word [esp + 0x1c], 0
call fcn.004863a0
add esp, 0xc
push 0
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.00418b00
call fcn.00481430
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004851ae
add esp, 0x224
ret
Function at 0x481090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a8972
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x214], eax
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
call fcn.00418a40
push 0x208
lea eax, [esp + 0x16]
mov dword [esp + 0x22c], 0
push 0
push eax
mov dword [esp + 0x14], 1
mov word [esp + 0x1c], 0
call fcn.004863a0
add esp, 0xc
push 0
push 0x17
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.00418b00
call fcn.00481430
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004851ae
add esp, 0x224
ret

Function at 0x4817d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00420780
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret
Function at 0x4819f0
Capabilities:
Create thread

Disassembly:
sub esp, 0xf4
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0xec], eax
cmp dword [0x4d1544], 0
push esi
push edi
mov esi, ecx
je 0x481a2d
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.004851ae
add esp, 0xf4
ret
call fcn.00482240
push esi
mov ecx, 0x4d1518
call fcn.00418b00
xor eax, eax
push 0xc6
push eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push eax
mov dword [0x4d1544], 1
mov byte [esp + 0x14], 0
call fcn.004863a0
add esp, 0xc
push 1
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4bfdc0
lea ecx, [esp + 0x30]
push 0x63
push ecx
call fcn.00485192
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x10
lea edx, [esp + 0x28]
push edx
push 1
push 1
lea eax, [esp + 0x28]
push eax
call esi
mov ecx, 0x4d150c
mov edi, eax
call fcn.00422d90
mov ecx, 0x4d150c
mov dword [0x4d150c], edi
call fcn.0040f0f0
push 0
push 0
push 0
push 0
call esi
mov ecx, 0x4d1510
mov esi, eax
call fcn.00422d90
mov ecx, 0x4d1510
mov dword [0x4d1510], esi
call fcn.0040f0f0
mov ecx, 0x4d150c
call fcn.0040f0f0
test eax, eax
je 0x481ba5
mov ecx, 0x4d1510
call fcn.0040f0f0
test eax, eax
je 0x481ba5
push 0
push 0
push 0x4d1508
push 0x481fa0
push 0
push 0
call fcn.0048a12c
add esp, 0x18
mov ecx, 0x4d1514
mov esi, eax
call fcn.00422d90
mov ecx, 0x4d1514
mov dword [0x4d1514], esi
call fcn.0040f0f0
mov ecx, 0x4d1514
call fcn.0040f0f0
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.004851ae
add esp, 0xf4
ret
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004851ae
add esp, 0xf4
ret

Function at 0x4821b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x2c], 0
push esi
lea esi, [eax + 0x2c]
jne 0x48222b
push 0x4bfe78
lea ecx, [eax + 0x10]
call fcn.00420780
push eax
push esi
call fcn.004893e7
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x48222b
push edi
push 2
push 0
push eax
call fcn.0048ad74
mov eax, dword [esi]
push eax
call fcn.0048ab5a
mov ecx, dword [esi]
push 0
push 0
push ecx
mov edi, eax
call fcn.0048ad74
add esp, 0x1c
test edi, edi
pop edi
jne 0x48222b
mov edx, dword [esi]
push edx
push 2
lea eax, [esp + 0xc]
mov word [esp + 0xd], 0
push 1
push eax
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xfe
mov byte [esp + 0x16], 0
call fcn.0048af58
add esp, 0x10
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ecx
ret
Function at 0x482240
Capabilities:
Get file size
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ab2c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ecx, 0x4d1518
call fcn.00420780
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x482322
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4822a6
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x482322
mov ecx, 0x4d1518
call fcn.00420780
push eax
lea ecx, [esp + 0x18]
call fcn.0040f390
push 0x4bfe88
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.0041f440
mov ecx, 0x4d1518
call fcn.00420780
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040f0f0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
push 0
push esi
call ebx
push 1
push esi
call fcn.0047e3a0
add esp, 8
push 0
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x14]
call fcn.0040f420
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x482610
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0x80
mov esi, edx
push esi
push eax
push 0xc0000000
push ecx
mov ecx, ebx
call fcn.00454be0
xor ecx, ecx
cmp eax, ecx
jl 0x482754
cmp edi, 0xffffffff
jne 0x4826e3
cmp esi, 4
jne 0x4826de
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea esi, [esp + 0x10]
mov ecx, ebx
xor edi, edi
call fcn.00482910
cmp dword [esp + 0x14], edi
ja 0x48267a
cmp dword [esp + 0x10], 2
jb 0x4826e3
lea ecx, [esp + 0x18]
call fcn.00407570
mov eax, dword [ebx]
lea esi, [esp + 0x18]
call fcn.00482870
test eax, eax
jl 0x4826d3
mov ecx, esi
call fcn.0040f0f0
test eax, eax
je 0x4826d3
mov ecx, esi
call fcn.0040f0f0
movzx eax, word [eax]
cmp eax, 0xfeff
je 0x4826ce
cmp eax, 0xfffe
je 0x4826ce
mov ecx, esi
call fcn.0040f0f0
mov ebx, dword [esp + 0x1c]
mov ecx, eax
call fcn.00482560
test eax, eax
mov ebx, dword [ebp + 8]
je 0x4826d3
mov edi, 1
lea ecx, [esp + 0x18]
call fcn.004075a0
jmp 0x4826e3
mov edi, 1
cmp edi, 1
mov dword [ebx + 4], edi
jne 0x48272d
mov eax, dword [ebx]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x48270f
call fcn.004019e0
test eax, eax
jl 0x482715
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
jne 0x48272d
push 0
push 2
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], 0xfeff
call fcn.00454c60
push 2
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x482752
call fcn.004019e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x482870
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
jne 0x4828aa
call fcn.004019e0
pop edi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x4828ff
call fcn.004019e0
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
add esp, 0x10
ret
xor eax, eax
pop edi
add esp, 0x10
ret

Function at 0x482910
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
mov edx, dword [ecx]
lea eax, [esp + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp], eax
jne 0x482935
call fcn.004019e0
test eax, eax
jl 0x482940
mov eax, dword [esp]
mov dword [esi], eax
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
xor eax, eax
add esp, 0xc
ret
Function at 0x4835e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [0x4d15d4], 0
jne 0x483673
push esi
push 0x208
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.004863a0
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
push 0x4bfedc
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0048973e
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x483672
push str.GetLocaleInfoEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
add eax, 2
push esi
mov dword [0x4d15d4], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [esp + 0x20c]
xor eax, eax
cmp dword [0x4d15d4], 1
sete al
xor ecx, esp
call fcn.004851ae
add esp, 0x210
ret
Function at 0x4836a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x120], eax
push edi
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004863a0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esi], 0
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x483713
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
jne 0x483713
xor eax, eax
pop edi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004851ae
add esp, 0x124
ret
push 0x80
lea eax, [esp + 0x20]
push str.Service_Pack_1
push eax
call fcn.0048bbd1
add esp, 0xc
test eax, eax
jne 0x483733
or dword [esi], 1
jmp 0x483791
push 0x80
lea ecx, [esp + 0x20]
push str.Service_Pack_2
push ecx
call fcn.0048bbd1
add esp, 0xc
test eax, eax
jne 0x483753
or dword [esi], 2
jmp 0x483791
push 0x80
lea edx, [esp + 0x20]
push str.Service_Pack_3
push edx
call fcn.0048bbd1
add esp, 0xc
test eax, eax
jne 0x483773
or dword [esi], 3
jmp 0x483791
push 0x80
lea eax, [esp + 0x20]
push str.Service_Pack_4
push eax
call fcn.0048bbd1
add esp, 0xc
test eax, eax
jne 0x483791
or dword [esi], 4
shl dword [esi], 0x10
call fcn.004835e0
test eax, eax
je 0x4837d9
cmp dword [esp + 0x18], 2
jne 0x4836fb
cmp dword [esp + 0xc], 6
jne 0x4836fb
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x4837c4
or dword [esi], 0xa
jmp 0x4838c2
cmp eax, 1
je 0x48380f
test eax, eax
jne 0x4836fb
or dword [esi], 8
jmp 0x4838c2
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4838c2
sub eax, 1
je 0x48389c
sub eax, 1
jne 0x4838c2
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x483827
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x4837bc
cmp eax, 1
jne 0x483817
or dword [esi], 9
jmp 0x4838c2
test eax, eax
jne 0x4838c2
or dword [esi], 8
jmp 0x4838c2
cmp eax, 5
jne 0x483850
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x48383d
or dword [esi], 7
jmp 0x4838c2
cmp eax, 1
jne 0x483847
or dword [esi], 6
jmp 0x4838c2
test eax, eax
jne 0x4838c2
or dword [esi], 5
jmp 0x4838c2
cmp eax, 4
ja 0x4838c2
or dword [esi], 4
cmp eax, 4
jne 0x4838c2
lea ecx, [esp + 0x1c]
push str.Service_Pack_6
push ecx
call fcn.00486a9c
add esp, 8
test eax, eax
jne 0x4838c2
lea edx, [esp + 4]
push edx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4838c2
cmp dword [esp + 0xc], 4
jne 0x4838c2
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4838b0
or dword [esi], 1
jmp 0x4838c2
cmp eax, 0xa
jne 0x4838ba
or dword [esi], 2
jmp 0x4838c2
cmp eax, 0x5a
jne 0x4838c2
or dword [esi], 3
mov ecx, dword [esp + 0x124]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004851ae
add esp, 0x124
ret
Function at 0x4840a6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4d00b8], 0
push esi
jne 0x484019
call fcn.00483f44
test eax, eax
je 0x48405c
mov eax, dword [0x4d00b8]
cmp eax, 1
jne 0x48403a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x48405c
pop esi
ret
push eax
call dword [0x4d00c0]
test eax, eax
jne 0x4840a4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x484060
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4d00b8]
call dword [0x4d00c0]
mov edi, eax
test edi, edi
je 0x484087
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4840a3
lea edi, [esi + 0xff0]
push esi
push dword [0x4d00b8]
call dword [0x4d00bc]
add esi, 0x10
cmp esi, edi
jb 0x48408d
mov eax, esi
pop edi
pop esi
ret
jmp 0x484006

Function at 0x4851ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cd290]
jne 0x4851b8
repz ret
jmp fcn.004907cb