joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da650
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x4da65d
xor al, al
pop esi
ret
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4da66b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4da6a3
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4da692
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4da6b5
push eax
call edi
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x4da6c7
push eax
call edi
mov dword [esi + 0xc], 0xffffffff
pop edi
mov al, 1
pop esi
ret

Function at 0x4dad10
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
push edi
lea edi, [esi + 8]
je 0x4dad2b
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0xfffffffffffffff5
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0x5000
lea ecx, [ebp - 0xc]
mov dword [esi + 0x264c], eax
push ecx
lea ebx, [esi + 0x265c]
lea eax, [esi + 0x2658]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4dae16
push dword [ebx]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x4dae16
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esi + 0xc]
push 2
push 0
push 0
push eax
call ebx
push eax
push dword [esi + 0x2658]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4dae16
push dword [esi + 0x2658]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0x5000
lea edx, [ebp - 0xc]
mov dword [esi + 0x2648], eax
push edx
lea eax, [esi + 0x2654]
lea ecx, [esi + 0x2650]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4dae16
push dword [esi + 0x2650]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x4dae16
push 2
push 0
push 0
push edi
call ebx
push eax
push dword [esi + 0x2654]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4dae1f
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x2654]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4db190
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x4db19d
xor eax, eax
pop esi
ret
push edi
push dword [esi + 0x2648]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff6
call edi
test eax, eax
je 0x4db1f1
push dword [esi + 0x264c]
push 0xfffffffffffffff5
call edi
test eax, eax
je 0x4db1f1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x14], eax
test eax, eax
je 0x4db1f1
lea edi, [esi + 4]
push edi
push 0
push esi
push 0x4da6d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x4db1f6
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi]
pop edi
pop esi
ret
Function at 0x4dbdb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
push esi
push edi
mov edi, dword [ebp + 8]
shr eax, 1
push eax
push edi
push 0
call fcn.004db970
mov esi, dword [ebp + 0xc]
add esp, 0xc
movzx edx, ax
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4dbdea
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
cmove esi, eax
test esi, esi
jne 0x4dbdf5
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x58]
cmp dx, cx
jb 0x4dbe04
movzx eax, cx
sub edx, eax
jmp 0x4dbe0a
sub edx, ecx
movzx edx, dx
dec edx
shr ecx, 0x10
cmp dx, cx
jb 0x4dbe16
sub edx, ecx
jmp 0x4dbe1c
sub edx, ecx
movzx edx, dx
dec edx
test bl, 1
je 0x4dbe28
movzx ecx, byte [edi + ebx - 1]
add edx, ecx
mov ecx, dword [ebp + 0x14]
add edx, ebx
pop edi
mov eax, esi
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0x58]
pop esi
pop ebx
mov dword [ecx], edx
pop ebp
ret

Function at 0x4dbed0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00523cc0
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x1008], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1014], esi
mov dword [esi], 0xffffffff
test eax, eax
je 0x4dc031
cmp byte [eax], 0
je 0x4dc031
push edi
push 0
push 0x80
push 3
push 0
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1018], edi
cmp edi, 0xffffffff
jne 0x4dbf5a
pop edi
pop esi
mov dword [ebx + 0x400], 2
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dc009
nop
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
je 0x4dbfff
lea edx, [ebp - 0x1004]
xor edi, edi
mov eax, edx
add eax, ecx
mov ecx, edx
mov ebx, eax
mov dword [ebp - 0x1010], ecx
sub ebx, ecx
xor ecx, ecx
cmp edx, eax
cmova ebx, ecx
test ebx, ebx
je 0x4dbfd7
nop dword [eax]
movzx ecx, byte [esi]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
inc edi
xor ecx, eax
mov eax, dword [esi]
mov esi, dword [ebp - 0x1008]
shr eax, 8
xor eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x1014]
mov dword [esi], eax
cmp edi, ebx
jb 0x4dbfb0
mov edi, dword [ebp - 0x1018]
lea eax, [ebp - 0x100c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4dbf80
jmp 0x4dc003
test eax, eax
jne 0x4dc013
mov ebx, dword [ebp - 0x1008]
mov dword [ebx + 0x400], 3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
not dword [esi]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop esi
mov dword [ebx + 0x400], 1
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
Function at 0x4e0730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov byte [ebp - 4], 0
mov word [ebp - 3], ax
test edi, edi
jne 0x4e074d
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004d9c20
add esp, 4
cmp eax, edi
jg 0x4e079d
cdq
xor edi, edi
sub eax, edx
sar eax, 1
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x4e0799
push ebx
mov ebx, esi
nop
push 2
lea eax, [ebp - 4]
push ebx
push eax
call fcn.004d9c40
push 0x10
lea eax, [ebp - 4]
push 0
push eax
call fcn.005360a2
mov byte [edi + esi], al
add esp, 0x18
inc edi
add ebx, 2
cmp edi, dword [ebp + 0xc]
jl 0x4e0770
pop ebx
test esi, esi
jne 0x4e07a7
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
cmp byte [esi], 2
jne 0x4e0803
movsx eax, byte [esi + 1]
mov edx, 0
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx + 0x46]
inc ecx
xor byte [esi + 2], al
movzx edi, byte [esi + 2]
shl edi, 8
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + 0x46]
inc eax
xor byte [esi + 3], cl
movzx ecx, byte [esi + 3]
or edi, ecx
jle 0x4e07ff
mov ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + 0x46]
inc eax
xor cl, byte [edx + esi + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x4e07e4
mov byte [edi + esi], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x4e0810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x410], edi
call fcn.004d9c20
mov esi, eax
add esp, 4
test esi, esi
je 0x4e0942
movzx eax, byte [ebp + 0xc]
mov byte [ebp - 0x403], al
push ebx
mov byte [ebp - 0x404], 2
mov ebx, 4
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx + 0x46]
inc ecx
mov dword [ebp - 0x418], eax
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + 0x46]
inc eax
mov dword [ebp - 0x414], ecx
test esi, esi
jle 0x4e08ce
lea ecx, [ebp - 0x400]
sub edi, ecx
nop word [eax + eax]
mov ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [edi + ebx]
lea edx, [eax + 0x46]
inc eax
xor dl, byte [ebp + ecx - 0x404]
mov byte [ebp + ebx - 0x404], dl
inc ebx
sub esi, 1
jne 0x4e0890
mov edi, dword [ebp - 0x410]
cmp ebx, 0x400
jae 0x4e0956
mov ecx, dword [ebp - 0x414]
mov byte [ebp + ebx - 0x404], 0
add ebx, 0xfffffffc
mov eax, ebx
xor cl, bl
push ebx
sar eax, 8
xor al, byte [ebp - 0x418]
push 0
push edi
mov byte [ebp - 0x402], al
mov byte [ebp - 0x401], cl
call fcn.00527170
add ebx, 4
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x4e0941
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0x404]
push eax
lea eax, [ebp - 0x408]
push str._02X
push eax
call fcn.0041f000
push 2
lea eax, [ebp - 0x408]
push eax
push edi
call fcn.00534ee0
inc esi
add esp, 0x18
cmp esi, ebx
jl 0x4e0910
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
call fcn.00524568
int3
Function at 0x4e0ed0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [ecx + 4]
test esi, esi
jne 0x4e0edc
xor eax, eax
pop esi
ret
cmp byte [esi], 1
jne 0x4e0f2a
movsx eax, byte [esi + 1]
push edi
lea eax, [eax + eax*2]
lea edx, [eax + 0x65]
xor dl, byte [esi + 2]
lea ecx, [eax + eax*2]
lea eax, [ecx + 0x68]
movzx edi, dl
xor al, byte [esi + 3]
add ecx, 4
shl edi, 8
mov edx, 0
movzx eax, al
or edi, eax
jle 0x4e0f25
nop dword [eax]
lea ecx, [ecx + ecx*2]
lea eax, [ecx + 0x65]
xor al, byte [edx + esi + 4]
lea ecx, [ecx + 1]
mov byte [edx + esi], al
inc edx
cmp edx, edi
jl 0x4e0f10
mov byte [edi + esi], 0
pop edi
mov eax, esi
pop esi
ret

Function at 0x4e10c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4e10ec
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
cmp byte [edi], 1
je 0x4e11c3
push ebx
lea eax, [ebp - 0x404]
mov byte [ebp - 0x404], 0
push edi
push eax
call fcn.004d9d90
lea eax, [ebp - 0x404]
push eax
call fcn.004d9db0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4e11c2
push esi
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.004d9d90
add esp, 8
mov byte [edi], 1
call fcn.0053289f
and eax, 0x800000ff
jns 0x4e114a
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + 1], al
xor esi, esi
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
lea eax, [eax + eax*2]
mov dword [ebp - 0x408], ecx
lea edx, [eax + 0x68]
add eax, 4
mov dword [ebp - 0x40c], edx
mov edx, 4
test ebx, ebx
jle 0x4e1192
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
xor cl, byte [ebp + esi - 0x404]
lea eax, [eax + 1]
mov byte [edi + edx], cl
inc esi
inc edx
cmp esi, ebx
jl 0x4e1173
mov ecx, dword [ebp - 0x408]
mov byte [edi + edx], 0
lea eax, [edx - 4]
sar eax, 8
sub dl, 4
xor dl, byte [ebp - 0x40c]
xor al, cl
push edi
mov byte [edi + 2], al
mov byte [edi + 3], dl
call fcn.004d9db0
lea ecx, [ebx + 4]
add esp, 4
cmp eax, ecx
jne 0x4e1124
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4e1b30
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eacb
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
push 0x104
mov byte [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
lea ecx, [ebp - 0x218]
call fcn.004ea6c0
push 1
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
call fcn.004ea750
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.004ea710
push 2
push 0
push eax
push eax
push dword [ebx]
call fcn.004e21f0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x218]
call fcn.00429420
test esi, esi
je 0x4e1bda
xor al, al
jmp 0x4e1bdc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
Function at 0x4e2990
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4e299e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4e2a5d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
sub edi, 1
jne 0x4e29b6
pop edi
test esi, esi
je 0x4e2a7b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x55ff48]
sub esi, 1
jne 0x4e2a61
not eax
pop esi
pop ebp
ret
Function at 0x4e3190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x4e339c
cmp dword [esi + 0x6af90], 3
jb 0x4e3208
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x4e3246
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x4e3246
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4e322f
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.004e3db0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
add esp, 8
cmp edi, ecx
cmova edi, ecx
cmp edi, 3
jb 0x4e3319
lea eax, [edi - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.004e2d00
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov dword [ebp + 8], eax
cmp edi, dword [esi + 0x6af98]
ja 0x4e32e0
cmp dword [esi + 0x6af90], 3
jb 0x4e32e0
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x4e3284
mov eax, dword [ebp + 8]
jmp 0x4e3339
add dword [esi + 0x6af84], edi
xor edi, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp + 8]
jmp 0x4e333f
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.004e2d00
add esp, 0xc
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x4e337a
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4e3357
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x4e3359
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push eax
push edx
push esi
call fcn.004e35e0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4e338f
push esi
call fcn.004e3490
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x4e31b3
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4e33b0
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x4e33b2
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edx
push esi
call fcn.004e35e0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4e4c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x64]
test edx, edx
je 0x4e4ce2
mov ecx, dword [edi + 0x6c]
mov ebx, dword [edi + 0x68]
cmp ecx, ebx
jae 0x4e4d29
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.00526b40
add dword [edi + 0x6c], ebx
add dword [edi + 0x54], ebx
push ebx
push esi
push dword [edi + 0x58]
call fcn.004e2990
add esp, 0x18
mov dword [edi + 0x58], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4e4d22
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e4d29
mov esi, dword [ebp - 4]
add dword [edi + 0x54], esi
push esi
push ebx
push dword [edi + 0x58]
call fcn.004e2990
add esp, 0xc
mov dword [edi + 0x58], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0xc], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e51c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4e520a
mov edx, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x20]
jb 0x4e51ee
pop edi
mov dword [esi + 0xc], 0x30000
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
push dword [ebp + 8]
add ecx, edx
push ecx
call fcn.00526b40
add esp, 0xc
mov eax, edi
add dword [esi + 0x1c], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
test eax, eax
je 0x4e522d
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4e5740
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ebf6
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4e57eb
push 0x558654
lea eax, [esi + 0x144]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004dcd00
add esp, 0xc
add eax, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi], eax
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x118], 0x57deb8
call fcn.004d9af0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [esi], 0xffffffff
jne 0x4e57d7
xor al, al
jmp 0x4e57f9
push 0x140
lea eax, [esi + 4]
push edi
push eax
call fcn.004d9a50
add esp, 0xc
jmp 0x4e57f7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4e57d3
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4

Function at 0x4e5c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4e5c92
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp word [esi], 1
je 0x4e5c9f
mov eax, esi
pop esi
pop ebp
ret 0xc
movzx eax, word [esi + 2]
mov edx, dword [ebp + 0xc]
test edx, edx
push ebx
mov ebx, edx
lea ecx, [eax + eax*2]
cmove ebx, esi
lea eax, [ecx + 0x65]
xor ax, word [esi + 4]
mov word [ebp + 8], ax
lea eax, [ecx + ecx*2]
lea ecx, [eax + 0x68]
add eax, 4
xor cx, word [esi + 6]
push edi
movzx edi, byte [ebp + 8]
mov word [ebp + 0xa], cx
shl edi, 8
movzx ecx, cl
or edi, ecx
test edx, edx
je 0x4e5cef
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 0x10]
jle 0x4e5cef
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
ret 0xc
xor edx, edx
test edi, edi
jle 0x4e5d18
add esi, 8
nop dword [eax + eax]
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
xor cx, word [esi]
lea eax, [eax + 1]
mov word [ebx + edx*2], cx
lea esi, [esi + 2]
inc edx
cmp edx, edi
jl 0x4e5d00
xor eax, eax
mov word [ebx + edi*2], ax
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4e5d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4e5d5c
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
cmp word [edi], 1
je 0x4e5e4b
xor eax, eax
push ebx
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.004d9da0
lea eax, [ebp - 0x804]
push eax
call fcn.004d9dc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4e5e4a
push esi
mov esi, 1
nop dword [eax]
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.004d9da0
add esp, 8
mov word [edi], si
call fcn.0053289f
and eax, 0x800000ff
jns 0x4e5dc6
dec eax
or eax, 0xffffff00
inc eax
mov word [edi + 2], ax
mov esi, 4
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
lea eax, [eax + eax*2]
mov dword [ebp - 0x808], ecx
lea edx, [eax + 0x68]
add eax, 4
mov dword [ebp - 0x80c], edx
xor edx, edx
test ebx, ebx
jle 0x4e5e11
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
xor cx, word [ebp + edx*2 - 0x804]
lea eax, [eax + 1]
mov word [edi + esi*2], cx
inc edx
inc esi
cmp edx, ebx
jl 0x4e5df0
mov ecx, dword [ebp - 0x808]
xor eax, eax
mov word [edi + esi*2], ax
lea eax, [esi - 4]
sar eax, 8
xor eax, ecx
mov word [edi + 4], ax
lea eax, [esi - 4]
xor eax, dword [ebp - 0x80c]
push edi
mov word [edi + 6], ax
call fcn.004d9dc0
lea ecx, [ebx + 4]
add esp, 4
mov esi, 1
cmp eax, ecx
jne 0x4e5da0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0052388c
mov esp, ebp
pop ebp
ret

Function at 0x4e6260
Capabilities:
Get common file path

Disassembly:
cmp byte [0x6e0b16], 1
jne 0x4e626c
mov al, 1
ret
push esi
push 0x104
lea esi, [ecx + 0x780]
push 0
push esi
call fcn.004d9af0
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4e6297
xor al, al
pop esi
ret
push 0x5c
push esi
call fcn.004ea6e0
add esp, 8
mov al, 1
pop esi
ret