joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 2
xor esi, esi
mov dword [ebp - 8], 0x4000
push 0x4000
mov dword [ebp - 4], esi
call fcn.0045cc70
mov ebx, dword [ebp + 0x20]
add esp, 8
mov edi, eax
test ebx, ebx
je 0x45d167
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
add eax, eax
mov dword [ebp - 4], eax
add eax, 2
push eax
push 1
call fcn.0045cc70
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x45d1a0
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
add eax, eax
push eax
push edi
call fcn.0045cd60
add esp, 0x10
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x24]
push ebx
push dword [ebp - 4]
push esi
call fcn.0045ce00
mov edx, dword [ebp + 0x1c]
add esp, 0x18
mov ebx, eax
test edx, edx
je 0x45d1c2
mov ecx, dword [ebp - 0xc]
mov dword [edx], ecx
push edi
call fcn.0047ee40
push esi
call fcn.0047ee40
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45d220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.0045fd60
mov ebx, dword [ebp + 0x18]
xor esi, esi
add esp, 8
mov dword [ebp - 4], esi
mov edi, eax
test ebx, ebx
je 0x45d25e
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
add eax, eax
mov dword [ebp - 4], eax
add eax, 2
push eax
push 1
call fcn.0045cc70
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp - 8]
push dword [ebp + 0x1c]
push ebx
push dword [ebp - 4]
push esi
call fcn.0045ce00
mov edx, dword [ebp + 0x14]
add esp, 0x18
mov ebx, eax
test edx, edx
je 0x45d296
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
push edi
call fcn.0047ee40
push esi
call fcn.0047ee40
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d2b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.0045fd60
mov esi, dword [ebp + 0x14]
add esp, 8
mov ecx, esi
mov edi, eax
sub ecx, 1
je 0x45d2ea
sub ecx, 1
je 0x45d2ea
sub ecx, 5
je 0x45d2ea
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x45d306
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.0045e3e0
mov ecx, dword [ebp - 8]
add esp, 0x10
mov eax, dword [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp esi, 1
je 0x45d327
cmp esi, 2
je 0x45d327
cmp esi, 7
jne 0x45d332
push dword [ebp - 4]
call fcn.0047ee40
add esp, 4
push edi
call fcn.0047ee40
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45d3d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
xor eax, eax
mov edi, 0x400
mov dword [ebp - 8], eax
call fcn.0045fd60
mov esi, eax
push 0x800
push 0
mov dword [ebp - 4], esi
call fcn.0045ccc0
add esp, 0x10
mov ebx, eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x45d44a
cmp esi, edi
jb 0x45d43a
lea eax, [esi + esi]
mov edi, esi
push eax
push ebx
call fcn.0045ccc0
add esp, 8
mov ebx, eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x45d412
jmp 0x45d44a
push 1
push 0xffffffffffffffff
push ebx
call fcn.0045fdd0
add esp, 0xc
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00405582
push dword [ebp - 4]
mov edi, dword [eax]
call fcn.0047ee40
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00405582
push ebx
mov dword [eax], edi
call fcn.0047ee40
mov ebx, dword [ebp - 8]
add esp, 4
test ebx, ebx
jne 0x45d48b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45d4b0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45d4b0
push 0
lea edx, [ebp - 0xc]
push edx
push ecx
push ebx
push eax
call fcn.0045fb70
add esp, 0x14
test al, al
je 0x45d4d7
jmp 0x45d4c4
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45d4b5
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
push ebx
call fcn.0047ee40
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x6a5
push str.boralibmiscwin32u.c
push 0x49efc4
call fcn.00415300
int3
Function at 0x45d4f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x208
push 0
mov ebx, 0x104
call fcn.0045ccc0
add esp, 8
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
je 0x45d543
nop dword [eax + eax]
cmp esi, ebx
jb 0x45d555
lea eax, [esi + esi]
mov ebx, esi
push eax
push edi
call fcn.0045ccc0
add esp, 8
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
jne 0x45d520
push edi
call fcn.0047ee40
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xffffffffffffffff
push edi
call fcn.0045fdd0
mov esi, eax
push edi
call fcn.0047ee40
add esp, 0x10
test esi, esi
je 0x45d54c
mov eax, dword [ebp + 8]
test eax, eax
je 0x45d593
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45d593
push 0
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call fcn.0045fb70
add esp, 0x14
test al, al
je 0x45d5ba
jmp 0x45d5a7
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45d598
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
push esi
call fcn.0047ee40
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x777
push str.boralibmiscwin32u.c
push 0x49efc4
call fcn.00415300
int3

Function at 0x45d5d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x208
push 0
mov ebx, 0x104
call fcn.0045ccc0
add esp, 8
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x45d623
nop dword [eax + eax]
cmp esi, ebx
jb 0x45d635
lea eax, [esi + esi]
mov ebx, esi
push eax
push edi
call fcn.0045ccc0
add esp, 8
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
jne 0x45d600
push edi
call fcn.0047ee40
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xffffffffffffffff
push edi
call fcn.0045fdd0
mov esi, eax
push edi
call fcn.0047ee40
add esp, 0x10
test esi, esi
je 0x45d62c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45d673
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x45d673
push 0
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call fcn.0045fb70
add esp, 0x14
test al, al
je 0x45d69a
jmp 0x45d687
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45d678
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
push esi
call fcn.0047ee40
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x64b
push str.boralibmiscwin32u.c
push 0x49efc4
call fcn.00415300
int3
Function at 0x45d9f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.0045fd60
add esp, 8
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00405582
push ebx
mov edi, dword [eax]
call fcn.0047ee40
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00405582
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45dba0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.0045fd60
add esp, 8
mov ebx, eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00405582
push ebx
mov edi, dword [eax]
call fcn.0047ee40
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00405582
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e580
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xb0], eax
je 0x45e705
cmp byte [0x4ef54f], 0
jne 0x45e5bd
mov edi, dword [0x4f918c]
jmp 0x45e624
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00411960
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x45e5f2
xor edi, edi
jmp 0x45e617
cmp dword [ebp - 0x9c], 5
ja 0x45e612
jne 0x45e60e
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x45e612
cmp word [ebp - 0xc], 4
jae 0x45e612
xor edi, edi
jmp 0x45e617
mov edi, 8
mov dword [0x4f918c], edi
mov byte [0x4ef54f], 0
mov ebx, dword [esi + 4]
mov eax, edi
shr eax, 3
and al, 1
mov dword [ebp - 0xa4], ebx
push 2
push esi
mov dword [ebp - 0xa8], eax
call fcn.0045dd30
add esp, 8
test al, al
je 0x45e718
nop dword [eax]
mov eax, dword [esi + 8]
sub eax, ebx
shr eax, 1
push eax
mov eax, dword [esi]
add eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0xb0]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0xac], 0
test ebx, ebx
jne 0x45e68c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa8]
test al, al
jne 0x45e6c3
mov eax, dword [esi]
add eax, dword [ebp - 0xa4]
push 0
push 0
push 0
push 0
push ebx
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], ecx
jmp 0x45e6c9
mov ecx, dword [ebp - 0xb4]
test ebx, ebx
jg 0x45e6f0
cmp dword [ebp - 0xac], 0x7a
jne 0x45e718
push 2
push esi
call fcn.0045dd30
add esp, 8
test al, al
je 0x45e718
mov ebx, dword [ebp - 0xa4]
jmp 0x45e650
test al, al
jne 0x45e6f9
cmp dword [ebp + 0x10], ecx
jne 0x45e718
mov eax, dword [ebp - 0xa4]
lea eax, [eax + ebx*2]
mov dword [esi + 4], eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
Function at 0x45f640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 8]
sub eax, esi
je 0x45f692
sub eax, 1
je 0x45f665
sub eax, 1
jne 0x45f6d3
imul esi, dword [ebp + 0xc], 0xbc8f
jmp 0x45f6af
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
push eax
call fcn.0048415a
add esp, 4
test eax, eax
je 0x45f6af
xor esi, eax
lea edi, [edi + 1]
movzx eax, byte [edi]
push eax
rol esi, 5
call fcn.0048415a
add esp, 4
test eax, eax
jne 0x45f678
jmp 0x45f6af
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx]
test eax, eax
je 0x45f6af
nop dword [eax]
xor esi, eax
lea ecx, [ecx + 1]
movzx eax, byte [ecx]
rol esi, 5
test eax, eax
jne 0x45f6a0
mov ecx, dword [ebx + 4]
mov edi, 1
shl edi, cl
dec edi
cmp esi, edi
jbe 0x45f6cc
nop
mov edx, esi
and esi, edi
shr edx, cl
xor esi, edx
cmp esi, edi
ja 0x45f6c0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
push 0x94
push str.boralibmischashTable.c
push str.NOT_REACHED__s:_d_n
call fcn.00415300
int3

Function at 0x46af60
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0046a580
mov esi, dword [ebp + 0xc]
add esp, 4
push 0
push 0x10000080
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
jne 0x46afb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x4d8f10
call fcn.004960f0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x46aff6
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x46aff6
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
jmp 0x46aff8
xor eax, eax
push 0
push 0
push 0
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x46b035
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uprv_mapFile:_CreateFileMapping_failed_for__s___d__n
call fcn.004960f0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x46b070
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.uprv_mapFile:_MapViewOfFile_failed_for__s___d__n
call fcn.004960f0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x14], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47dde0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47de0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47de0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x48c0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x48c0bd
xor eax, eax
mov eax, dword [esi + 0x3c]
push ebx
push ebp
push edi
mov ebx, dword [eax + esi + 0x78]
xor edi, edi
add ebx, esi
mov ebp, dword [ebx + 0x20]
add ebp, esi
cmp dword [ebx + 0x18], edi
jbe 0x48c0f1
mov eax, dword [ebp + edi*4]
push dword [esp + 0x18]
add eax, esi
push eax
call fcn.0048c13f
pop ecx
pop ecx
test al, al
jne 0x48c0f8
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x48c0d5
xor eax, eax
mov eax, dword [ebx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + esi]

Function at 0x48c10f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
mov esi, dword [eax + 0xc]
add esi, 0xc
mov esi, dword [esi]
cmp dword [esi + 0x30], 0
je 0x48c11c
cmp dword [esp + 8], 0
je 0x48c13a
push dword [esi + 0x30]
call fcn.0048c1dc
pop ecx
cmp dword [esp + 8], eax
jne 0x48c11c
mov eax, dword [esi + 0x18]
pop esi
ret
Function at 0x48c208
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
call fcn.0048c10f
push dword [0x4f8004]
mov ebp, eax
call fcn.0048c10f
pop ecx
pop ecx
push dword [0x4f8024]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x104
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.0048c17b
mov esi, dword [0x4f800c]
mov edi, eax
pop ecx
cmp dword [esi], 0
je 0x48c27f
push edi
call fcn.0048c166
pop ecx
cmp al, byte [esi]
push es
je 0x48c26e
cmp al, byte [esi + 1]
je 0x48c26e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.0048c1bd
pop ecx
cmp eax, dword [esi + 4]
je 0x48c27f
cmp eax, dword [esi + 8]
jne 0x48c266
push dword [0x4f8024]
xor edi, edi
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov edx, edi
cmp dword [0x4f802c], edi
jbe 0x48c2c0
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x4f8044]
add edx, eax
cmp edx, dword [0x4f802c]
jb 0x48c2a5
push esi
push ebx
call fcn.0048c0b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48c266
mov esi, dword [0x4f8008]
lea eax, [esp + 0x10]
push eax
push dword [0x4f802c]
push dword [0x4f8038]
dec edi
add byte [esi - 1], dl
xlatb
mov edx, dword [0x4f8030]
add edx, ebp
push 8
pop ecx
mov ebx, dword [edx + 4]
cmp dword [0x4f8038], ecx
jbe 0x48c316
mov eax, dword [edx + ecx]
add eax, ebx
mov dword [esi + ecx], eax
mov eax, dword [0x4f8044]
add ecx, eax
cmp ecx, dword [0x4f8038]
jb 0x48c2ff
mov eax, dword [0x4f8020]
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push dword [0x4f8038]
push esi
call edi
mov eax, dword [0x4f8018]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4f8018]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
jmp 0x48c266
Function at 0x48c25e
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
call fcn.0048c10f
push dword [0x4f8004]
mov ebp, eax
call fcn.0048c10f
pop ecx
pop ecx
push dword [0x4f8024]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x104
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.0048c17b
mov esi, dword [0x4f800c]
mov edi, eax
pop ecx
cmp dword [esi], 0
je 0x48c27f
push edi
call fcn.0048c166
pop ecx
cmp al, byte [esi]
push es
je 0x48c26e
cmp al, byte [esi + 1]
je 0x48c26e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.0048c1bd
pop ecx
cmp eax, dword [esi + 4]
je 0x48c27f
cmp eax, dword [esi + 8]
jne 0x48c266
push dword [0x4f8024]
xor edi, edi
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov edx, edi
cmp dword [0x4f802c], edi
jbe 0x48c2c0
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x4f8044]
add edx, eax
cmp edx, dword [0x4f802c]
jb 0x48c2a5
push esi
push ebx
call fcn.0048c0b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48c266
mov esi, dword [0x4f8008]
lea eax, [esp + 0x10]
push eax
push dword [0x4f802c]
push dword [0x4f8038]
dec edi
add byte [esi - 1], dl
xlatb
mov edx, dword [0x4f8030]
add edx, ebp
push 8
pop ecx
mov ebx, dword [edx + 4]
cmp dword [0x4f8038], ecx
jbe 0x48c316
mov eax, dword [edx + ecx]
add eax, ebx
mov dword [esi + ecx], eax
mov eax, dword [0x4f8044]
add ecx, eax
cmp ecx, dword [0x4f8038]
jb 0x48c2ff
mov eax, dword [0x4f8020]
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push dword [0x4f8038]
push esi
call edi
mov eax, dword [0x4f8018]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4f8018]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
jmp 0x48c266
Function at 0x48c2e4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
call fcn.0048c10f
push dword [0x4f8004]
mov ebp, eax
call fcn.0048c10f
pop ecx
pop ecx
push dword [0x4f8024]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x104
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.0048c17b
mov esi, dword [0x4f800c]
mov edi, eax
pop ecx
cmp dword [esi], 0
je 0x48c27f
push edi
call fcn.0048c166
pop ecx
cmp al, byte [esi]
push es
je 0x48c26e
cmp al, byte [esi + 1]
je 0x48c26e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.0048c1bd
pop ecx
cmp eax, dword [esi + 4]
je 0x48c27f
cmp eax, dword [esi + 8]
jne 0x48c266
push dword [0x4f8024]
xor edi, edi
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov edx, edi
cmp dword [0x4f802c], edi
jbe 0x48c2c0
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x4f8044]
add edx, eax
cmp edx, dword [0x4f802c]
jb 0x48c2a5
push esi
push ebx
call fcn.0048c0b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48c266
mov esi, dword [0x4f8008]
lea eax, [esp + 0x10]
push eax
push dword [0x4f802c]
push dword [0x4f8038]
dec edi
add byte [esi - 1], dl
xlatb
mov edx, dword [0x4f8030]
add edx, ebp
push 8
pop ecx
mov ebx, dword [edx + 4]
cmp dword [0x4f8038], ecx
jbe 0x48c316
mov eax, dword [edx + ecx]
add eax, ebx
mov dword [esi + ecx], eax
mov eax, dword [0x4f8044]
add ecx, eax
cmp ecx, dword [0x4f8038]
jb 0x48c2ff
mov eax, dword [0x4f8020]
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push dword [0x4f8038]
push esi
call edi
mov eax, dword [0x4f8018]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4f8018]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
jmp 0x48c266
Function at 0x490d5a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00490cd6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x490ec9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x490ec9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x490e7e
jg 0x490db6
test eax, eax
je 0x490e74
push 1
push 0x1000
call fcn.004055b6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x490dd9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x490e6b
push 0x8000
push ebx
call fcn.00402bfe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x490e02
jg 0x490dfd
cmp ecx, 0x1000
jb 0x490e02
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040f022
add esp, 0x10
cmp eax, 0xffffffff
je 0x490e47
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x490dfd
jl 0x490e2e
test ecx, ecx
jne 0x490def
push dword [ebp - 0xc]
push ebx
call fcn.00402bfe
push esi
call fcn.00405613
add esp, 0xc
xor ebx, ebx
jmp 0x490ed7
cmp byte [edi + 0x24], 0
je 0x490e5e
cmp dword [edi + 0x20], 5
jne 0x490e5e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x490e69
mov ebx, dword [edi + 0x18]
jmp 0x490e6b
xor ebx, ebx
push esi
call fcn.00405613
pop ecx
jmp 0x490ed7
test ecx, ecx
jg 0x490e40
jl 0x490e7e
test eax, eax
jae 0x490e40
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00410011
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x490e9e
cmp byte [edi + 0x1c], 0
je 0x490e40
jmp 0x490ecf
push ebx
call fcn.00407915
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x490e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x490ed7
cmp byte [edi + 0x1c], 0
je 0x490ed4
mov ebx, dword [edi + 0x18]
jmp 0x490ed7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00410011
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret