joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489f49
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
jne 0x489f84
cmp dword [ebp + 0xc], ebx
je 0x489f84
cmp dword [ebp + 0xc], 0xffffffff
je 0x489f84
call fcn.0048a7ad
mov dword [ebp - 0x10c], eax
mov esi, 0x6c60f8
mov edx, esi
call fcn.004c3b34
test eax, eax
mov edi, 0x104
jne 0x489fa5
cmp dword [0x6c5cd0], ebx
je 0x48a04b
push edi
push ebx
push esi
call fcn.005117f0
add esp, 0xc
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [0x6c5cd0], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.APPDATA
call ebx
test eax, eax
jne 0x48a019
push edi
lea eax, [ebp - 0x108]
push eax
push str.USERPROFILE
call ebx
test eax, eax
jne 0x48a019
push edi
lea eax, [ebp - 0x108]
push eax
push str.ProgramData
call ebx
test eax, eax
jne 0x48a019
push str._GetLastError_
push str.:5:GetPaulaInstallationDir___EAP:_GetEnvironmentVariable__ProgramData___FAILED:__s
call fcn.00426c01
push str.C:ProgramData
mov ecx, edi
lea eax, [ebp - 0x108]
call fcn.004c3b66
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x53ed7c
push eax
call fcn.005123f0
lea eax, [ebp - 0x108]
push eax
push str._sPAULA_
push edi
push esi
call fcn.004c53b7
push esi
call fcn.005120b0
add esp, 0x1c
mov dword [0x6c5ddc], eax
mov ebx, 0x6c6200
push esi
mov ecx, edi
mov eax, ebx
call fcn.004c3b66
mov ecx, dword [0x6c5ddc]
push esi
mov esi, 0x6c6308
mov eax, esi
call fcn.004c3b66
cmp dword [ebp - 0x10c], 0
pop ecx
pop ecx
jne 0x48a097
cmp dword [ebp + 0xc], 0xffffffff
je 0x48a10a
cmp dword [ebp + 0xc], 0
je 0x48a093
push str.:8:GetPaulaInstallationDir___was_called_with_an_INVALID_pszAppend___
call fcn.004265da
pop ecx
mov eax, ebx
jmp 0x48a10a
cmp dword [ebp + 0xc], 0xffffffff
jne 0x48a0b4
push esi
push dword [ebp - 0x10c]
call fcn.005123e0
push esi
call fcn.005120b0
add esp, 0xc
jmp 0x48a104
push ebx
push dword [ebp - 0x10c]
call fcn.005123e0
push ebx
call fcn.005120b0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x48a104
mov esi, dword [ebp - 0x10c]
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, esi
push edi
push eax
call fcn.005140d9
add esp, 0x10
test eax, eax
jge 0x48a104
push dword [ebp + 0xc]
push str.:8:GetPaulaInstallationDir___EAP:_MAX_PATH_has_been_exceeded:___s_
call fcn.004265da
pop ecx
pop ecx
mov byte [esi + 0x103], 0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
Function at 0x48a237
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x48a25b
cmp dword [ebp + 0xc], edi
je 0x48a25b
cmp dword [ebp + 0xc], 0xffffffff
je 0x48a25b
call fcn.0048a7ad
mov dword [ebp + 8], eax
mov esi, 0x6c6728
mov edx, esi
call fcn.004c3b34
test eax, eax
mov ebx, 0x104
jne 0x48a278
cmp dword [0x6c5cd4], edi
je 0x48a2d9
push ebx
push edi
push esi
call fcn.005117f0
add esp, 0xc
push esi
push 0x103
mov dword [0x6c5cd4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x48a2c6
push str._GetLastError_
push str.:5:GetWindowsTempDir___FAILED:_GetTempPath___FAILED:__s
call fcn.004265da
push edi
push edi
call fcn.00489f49
push eax
push str._sTEMP_
push ebx
push esi
call fcn.004c53b7
add esp, 0x20
xor eax, eax
jmp 0x48a385
mov eax, esi
call fcn.004c425f
push esi
call fcn.005120b0
pop ecx
mov dword [0x6c5fec], eax
mov edi, 0x6c6830
push esi
mov ecx, ebx
mov eax, edi
call fcn.004c3b66
mov ecx, dword [0x6c5fec]
push esi
mov esi, 0x6c6938
mov eax, esi
call fcn.004c3b66
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jne 0x48a31e
cmp dword [ebp + 0xc], 0xffffffff
je 0x48a385
cmp dword [ebp + 0xc], 0
je 0x48a31a
push str.:8:GetWindowsTempDir___was_called_with_an_INVALID_pszAppend___
call fcn.004265da
pop ecx
mov eax, edi
jmp 0x48a385
cmp dword [ebp + 0xc], 0xffffffff
jne 0x48a338
push esi
push dword [ebp + 8]
call fcn.005123e0
push esi
call fcn.005120b0
add esp, 0xc
jmp 0x48a382
push edi
push dword [ebp + 8]
call fcn.005123e0
push edi
call fcn.005120b0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x48a382
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub ebx, eax
add eax, esi
push ebx
push eax
call fcn.005140d9
add esp, 0x10
test eax, eax
jge 0x48a382
push dword [ebp + 0xc]
push str.:8:GetWindowsTempDir___EAP:_MAX_PATH_has_been_exceeded:___s_
call fcn.004265da
pop ecx
pop ecx
mov byte [esi + 0x103], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4967cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
xor edi, edi
push 0x3e
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.005117f0
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.004c3b34
test eax, eax
jne 0x496975
mov ecx, dword [ebp + 8]
push 0x15b4
push str..Printer.c
mov edx, 0x530484
call fcn.0042d2c6
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
mov dword [ebp - 8], ebx
jne 0x496830
push dword [ebp + 8]
push str.PrinterSaveConfig___FAILED:_Could_not_open_the_given_file___s__for_writing.
call fcn.00426c01
pop ecx
pop ecx
jmp 0x496975
push 0x15bb
push esi
call fcn.00499b43
test eax, eax
pop ecx
pop ecx
je 0x49696e
mov eax, esi
call fcn.00499b78
test eax, eax
je 0x49696e
push 0x42
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00512a90
add esp, 0xc
push ebx
push 0x42
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.005110f1
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
add esp, 0x10
cmp dword [ebp - 0x50], edi
je 0x4968ed
push dword [esi + 0xc]
call ebx
cmp eax, edi
push dword [esi + 0xc]
mov dword [ebp - 0xc], eax
je 0x4968de
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x4968c3
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.005110f1
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push dword [ebp - 0xc]
call fcn.005110f1
add esp, 0x20
jmp 0x4968d3
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevMode:__GetLastError_
call fcn.00426c01
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4968ed
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevMode_during_save___ld_:__GetLastError_
call fcn.00426c01
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x4c], edi
je 0x49695a
push dword [esi + 0x10]
call ebx
push dword [esi + 0x10]
mov ebx, eax
cmp ebx, edi
je 0x49694b
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x496930
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.005110f1
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push ebx
call fcn.005110f1
add esp, 0x20
jmp 0x496940
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevNames:__GetLastError_
call fcn.00426c01
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x49695a
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevNames_during_save___ld_:__GetLastError_
call fcn.00426c01
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
mov eax, esi
call fcn.00499bae
mov ecx, dword [ebp - 8]
call fcn.0042d70e
xor eax, eax
inc eax
jmp 0x496977
mov ecx, ebx
call fcn.0042d70e
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x4b008a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp ecx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x4b00d6
mov eax, dword [0x6cc9f0]
cmp eax, edi
je 0x4b00bb
push eax
call fcn.00511758
pop ecx
mov dword [0x6cc854], edi
mov dword [0x6cc9ec], edi
push 0x66c
push 0x191
call fcn.00511988
pop ecx
pop ecx
mov dword [0x6cc9f0], eax
jmp 0x4b01c3
push 0xfb2
push str..Reconcile.c
mov edx, 0x530488
call fcn.0042d2c6
mov ebx, eax
cmp ebx, edi
mov eax, dword [0x6cc9f0]
pop ecx
pop ecx
je 0x4b01c3
cmp eax, edi
je 0x4b010c
push eax
call fcn.00511758
pop ecx
mov dword [0x6cc9f0], edi
push ebx
push 1
lea eax, [ebp - 4]
push 4
push eax
mov dword [0x6cc854], edi
mov dword [0x6cc9ec], edi
call fcn.00511c63
add esp, 0x10
cmp eax, 1
jae 0x4b0137
mov ecx, ebx
call fcn.0042d70e
jmp 0x4b00bb
mov eax, dword [ebp - 4]
mov esi, 0x66c
add eax, 0x191
push esi
push eax
call fcn.00511988
cmp eax, edi
pop ecx
pop ecx
mov dword [0x6cc9f0], eax
jne 0x4b0161
mov ecx, ebx
call fcn.0042d70e
xor eax, eax
jmp 0x4b01c3
mov eax, dword [ebp - 4]
cmp eax, edi
mov dword [ebp - 0xc], edi
jle 0x4b01ac
push ebx
push 1
lea eax, [ebp - 8]
push 2
push eax
call fcn.00511c63
mov eax, dword [0x6cc9f0]
mov cx, word [ebp - 8]
add eax, edi
mov word [eax], cx
movzx ecx, word [ebp - 8]
push ebx
dec ecx
push 1
dec ecx
push ecx
add eax, 2
push eax
call fcn.00511c63
mov eax, dword [ebp - 4]
add esp, 0x20
inc dword [ebp - 0xc]
add edi, esi
cmp dword [ebp - 0xc], eax
jl 0x4b016b
xor edi, edi
mov ecx, ebx
mov dword [0x6cc854], eax
mov dword [0x6cc9ec], edi
call fcn.0042d70e
mov eax, dword [0x6cc9f0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b01c8
Capabilities:
Write file on windows

Disassembly:
test ecx, ecx
push esi
push edi
jne 0x4b01d5
xor eax, eax
jmp 0x4b0257
cmp dword [0x6cc854], 0
mov eax, dword [0x6cc9f0]
jle 0x4b0257
test eax, eax
je 0x4b0257
push 0xff6
push str..Reconcile.c
mov edx, 0x530484
call fcn.0042d2c6
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4b01ce
push esi
push 1
push 4
push 0x6cc854
call fcn.005110f1
mov edi, dword [0x6cc9f0]
xor edx, edx
add esp, 0x10
cmp dword [0x6cc854], edx
mov eax, 0x66c
jle 0x4b023a
mov ecx, edi
mov word [ecx], ax
inc edx
add ecx, eax
cmp edx, dword [0x6cc854]
jl 0x4b022c
push esi
push dword [0x6cc854]
push eax
push edi
call fcn.005110f1
add esp, 0x10
mov ecx, esi
call fcn.0042d70e
mov eax, dword [0x6cc9f0]
pop edi
pop esi
ret
Function at 0x4b1986
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor esi, esi
push 9
xor eax, eax
cmp dword [ebp + 8], esi
mov word [ebp - 0x34], si
pop ecx
lea edi, [ebp - 0x32]
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
stosw word es:[edi], ax
jne 0x4b19e0
mov eax, dword [0x6cc6dc]
cmp eax, esi
je 0x4b19c8
push eax
call fcn.00511758
pop ecx
mov dword [0x6cc3ec], esi
mov dword [0x6cc564], esi
push 0x28
push 0x3e9
call fcn.00511988
pop ecx
pop ecx
mov dword [0x6cc6dc], eax
jmp 0x4b1ad6
mov ecx, dword [ebp + 8]
push 0x143e
push str..Reconcile.c
mov edx, 0x530488
call fcn.0042d2c6
mov ebx, eax
cmp ebx, esi
mov eax, dword [0x6cc6dc]
pop ecx
pop ecx
je 0x4b1ad6
cmp eax, esi
je 0x4b1a19
push eax
call fcn.00511758
pop ecx
mov dword [0x6cc6dc], esi
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
mov dword [0x6cc3ec], esi
mov dword [0x6cc564], esi
call fcn.00511c63
add esp, 0x10
cmp eax, 1
jae 0x4b1a44
mov ecx, ebx
call fcn.0042d70e
jmp 0x4b19c8
mov eax, dword [ebp - 8]
push 0x28
pop esi
add eax, 0x3e9
push esi
push eax
call fcn.00511988
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [0x6cc6dc], eax
jne 0x4b1a6e
mov ecx, ebx
call fcn.0042d70e
xor eax, eax
jmp 0x4b1ad6
mov eax, dword [ebp - 8]
cmp eax, edi
mov dword [ebp + 8], edi
jle 0x4b1abe
push ebx
push 1
lea eax, [ebp - 0xc]
push 2
push eax
call fcn.00511c63
mov eax, dword [0x6cc6dc]
mov dword [ebp - 0xc], esi
mov word [edi + eax], si
movzx eax, word [ebp - 0xc]
push ebx
dec eax
dec eax
push 1
push eax
lea eax, [ebp - 0x32]
push eax
call fcn.00511c63
lea eax, [ebp - 0x34]
push eax
call fcn.004b025a
mov eax, dword [ebp - 8]
add esp, 0x24
inc dword [ebp + 8]
add edi, esi
cmp dword [ebp + 8], eax
jl 0x4b1a78
and dword [0x6cc564], 0
mov ecx, ebx
mov dword [0x6cc3ec], eax
call fcn.0042d70e
mov eax, dword [0x6cc6dc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b1adb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
cmp ecx, esi
push edi
mov dword [ebp - 4], esi
jne 0x4b1aef
xor eax, eax
jmp 0x4b1b66
cmp dword [0x6cc3ec], esi
mov eax, dword [0x6cc6dc]
jle 0x4b1b66
cmp eax, esi
je 0x4b1b66
push 0x1486
push str..Reconcile.c
mov edx, 0x530484
call fcn.0042d2c6
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x4b1aeb
mov eax, dword [0x6cc3ec]
push ebx
push 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
call fcn.005110f1
add esp, 0x10
cmp dword [ebp - 4], esi
jle 0x4b1b5a
xor edi, edi
mov eax, dword [0x6cc6dc]
push ebx
push 1
add eax, edi
push 0x28
push eax
call fcn.005110f1
add esp, 0x10
inc esi
add edi, 0x28
cmp esi, dword [ebp - 4]
jl 0x4b1b3c
mov ecx, ebx
call fcn.0042d70e
mov eax, dword [0x6cc6dc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b1b6b
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
test esi, esi
push edi
mov ebx, eax
jge 0x4b1b7d
call fcn.00412cb9
mov esi, eax
test ebx, ebx
jge 0x4b1b88
call fcn.00412c21
mov ebx, eax
test esi, esi
jle 0x4b1bcf
test ebx, ebx
jle 0x4b1bcf
push 1
push 0x1f8
call fcn.00511988
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4b1bcf
mov dword [edi], esi
imul esi, ebx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + esi + 0x14]
push eax
push 4
mov dword [edi + 4], ebx
call fcn.00511988
test eax, eax
pop ecx
pop ecx
mov dword [edi + 0x14], eax
jne 0x4b1bd5
push edi
call fcn.00511758
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
test esi, esi
push 7
pop ebx
jle 0x4b1bf2
mov ecx, dword [edi + 0x14]
mov byte [ecx + eax*4], 0x20
mov ecx, dword [edi + 0x14]
mov word [ecx + eax*4 + 2], bx
inc eax
cmp eax, esi
jl 0x4b1bde
mov eax, dword [0x6ccdfc]
test eax, eax
jne 0x4b1c26
call fcn.004a8f27
test eax, eax
mov dword [0x6ccdfc], eax
jne 0x4b1c26
push dword [edi + 0x14]
call fcn.00511758
push edi
call fcn.00511758
push str.:7:CreateScreenBuffer___FAILED:_CreatePtrList___FAILED____
call fcn.004265da
add esp, 0xc
jmp 0x4b1bcf
mov ecx, dword [edi + 0x14]
lea ecx, [ecx + esi*4 + 4]
push 5
mov dword [edi + 0x24], ecx
lea ecx, [esi + 2]
pop edx
cmp ecx, edx
mov dword [edi + 0x20], ecx
jge 0x4b1c40
mov dword [edi + 0x20], edx
push edi
mov dword [edi + 0x10], ebx
mov byte [edi + 0x1c], 9
mov byte [edi + 0x1d], bl
call fcn.004a9020
lea ebx, [edi + 0x38]
mov dword [esp], str..ScreenBuffer.c
push ebx
call fcn.0043266e
test eax, eax
pop ecx
pop ecx
jne 0x4b1c71
push str.:5:CreateScreenBuffer___EAP:_InitializeLock___FAILED.
call fcn.004265da
pop ecx
mov esi, str.A_ScreenBuffer_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0043296d
mov eax, 0x7d0
mov ecx, ebx
call fcn.004329aa
mov eax, edi
call fcn.004b4beb
mov eax, edi
jmp 0x4b1bd1

Function at 0x4b1db1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, eax
jne 0x4b1dc2
xor eax, eax
jmp 0x4b1dec
push edi
mov edi, 0xef
call fcn.004b4b73
test eax, eax
je 0x4b1de9
mov eax, esi
call fcn.004b4bd5
test eax, eax
je 0x4b1de9
cmp dword [esi + 0x14], 0
jne 0x4b1def
mov eax, esi
call fcn.004b4beb
xor eax, eax
pop edi
pop esi
leave
ret
push ebx
push dword [ebp + 8]
lea ebx, [esi + 4]
mov edi, dword [ebx]
imul edi, dword [esi]
push 4
push 1
push esi
call fcn.005110f1
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 4
push 1
push ebx
call fcn.005110f1
add dword [ebp - 4], eax
add esp, 0x20
xor ebx, ebx
test edi, edi
jle 0x4b1e38
mov eax, dword [esi + 0x14]
movsx eax, byte [eax + ebx*4]
push dword [ebp + 8]
push eax
call fcn.00512df5
inc ebx
cmp ebx, edi
pop ecx
pop ecx
jl 0x4b1e21
add dword [ebp - 4], edi
xor ebx, ebx
test edi, edi
jle 0x4b1e59
mov eax, dword [esi + 0x14]
movzx eax, byte [eax + ebx*4 + 2]
push dword [ebp + 8]
push eax
call fcn.00512df5
inc ebx
cmp ebx, edi
pop ecx
pop ecx
jl 0x4b1e41
mov eax, esi
call fcn.004b4beb
mov eax, dword [ebp - 4]
add eax, edi
pop ebx
jmp 0x4b1deb
Function at 0x4b23f9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x4b250c
push esi
push 4
lea eax, [ebp - 8]
push 1
push eax
call fcn.00511c63
push esi
push 4
lea eax, [ebp - 4]
push 1
push eax
call fcn.00511c63
mov ecx, dword [ebp - 8]
lea eax, [ecx - 1]
mov edx, 0x7ffd
add esp, 0x20
cmp eax, edx
mov eax, dword [ebp - 4]
ja 0x4b24f5
lea edi, [eax - 1]
cmp edi, edx
ja 0x4b24f5
call fcn.004b1b6b
mov edi, eax
cmp edi, ebx
jne 0x4b2477
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.0042d97a
pop ecx
push eax
push str.:7:CreateScreenBufferFromRawFileDump___s___FAILED:_CreateScreenBuffer__d___d__FAILED.
jmp 0x4b2504
mov esi, dword [edi + 4]
imul esi, dword [edi]
test esi, esi
jle 0x4b24b5
push dword [ebp + 8]
call fcn.0051344f
cmp eax, 0xffffffff
pop ecx
je 0x4b249c
mov ecx, dword [edi + 0x14]
mov byte [ecx + ebx*4], al
inc ebx
cmp ebx, esi
jl 0x4b2481
jmp 0x4b24b5
push esi
push ebx
push dword [ebp + 8]
call fcn.0042d97a
pop ecx
push eax
push str.:5:CreateScreenBufferFromRawFileDump___s___FAILED:_Premature_EOF_was_reached_parsing_characters_at__d_of__d.
call fcn.004265da
add esp, 0x10
xor ebx, ebx
test esi, esi
jle 0x4b24f1
push dword [ebp + 8]
call fcn.0051344f
cmp eax, 0xffffffff
pop ecx
je 0x4b24d8
mov ecx, dword [edi + 0x14]
mov word [ecx + ebx*4 + 2], ax
inc ebx
cmp ebx, esi
jl 0x4b24bb
jmp 0x4b24f1
push esi
push ebx
push dword [ebp + 8]
call fcn.0042d97a
pop ecx
push eax
push str.:5:CreateScreenBufferFromRawFileDump___s___FAILED:_Premature_EOF_was_reached_parsing_attributes_at__d_of__d.
call fcn.004265da
add esp, 0x10
mov eax, edi
jmp 0x4b250e
push eax
push ecx
push esi
call fcn.0042d97a
pop ecx
push eax
push str.:7:CreateScreenBufferFromRawFileDump___s___FAILED:_The_dimensions___d__d__are_invalid.
call fcn.004265da
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b38de
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x20
pop eax
jmp 0x4b38ee
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x693
mov ebx, eax
call fcn.004b4b73
test eax, eax
je 0x4b399e
mov eax, esi
call fcn.004b4bd5
test eax, eax
je 0x4b399e
test ebx, ebx
jge 0x4b391f
mov ebx, 0xff
mov eax, dword [esi]
imul eax, dword [esi + 4]
xor edi, edi
test eax, eax
jle 0x4b398a
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4]
cmp byte [eax], bl
jne 0x4b3941
test word [eax + 2], 0x2000
jne 0x4b3941
xor ecx, ecx
jmp 0x4b3946
xor ecx, ecx
mov byte [eax], bl
inc ecx
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4 + 2]
movzx edx, word [eax]
xor edx, dword [esi + 0x10]
test dl, dl
je 0x4b396f
mov dl, byte [esi + 0x10]
and dx, 0xff
cmp ebx, 0xff
je 0x4b396c
or dx, 0x200
mov word [eax], dx
test ecx, ecx
je 0x4b397f
mov eax, dword [esi + 0x14]
lea eax, [eax + edi*4 + 2]
or word [eax], 0x2000
mov eax, dword [esi]
imul eax, dword [esi + 4]
inc edi
cmp edi, eax
jl 0x4b392b
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov eax, esi
call fcn.004b4beb
xor eax, eax
inc eax
jmp 0x4b39a0
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4b4bff
Capabilities:
Write file on windows

Disassembly:
push 0x10
push 0x5c08f0
call fcn.00518194
or dword [ebp - 0x1c], 0xffffffff
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4b4cc5
push 1
mov esi, 0xfffc
push esi
call fcn.00511988
mov edi, eax
push 1
push esi
call fcn.00511988
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffdc
push edi
call fcn.0051400a
add esp, 0x24
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea eax, [edi + ecx]
mov dl, byte [eax]
cmp dl, 0xd
je 0x4b4cad
cmp dl, 0xa
je 0x4b4cad
add ecx, esi
mov byte [ecx], 0x1c
mov byte [ecx + 1], 0x1d
mov byte [ecx + 2], 0x1e
mov byte [ecx + 3], 0x1f
add ecx, 4
push ecx
call fcn.004b4e52
pop ecx
push dword [ebp + 8]
push esi
call fcn.005120b0
pop ecx
push eax
push 1
push esi
call fcn.005110f1
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 4
jle 0x4b4c9e
sub dword [ebp - 0x1c], 4
push edi
call fcn.00511758
push esi
call fcn.00511758
pop ecx
jmp 0x4b4cc4
mov byte [esi + ecx], dl
inc ecx
jmp 0x4b4c4f
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.005181d9
ret

Function at 0x4b5a9a
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ecx
push esi
push 0x2b7
push str..Security.c
call fcn.004b59f7
mov edx, 0x530484
mov ecx, eax
call fcn.0042d2c6
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4b5ae2
push dword [esp + 0xc]
push eax
push str.wcXqRlYqak9_fo
call fcn.004c6598
pop ecx
pop ecx
push eax
push str.:7:_s__ld__FAILED:_fopen___FAILED.
call fcn.004265da
add esp, 0xc
xor eax, eax
jmp 0x4b5b0e
push esi
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.005110f1
add esp, 0x10
mov ecx, esi
call fcn.0042d70e
push 2
push ecx
call fcn.004b59f7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
inc eax
pop esi
pop ecx
ret
Function at 0x4b5b11
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 0x2d0
push str..Security.c
call fcn.004b59f7
mov edx, 0x530488
mov ecx, eax
call fcn.0042d2c6
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4b5b71
call fcn.004b59f7
mov edi, eax
call fcn.0042ad00
test eax, eax
je 0x4b5b6d
push dword [ebp - 4]
push esi
push str._cXqRlYqak9_fo
call fcn.004c6598
pop ecx
pop ecx
push eax
push str.:7:_s__ld__FAILED:_fopen___FAILED.
call fcn.004265da
add esp, 0xc
xor eax, eax
jmp 0x4b5b95
push esi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.00511c63
add esp, 0x10
cmp eax, 1
jae 0x4b5b8b
and dword [ebp - 4], 0
mov ecx, esi
call fcn.0042d70e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret