joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b59cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004b59b8
test eax, eax
jne 0x4b59ed
mov eax, esi
call fcn.004046f4
jmp 0x4b5a7e
mov eax, ebx
call fcn.004b5b1c
test al, al
je 0x4b5a33
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.004047e4
test edi, edi
je 0x4b5a2a
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4b5a7e
mov eax, esi
call fcn.004046f4
jmp 0x4b5a7e
mov ebp, dword [ebx + 0x78]
test ebp, ebp
je 0x4b5a77
mov eax, dword [ebp + 0x208]
call fcn.00419f5c
test eax, eax
jle 0x4b5a65
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.0046682c
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00404748
jmp 0x4b5a7e
mov eax, esi
mov edx, dword [ebx + 0x78]
mov edx, dword [edx + 0x210]
call fcn.00404748
jmp 0x4b5a7e
mov eax, esi
call fcn.004046f4
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b776c
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push esi
mov ecx, 1
xor edx, edx
xor eax, eax
call fcn.00406b4c
push esi
push 0
push 0x419
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
pop esi
pop ebx
ret
Function at 0x4fa348
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x4fa360
mov eax, ebx
call fcn.004f9bdc
cmp dword [ebx + 0x68], 0
jne 0x4fa36d
mov eax, ebx
call fcn.004f9b38
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x4fa51d
cmp dword [ebx + 0x68], 0
je 0x4fa51d
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004f99a8
lea eax, [esp + 0x14]
xor edx, edx
call fcn.004fd1f8
cmp eax, dword [esp]
je 0x4fa3ef
lea eax, [esp + 0x14]
xor edx, edx
call fcn.004fd20c
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x4fa3cb
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.004fd1f8
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x4fa3e4
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4fa402
mov eax, dword [eax + 0x18]
call fcn.00446bc4
mov esi, eax
jmp 0x4fa405
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4fa41a
or esi, 0xffffffff
jmp 0x4fa424
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.0043fb14
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.0043fb38
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.0043fb60
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.0043fb84
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.00406b68
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00446bc4
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00446bc4
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00446bc4
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.0042888c
call fcn.0042427c
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00446bc4
push eax
call dword [0x51ee3c]
push 4
mov eax, dword [ebx + 0x68]
call fcn.00446bc4
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4fa784
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.004032c8
lea eax, [esp + 0x38]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x4fa970
push 0
push 0x4fa978
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4fa970
push 0
push 0x4fa988
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4fa970
push 0
push 0x4fa998
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4fa970
push 0
push 0x4fa9a8
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x4fa970
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x4fa970
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x4fa970
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x4fa970
push 0x40
push 0x1000
push 0x1000
push 0
push edi
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
test esi, esi
je 0x4fa970
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x4fa95c
inc ebx
push esi
push ebx
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x4fa952
lea eax, [esp + 0xc]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4fa952
test byte [esp + 0x1d], 0xd
jne 0x4fa952
mov al, byte [esp + 0x1c]
and al, 8
cmp al, 8
je 0x4fa952
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4fa952
cmp dword [esp + 0xc], 0
je 0x4fa952
mov eax, dword [0x51d97c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x4fa952
push esi
push ebx
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x4fa92e
lea eax, [esp + 0xc]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0xc], 0
je 0x4fa95c
lea eax, [esp + 0x28]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, dword [esp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
call fcn.00406bac
jmp 0x4fa95c
cmp ebx, dword [esp + 4]
jl 0x4fa892
push 0x8000
push 0
push esi
push edi
call sub.kernel32.dll_VirtualFreeEx
push edi
call sub.kernel32.dll_CloseHandle
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4fc0a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4fc111
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x51d390]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4fc0fb
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004fc090
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4fbe68]
call fcn.004fc138
mov dword [0x51d3f4], eax
mov eax, dword [ebp - 4]
call fcn.004fc040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc118
lea eax, [ebp - 8]
call fcn.0040633c
ret

Function at 0x4fc2f0
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
mov eax, esp
xor ecx, ecx
mov edx, 0x160
call fcn.004032c8
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x4fc388
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x51d388], eax
cmp dword [0x51d388], 0
je 0x4fc380
cmp dword [0x51d38c], 0
jne 0x4fc380
xor ecx, ecx
mov dl, 1
mov eax, dword [0x481b94]
call fcn.00482430
mov dword [0x51d38c], eax
mov edx, dword [0x51d388]
mov eax, dword [0x51d38c]
call fcn.0044d4fc
mov eax, dword [0x51d38c]
mov byte [eax + 0x42], 1
mov dl, 1
mov eax, dword [0x51d38c]
call fcn.00483af4
push 0xffffffffffffffff
mov eax, dword [0x51d38c]
call fcn.0044d538
push eax
call sub.comctl32.dll_ImageList_SetBkColor
add esp, 0x160
ret

Function at 0x4fdb78
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.004096e0
test al, al
je 0x4fdbff
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.004032c8
or esi, 0x100
test esi, esi
jns 0x4fdbb3
call fcn.00403818
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404bb4
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4fdbff
mov dl, 1
mov eax, dword [0x422318]
call fcn.00429e58
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042a264
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x4fdbff
mov eax, esp
call fcn.0040e828
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x51450c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ba4
xor eax, eax
push ebp
push 0x5145a2
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
call fcn.00404bb4
push eax
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
push 0
call sub.kernel32.dll_LoadResource
mov esi, eax
push ebx
push 0
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, dword [ebp - 8]
call fcn.004047e4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00404748
push esi
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5145a9
lea eax, [ebp - 0xc]
call fcn.004046f4
lea eax, [ebp - 4]
call fcn.004046f4
ret

Function at 0x5145c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 8]
call fcn.00402a54
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51461a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x514604
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004048ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514621
mov eax, dword [ebp - 4]
call fcn.00402a84
ret

Function at 0x514628
Capabilities:
Log keystrokes

Disassembly:
push 0
push 0
push 0
push 0x5b
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x5b
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push 0x44
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x44
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x44
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x44
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x5b
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x5b
call sub.user32.dll_keybd_event
ret

Function at 0x514680
Capabilities:
Log keystrokes

Disassembly:
push 0
push 0
push 0
push 0x5b
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x5b
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x10
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push 0x44
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x44
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x44
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x44
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x10
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0x5b
call sub.user32.dll_MapVirtualKeyA
push eax
push 0x5b
call sub.user32.dll_keybd_event
ret
Function at 0x514ffc
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, eax
mov eax, dword [0x51db18]
cmp dword [eax], 2
jne 0x515076
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x515076
lea eax, [esp + 0xc]
push eax
push 0x51508c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x515076
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
ret

Function at 0x5150a0
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.00404ba4
xor eax, eax
push ebp
push 0x515221
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.00513234
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.00513254
mov ebx, eax
jmp 0x5151ed
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404964
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040992c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408bd4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408bd4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404b00
je 0x5151c4
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404964
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408bd4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408bd4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404b00
jne 0x5151de
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.00513274
mov ebx, eax
test ebx, ebx
jne 0x51511f
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515228
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404718
lea eax, [ebp - 4]
call fcn.004046f4
ret
Function at 0x516624
Capabilities:
Write file on windows

Disassembly:
push ebx
add esp, 0xfffffdfc
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push 0x51667c
call sub.kernel32.dll_CreateFileA
mov ebx, eax
lea eax, [esp + 4]
mov edx, 0x200
call fcn.004078b8
push 0
lea eax, [esp + 4]
push eax
push 0x200
lea eax, [esp + 0x10]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
add esp, 0x204
pop ebx
ret

Function at 0x5168e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba4
xor eax, eax
push ebp
push 0x51692e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404bb4
push eax
push 0x516938
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516935
lea eax, [ebp - 4]
call fcn.004046f4
ret
Function at 0x400a0db
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffffc
cmp byte [0x40c1390], 2
jne 0x400a201
movzx eax, byte [ebp + 8]
cmp eax, 0
jbe 0x400a201
jmp 0x400a193
cmp eax, 1
jb case.0x400ab54.31
cmp eax, 0xa
ja case.0x400ab54.31
jmp dword [eax*4 + 0x400848c]
Function at 0x4013700
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [ebp + 8]
cmp eax, 0x100000
ja 0x4013711
mov eax, 0x100000
jmp 0x401371b
add eax, 0x10ffff
and eax, 0xffff0000
push eax
push ecx
push edx
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop edx
pop ecx
cmp eax, 0
jne 0x401373f
mov eax, 0xe
jmp fcn.04015660
mov ebx, 0
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x14], ebx
pop ebx
mov dword [eax + 0x10], ebx
mov ebx, dword [0x40c5d74]
cmp ebx, 0
je 0x4013766
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [0x40c5d74], eax
ret

Function at 0x4013d20
Capabilities:
Read file on windows

Disassembly:
push 0
push ebp
add dword [esp], 0xfffffff8
push 1
push ebp
add dword [esp], 0xfffffff7
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4013d45
mov eax, 0xa
jmp fcn.04015660
cmp dword [ebp - 8], 0
jne 0x4013d5f
cmp dword [ebp - 4], 0
jne 0x4013d5b
mov eax, 0xd
jmp fcn.04015660
mov byte [ebp - 9], 0xa
mov al, byte [ebp - 9]
ret

Function at 0x4013e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push ecx
push edx
push esi
push edi
pushfd
cld
push 0
push ebp
add dword [esp], 0xfffffffc
push 1
push ebp
add dword [esp], 0xfffffffb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4013ea2
mov eax, 0xa
jmp fcn.04015660
cmp dword [ebp - 4], 0
jne 0x4013eb2
mov eax, 0xd
jmp fcn.04015660
popfd
pop edi
pop esi
pop edx
pop ecx
pop ebx
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4

Function at 0x40140b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
and esp, 0xfffffffc
pushal
pushfd
cld
push 0
push ebp
add dword [esp], 0xfffffffc
push 1
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40140e0
mov eax, 9
jmp fcn.04015660
popfd
popal
mov esp, ebp
pop ebp
ret 8

Function at 0x40140f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
pushfd
cld
mov esi, dword [ebp + 8]
push 0
push ebp
add dword [esp], 0xfffffffc
push dword [esi - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401411e
mov eax, 9
jmp fcn.04015660
popfd
popal
mov esp, ebp
pop ebp
ret 8
Function at 0x4014f80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
push edx
pushfd
cld
mov ebx, 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x4014ff5
cmp eax, 1
jne 0x4014ff7
push ebp
add dword [esp], 0xfffffff4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4014fcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4014fcd
mov eax, 0xb
jmp fcn.04015660
mov dword [ebp - 4], 0
push 1
push ebp
add dword [esp], 0xfffffffc
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
ja 0x4014ff7
jb 0x4014ff5
cmp eax, dword [ebp - 8]
jae 0x4014ff7
xor ebx, ebx
mov eax, ebx
popfd
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4015380
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffffc
cmp byte [0x40c6478], 0
je 0x4015436
pushal
pushfd
cld
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.040159f0
mov dword [0x40c6474], eax
mov byte [0x40c6478], 0
xor ecx, ecx
xor edx, edx
jmp 0x401541e
mov dl, byte [eax]
bt dword [0x40c6580], edx
jae 0x40153c2
inc eax
jmp 0x40153b4
mov ebx, eax
cmp dl, 0x22
jne 0x40153da
inc eax
inc ebx
cmp byte [eax], 0
je 0x40153d8
cmp byte [eax], 0x22
je 0x40153d8
inc eax
jmp 0x40153cb
jmp 0x40153ed
mov dl, byte [eax]
cmp dl, 0
je 0x40153ed
bt dword [0x40c6580], edx
jb 0x40153ed
inc eax
jmp 0x40153da
cmp ebx, eax
je 0x401541e
push eax
mov byte [eax], 0
push ebx
call fcn.040159f0
mov dword [ecx*4 + 0x40c6074], eax
inc ecx
cmp ecx, 0x100
jne 0x4015415
mov eax, 0x17
jmp fcn.04015660
pop eax
mov byte [eax], dl
cmp dl, 0x22
jne 0x401541e
inc eax
cmp byte [eax], 0
jne 0x40153b4
mov dword [0x40c6070], ecx
mov dword [ecx*4 + 0x40c6074], 0
popfd
popal
mov eax, dword [0x40c6474]
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x407ef8
nop
mov ecx, 0x12974b63
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x75f05f4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4dde14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.00484424
xor edx, edx
push ebp
push 0x4dde86
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dde90
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40152e
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x40158a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040152e
mov dword [esp], 0x401664
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020c6
sub eax, 0x401664
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40162d
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.0040144c
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014ad
lea eax, [ebx + 0x1b600]
mov cl, bl
mov edx, 0x40300c
shl eax, cl
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, edx
or eax, 1
imul ebx, eax
sub edx, ebx
mov dword [esp], edx
call fcn.00401dc9
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret