joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4355f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43560c
cmp dword [esi + 4], 0
je 0x435639
test byte [ebx + 0x55], 1
jne 0x43562b
mov eax, ebx
call fcn.00434190
test eax, eax
jne 0x43562b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x435749
mov edx, esi
mov eax, ebx
call fcn.00435114
jmp 0x435749
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x435742
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00437460
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00431e18
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004355f0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00437460
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435749
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43be6c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x457398]
cmp byte [eax + 0xc], 0
je 0x43bfd9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43bfd2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x458af8], 0
jne 0x43bec0
push 0x43bfe0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43bfe8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458af8], eax
cmp dword [0x456b70], 0
jne 0x43bfbb
push 0x43bff8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x456b70], eax
cmp dword [0x456b70], 0
je 0x43bfbb
push 0x43c004
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458afc], eax
push 0x43c014
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b00], eax
push 0x43c028
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b04], eax
push 0x43c040
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b08], eax
push 0x43c058
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b0c], eax
push 0x43c06c
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b10], eax
push 0x43c084
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b14], eax
push 0x43c09c
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b18], eax
push 0x43c0b8
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b1c], eax
push 0x43c0c4
mov eax, dword [0x456b70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bfd9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43fe8c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043a8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43fedb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404618
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4476ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4476fc]
test si, 4
je 0x4476c0
or bl, 1
test si, 8
je 0x4476ca
or bl, 4
test si, 1
je 0x4476d4
or bl, 8
test si, 2
je 0x4476de
or bl, 0x10
test si, 0x10
je 0x4476e8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4476f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447700
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447738]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447719
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447728
or bl, 4
test esi, 0x20000000
je 0x447733
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ddfc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44de0e
add esp, 0xfffffff0
call fcn.00403954
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419c90
mov eax, dword [0x457070]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e1a0
mov eax, dword [0x45707c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e1ac
mov eax, ebx
call fcn.0044e1b8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.00403604
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.00403604
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.00403604
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.00403604
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.00403604
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44a5d0
push eax
push 0
push 0
mov eax, dword [0x4571bc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b6b8]
call fcn.0041cb20
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b6b8]
call fcn.0041cb20
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b6b8]
call fcn.0041cb20
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e608
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e4d0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e4d0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e4d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44df4b
call fcn.004039ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e2b4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e45f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e440
mov dl, 1
mov eax, dword [0x412230]
call fcn.00403604
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e42f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043c1cc
test al, al
je 0x44e422
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44e470
lea eax, [ebp - 0x254]
call fcn.00408f78
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e422
xor eax, eax
push ebp
push 0x44e41b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e4a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e404
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e404
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e422
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e325
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d94
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e466
lea eax, [ebp - 0x260]
call fcn.004043a8
ret

Function at 0x44eda8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x458b44]
cmp byte [eax + 0xa5], 0
jne 0x44ee19
cmp dword [0x458b5c], 0
jne 0x44edda
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ed64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458b5c], eax
cmp dword [0x458b58], 0
jne 0x44edf5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458b58], eax
cmp dword [0x458b60], 0
jne 0x44ee19
push esp
push 0
push 0
push 0x44ed08
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458b60], eax
pop edx
ret
Function at 0x44f4ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458b44]
cmp dword [eax + 0x30], 0
je 0x44f556
cmp dword [ebx + 0x94], 0
jne 0x44f550
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f43c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f550
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f516
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f550
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414190
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f525
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4500b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4500e9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404498
jmp 0x4500f6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451218
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451259
mov eax, esi
call fcn.00437764
test al, al
je 0x451259
mov eax, dword [ebx + 0x84]
call fcn.00437460
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451259
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437460
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4530c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00452d08
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404868
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x453122
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4571c4]
mov dl, 1
mov eax, dword [0x452c00]
call fcn.0040bc48
call fcn.00403dbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45312c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404868
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x453184
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4573a4]
mov dl, 1
mov eax, dword [0x452c00]
call fcn.0040bc48
call fcn.00403dbc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00452d38
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x453cd0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffbfc
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x401
call fcn.00404618
add esp, 0x404
pop ebx
ret

Function at 0x453d00
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.00402a28
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453d5a
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 0x453d44
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004045a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453d61
mov eax, dword [ebp - 4]
call fcn.00402a58
ret

Function at 0x453d68
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, eax
mov eax, dword [0x45738c]
cmp dword [eax], 2
jne 0x453de2
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 0x453de2
lea eax, [esp + 0xc]
push eax
push 0x453df8
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 0x453de2
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 0x453e0c
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.00404858
xor eax, eax
push ebp
push 0x453f8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.00453484
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004534a4
mov ebx, eax
jmp 0x453f59
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404618
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408810
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00407fc4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00407fc4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004047b4
je 0x453f30
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404618
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00407fc4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00407fc4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004047b4
jne 0x453f4a
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.004534c4
mov ebx, eax
test ebx, ebx
jne 0x453e8b
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453f94
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004043cc
lea eax, [ebp - 4]
call fcn.004043a8
ret
Function at 0x4017f8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xa7
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
sete dl
test eax, eax
sete al
mov ecx, 0
or dl, al
jne 0x40198b
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileSize
sub esp, 8
mov dword [ebp - 0x14], eax
call sub.KERNEL32.DLL_GetProcessHeap
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.DLL_HeapAlloc
sub esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4018b1
mov dword [esp], edi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, 0
jmp 0x40198b
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
test eax, eax
jne 0x40190e
call sub.KERNEL32.DLL_GetProcessHeap
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.DLL_HeapFree
sub esp, 0xc
mov dword [esp], edi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, 0
jmp 0x40198b
mov eax, dword [ebp - 0x14]
lea esi, [eax*4 + 0xb]
mov edx, 0xaaaaaaab
mov eax, esi
mul edx
shr edx, 3
lea esi, [edx*4 + 1]
mov dword [esp + 4], esi
mov dword [esp], 0x40
call sub.KERNEL32.DLL_GlobalAlloc
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00401996
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
call sub.KERNEL32.DLL_GetProcessHeap
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.DLL_HeapFree
sub esp, 0xc
mov dword [esp], edi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, ebx
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.24w9ydeo]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.24w9ydeo]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.24w9ydeo]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.24w9ydeo]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.24w9ydeo]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.24w9ydeo]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret