joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46d338
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0046cc90
cmp dword [esi + 8], 0
je 0x46d315
mov ebx, 1
mov eax, dword [esi + 8]
mov edx, 1
call fcn.0042b7c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46d19a
lea eax, [ebp - 0xc]
mov edx, dword [esi + 8]
call fcn.004069b8
mov eax, dword [ebp - 0xc]
call fcn.00407200
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46d185
test al, 0x10
sete al
jmp 0x46d187
xor eax, eax
test al, al
je 0x46d19a
lea eax, [ebx + ebx*2]
push eax
call sub.kernel32.dll_Sleep_2
inc ebx
cmp ebx, 0xb
jne 0x46d14a
cmp dword [ebp - 0x14], 0
je 0x46d315
xor ecx, ecx
push ebp
push 0x46d30e
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.00407020
mov byte [esi + 0xc], 0
lea eax, [ebp - 8]
call fcn.004065ac
mov eax, dword [ebp - 4]
test eax, eax
je 0x46d1dd
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x46d2a9
lea eax, [ebp - 4]
call fcn.00406b50
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x46d1fb
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x46d211
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jle 0x46d22b
mov eax, dword [ebp - 4]
cmp byte [eax], 0xff
jne 0x46d22b
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0xfe
jne 0x46d22b
mov byte [esi + 0xc], 1
movzx eax, byte [esi + 0xc]
sub al, 1
jb 0x46d237
je 0x46d244
jmp 0x46d2a9
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004072c8
jmp 0x46d2a9
mov eax, dword [ebp - 4]
test eax, eax
je 0x46d250
sub eax, 4
mov eax, dword [eax]
mov edx, eax
sub edx, 2
sar edx, 1
jns 0x46d25c
adc edx, 0
lea eax, [ebp - 8]
call fcn.00407318
mov eax, dword [ebp - 8]
test eax, eax
je 0x46d270
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
jle 0x46d2a9
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00406b50
mov edx, ebx
dec edx
add edx, edx
add edx, 3
lea eax, [eax + edx - 1]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
call fcn.00406b48
mov edx, dword [ebp - 0x18]
movzx edx, word [edx]
mov word [eax + ebx*2 - 2], dx
inc ebx
dec edi
jne 0x46d27b
mov dl, 1
mov eax, dword [0x426cec]
call fcn.00404fa4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46d2f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0042c090
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.0046d890
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d2f8
mov eax, dword [ebp - 0x10]
call fcn.00404fd4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d33f
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040660c
lea eax, [ebp - 4]
call fcn.004065d0
ret
Function at 0x475b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 4
jb 0x475cb6
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406b50
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 2
jne 0x475cb6
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
add eax, 4
cmp eax, dword [ebp - 8]
jne 0x475cb6
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
sub al, 1
jb 0x475b88
sub al, 4
jb 0x475be8
jmp 0x475cb6
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x14
jne 0x475cb6
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406b50
add eax, 4
mov edx, dword [ebp - 4]
mov esi, eax
lea edi, [edx + 0x44c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
add eax, 0x44c
push eax
push 0
push 0
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x47541c]
call fcn.00475860
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
jmp 0x475cb6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x444]
call fcn.00406a8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx edx, word [eax + 2]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0x444
xor ecx, ecx
call fcn.00407020
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0
jbe 0x475c4a
mov eax, dword [ebp - 4]
add eax, 0x444
call fcn.00406b50
mov edx, dword [ebp - 0x14]
add eax, edx
push eax
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406b50
add eax, 4
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx + 2]
pop edx
call fcn.00404860
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 2
je 0x475c5c
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 4
jne 0x475cb6
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 2
jne 0x475c6b
mov byte [ebp - 0x19], 3
jmp 0x475c6f
mov byte [ebp - 0x19], 2
mov eax, dword [ebp - 4]
add eax, 0x44c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x444]
push eax
push 0
push 0
push 0
mov cl, byte [ebp - 0x19]
mov dl, 1
mov eax, dword [0x47541c]
call fcn.00475860
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0x444
xor ecx, ecx
xor edx, edx
call fcn.00407020
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
push fcn.00475760
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00406a8c
push eax
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406b50
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
push eax
call sub.kernel32.dll_ReadFileEx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x475cff
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov al, byte [ebp - 9]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x475e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475f4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0042cb70
test eax, eax
jne 0x475e84
mov byte [ebp - 5], 1
jmp 0x475f34
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0042ca10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x475ead
cmp dword [ebp - 0x10], 0xff
jg 0x475ead
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
dec dword [edx + eax*4 + 0x44]
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0042c9e0
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0042ceb0
mov eax, dword [ebp - 0xc]
call fcn.00406a8c
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406b50
push eax
lea eax, [ebp - 0xc]
call fcn.00406b50
pop edx
pop ecx
call fcn.00404860
push 0x475710
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406a8c
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406b50
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
push eax
call sub.kernel32.dll_WriteFileEx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x475f34
mov eax, dword [ebp - 4]
mov byte [eax + 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475f51
lea eax, [ebp - 0xc]
call fcn.004065d0
ret
Function at 0x476450
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x16], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_ResetEvent
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ConnectNamedPipe
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x15], 0
je 0x4764c3
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, 0x47656c
mov edx, 0x476590
call fcn.00436360
push 0x47656c
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00436500
mov eax, dword [ebp - 0x14]
sub eax, 0x217
je 0x4764d6
sub eax, 0x1ce
je 0x47651c
jmp 0x476522
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_SetEvent
test eax, eax
jne 0x476550
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, 0x47656c
mov edx, 0x4765d4
call fcn.00436360
push 0x47656c
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00436500
jmp 0x476556
mov byte [ebp - 0x16], 1
jmp 0x476550
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, 0x47656c
mov edx, 0x476590
call fcn.00436360
push 0x47656c
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00436500
jmp 0x476556
mov al, byte [ebp - 0x16]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x476830
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47690b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
push 0x1388
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
push 0xff
push 6
push 0x40000003
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00407200
push eax
call sub.kernel32.dll_CreateNamedPipeW
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffff
jne 0x4768e2
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x40]
mov edx, 0x476928
call fcn.004073f0
mov edx, dword [ebp - 0x18]
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, 0x47696c
call fcn.00436360
push 0x47696c
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00436500
jmp 0x4768f5
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00476450
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476912
lea eax, [ebp - 0x18]
call fcn.004065ac
ret
Function at 0x477e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4781e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x477ea7
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00407200
push eax
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 0x28], eax
jmp 0x477eb0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4781cb
xor eax, eax
push ebp
push 0x477fe0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xc]
push eax
push 1
push 0x10
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_FindResourceExW
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x477ef0
call fcn.00405d98
jmp 0x4781cb
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x477f10
call fcn.00405d98
jmp 0x4781cb
xor eax, eax
push ebp
push 0x477fb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x10
xor ecx, ecx
call fcn.00407020
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406a8c
test eax, eax
jle 0x477fa2
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x477f9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406a8c
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406b50
mov edx, eax
mov eax, dword [ebp - 0x34]
pop ecx
call fcn.00404860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477fa2
mov eax, dword [ebp - 0x30]
call fcn.0040bba4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477fc0
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4781f0
lea eax, [ebp - 0x14]
call fcn.004065ac
lea eax, [ebp - 0xc]
call fcn.004065ac
ret
Function at 0x479370
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov byte [ebp - 0xd], 0
push 0x40
push 0x1000
push 0x228
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4794d9
lea eax, [ebp - 0x248]
mov edx, 0x228
call fcn.0042a660
mov byte [ebp - 0x248], 0x68
mov eax, dword [ebp - 4]
add eax, 0x1e
mov dword [ebp - 0x247], eax
mov word [ebp - 0x243], 0x15ff
mov eax, dword [ebp - 4]
add eax, 0x16
mov dword [ebp - 0x241], eax
mov byte [ebp - 0x23d], 0x68
xor eax, eax
mov dword [ebp - 0x23c], eax
mov word [ebp - 0x238], 0x15ff
mov eax, dword [ebp - 4]
add eax, 0x1a
mov dword [ebp - 0x236], eax
push 0x4794e0
mov eax, dword [0x59eefc]
mov eax, dword [eax]
push eax
call fcn.0040b434
mov dword [ebp - 0x232], eax
push 0x4794fc
mov eax, dword [0x59eefc]
mov eax, dword [eax]
push eax
call fcn.0040b434
mov dword [ebp - 0x22e], eax
mov eax, dword [ebp - 0xc]
call fcn.00406a80
add eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x47945c
mov eax, dword [ebp - 0xc]
call fcn.00407200
lea edx, [ebp - 0x22a]
mov ecx, dword [ebp - 0x14]
call fcn.00404860
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x228
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4794d9
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4794d9
xor eax, eax
push ebp
push 0x4794d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4794d9
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x479520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4795bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
jne 0x4795bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0x4550
jne 0x4795bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
movzx eax, word [eax + 0x14]
cmp eax, 0xe0
jne 0x4795bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp word [eax + 0x18], 0x10b
jne 0x4795bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 4], eax
pop ecx
pop ebp
ret

Function at 0x48fed0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, ebx
mov edx, 0x158
call fcn.0042a660
lea eax, [ebp - 0x46]
mov edx, 0x40
call fcn.0042a660
cmp dword [ebp - 4], 0
je 0x48ff8e
mov eax, dword [ebp - 4]
mov dword [ebx + 0x154], eax
movzx eax, word [ebp + 8]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
mov word [ebp - 6], dx
cmp ax, word [ebp - 6]
jbe 0x48ff4a
movzx eax, ax
push eax
lea edx, [ebp - 0x46]
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.0048fe80
mov eax, dword [ebp - 4]
movzx eax, word [eax + 2]
movzx ecx, ax
lea edx, [ebx + 0xd4]
lea eax, [ebp - 0x46]
call fcn.00404860
jmp 0x48ff5a
movzx ecx, ax
lea edx, [ebx + 0xd4]
mov eax, esi
call fcn.00404860
movzx edx, word [ebp - 6]
dec edx
test dx, dx
jb 0x48ff74
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x36
inc eax
dec dx
jne 0x48ff6b
mov eax, ebx
mov esi, dword [ebp - 4]
call dword [esi + 4]
movzx ecx, word [ebp - 6]
lea edx, [ebx + 0xd4]
mov eax, ebx
mov ebx, dword [ebp - 4]
call dword [ebx + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48ffb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x490031
movzx edx, word [eax]
mov word [esp + 4], dx
mov esi, eax
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 8]
movzx edx, word [esp + 4]
dec edx
test edx, edx
jl 0x48ffee
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x6a
inc eax
dec edx
jne 0x48ffe7
mov esi, dword [ebx + 0x154]
mov eax, ebx
call dword [esi + 4]
mov esi, dword [ebx + 0x154]
movzx ecx, word [esp + 4]
lea edx, [ebx + 0xd4]
mov eax, ebx
call dword [esi + 0xc]
mov eax, dword [ebx + 0x154]
mov esi, eax
movzx ecx, word [eax + 2]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0xc]
mov esi, dword [ebx + 0x154]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 8]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4900d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push esi
push edi
push ebx
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, 0x10
mov eax, dword [edx]
xchg ah, al
rol eax, 0x10
xchg ah, al
mov dword [esi], eax
add esi, 4
add edx, 4
dec ecx
jne 0x4900ea
mov ecx, 0x30
mov edi, dword [esi - 0x1c]
mov eax, dword [esi - 8]
mov ebx, eax
mov edx, eax
ror eax, 0x11
ror edx, 0x13
shr ebx, 0xa
xor eax, edx
xor eax, ebx
add edi, eax
mov eax, dword [esi - 0x3c]
mov ebx, eax
mov edx, eax
ror eax, 7
ror edx, 0x12
shr ebx, 3
xor eax, edx
xor eax, ebx
add eax, edi
add eax, dword [esi - 0x40]
mov dword [esi], eax
add esi, 4
dec ecx
jne 0x490103
pop ebx
pop edi
pop esi
pop ecx
pop ecx
pop ebp
ret
Function at 0x499860
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x499976
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0042b640
mov eax, dword [ebp - 0x1c]
call fcn.0042b7f0
push 9
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407200
push eax
mov eax, dword [ebp - 4]
call fcn.00407200
push eax
call sub.kernel32.dll_MoveFileWithProgressW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
je 0x4998f3
cmp word [ebp + 0xa], 0
je 0x49995b
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00499e40
test al, al
je 0x49995b
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
jmp 0x49995b
cmp byte [ebp - 9], 0
je 0x49991c
push dword [ebp + 0xc]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00499690
test al, al
je 0x49991c
mov eax, dword [ebp - 4]
call fcn.00427e10
mov byte [ebp - 0xa], 1
jmp 0x49995b
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
push 0x499994
push dword [ebp - 4]
push 0x4999c4
push dword [ebp - 8]
push 0x4999e0
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00407478
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x59e8a8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dl, 2
call fcn.00436500
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49997d
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040660c
ret
Function at 0x49c200
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49c327
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
mov edx, 0x24
call fcn.0042a660
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetSystemInfo_1
xor eax, eax
push ebp
push 0x49c2fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x59e7a4]
cmp dword [eax], 0
je 0x49c2f1
push 1
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x49c1d8]
call fcn.004084e4
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x59e7a4]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0xc]
mov ecx, 0x18
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x49c1d8]
call fcn.004084e4
add esp, 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x59e7a4]
mov eax, dword [eax]
call eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jb 0x49c2eb
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*8 + 4]
sub eax, 1
jae 0x49c2e3
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x49c2ce
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c305
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c32e
lea eax, [ebp - 8]
mov edx, dword [0x49c1d8]
call fcn.004084f0
ret