joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537370
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x588088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00404470
test al, al
je 0x48964d
xor al, al
jmp 0x48980b
push edi
call fcn.00489080
add esp, 4
test al, al
je 0x489661
mov al, 1
jmp 0x48980b
push 0
mov ecx, edi
call fcn.00403390
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4896b0
lea ecx, [ebp - 0x28]
call fcn.00402ac0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004aba40
test al, al
je 0x4896a1
push 0
lea ecx, [ebp - 0x28]
call fcn.00403390
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a60
push edi
call fcn.00489080
add esp, 4
test al, al
jne 0x48965a
mov ecx, edi
call fcn.00404600
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4897ac
mov ecx, edi
call fcn.00402ae0
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x4896ec
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x48970f
mov eax, ebx
cmp ecx, 8
jb 0x489705
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x48979c
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00404350
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00404470
test al, al
jne 0x48978d
lea eax, [ebp - 0x28]
push eax
call fcn.00488e60
add esp, 4
test al, al
jne 0x48978d
push 0
lea ecx, [ebp - 0x28]
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x48978d
lea ecx, [ebp - 0x40]
call fcn.00402ac0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004aba40
test al, al
je 0x489781
push 0
lea ecx, [ebp - 0x40]
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a60
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x4896e0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.00488e60
add esp, 4
test al, al
jne 0x489802
push 0
mov ecx, edi
call fcn.00403390
push eax
call ebx
test eax, eax
jne 0x489802
lea ecx, [ebp - 0x40]
call fcn.00402ac0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004aba40
test al, al
je 0x4897f3
push 0
lea ecx, [ebp - 0x40]
call fcn.00403390
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402a60
push edi
call fcn.00489080
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1a24
mov esp, ebp
pop ebp
ret
Function at 0x48a560
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57b010
push 0x4e4500
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x588088]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00412a10
mov ecx, edi
call fcn.0048a680
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x48a5f3
test bl, bl
jne 0x48a662
cmp edi, 0x1a
jne 0x48a662
mov ecx, esi
call fcn.00412a10
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.004e42f0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push 0x55e4e8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.00402d60
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00402b50
mov ecx, esi
call fcn.00404470
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e1a24
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57b0d8
push 0x4e4500
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x588088]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
xor bl, bl
mov byte [ebp - 0x439], bl
push 0x412
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.004e42f0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.0048aa20
cmp byte [edi + 0x30], bl
je 0x48acdc
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48ad04
test al, 0x10
jne 0x48ad04
call fcn.0048ea10
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.0048eb10
test al, al
je 0x48ad04
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x48ad08
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x48ad74
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48ad3f
mov dword [edi + 0x34], esi
push edi
push 0x48a920
push 0
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x439], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x48ad67
test esi, esi
je 0x48ad72
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e1a24
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48ada0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57b0f8
push 0x4e4500
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x588088]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
xor bl, bl
mov byte [ebp - 0x439], bl
push 0x412
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.004e42f0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.0048aa20
cmp byte [edi + 0x30], bl
je 0x48ae4c
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48ae74
test al, 0x10
jne 0x48ae74
call fcn.0048ea10
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.0048eb10
test al, al
je 0x48ae74
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x48ae78
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x48aee7
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48aeb2
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x48a920
push 0
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x439], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x48aeda
test esi, esi
je 0x48aee5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e1a24
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48d050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x588088]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.00412a10
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.004e42f0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x48d0ac
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004e1a24
add esp, 0x418
ret
cmp eax, 0x208
jae 0x48d094
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00402d60
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00402b50
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.004e1a24
add esp, 0x418
ret
Function at 0x48d580
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537ab6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x588088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x48d65e
lea edi, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x48d67c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e2282
add esp, 4
mov dword [ebp - 0x81c], eax
mov edi, eax
mov esi, edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x48d64a
cmp eax, ebx
ja 0x48d64a
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x48d6aa
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48d65e
push edi
call fcn.004e1d0d
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1a24
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x48d735
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x48d735
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x48d71a
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x48d70c
cmp ecx, edi
je 0x48d70c
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00402a70
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.004128d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00402a60
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x48d6c3
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x48d72e
push esi
call fcn.004e1d0d
add esp, 4
mov al, 1
jmp 0x48d660
call fcn.004e20a1
int3
Function at 0x48dc10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537c42
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x588088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], 0
movlpd qword [ebp - 0xc0], xmm0
call fcn.00402ac0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xcc], 1
call fcn.00402ac0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push 0xc
call fcn.00403e50
lea ecx, [ebp - 0x1c]
call fcn.00409ff0
mov byte [ebp - 4], 2
call fcn.0048d580
lea ecx, [ebp - 0x1c]
xor esi, esi
call fcn.00413670
test eax, eax
je 0x48ddfc
call fcn.00402ae0
mov ecx, eax
xor edi, edi
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xbc], eax
mov eax, dword [ecx]
lea ecx, [ebp - 0x34]
add eax, edi
push eax
call fcn.00404520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00403390
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x48ddd6
lea ecx, [ebp - 0xa0]
call fcn.00402ac0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00402ac0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00402ac0
mov byte [ebp - 4], 7
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x34]
call fcn.0048d740
test al, al
jne 0x48dd5b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.00402a60
mov byte [ebp - 4], 8
jmp 0x48ddbc
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0xc4]
jb 0x48ddac
mov eax, dword [ebp - 0x48]
ja 0x48dd73
cmp eax, dword [ebp - 0xbc]
jbe 0x48ddac
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0xc4], ecx
call fcn.00402db0
add esp, 4
cmp ebx, eax
je 0x48ddac
lea ecx, [ebp - 0x34]
call fcn.00402ae0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x48dda1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.00402b50
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x70]
call fcn.00402a60
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x88]
call fcn.00402a60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
call fcn.00402a60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00402a60
lea ecx, [ebp - 0x1c]
inc esi
add edi, 0x18
call fcn.00413670
mov ecx, dword [ebp - 0xc8]
cmp esi, eax
jb 0x48dce4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0040a030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00402a60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1a24
mov esp, ebp
pop ebp
ret
Function at 0x493ae0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x588088]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004e42f0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x493c22
cmp dword [esi + 4], 6
push edi
ja 0x493b36
jne 0x493bbe
cmp dword [esi + 8], 2
jb 0x493bbe
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x493bbe
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x493bbe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x493bbe
movups xmm0, xmmword [0x55ec98]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x55eca8]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x493bbe
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x493bbe
cmp word [edi + 2], ax
jbe 0x493bbe
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x493c09
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004e42f0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x493c09
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004e1a24
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004e1a24
add esp, 0x140
ret
Function at 0x49d870
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539b84
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x588088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402ac0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402ac0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402ac0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402ac0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00402ac0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49e130
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x588088]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004e1a35
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004e42f0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x49e18c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004e1a24
add esp, 0x120
ret
Function at 0x4a11d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x4a1208
mov edx, dword [esp + 4]
test edx, edx
je 0x4a1208
cmp dword [eax], 0xffffffff
je 0x4a1208
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1208
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x4a1210
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x4a124a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a124a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a124a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a124a
cmp edi, dword [esi]
jne 0x4a124a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x4a12c0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x588088]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4a1323
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a1323
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a12fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a1323
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004e1a24
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004e1a24
add esp, 8
ret 4

Function at 0x4a1420
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x4a14ce
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.004a1340
test al, al
je 0x4a14ce
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.004a1340
test al, al
je 0x4a14ce
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x4a14a4
cmp dword [esp + 0x14], edi
jne 0x4a14a4
mov eax, dword [esi]
test eax, eax
jne 0x4a1491
xor bl, bl
jmp 0x4a14a4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a148d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.004a1340
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a2370
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a5bb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x588088]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4a23a9
call fcn.004a2510
cmp byte [0x58c8f4], 0
jne 0x4a23bc
mov eax, 0x80000001
jmp 0x4a24ec
mov eax, dword [esi]
test eax, eax
jne 0x4a243c
push 8
call fcn.004e1a35
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.004e1a35
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.004e42f0
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a242b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4a24db
call fcn.0049ed60
test al, al
jne 0x4a2476
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0049f2c0
test al, al
je 0x4a24db
mov ecx, dword [esi]
add ecx, 4
call fcn.0049e870
call fcn.0049ed60
test al, al
je 0x4a24db
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.00402a70
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004a1560
mov ecx, eax
call fcn.004a1620
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00402a60
test edi, edi
je 0x4a24db
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a24db
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4a24db
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4a24ea
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e1a24
mov esp, ebp
pop ebp
ret 4