joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5607b4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, dword [ebp + 8]
cmp byte [eax - 0x15], 0
jne 0x5608fe
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
sub eax, dword [0x66c3a8]
mov edx, dword [ebp + 8]
add dword [edx - 0x20], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0x24]
mov eax, dword [ebp + 8]
sub ebx, dword [eax - 0x1c]
test ebx, ebx
jle 0x5607fc
mov edx, dword [0x66c3a8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov ecx, ebx
call fcn.004023c8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x20]
cmp eax, 0x10020
jle 0x560816
mov esi, 0x10000
jmp 0x560820
mov edx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, eax
sub esi, ebx
mov eax, dword [ebp + 8]
mov edx, dword [0x66c3a8]
mov dword [eax - 0x1c], edx
push 0
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
add eax, ebx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x5608ce
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
add eax, ebx
add eax, esi
mov edx, dword [ebp + 8]
mov dword [edx - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
add eax, ebx
add eax, esi
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x14]
mov eax, dword [ebp + 8]
setge byte [eax - 0x15]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + 4], 4
jne 0x5608e3
mov eax, dword [ebp + 8]
cmp byte [eax - 0x25], 0
jne 0x5608e3
mov eax, dword [ebp + 8]
cmp dword [eax - 0x20], 0
jne 0x5608b8
push ebp
call fcn.005604a0
pop ecx
call fcn.00421650
mov ecx, esi
sub ecx, 0x2a
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, 0x2a
call fcn.00421498
jmp 0x5608e3
call fcn.00421650
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, ebx
mov ecx, esi
call fcn.00421498
jmp 0x5608e3
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x2c]
mov eax, 0x560904
call fcn.0061fa50
call fcn.0065612c
cmp byte [0x66506c], 0
je 0x5608fe
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x20]
mov eax, dword [0x6698c0]
mov eax, dword [eax]
call fcn.004f64d8
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x56156c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x561772
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov al, byte [eax - 0x6c5]
sub al, 1
jb 0x56159f
jne 0x56175c
mov bl, 1
jmp 0x56175c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax - 0x6c5], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
push eax
call sub.ole32.dll_StgIsStorageFile
test eax, eax
jne 0x56175c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x3f6], 0
je 0x561600
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.005603d8
pop ecx
test al, al
je 0x56175c
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 4]
call fcn.004038bc
jmp 0x56161f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
call fcn.005b4db0
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 0x2c]
call fcn.004038bc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffff40
call fcn.004043d0
push eax
push 0
push 0
push 0x400022
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ole32.dll_StgOpenStorage
test eax, eax
jne 0x5616dd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffff3c
call fcn.004043d0
push eax
push 0
push 0x10
push 0
mov eax, dword [0x6698e4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0xc0]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
jne 0x5616dd
push 0
push 0x600
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xfffff93c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0xc4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x5616dd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
movzx ebx, word [eax - 0x6c4]
cmp ebx, 0xa5dc
je 0x5616cd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp ebx, 0xa5ec
jne 0x5616dd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp word [eax - 0x6c2], 0x65
jae 0x5616e1
xor eax, eax
jmp 0x5616e3
mov al, 1
mov ebx, eax
test bl, bl
je 0x5616f8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax - 0x6c5], 1
jmp 0x56175c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffff40
call fcn.004043d0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x3f6], 0
je 0x561735
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax - 9], 0
jmp 0x56175c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x2c]
mov ecx, 1
mov edx, 0xc0000000
call fcn.006585a4
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 0x10]
mov dword [edx + 0x164], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x561779
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x5897c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
mov bl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
cmp byte [eax + 0x47b], 0
jne 0x5898a7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.00401e58
mov edx, dword [ebp + 8]
mov dword [edx - 0x1c], eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_ReadFile
call fcn.0064dfa0
mov dword [ebp - 8], eax
call fcn.0064dfa0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x114], 0x4e4
xor eax, eax
push ebp
push 0x589880
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov dword [ebp - 4], eax
push ebp
call fcn.00588e2c
pop ecx
push ebp
call fcn.00589560
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58988c
mov eax, dword [ebp - 0xc]
call fcn.0064e5c0
mov eax, dword [ebp - 8]
call fcn.0064e5c0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
call fcn.00401fac
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5905ec
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
xor ebx, ebx
mov eax, dword [0x6693a0]
test byte [eax], 8
setne al
and eax, 0x7f
mov edx, dword [eax*4 + 0x665f20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.006585a4
mov edi, eax
mov eax, dword [esi]
mov dword [eax + 0x164], edi
inc edi
je 0x590664
mov eax, dword [0x6693a0]
test byte [eax], 8
je 0x59064b
mov eax, dword [esi]
mov byte [eax + 0x3f6], 1
mov eax, dword [esi]
mov byte [eax + 0x3f7], 1
mov eax, dword [ebp + 8]
add eax, 0xffffffd4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov edx, dword [edx + 8]
call fcn.004038bc
jmp 0x5907c7
call sub.kernel32.dll_GetLastError
cmp eax, 0x20
jne 0x5906f6
mov eax, dword [esi]
cmp byte [eax + 0x45e], 0
jne 0x5906a8
mov eax, dword [0x6693a0]
test byte [eax], 0x40
jne 0x5906a8
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov edx, dword [edx + 8]
mov eax, 0x5907d0
mov cl, 3
call fcn.0061fadc
cmp ax, 7
je 0x5907c9
mov eax, dword [ebp + 8]
push eax
call fcn.005603d8
pop ecx
test al, al
je 0x5907c9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 1
mov edx, 0xc0000000
call fcn.006585a4
mov edx, dword [esi]
mov dword [edx + 0x164], eax
mov eax, dword [ebp + 8]
add eax, 0xffffffd4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
call fcn.004038bc
mov eax, dword [esi]
mov byte [eax + 0x3f5], 1
jmp 0x5907c7
mov edx, dword [0x6693a0]
test byte [edx], 8
jne 0x5907a0
sub eax, 5
je 0x590713
sub eax, 0x3c
jne 0x5907a0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov ecx, 1
mov edx, 0x80000000
call fcn.006585a4
mov edi, eax
mov eax, dword [esi]
mov dword [eax + 0x164], edi
inc edi
jne 0x59075f
mov ax, word [0x590804]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov edx, dword [edx + 8]
mov eax, 0x590808
mov cl, 1
call fcn.0061f824
cmp ax, 2
je 0x5907c9
jmp 0x5905fa
mov eax, dword [esi]
mov byte [eax + 0x3f6], 1
mov eax, dword [ebp + 8]
add eax, 0xffffffd4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov edx, dword [edx + 8]
call fcn.004038bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
jne 0x5907c7
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x2c]
mov eax, dword [0x669864]
mov eax, dword [eax]
call fcn.0064ed24
jmp 0x5907c7
mov ax, word [0x590804]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
mov edx, dword [edx + 8]
mov eax, 0x590808
mov cl, 1
call fcn.0061f824
cmp ax, 2
je 0x5907c9
jmp 0x5905fa
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x593cdc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x593dc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0xff
jne 0x593d9f
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, 0x20
call fcn.00621410
cmp dword [ebp - 4], 0
je 0x593d30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x160]
mov edx, dword [ebp - 4]
call fcn.00654750
test al, al
je 0x593d30
mov bl, 1
jmp 0x593d97
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00403de4
mov eax, dword [ebp - 4]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jne 0x593d59
lea eax, [ebp - 4]
call fcn.00403880
jmp 0x593d77
lea eax, [ebp - 4]
call fcn.0065418c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0061bcec
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004038bc
cmp dword [ebp - 4], 0
je 0x593d97
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x160]
mov edx, dword [ebp - 4]
call fcn.00654750
test al, al
je 0x593d97
mov bl, 1
mov eax, dword [ebp + 8]
mov byte [eax - 1], bl
jmp 0x593da5
mov eax, dword [ebp + 8]
mov bl, byte [eax - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x593dc7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403898
ret
Function at 0x595454
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 1], cl
mov edi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x53da40]
call fcn.00403e48
xor eax, eax
push ebp
push 0x5955fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x42b], 1
mov eax, dword [ebx + 0x164]
mov dword [ebp - 0xc], eax
mov eax, edi
call fcn.006585c4
mov esi, eax
mov dword [ebx + 0x164], esi
inc esi
jne 0x5954cf
xor edx, edx
mov eax, edi
call fcn.0061fba8
cmp ax, 2
jne 0x595495
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x164], eax
mov byte [ebx + 0x42b], 0
mov byte [ebp - 2], 2
jmp 0x5955d6
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x160]
call fcn.004038bc
lea eax, [ebx + 0x160]
mov edx, edi
call fcn.004038bc
mov byte [ebp - 0x40], 0
mov eax, dword [0x669a50]
test byte [eax + 1], 0x20
je 0x595521
mov eax, ebx
call fcn.005bd35c
test al, al
je 0x595521
lea edx, [ebp - 0x60]
mov eax, dword [ebx + 0x300]
call fcn.0054238c
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x3c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
jmp 0x59554e
lea edx, [ebp - 0x60]
mov eax, ebx
call fcn.005c0e14
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x3c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
cmp byte [ebx + 0x433], 0
je 0x59554e
lea edx, [ebp - 0x2c]
or ecx, 0xffffffff
mov eax, ebx
call fcn.005c0d90
mov eax, dword [ebx + 0x168]
mov dword [ebp - 0x1c], eax
mov al, byte [0x59560c]
mov byte [ebp - 0x3e], al
mov eax, dword [ebx + 0x16c]
mov dword [ebp - 0x18], eax
mov al, byte [ebx + 0x170]
mov byte [ebp - 0x3f], al
test byte [ebp - 1], 1
je 0x595582
or byte [ebp - 0x3e], 2
mov dword [ebp - 0x1c], 6
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004038bc
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.005b45b8
mov byte [ebp - 2], al
mov eax, dword [ebx + 0x164]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 2], 0
je 0x5955b8
mov eax, dword [ebx + 0x160]
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x164], eax
lea eax, [ebx + 0x160]
mov edx, dword [ebp - 8]
call fcn.004038bc
mov byte [ebx + 0x42b], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x595601
lea eax, [ebp - 0x40]
mov edx, dword [0x53da40]
call fcn.00403f10
lea eax, [ebp - 8]
call fcn.00403880
ret
Function at 0x595610
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 0x38]
mov edx, dword [0x53da40]
call fcn.00403e48
xor eax, eax
push ebp
push 0x59582d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x442], 0
jne 0x595801
cmp byte [ebx + 0x440], 0
je 0x595801
cmp byte [ebx + 0x38], 0
jne 0x59566c
cmp byte [ebx + 0x43d], 0
je 0x595801
cmp byte [ebx + 0x45c], 0
jne 0x595801
cmp byte [ebx + 0x43d], 0
jne 0x5956c1
lea edx, [ebp - 0x3c]
mov al, 1
call fcn.0061c8e8
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x30]
call fcn.004038bc
mov eax, dword [ebx + 0x30]
call fcn.006585c4
mov esi, eax
mov dword [ebx + 0x34], esi
inc esi
jne 0x5956c1
xor edx, edx
mov eax, dword [ebx + 0x30]
call fcn.0061fba8
cmp ax, 2
jne 0x595697
xor eax, eax
mov dword [ebx + 0x34], eax
jmp 0x595801
mov eax, dword [0x669498]
inc dword [eax]
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.005c0e14
lea esi, [ebp - 0x5c]
lea edi, [ebp - 0x34]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x168], 4
jne 0x595701
cmp dword [ebx + 0x178], 0
je 0x595701
mov dword [ebp - 0x14], 4
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x160]
call fcn.004038bc
mov al, byte [0x59583c]
mov byte [ebp - 0x36], al
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x160]
call fcn.004038bc
lea eax, [ebx + 0x160]
mov edx, dword [ebx + 0x30]
call fcn.004038bc
mov esi, dword [ebx + 0x164]
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x164], eax
mov byte [ebx + 0x441], 1
mov byte [ebx + 0x442], 1
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.005b45b8
test al, al
jne 0x5957ad
mov byte [ebx + 0x43d], 1
mov byte [ebx + 0x440], 0
mov eax, dword [ebx + 0x4b0]
mov dword [ebx + 0x4b8], eax
mov eax, 0x811
call fcn.0049a860
mov eax, dword [0x669840]
mov eax, dword [eax]
mov byte [eax + 0xa], 1
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_CloseHandle
mov ecx, 1
mov edx, 0xc0000000
mov eax, dword [ebx + 0x30]
call fcn.006585a4
mov dword [ebx + 0x34], eax
jmp 0x5957d3
cmp byte [ebx + 0x43d], 0
jne 0x5957d3
mov eax, dword [ebx + 0x164]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebx + 0x160]
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x441], 0
mov dword [ebx + 0x164], esi
lea eax, [ebx + 0x160]
mov edx, dword [ebp - 4]
call fcn.004038bc
call fcn.004fe3fc
mov byte [ebx + 0x442], 0
mov eax, dword [0x669498]
dec dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x595834
lea eax, [ebp - 0x3c]
call fcn.00403880
lea eax, [ebp - 0x38]
mov edx, dword [0x53da40]
call fcn.00403f10
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x597110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax - 0x3c], 0
jle 0x5971c8
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 4
jne 0x597168
call fcn.00421650
mov edx, dword [ebp + 8]
cmp dword [edx - 0x40], 0
jne 0x597154
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0x3c]
sub ecx, 0x2a
mov edx, dword [0x66c420]
mov edx, dword [edx + 4]
add edx, 0x2a
call fcn.004213f4
jmp 0x597168
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0x3c]
mov edx, dword [0x66c420]
mov edx, dword [edx + 4]
call fcn.004213f4
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x3c]
push eax
mov eax, dword [0x66c420]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
mov eax, dword [eax + 0x164]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x5971b4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
mov eax, dword [eax + 0x160]
mov dl, 2
call fcn.0061fba8
cmp ax, 2
jne 0x597168
call fcn.0065612c
jmp 0x597168
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x3c]
mov edx, dword [ebp + 8]
add dword [edx - 0x40], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x3c], edx
pop ecx
pop ebp
ret

Function at 0x5a95e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a96ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x5a9704
mov eax, esi
call fcn.004b43ac
mov edx, 0x5a9714
call fcn.004b4384
mov esi, eax
lea eax, [ebp - 4]
push eax
mov edi, dword [ebx + 0x24]
mov edx, dword [edi + 0x34]
mov eax, dword [edi + 0x2c]
call fcn.0061ec08
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fld xword [0x5a971c]
fmulp st(1)
fstp xword [ebp - 0x24]
wait
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 3
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + 0x38]
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 0x30]
call fcn.0061ec08
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fld xword [0x5a971c]
fmulp st(1)
fstp xword [ebp - 0x34]
wait
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 3
lea edx, [ebp - 0x14]
mov eax, 0x5a9728
mov ecx, 1
call fcn.006550e0
mov ecx, dword [ebp - 4]
mov edx, 0x5a9748
mov eax, esi
call fcn.004b4168
mov edx, 0x5a9758
mov eax, esi
call fcn.004b4384
mov esi, eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.005a93f8
pop ecx
mov ecx, dword [ebp - 4]
mov edx, 0x5a976c
mov eax, esi
call fcn.004b4168
xor ecx, ecx
mov edx, 0x5a977c
mov eax, esi
call fcn.004b4168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a96f4
lea eax, [ebp - 4]
call fcn.00403274
ret
Function at 0x5b4dd0
Capabilities:
Set file attributes

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x3f7], 1
mov eax, ebx
call fcn.005b4db0
cmp byte [ebx + 0x3f6], 0
jne 0x5b4e07
mov eax, dword [ebx + 0x160]
call fcn.00654560
test al, al
je 0x5b4e07
push 0x20
mov eax, dword [ebx + 0x160]
push eax
call sub.kernel32.dll_SetFileAttributesW
pop ebx
ret
Function at 0x5b918c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x3cc]
push eax
call sub.gdi32.dll_GetRegionData
mov ebx, eax
mov eax, ebx
call fcn.00401e58
mov esi, eax
push esi
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x3cc]
push eax
call sub.gdi32.dll_GetRegionData
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x5b920f
lea eax, [esi + 0x20]
mov edx, ebx
shl edx, 4
add eax, edx
push 0xcc0020
mov edi, dword [eax + 4]
push edi
mov edx, dword [eax]
push edx
mov ecx, dword [0x66997c]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [eax + 0xc]
sub ecx, edi
push ecx
mov ecx, dword [eax + 8]
sub ecx, edx
push ecx
push edi
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.gdi32.dll_BitBlt
dec ebx
cmp ebx, 0xffffffff
jne 0x5b91d0
mov eax, esi
call fcn.00401fac
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x609904
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x155], 0
je 0x609966
cmp dword [0x66c728], 0
je 0x609945
mov eax, dword [0x66c728]
cmp ebx, dword [eax + 0x1a8]
jne 0x609945
push 0
mov eax, dword [0x66c728]
call fcn.00643a28
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x66c728]
xor edx, edx
mov dword [eax + 0x1a8], edx
push 0
mov eax, dword [ebx + 0x15c]
call fcn.00643a28
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x155], 0
mov eax, ebx
call fcn.00609198
mov eax, ebx
call fcn.00609a18
xor eax, eax
mov dword [ebx + 0x14c], eax
xor eax, eax
mov dword [ebx + 0x148], eax
pop ebx
ret

Function at 0x609a18
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x156], 0
je 0x609a31
mov eax, dword [ebx + 0x160]
call fcn.00609a18
pop ebx
ret
xor eax, eax
mov dword [ebx + 0x12c], eax
mov eax, ebx
call fcn.006099e4
test al, al
je 0x609a6d
push 0
mov eax, dword [0x66c72c]
call fcn.00643a28
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x66c72c]
xor edx, edx
mov dword [eax + 0x128], edx
call fcn.00450040
xor edx, edx
mov dword [eax + 0x38], edx
pop ebx
ret
Function at 0x61b698
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], eax
mov byte [esp + 0x10], 0
mov eax, dword [esp]
mov eax, dword [eax]
call fcn.004036e0
mov edi, eax
mov dword [esp + 8], edi
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov eax, dword [esp]
mov eax, dword [eax]
call fcn.0040351c
test al, 3
jne 0x61b7f5
shr eax, 2
cmp eax, 1
jl 0x61b7f5
mov dword [esp + 0xc], eax
xor edx, edx
xor eax, eax
xor ecx, ecx
mov cl, byte [edi]
cmp ecx, 0x3d
jg 0x61b706
je 0x61b7b6
sub ecx, 0x2b
je 0x61b733
sub ecx, 4
je 0x61b737
dec ecx
sub ecx, 0xa
jb 0x61b729
jmp 0x61b73b
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x61b718
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x61b71f
jmp 0x61b73b
mov bl, byte [edi]
sub bl, 0x41
jmp 0x61b73f
mov bl, byte [edi]
add bl, 0x1a
sub bl, 0x61
jmp 0x61b73f
mov bl, byte [edi]
add bl, 0x34
sub bl, 0x30
jmp 0x61b73f
mov bl, 0x3e
jmp 0x61b73f
mov bl, 0x3f
jmp 0x61b73f
xor edx, edx
jmp 0x61b7b6
mov ecx, eax
sub ecx, 1
jb 0x61b74d
je 0x61b75a
dec ecx
je 0x61b77b
jmp 0x61b79f
mov esi, ebx
and esi, 0xff
shl esi, 2
jmp 0x61b7a8
mov ecx, ebx
and cl, 0xf
and ecx, 0xff
shl ecx, 0xc
mov ebp, ebx
and ebp, 0xff
shr ebp, 4
or esi, ebp
or ecx, esi
mov esi, ecx
jmp 0x61b7a8
mov ecx, ebx
and cl, 3
and ecx, 0xff
shl ecx, 0x16
mov ebp, ebx
and ebp, 0xff
shr ebp, 2
shl ebp, 8
or esi, ebp
or ecx, esi
mov esi, ecx
jmp 0x61b7a8
xor ecx, ecx
mov cl, bl
shl ecx, 0x10
or esi, ecx
add edx, 6
inc edi
inc eax
cmp eax, 4
jne 0x61b6e5
test edx, edx
jne 0x61b7c1
mov byte [esp + 0x10], 0
jmp 0x61b7f5
mov eax, edx
shr eax, 3
dec eax
cmp eax, 0
jl 0x61b7e1
mov edx, esi
mov ecx, dword [esp + 8]
mov byte [ecx], dl
shr esi, 8
inc dword [esp + 8]
dec eax
cmp eax, 0xffffffff
jne 0x61b7cc
mov byte [esp + 0x10], 1
dec dword [esp + 0xc]
cmp dword [esp + 0xc], 0
jne 0x61b6e1
cmp byte [esp + 0x10], 0
je 0x61b80e
mov edx, dword [esp + 8]
sub edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.00403804
jmp 0x61b816
mov eax, dword [esp]
call fcn.00403274
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x61c03c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x61c09c
push 0
lea eax, [esp + 8]
push eax
push 3
lea eax, [esp + 0xc]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x61c090
cmp dword [esp + 4], 3
jne 0x61c090
mov eax, dword [esp]
and eax, 0xffffff
cmp eax, 0xbfbbef
je 0x61c094
xor ebx, ebx
jmp 0x61c096
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop ecx
pop edx
pop esi
pop ebx
ret