joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4647a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4647d3
push esi
call fcn.00472a10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4647cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x464859
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x464842
mov eax, dword [esi + 8]
test eax, eax
je 0x4647f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46483e
cmp eax, 2
je 0x464842
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4647ea
cmp eax, 3
je 0x46481d
cmp eax, 1
jne 0x4647ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4647ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4647ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00464880
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x464868
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00464880
add esp, 4
pop esi
ret

Function at 0x4650f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x465111
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x465111
mov eax, dword [eax + 0x44]
test eax, eax
je 0x465111
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess_1]
Function at 0x485830
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x48587c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x48587c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState_1]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x485866
push eax
call ebp
test ax, ax
jl 0x485874
inc esi
add edi, 4
cmp esi, 6
jb 0x485858
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00485530
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x489510
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x489570
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x489570
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x489570
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x489570
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x489580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread_1]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
pop ecx
ret
Function at 0x494ae0
Capabilities:
Suspend thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.00494cd0
mov eax, dword [edi]
add esp, 4
cmp eax, ebx
je 0x494b49
cmp dword [edi + 8], ebx
jbe 0x494b49
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov eax, dword [edi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call fcn.00494890
mov esi, eax
add esp, 0xc
test esi, esi
je 0x494b3f
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread_1]
mov edx, dword [esp + 0x18]
push ebp
push edx
push esi
call fcn.00494b50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jb 0x494b0a
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x494cd0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
test esi, esi
push edi
je 0x494dcd
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot_1
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], edi
je 0x494dcd
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First_1
test eax, eax
je 0x494dc6
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc_1]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapReAlloc_1]
cmp dword [esp + 0xc], 0x10
jb 0x494da2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId_1]
cmp dword [esp + 0x18], eax
jne 0x494da2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId_1]
cmp dword [esp + 0x14], eax
je 0x494da2
mov eax, dword [esi]
test eax, eax
jne 0x494d64
mov dword [esi + 4], 0x80
mov ecx, dword [0x674314]
push 0x200
push eax
push ecx
call edi
test eax, eax
mov dword [esi], eax
je 0x494dc1
jmp 0x494d8f
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
cmp edx, ecx
jb 0x494d8f
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x674314]
push 0
push eax
call ebx
test eax, eax
je 0x494dc1
mov ecx, dword [esi + 4]
mov dword [esi], eax
shl ecx, 1
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32Next_1
test eax, eax
jne 0x494d21
mov edi, dword [esp + 0x2c]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x494de0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x494e3a
mov eax, dword [ebx + 8]
push edi
xor edi, edi
test eax, eax
jbe 0x494e28
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread_1]
push esi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call fcn.00494890
mov esi, eax
add esp, 0xc
test esi, esi
je 0x494e1e
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jb 0x494dfc
pop esi
pop ebp
mov edx, dword [ebx]
mov eax, dword [0x674314]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree_1]
pop edi
pop ebx
ret
Function at 0x494e40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
lea ecx, [eax + eax*4]
mov ebp, 5
lea edx, [eax + ecx*2]
mov eax, dword [0x6b5120]
mov edi, dword [eax + edx*4]
lea esi, [eax + edx*4]
mov al, byte [eax + edx*4 + 0x14]
test al, 1
je 0x494e6c
sub edi, ebp
mov ebp, 7
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect_1]
test eax, eax
jne 0x494e88
pop edi
pop esi
mov eax, 0xa
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x494eb1
mov byte [edi], 0xe9
mov edx, dword [esi + 4]
sub edx, edi
sub edx, 5
mov dword [edi + 1], edx
mov al, byte [esi + 0x14]
test al, 1
je 0x494edf
mov eax, dword [esi]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
jmp 0x494edf
test byte [esi + 0x14], 1
je 0x494ed0
lea eax, [esi + 0xc]
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
jmp 0x494edf
lea ecx, [esi + 0xc]
mov edx, edi
mov eax, dword [ecx]
mov dword [edx], eax
mov cl, byte [ecx + 4]
mov byte [edx + 4], cl
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect_1]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess_1]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, bl
mov dl, byte [esi + 0x14]
and al, 1
and dl, 0xf9
mov cl, al
pop ebx
and cl, 0xfd
pop edi
shl al, 1
or cl, al
xor eax, eax
shl cl, 1
or cl, dl
mov byte [esi + 0x14], cl
pop esi
pop ebp
ret
Function at 0x4953c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, dword [eax + 0x7c]
push esi
cmp ebp, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
jne 0x495475
mov edx, dword [esp + 0x1c]
mov ebp, dword [edx]
test ebp, ebp
je 0x49544c
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState_1]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x49540c
mov ecx, 2
test bh, 0x80
je 0x495414
or ecx, 1
test ah, 0x80
je 0x49541c
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [esp + 0x14]
shr ecx, 0x10
movsx edx, cx
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x24]
movsx ecx, si
push ecx
mov ecx, dword [edx + 4]
push ecx
push eax
call ebp
test eax, eax
jne 0x495452
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
jmp 0x495456
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState_1]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x49549a
mov ecx, 2
test bh, 0x80
je 0x4954a2
or ecx, 1
test ah, 0x80
je 0x4954aa
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov edi, dword [esp + 0x1c]
shr ecx, 0x10
movsx edx, cx
movsx eax, si
push edx
push eax
push 3
push ebp
push edi
call fcn.004952e0
add esp, 0x18
test eax, eax
je 0x495444
cmp ebp, 0x18
je 0x4954dd
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x14]
push esi
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x495cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x6b5110]
test eax, eax
je 0x495d06
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x495d53
mov eax, dword [eax]
test eax, eax
jne 0x495cf9
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc_1]
test eax, eax
je 0x495d53
lea ecx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov dword [eax + 4], ecx
add ecx, 0x20
mov edx, ecx
sub edx, eax
cmp edx, 0xfe0
jbe 0x495d2f
mov ecx, dword [0x6b5110]
mov dword [eax], ecx
mov dword [0x6b5110], eax
ret

Function at 0x496190
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi]
test cl, cl
je 0x4961a9
cmp cl, 0x90
je 0x4961a9
cmp cl, 0xcc
je 0x4961a9
pop esi
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, 1
cmp edx, eax
jbe 0x4961c0
cmp byte [eax + esi], cl
jne 0x4961a5
inc eax
cmp eax, edx
jb 0x4961b6
pop esi
mov eax, 1
ret
Function at 0x497d70
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x497e13
test eax, eax
jbe 0x497e13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x497e13
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA_1]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x497dbe
xor esi, esi
jmp 0x497dc4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x497def
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00499c80
add esi, eax
push esi
mov ebx, esi
call fcn.00499c80
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x497dd0
pop ebp
test edi, edi
pop edi
jne 0x497e13
test ebx, ebx
je 0x497e13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0056fc70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x497f35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49804d
push eax
call dword [sym.imp.USER32.dll_IsWindow_1]
test eax, eax
je 0x49804d
mov eax, dword [esi + 0x3c]
push eax
call fcn.005832e8
mov esi, eax
test esi, esi
je 0x49804d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA_1]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49804d
mov ecx, esi
call fcn.00497ec0
cmp edi, eax
jge 0x49804d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x497fd3
mov dword [esp + 0x34], 1
jmp 0x49802e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49804d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen_1]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004974c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x49a8c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount_1]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x49a926
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep_1]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x49a926
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x49a907
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x49acb0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x49ace8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA_1]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x49b9c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x49ba09
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x49be80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x591900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0049ba30
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0049bab0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0049bab0
lea ecx, [esi + 0xc]
call fcn.00581846
lea ecx, [esi + 0x10]
call fcn.00581846
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0049d040
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0049d040
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0049d040
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005818bb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005818bb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x49fa84
Capabilities:
Lock the desktop

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
call dword [sym.imp.user32.dll_LockWorkStation]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x49faac
push 6
call fcn.0053559b
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x49fb22
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [0x637879], 0
jne 0x49fbb2
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
push 6
call dword [0x637915]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x49fb74
push 6
call fcn.0053559b
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push 0
push 0
push 6
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x49fbad
push 6
call fcn.0053559b
add esp, 4
mov dword [0x637879], eax
cmp dword [0x637879], 0
je 0x49fbed
mov dword [ebp - 0xc], esp
push 4
push dword [0x637879]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x49fbed
push 6
call fcn.0053559b
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x49fbf5
mov esp, ebp
pop ebp
ret 4
Function at 0x4a08b0
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x98]
push esi
xor ecx, ecx
xor esi, esi
xor edx, edx
push edi
mov dword [esp + 0xc], 0x7f7f7f7f
mov dword [esp + 0x10], 0x7f7f7f7f
mov dword [esp + 0x14], 0x7f7f7f7f
mov dword [esp + 0x18], 0x7f7f7f7f
mov dword [esp + 0x1c], 0x7f7f7f7f
mov dword [esp + 0x20], 0x7f7f7f7f
mov dword [esp + 0x24], 0x7f7f7f7f
mov dword [esp + 0x28], 0x7f7f7f7f
mov dword [esp + 0x2c], 0x7f7f7f7f
mov dword [esp + 0x30], 0x7f7f7f7f
mov dword [esp + 0x34], 0x3e7f7f7f
mov dword [esp + 0x38], 0x3f7f7f7f
mov dword [esp + 0x3c], 0x37363534
mov dword [esp + 0x40], 0x3b3a3938
mov dword [esp + 0x44], 0x7f7f3d3c
mov dword [esp + 0x48], 0x7f7f407f
mov dword [esp + 0x4c], 0x201007f
mov dword [esp + 0x50], 0x6050403
mov dword [esp + 0x54], 0xa090807
mov dword [esp + 0x58], 0xe0d0c0b
mov dword [esp + 0x5c], 0x1211100f
mov dword [esp + 0x60], 0x16151413
mov dword [esp + 0x64], 0x7f191817
mov dword [esp + 0x68], 0x7f7f7f7f
mov dword [esp + 0x6c], 0x1c1b1a7f
mov dword [esp + 0x70], 0x201f1e1d
mov dword [esp + 0x74], 0x24232221
mov dword [esp + 0x78], 0x28272625
mov dword [esp + 0x7c], 0x2c2b2a29
mov dword [esp + 0x80], 0x302f2e2d
mov dword [esp + 0x84], 0x7f333231
mov dword [esp + 0x88], 0x7f7f7f7f
test ebx, ebx
je 0x4a0afd
mov edi, dword [esp + 0x9c]
mov edi, edi
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x4a09fa
cmp byte [edx + edi], 0xd
jne 0x4a09fa
cmp byte [edx + edi + 1], 0xa
je 0x4a0a33
mov al, byte [edx + edi]
cmp al, 0xa
je 0x4a0a33
cmp al, 0x3d
jne 0x4a0a0f
inc ecx
cmp ecx, 2
ja 0x4a0b0b
cmp al, 0x7f
ja 0x4a0b0b
movzx eax, al
mov al, byte [esp + eax + 0xc]
cmp al, 0x7f
je 0x4a0b0b
cmp al, 0x40
jae 0x4a0a32
test ecx, ecx
jne 0x4a0b0b
inc esi
inc edx
cmp edx, ebx
jb 0x4a09e4
test esi, esi
je 0x4a0afd
mov ecx, dword [esp + 0x98]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x94]
lea eax, [eax*2 + 7]
shr eax, 3
test esi, esi
je 0x4a0b1c
cmp dword [ecx], eax
jb 0x4a0b1c
xor eax, eax
xor ebx, ebx
push ebp
mov ebp, 3
mov dword [esp + 0x90], eax
test edx, edx
je 0x4a0aec
lea esp, [esp]
mov al, byte [edi]
cmp al, 0xd
je 0x4a0ae8
cmp al, 0xa
je 0x4a0ae8
movzx eax, al
mov cl, byte [esp + eax + 0x10]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub ebp, eax
movzx eax, cl
mov ecx, dword [esp + 0x90]
and eax, 0x3f
inc ecx
or ebx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 4
jne 0x4a0ae8
xor eax, eax
mov dword [esp + 0x90], eax
test ebp, ebp
je 0x4a0ad3
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
inc esi
cmp ebp, 1
jbe 0x4a0ae0
mov eax, ebx
shr eax, 8
mov byte [esi], al
inc esi
cmp ebp, 2
jbe 0x4a0ae8
mov byte [esi], bl
inc esi
inc edi
dec edx
jne 0x4a0a84
sub esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
pop ebp
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x10
Function at 0x4a19d0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.005383c0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4a1a15
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push SysStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4a1a2c
mov eax, 0x618809
push eax
push 1
mov ebx, 0x130
call fcn.005368d0
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_GetUserNameA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4a1a68
push 6
call fcn.0053559b
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a1a96
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a1a91
push eax
mov ebx, eax
call fcn.0049d8e2
inc eax
push eax
call fcn.00535595
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4a1aa0
mov eax, 0x618809
jmp 0x4a1aa0
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4a1ab1
push ebx
call fcn.0053558f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4a1dc8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4a1df5
push 6
call fcn.0053559b
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x4a1e09
mov esp, ebp
pop ebp
ret 4

Function at 0x4a2ec1
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.kernel32.dll_CopyFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4a2ef6
push 6
call fcn.0053559b
add esp, 4
jmp 0x4a2efb
mov esp, ebp
pop ebp
ret 0x10