joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409cd3
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x509018]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov edi, dword [0x50c594]
mov esi, ecx
test edi, edi
je 0x409c52
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x409c2e
mov eax, dword [eax]
push str.Deleting_Registry___Start
push 0x4f7340
push 0x4f7340
push eax
push 0x4f7340
push 0x14
mov ecx, edi
call dword [0x4e2324]
call edi
add esp, 0x18
call fcn.00405390
lea ecx, [esi + 0x68]
push ecx
mov ecx, eax
call fcn.0040a160
cmp byte [esi + 0xb0], 0
lea edi, [esi + 0x80]
mov ecx, 0xf013f
mov edx, dword [eax]
mov eax, 0xf003f
cmove ecx, eax
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x409c88
mov eax, dword [edi]
lea ebx, [esp + 0x10]
push ebx
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x409d9c
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0xd0]
push eax
lea eax, [esi + 0xb8]
lea edi, [esi + 0x98]
push eax
mov edx, edi
call fcn.00405f00
add esp, 8
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x409cd0
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 7
push str.Default
call fcn.00404580
add esp, 8
test eax, eax
je 0x409cf0
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x409cf0
mov ebx, dword [edi]
push ebx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
test ecx, ecx
jne 0x409d4d
mov edi, dword [0x50c594]
test edi, edi
je 0x409d90
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x409d1a
mov eax, dword [eax]
push str.Deleting_Registry_Value___success
push 0x4f7340
push 0x4f7340
push eax
push 0x4f7340
push 0x14
mov ecx, edi
call dword [0x4e2324]
call edi
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409ddf
cmp dword [esi + 0xa8], 0
je 0x409d90
mov edi, dword [0x50c594]
test edi, edi
je 0x409d90
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x409d6b
mov eax, dword [eax]
push ecx
push str.Check_for_Registry_permissions.__Deleting_Registry_Value___failure._Error:__d_
push 0x4f7340
push 0x4f7340
push eax
push 0x4f7340
push 0xa
mov ecx, edi
call dword [0x4e2324]
call edi
add esp, 0x1c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409ddf
mov ebx, dword [0x50c594]
test ebx, ebx
je 0x409e18
cmp dword [edi + 0x14], 8
jb 0x409dae
mov edi, dword [edi]
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x409db9
mov eax, dword [eax]
push ecx
push edi
push str.Check_for_Registry_permissions.__Key_opening___failure._Key:__s_Error:__d_
push 0x4f7340
push 0x4f7340
push eax
push 0x4f7340
push 0xa
mov ecx, ebx
call dword [0x4e2324]
call ebx
add esp, 0x20
mov edi, dword [0x50c594]
test edi, edi
je 0x409e18
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x409df4
mov esi, dword [esi]
push str.Deleting_Registry_Value___End
push 0x4f7340
push 0x4f7340
push esi
push 0x4f7340
push 0x14
mov ecx, edi
call dword [0x4e2324]
call edi
add esp, 0x18
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
Function at 0x40ef60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x509018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov byte [ebp - 9], 0
test edi, edi
jne 0x40efad
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40ef99
mov eax, dword [ecx]
push str.PIMSqlite::initWithDBPath_NULL_parameter
push 0x4f9042
push ecx
call dword [eax + 0x20]
add esp, 0xc
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bda16
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40efb2
push ebx
sub ecx, edx
lea ebx, [esi + 0xc]
push ecx
push edi
mov ecx, ebx
call fcn.00403570
cmp dword [ebx + 0x14], 0x10
jb 0x40efd0
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ecx, 1
push 0
sete al
mov edx, esi
cmp dword [ebp + 0xc], 0
mov byte [esi + 8], al
mov eax, 6
cmove eax, ecx
mov ecx, edi
push eax
call fcn.004a94e0
mov edx, dword [esi + 0x24]
add esp, 8
mov dword [esi + 4], eax
test eax, eax
jne 0x40f0f2
test edx, edx
je 0x40f025
mov eax, dword [edx]
push edi
push str.Success_sqlite3_open_from_the_path:__s
push 0x4f9042
push edx
call dword [eax + 0x20]
add esp, 0x10
mov edi, dword [esi]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40f03b
push eax
call dword [0x509aac]
mov eax, dword [edi + 0xc]
add esp, 4
mov dword [edi + 0x194], 0x4a79c0
mov dword [edi + 0x198], edi
mov dword [edi + 0x19c], 0
mov byte [edi + 0x1a0], 0
mov dword [edi + 0x1c8], 0
test eax, eax
je 0x40f074
push eax
call dword [0x509ab4]
add esp, 4
lea eax, [ebp - 8]
mov dword [edi + 0x1c8], 0x3e8
push eax
push 0x40ed70
push str.select_count___from_sqlite_master
mov ecx, esi
mov byte [edi + 0x1a0], 1
mov dword [ebp - 8], 0xffffffff
call fcn.00412710
test al, al
jne 0x40f0c1
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x40f10a
mov eax, dword [ecx]
push str.Could_not_createOrUpdatePIMDbSchema.
push 0x4f9042
push ecx
call dword [eax + 0x20]
add esp, 0xc
jmp 0x40f10a
cmp dword [ebp - 8], 0
mov ecx, esi
jne 0x40f0d0
call fcn.00412210
jmp 0x40f0d5
call fcn.00412580
mov ecx, dword [esi + 0x24]
test al, al
je 0x40f0a8
mov bl, 1
test ecx, ecx
je 0x40f10d
mov eax, dword [ecx]
push str.PIM_Database_is_Up_To_Date
push ecx
call dword [eax + 0x14]
add esp, 8
jmp 0x40f10d
test edx, edx
je 0x40f10a
mov ecx, dword [edx]
push edi
push str.Error_unable_to_open_Sqlite_Data_base_from_the_path:__s
push 0x4f9042
push edx
call dword [ecx + 0x20]
add esp, 0x10
mov bl, byte [ebp - 9]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004bda16
mov esp, ebp
pop ebp
ret 8
Function at 0x446bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.00415750
mov esi, eax
add esp, 8
test esi, esi
jne 0x446be0
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x509a54], 0
mov edi, dword [ebp + 8]
je 0x446c2a
mov eax, dword [0x509b54]
test eax, eax
je 0x446c03
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x446c2a
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x418850
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.004c6d7c
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x446c37
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x446c50
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b6c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
xor esi, esi
cmp dword [ecx + 0x14], esi
jle 0x45b75e
nop
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test eax, eax
je 0x45b715
mov ecx, dword [ecx + 0x10]
mov edx, edi
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [ebp + 8]
nop dword [eax]
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x45b73a
test edx, edx
jne 0x45b74c
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
add edi, edi
push 0
mov edx, ebx
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.0041a500
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x45b7ed
jmp 0x45b752
movzx ecx, byte [ecx + 0x4f1158]
movzx edx, byte [edx + 0x4f1158]
sub edx, ecx
jne 0x45b74f
inc eax
jmp 0x45b700
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc esi
mov eax, dword [ebp + 8]
cmp esi, dword [ecx + 0x14]
jl 0x45b6e0
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x45b78a
test ecx, ecx
jne 0x45b79c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x45b79f
neg ecx
sbb ecx, ecx
jmp 0x45b7c2
movzx eax, byte [eax + 0x4f1158]
movzx ecx, byte [ecx + 0x4f1158]
sub ecx, eax
jne 0x45b7eb
inc ebx
jmp 0x45b765
test ecx, ecx
je 0x45b7eb
mov esi, ecx
mov edx, eax
sub esi, eax
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x45b7d6
test ecx, ecx
jne 0x45b7e8
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x45b7eb
mov ecx, dword [ebp - 4]
mov ebx, str.sqlite_temp_master
mov dword [ebp - 8], ebx
jmp 0x45b6d4
movzx eax, byte [eax + 0x4f1158]
movzx ecx, byte [ecx + 0x4f1158]
sub ecx, eax
jne 0x45b7bf
inc edx
jmp 0x45b7b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45b9b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 8], edx
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x45ba46
mov edx, dword [ebp + 8]
push esi
nop dword [eax]
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x45ba05
mov esi, dword [esi]
mov eax, edx
sub esi, edx
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x45ba31
test edx, edx
jne 0x45ba43
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea ecx, [eax + 0x18]
push 0
call fcn.0041a500
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x45ba28
mov eax, dword [ebp - 0xc]
inc edi
mov edx, dword [ebp + 8]
cmp edi, dword [eax + 0x14]
jl 0x45b9d0
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x4f1158]
movzx edx, byte [edx + 0x4f1158]
sub edx, ecx
jne 0x45ba1c
inc eax
jmp 0x45b9f3
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x509018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x4af51e
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4af510
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4af4f0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403110
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4af560
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4af560
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4af540
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403110
mov bl, 1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4af5b0
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x4af573
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4af5b0
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x4af5a5
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x4af58c
mov esi, dword [esi]
xor eax, eax
pop edi
mov word [esi + ecx*2], ax
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00403230
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bda16
mov esp, ebp
pop ebp
ret

Function at 0x4af760
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4af76d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x4af790
cmp ecx, 8
jb 0x4af782
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x4af797
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x4af800
mov eax, dword [0x50c5a4]
test eax, eax
je 0x4af7d9
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x4f7340
push 0x4f7340
push 0x501614
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
test esi, esi
sete al
pop esi
ret
mov ecx, dword [0x50c5a8]
test ecx, ecx
je 0x4af7fe
mov eax, dword [ecx]
push esi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x501614
push 0x4f7340
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
test esi, esi
sete al
pop esi
ret
Function at 0x4af810
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov bh, dl
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4af824
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4af9bb
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4af83d
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4af84e
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
je 0x4af92b
test bh, bh
je 0x4af92b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4af92b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4af882
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
test al, 1
je 0x4af92b
mov ecx, dword [0x50c5a4]
test ecx, ecx
je 0x4af8cc
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x4af8a8
mov edx, dword [edi]
push eax
push edx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x4f7340
push 0x4f7340
push 0x501614
push str.OOBEUtils
push 0x14
call ecx
add esp, 0x20
jmp 0x4af8fe
mov ecx, dword [0x50c5a8]
test ecx, ecx
je 0x4af8fe
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x4af8e0
mov edx, dword [edi]
push dword [ebp - 4]
mov eax, dword [ecx]
push edx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x501614
push 0x4f7340
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4af908
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4af91e
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4af9b3
cmp dword [0x50c5a4], 0
je 0x4af978
cmp dword [edi + 0x14], 8
jb 0x4af944
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x4f7340
push 0x4f7340
push 0x501614
push str.OOBEUtils
push 0x32
call dword [0x50c5a4]
add esp, 0x20
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x50c5a8]
test esi, esi
je 0x4af9b2
cmp dword [edi + 0x14], 8
jb 0x4af98b
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x501614
push 0x4f7340
push 0x32
push dword [0x50c5a8]
call dword [esi + 0x34]
add esp, 0x1c
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x509018]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x8c], 1
jne 0x4b20a2
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x4b203b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004c5dcd
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x4b20a2
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004c8f32
push dword [esp + 0x20]
call fcn.004c5e8b
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x4b207f
cmp ah, 0xfe
je 0x4b20a2
cmp ah, 0xff
jne 0x4b2088
cmp al, 0xfe
je 0x4b20a2
mov eax, dword [edi]
test eax, eax
je 0x4b209b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.004b4ca0
lea esi, [ebx + 0x4c]
mov ecx, esi
call fcn.004b8bd0
test eax, eax
je 0x4b20cc
cmp eax, 1
jne 0x4b211e
push ecx
mov dl, al
mov ecx, esi
call fcn.004af810
add esp, 4
test al, al
je 0x4b211e
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4b20d6
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4b2175
cmp dword [esi + 0x14], 8
jb 0x4b20fe
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4b2134
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x4b2156
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x4b216d
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x509018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b2730
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x502030
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bda16
mov esp, ebp
pop ebp
ret 4

Function at 0x4b27a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x509018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
mov edi, ecx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4b27c0
push 2
push 0
push 0
push dword [edi + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push ebx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x502038
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bda16
mov esp, ebp
pop ebp
ret 4
Function at 0x4b8990
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x509018]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
nop dword [eax]
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x11c
push 0
push eax
call fcn.004c04c0
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
movzx ecx, si
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push 0x23
push eax
mov dword [esp + 0x28], 0
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4b8a59
inc esi
cmp esi, 0xf
jl 0x4b89d0
jmp 0x4b8a5e
lea eax, [esi - 1]
mov dword [ebx], eax
mov edi, 1
movzx esi, word [ebx]
lea eax, [esp + 0x14]
push pe_nt_image_headers32
push 0
push eax
mov dword [esp + 0x1c], 0x11c
call fcn.004c04c0
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4b8aed
inc edi
cmp edi, 0xa
jl 0x4b8a63
jmp 0x4b8af3
lea eax, [edi - 1]
mov dword [ebx + 4], eax
mov ebx, 1
nop dword [eax + eax]
mov eax, dword [esp + 0xc]
push pe_nt_image_headers32
push 0
mov dword [esp + 0x18], 0x11c
movzx edi, word [eax + 4]
movzx esi, word [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.004c04c0
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4b8ba4
inc ebx
cmp ebx, 0xa
jl 0x4b8b00
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret