joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4856f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5140b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea ebx, [eax + 0x298]
cmp byte [ebx], 0
jne 0x48575f
mov dword [ebp - 0x1c], 0x32
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x48575f
push 0x10
push 0x524f78
push ebx
call fcn.00488a00
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call fcn.004c610b
lea eax, [ebp - 0x28]
push eax
call fcn.004c5fb1
add esp, 8
mov edi, eax
mov esi, 0x524f78
cmp byte [ebx], 0
cmovne esi, ebx
push dword [ebp + 0xc]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.00485a10
push eax
mov ecx, 0x524f90
mov eax, dword [ebp + 0x14]
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, 0x524f88
mov eax, dword [ebp + 0x10]
test eax, eax
cmovne ecx, eax
push ecx
lea eax, [ebx + 0x288]
push eax
push 0x591e28
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebx + 0x2cc]
push str.____
push dword [edi]
push dword [edi + 4]
push dword [edi + 8]
push dword [edi + 0xc]
mov eax, dword [edi + 0x10]
inc eax
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
push str._04d_02d_02d__02d:_02d:_02d_s__4d__6d__6d__10.10s___8.8s___4.4s___12.12s___12.12s___7.7s__
mov esi, dword [ebp + 8]
push esi
call fcn.00489150
add esp, 0x48
mov eax, dword [0x58f3dc]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea ecx, [ebp - 0x14]
call fcn.00489170
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00488d70
mov esi, 1
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00488bc0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x485890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5140f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [0x591e00], 0
jne 0x4859cd
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x2d]
push eax
push 0x104
lea ecx, [ebp - 0x3c]
call fcn.00484ed0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
sub eax, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040d450
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
dec eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042a8e0
cmp byte [eax], 0x5c
je 0x485927
push 0x568af8
lea ecx, [ebp - 0x2c]
call fcn.00418aa0
push str.wsock32.dll
lea ecx, [ebp - 0x2c]
call fcn.00418aa0
call fcn.00485b00
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 3
push bind
push eax
call dword [0x591e1c]
mov esi, eax
cmp esi, 0xffffffff
je 0x4859b5
push 0x591e14
push 0x591e0c
push 0x591e04
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4859ae
cmp dword [0x591e04], 0
jne 0x4859a4
cmp dword [0x591e08], 0
jne 0x4859a4
mov eax, dword [0x591e14]
mov dword [0x591e04], eax
mov eax, dword [0x591e18]
mov dword [0x591e08], eax
mov dword [0x591e00], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00405600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0043e960
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret

Function at 0x485f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x485fcf
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
cmp eax, 1
jne 0x485fcf
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x485d60
push 0
push 0
call fcn.004c63bb
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x485fa7
mov eax, 1
pop esi
pop ebp
ret 4
call fcn.004d1daf
push dword [esi + 0x18]
mov ecx, dword [eax]
mov dword [esi + 0x14], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x485fe0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5141d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [edi + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.00485b00
lea eax, [edi + 0x148]
push 0
push 2
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [0x591e1c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48608d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x27c]
cmp esi, eax
jbe 0x48608d
mov ecx, edi
cmp byte [edi + 0x44], 0
je 0x48607e
call fcn.00485200
mov dword [ebp - 4], 0xffffffff
jmp 0x4860c5
shr eax, 1
push eax
lea eax, [edi + 0x148]
push eax
call fcn.004860f0
mov dword [ebp - 4], 0xffffffff
jmp 0x4860c5
lea eax, [edi + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514250
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58fa2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.00485b00
push 0
push 2
push 4
push 0
push 3
push 0xc0000000
lea eax, [esi + 0x148]
push eax
call dword [0x591e1c]
mov edi, eax
cmp edi, 0xffffffff
je 0x48683e
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [eax - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 0x38], 0
je 0x48682e
push edi
call fcn.00485e00
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x48687a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x486850
mov dword [esi + 0x3c], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x48687a
lea eax, [esi + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 2
inc dword [esi + 0x280]
cmp dword [esi + 0x280], 0xa
jbe 0x4868ae
mov dword [esi + 0x280], 0
mov ecx, esi
call fcn.00485fe0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x487dc0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514350
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x120], edx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x128], ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x134], eax
xor esi, esi
mov dword [ebp - 0x124], esi
cmp dword [ecx], esi
je 0x487f4a
test edi, edi
je 0x487f4a
test edx, edx
je 0x487f4a
test ebx, ebx
je 0x487f4a
xor ebx, ebx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [ebp - 0x118], edx
xor ecx, ecx
mov dword [ebp - 0x130], ecx
cmp ecx, edx
jae 0x487e6d
mov eax, dword [ebp + ecx*4 - 0x114]
cmp eax, dword [edi]
je 0x487e6b
inc ecx
jmp 0x487e53
cmp ecx, edx
jne 0x487e83
cmp edx, 0x40
jae 0x487e83
mov eax, dword [edi]
mov dword [ebp + ecx*4 - 0x114], eax
inc dword [ebp - 0x118]
mov ecx, dword [ebp - 0x128]
mov ecx, dword [ecx + 4]
inc ecx
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], 0
lea eax, [ebp - 0x12c]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x487ef3
lea eax, [ebp - 0x118]
push eax
push dword [edi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x487ef3
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x120]
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x487f0f
test esi, esi
je 0x487f07
cmp esi, 0xffffffff
jne 0x487f0f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x487f1b
mov dword [eax], ebx
mov eax, esi
jmp 0x487f4c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 0x14
Function at 0x489dd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x489def
mov ebx, 0x10000
lea edi, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x489e02
mov edi, 0xfff80000
mov eax, dword [0x591f0c]
mov ecx, dword [0x591f08]
mov dword [ebp + 8], edi
test eax, eax
jne 0x489e1f
test ecx, ecx
je 0x489e32
mov eax, ecx
mov dword [0x591f0c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x489e32
cmp edx, ebx
jb 0x489e32
cmp edx, edi
jbe 0x489fa3
mov eax, ecx
mov dword [0x591f0c], eax
test ecx, ecx
je 0x489e60
test eax, eax
je 0x489e54
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x489e54
cmp ecx, ebx
jb 0x489e54
cmp ecx, edi
jbe 0x489fa3
mov eax, dword [eax + 4]
mov dword [0x591f0c], eax
test eax, eax
jne 0x489e41
and esi, 0xffff0000
mov edi, esi
cmp esi, ebx
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
jbe 0x489ed7
lea eax, [edi - 0x70000000]
mov edx, 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x38]
push 0x1c
cmovbe edi, edx
push eax
push edi
call ecx
test eax, eax
je 0x489ed1
cmp dword [ebp - 0x28], 0x10000
jne 0x489ea4
cmp dword [ebp - 0x2c], 0x10000
jae 0x489eb1
mov edi, dword [ebp - 0x34]
add edi, 0xffff0000
cmp edi, ebx
jmp 0x489e6a
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x591f0c], eax
test eax, eax
jne 0x489f68
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x489fcb
lea eax, [esi - 0x70000000]
mov edx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x1c]
push 0x1c
cmovbe esi, edx
push eax
push esi
call ecx
test eax, eax
je 0x489fcb
cmp dword [ebp - 0xc], 0x10000
jne 0x489f51
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x10000
jb 0x489f54
movzx edx, si
test edx, edx
je 0x489f35
mov esi, dword [ebp - 0x1c]
mov eax, 0x10000
sub eax, edx
sub ecx, eax
add esi, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], esi
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x591f0c], eax
test eax, eax
jne 0x489f6b
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, ecx
cmp esi, edi
jae 0x489fcb
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x489ee2
mov edi, dword [ebp + 8]
mov ecx, dword [0x591f08]
xor edx, edx
mov dword [eax + 4], ecx
mov esi, 0x7fd
mov dword [eax], 0x52727464
lea ecx, [eax + 0xffe0]
mov dword [eax + 8], 0
mov dword [0x591f08], eax
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
sub esi, 1
jne 0x489f93
mov dword [eax + 8], edx
mov edx, dword [eax + 8]
cmp edx, ebx
jb 0x489fcb
cmp edx, edi
ja 0x489fcb
mov ecx, dword [edx + 0x18]
movaps xmm0, xmmword [0x525330]
pop edi
mov dword [eax + 8], ecx
mov eax, edx
pop esi
movups xmmword [edx], xmm0
pop ebx
movups xmmword [edx + 0x10], xmm0
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x584bd0
push 0x4ba400
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x58fa2c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x48a1f5
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x48a1f5
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x48a1f5
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x48a1f5
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a520
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x591f04], eax
je 0x48a53d
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x591f14]
test eax, eax
jne 0x48a67b
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x48a566
cmp dword [ebx], eax
jne 0x48a572
mov dword [0x591f14], 6
mov dword [0x591f18], ebx
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
push 0x18
call fcn.00472260
mov edi, eax
add esp, 4
test edi, edi
jne 0x48a58c
lea esi, [eax + 8]
jmp 0x48a65b
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [ebp + 8], eax
test esi, esi
je 0x48a5d9
mov al, byte [esi]
cmp al, 0xff
jne 0x48a5bf
cmp byte [esi + 1], 0x25
jne 0x48a5bf
mov eax, dword [esi + 2]
push eax
push esi
mov dword [ebp + 0xc], eax
call fcn.0048a150
add esp, 8
test al, al
je 0x48a5d9
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
jmp 0x48a5d9
cmp al, 0xeb
jne 0x48a5d9
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
cmp byte [esi], 0xe9
jne 0x48a5d9
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x17]
mov ecx, dword [edx + 0x18]
sub ecx, eax
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x48a64d
cmp eax, 0x17
ja 0x48a64d
cmp dword [edx + 0x1c], esi
jne 0x48a64d
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x48a619
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48a65b
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 8], ebx
mov dword [edi + 4], 1
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [0x591f20]
mov dword [edi], eax
xor eax, eax
mov dword [0x591f20], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x591f10], 0
mov esi, 9
jne 0x48a661
mov dword [0x591f14], esi
test edi, edi
je 0x48a670
push 0x18
push edi
call fcn.004a42c5
add esp, 8
pop edi
mov eax, esi
mov dword [0x591f18], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48a690
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x591f04], eax
je 0x48a6ad
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [0x591f20]
push edi
test esi, esi
je 0x48a716
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call ebx
cmp dword [esi + 4], 0
jne 0x48a703
mov edx, dword [esi + 0x10]
test edx, edx
je 0x48a703
mov ecx, edx
xorps xmm0, xmm0
and ecx, 0xffff0000
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov eax, dword [ecx + 8]
mov dword [edx + 0x18], eax
mov dword [ecx + 8], edx
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push 0x18
push esi
call fcn.004a42c5
add esp, 8
mov esi, edi
test edi, edi
jne 0x48a6c0
mov esi, dword [0x591f08]
mov dword [0x591f20], 0
test esi, esi
je 0x48a745
nop word [eax + eax]
lea eax, [ebp - 8]
push eax
push 0x20
push 0x10000
push esi
call ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x48a730
mov edi, dword [0x591f1c]
test edi, edi
je 0x48a76d
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.004a42c5
add esp, 8
mov edi, esi
test esi, esi
jne 0x48a755
pop edi
pop esi
mov dword [0x591f1c], 0
xor eax, eax
mov dword [0x591f04], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48a790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x591f04], 0
je 0x48a7a6
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x591f04
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x48a79d
push esi
mov esi, dword [0x591f08]
mov dword [0x591f10], eax
mov dword [0x591f20], eax
mov dword [0x591f1c], eax
mov dword [0x591f14], eax
mov dword [0x591f18], eax
test esi, esi
je 0x48a7fe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x48a7e8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48ab30
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x591f14]
test eax, eax
jne 0x48abb2
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x48ab51
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.00472260
mov esi, eax
add esp, 4
test esi, esi
jne 0x48ab67
lea edi, [eax + 8]
jmp 0x48ab86
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x48ab9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 8
push esi
call fcn.004a42c5
add esp, 8
pop esi
mov dword [0x591f14], edi
mov eax, edi
mov dword [0x591f18], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x591f1c]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x591f1c], esi
pop esi
pop edi
pop ebp
ret 4

Function at 0x48b000
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x310]
push edi
push eax
push 0x104
mov dword [ebp - 0x318], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004b8570
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b8570
lea edx, [ebp - 0x108]
add esp, 0x18
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x48b064
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004b9280
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ebx, [ebp - 0x108]
add esp, 8
mov dword [ebp - 0x314], eax
test eax, eax
je 0x48b135
nop dword [eax]
mov byte [eax], 0
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x48b0a5
lea edi, [ebp - 0x20c]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48b0b5
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x48b0d2
mov ax, word [0x568af8]
mov word [edi], ax
lea eax, [ebp - 0x20c]
push 0
push eax
call edx
lea eax, [ebp - 0x314]
push eax
call fcn.00488a80
mov ebx, dword [ebp - 0x314]
add esp, 4
cmp byte [ebx], 0
je 0x48b129
push 0x5c
push ebx
call fcn.004b9280
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 8
mov dword [ebp - 0x314], eax
test eax, eax
jne 0x48b0a0
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [ebp - 0x318]
push 0
push esi
call edx
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call edi
mov esi, eax
lea eax, [ebp - 0x310]
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4566
mov esp, ebp
pop ebp
ret
Function at 0x48b1d0
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x108]
xor esi, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x48b1f4
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004b8c50
add esp, 8
test eax, eax
je 0x48b219
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x48b297
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x320]
push eax
call ebx
test eax, eax
mov eax, 1
push pe_nt_image_headers32
cmovne esi, eax
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.004b8570
add esp, 0xc
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48b254
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a4566
mov esp, ebp
pop ebp
ret

Function at 0x48b2c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x48b3b4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00488a00
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.004b8c50
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x250], esi
test esi, esi
je 0x48b3b4
cmp dword [ebp + 0xc], 0
jne 0x48b3a4
push ebx
push edi
lea eax, [ebp - 0x24c]
mov dword [esi + 1], 0x2a2e2a
push eax
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x48b38f
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x24c]
push pe_nt_image_headers32
push 0
shr esi, 4
push eax
not esi
call fcn.004b8570
add esp, 0xc
lea eax, [ebx + 1]
and esi, 1
cmove eax, ebx
mov ebx, eax
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48b345
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp eax, ebx
pop edi
sbb eax, eax
neg eax
xor eax, 1
pop ebx
je 0x48b3b4
mov esi, dword [ebp - 0x250]
lea eax, [ebp - 0x10c]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a4566
mov esp, ebp
pop ebp
ret