joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac65e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4ac6a1
push 0x19
push 0x40d278d
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x5d3438]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004016b0
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x184
call fcn.0059fc60
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4ac6ef
push ebx
call fcn.0059de2d
add esp, 4
pop eax
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x5d3438]
fstp qword [ebp - 0x18]
mov dword [ebp - 0x1c], esp
fld qword [ebp - 0x18]
call fcn.004016b0
push eax
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4ac73d
push 0xa4
push 0x40d278d
push 6
call fcn.0059de3f
add esp, 0xc
push 0x5d3437
push dword [ebp - 8]
call fcn.00401107
add esp, 8
cmp eax, 0
jne 0x4ac832
mov dword [ebp - 0xc], esp
push 0
push 0
push 0xe
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4ac791
push 0x114
push 0x40d278d
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x5d3438]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004016b0
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x184
call fcn.0059fc60
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4ac7df
push ebx
call fcn.0059de2d
add esp, 4
pop eax
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x5d3438]
fstp qword [ebp - 0x18]
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
fld qword [ebp - 0x18]
call fcn.004016b0
push eax
push 0xd
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4ac832
push 0x1b4
push 0x40d278d
push 6
call fcn.0059de3f
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4ac84e
push eax
mov ebx, eax
call fcn.00401040
inc eax
push eax
call fcn.0059de33
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4ac853
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4ac864
push ebx
call fcn.0059de2d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4e2c10
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4e2c70
push dword [ebp + 0x10]
call fcn.004ded0b
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_SetCursor]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4e2c70
push 0x55
push 0x40d34ef
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 8], esp
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
cmp dword [ebp - 8], esp
je 0x4e2ca1
push 0x8b
push 0x40d34ef
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
cmp dword [ebp - 8], esp
je 0x4e2ccd
push 0xc1
push 0x40d34ef
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
xor eax, eax
call dword [0x65251f]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4e2d04
push 0xc1
push 0x40d34ef
push 6
call fcn.0059de3f
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4e2d3c
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
nop
nop
cmp dword [ebp - 8], esp
je 0x4e2d37
push 0x115
push 0x40d34ef
push 6
call fcn.0059de3f
add esp, 0xc
jmp 0x4e2d68
mov dword [ebp - 8], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_SetCapture]
nop
nop
cmp dword [ebp - 8], esp
je 0x4e2d68
push 0x129
push 0x40d34ef
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
cmp dword [ebp - 8], esp
je 0x4e2d91
push 0x169
push 0x40d34ef
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4e2dc8
push 0x169
push 0x40d34ef
push 6
call fcn.0059de3f
add esp, 0xc
jmp 0x4e2dcd
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4e6012
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x4e6063
push 0x19
push 0x40d34cc
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4e606e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e6b8c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4e6bd3
push 0
push 0x40d34ce
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4e6c02
push 0x3a
push 0x40d34ce
push 6
call fcn.0059de3f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e6c19
mov eax, 1
jmp 0x4e6c23
mov eax, 0
jmp 0x4e6c23
mov esp, ebp
pop ebp
ret 4
Function at 0x59edb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6527c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x108], ecx
lea eax, [ecx - 1]
cmp eax, 0xa
ja 0x59eddd
mov edx, dword [ecx*4 + 0x652540]
lea eax, [ebp - 0x108]
mov eax, dword [eax - 4]
test eax, eax
je 0x59ee1b
push esi
mov esi, 0xc483
cmp si, word [eax]
pop esi
jne 0x59ee1b
cmp byte [eax + 2], 0xc
jne 0x59ee1b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push edx
push ecx
push 0x5c0f94
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x59ee32
push edx
push ecx
lea eax, [ebp - 0x104]
push 0x5c0fd0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x653108]
test eax, eax
je 0x59ee6b
cmp dword [0x65311c], 0
jne 0x59ee6b
lea ecx, [ebp - 0x104]
mov dword [0x65311c], 1
push ecx
push dword [ebp - 0x108]
call eax
mov dword [0x65311c], 0
test eax, eax
jne 0x59ee81
push 0x10
push 0x5c0ffc
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.0059e990
cmp dword [0x653100], 0
jne 0x59ee97
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0
mov ebp, dword [0x653104]
mov esp, dword [0x653100]
sub esp, 4
ret

Function at 0x59f690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
je 0x59f71f
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 1
mov dword [ebp - 8], 1
cmp ebx, esi
jle 0x59f70f
push edi
lea edi, [ebp + 0x18]
mov eax, dword [edi]
lea edx, [ebp - 0xc]
push 0
push edx
push dword [eax + 4]
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x59f707
inc esi
add edi, 0xc
cmp esi, ebx
jl 0x59f6d1
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x59f810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.005a6d10
mov esi, dword [ebp + 0x18]
mov edi, eax
push esi
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [0x652770]
add esp, 8
test edi, edi
je 0x59f939
test eax, eax
je 0x59f939
inc eax
push eax
call fcn.005a8078
mov edx, eax
mov dword [ebp - 0x10], eax
add esp, 4
sub edx, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x59f856
push 0x5c
push eax
call fcn.005a9470
mov edi, eax
add esp, 8
test edi, edi
je 0x59f877
mov byte [edi], bl
inc edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x59f92a
push 0x400
mov dword [ebp - 4], 0x400
mov dword [ebp - 8], 1
call fcn.005a8078
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x59f8f8
cmp eax, 0xea
jne 0x59f918
push esi
call fcn.005a8081
push dword [ebp - 4]
call fcn.005a8078
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x59f8c5
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x59f905
cmp eax, 2
jne 0x59f918
push esi
call dword [0x652770]
push eax
push esi
call fcn.005a6a60
add esp, 0xc
mov ebx, eax
push esi
call fcn.005a8081
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.005a8081
add esp, 4
test ebx, ebx
jne 0x59f95e
cmp dword [ebp + 0x2c], 0
je 0x59f95e
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x59f95e
push esi
call dword [0x652770]
push eax
push esi
call fcn.005a6a60
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59f970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 1
je case.0x59f9ab.2
mov eax, dword [ebp + 0x24]
dec eax
cmp eax, 5
ja case.0x59f9ab.2
jmp dword [eax*4 + 0x59fa2c]
xor eax, eax
jmp 0x59f9d7
mov eax, 2
jmp 0x59f9d7
mov eax, 3
jmp 0x59f9d7
mov eax, 4
jmp 0x59f9d7
mov eax, 7
jmp 0x59f9d7
mov eax, 5
push edi
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
je 0x59fa26
cmp dword [ebp + 0x18], 0
je 0x59fa12
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5a34a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 1
lea eax, [ecx - 1]
cmp ecx, edi
jle 0x5a356d
cmp eax, 8
jb 0x5a3554
and eax, 0x80000007
jns 0x5a34d0
dec eax
or eax, 0xfffffff8
inc eax
mov edx, ecx
xorps xmm5, xmm5
sub edx, eax
xorps xmm4, xmm4
lea eax, [ebp + 0x30]
nop dword [eax]
movd xmm2, dword [eax + 0xc]
lea eax, [eax + 0x60]
movd xmm0, dword [eax - 0x60]
add edi, 8
movd xmm1, dword [eax - 0x6c]
movd xmm3, dword [eax - 0x78]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0x30]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x24]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0x3c]
pxor xmm5, xmm3
movd xmm3, dword [eax - 0x48]
punpckldq xmm3, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
pxor xmm4, xmm3
cmp edi, edx
jl 0x5a34e0
pxor xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
pxor xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
pxor xmm4, xmm0
movd eax, xmm4
xor esi, eax
cmp edi, ecx
jge 0x5a356d
lea eax, [edi + edi*2]
sub ecx, edi
lea edx, [ebp + 0xc]
lea edx, [edx + eax*4]
xor esi, dword [edx]
lea edx, [edx + 0xc]
sub ecx, 1
jne 0x5a3563
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x5a3610
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5a367c
push esi
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 8]
push ecx
call fcn.0059ec20
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
lea ecx, [edi + 8]
mov dword [edi], 1
push ecx
push ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5a36e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x104
call fcn.0059ebb0
add esp, 4
mov ebx, eax
push 0x104
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x5a3735
push edi
nop
push ebx
call fcn.0059ec90
push esi
mov edi, esi
call fcn.0059ebb0
add esp, 8
mov ebx, eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, edi
ja 0x5a3710
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x5a46b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x5a471c
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5a471c
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
call dword [0x652770]
add esp, 4
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x5a4715
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub eax, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x5a46f3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x5a4730
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5a4777
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x5a4770
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push esi
call dword [0x652770]
push eax
push esi
call fcn.005a6a60
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
ret

Function at 0x5a49b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5a49fd
push esi
call fcn.005a7450
add esp, 4
test eax, eax
je 0x5a49fd
mov eax, dword [esi]
or ecx, 0xffffffff
cmp eax, 1
je 0x5a49e9
cmp eax, 3
je 0x5a49e9
cmp eax, 2
jne 0x5a49f8
mov ecx, dword [esi + 4]
call fcn.005a79d0
mov ecx, eax
pop esi
pop ebp
ret
lea eax, [ebp + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, ecx
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x5a4ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5a4c11
push edi
call fcn.005a7450
add esp, 4
test eax, eax
je 0x5a4c11
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x5a4c11
mov ecx, dword [edi]
push ebx
xor ebx, ebx
push esi
cmp ecx, 1
jne 0x5a4b3b
mov esi, dword [edi + 4]
push eax
call fcn.005a8078
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push ebx
push eax
mov eax, dword [ebp + 0x18]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5a4b1e
push edi
call fcn.005a8081
add esp, 4
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push edi
call fcn.005a6cd0
push edi
mov ebx, eax
call fcn.005a8081
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jne 0x5a4b8b
mov esi, dword [edi + 4]
add eax, 8
push eax
call fcn.0059ec20
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 0x18]
mov ecx, esi
mov dword [ebx + 4], eax
mov dword [ebx], 1
mov edx, dword [esi]
push eax
lea eax, [ebx + 8]
push eax
call dword [edx + 0x20]
test eax, eax
jne 0x5a4b7f
push ebx
call fcn.0059ec90
add esp, 4
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov dword [ebx + 4], eax
mov eax, ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp ecx, 3
jne 0x5a4c08
mov esi, dword [edi + 4]
push eax
call fcn.005a8078
add esp, 4
mov ebx, eax
mov dword [ebp - 0xc], ebx
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5a4bd9
push ebx
call fcn.005a8081
add esp, 4
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
lea eax, [edi + 0xc]
push eax
push dword [edi + 0x130]
lea eax, [edi + 0x2c]
push eax
push esi
push ebx
push dword [ebp - 8]
call fcn.005a6140
push esi
push ebx
call fcn.005a6cd0
push dword [ebp - 0xc]
mov ebx, eax
call fcn.005a8081
add esp, 0x24
pop esi
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5a4c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x5a4dec
push ebx
call fcn.005a7450
add esp, 4
test eax, eax
je 0x5a4dec
mov eax, dword [ebx]
push esi
push edi
cmp eax, 1
jne 0x5a4c98
mov ecx, dword [ebx + 4]
mov esi, eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
cmp ebx, eax
jle 0x5a4dda
lea edi, [ebp + 0x18]
mov eax, dword [edi]
lea edx, [ebp - 0xc]
push 0
push edx
push dword [eax + 4]
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5a4de3
mov ecx, dword [ebp - 0x10]
inc esi
add edi, 0xc
cmp esi, ebx
jl 0x5a4c65
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x5a4cd9
mov edi, dword [ebx + 4]
mov eax, 1
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp ebx, eax
jle 0x5a4de5
lea esi, [ebp + 0x18]
dec ebx
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [edi]
push dword [eax + 4]
add eax, 8
push eax
call dword [edx + 0x24]
lea esi, [esi + 0xc]
sub ebx, 1
jne 0x5a4cb7
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x5a4de3
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
cmp edi, 1
jle 0x5a4d32
lea ecx, [ebp + 0x18]
lea esi, [edi - 1]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test eax, eax
jle 0x5a4d16
cmp edx, eax
cmovg eax, edx
mov edx, eax
add ecx, 0xc
sub esi, 1
jne 0x5a4d06
test edx, edx
jle 0x5a4d32
push edx
call fcn.005a8078
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
jmp 0x5a4d34
xor edx, edx
mov esi, 1
cmp edi, esi
jle 0x5a4dc5
lea edi, [ebp + 0x18]
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x5a4da5
push eax
lea eax, [ecx + 8]
push eax
push edx
call fcn.005a8ef0
add esp, 0xc
push 1
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
lea eax, [ebx + 0xc]
push eax
push dword [ebx + 0x130]
lea eax, [ebx + 0x2c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push ecx
call fcn.005a6140
add esp, 0x18
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5a4db3
inc esi
add edi, 0xc
cmp esi, dword [ebp + 8]
jge 0x5a4dc5
mov edx, dword [ebp - 4]
jmp 0x5a4d44
push dword [ebp - 4]
call fcn.005a8081
add esp, 4
mov dword [ebp - 8], 0
push dword [ebp - 4]
call fcn.005a8081
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a60c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push edi
xor edi, edi
mov bh, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
cmp dword [ebp + 0xc], edi
jle 0x5a6129
push esi
nop dword [eax]
inc bh
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0x13], dl
movzx edx, dl
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], bl
movzx ecx, byte [esi + eax]
mov edx, dword [ebp + 8]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi + edx], cl
inc edi
mov dl, byte [ebp + 0x13]
cmp edi, dword [ebp + 0xc]
jl 0x5a60e0
pop esi
mov cl, dl
mov byte [eax + 0x100], bh
pop edi
mov byte [eax + 0x101], cl
pop ebx
pop ebp
ret
pop edi
mov byte [eax + 0x100], bh
mov byte [eax + 0x101], dl
pop ebx
pop ebp
ret

Function at 0x5a6370
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6527c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push 0
push eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], 0
call fcn.005a95b0
mov esi, edi
lea eax, [ebp - 0x104]
mov edi, dword [ebp + 0xc]
add esp, 0xc
xor ebx, ebx
sub esi, eax
nop
mov eax, ebx
lea ecx, [ebp - 0x104]
cdq
add ecx, ebx
idiv dword [ebp + 0x10]
mov byte [esi + ecx], bl
inc ebx
mov al, byte [edx + edi]
mov byte [ecx], al
cmp ebx, 0x100
jl 0x5a63c0
mov edi, dword [ebp - 0x108]
lea ebx, [ebp - 0x104]
mov esi, edi
mov dword [ebp - 0x108], 0x100
sub ebx, edi
nop dword [eax]
mov dl, byte [esi]
movzx eax, byte [ebx + esi]
add eax, dword [ebp - 0x10c]
movzx ecx, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x5a6421
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [edi + ecx]
mov byte [esi], al
inc esi
sub dword [ebp - 0x108], 1
mov dword [ebp - 0x10c], ecx
mov byte [edi + ecx], dl
jne 0x5a6400
mov ecx, dword [ebp - 4]
mov word [edi + 0x100], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005a8067
mov esp, ebp
pop ebp
ret