joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471f9c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x511050]
cmp byte [eax + 0xc], 0
je 0x472109
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x472102
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x512b74], 0
jne 0x471ff0
push 0x472110
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x472118
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b74], eax
cmp dword [0x502f80], 0
jne 0x4720eb
push 0x472128
call sub.kernel32.dll_LoadLibraryA
mov dword [0x502f80], eax
cmp dword [0x502f80], 0
je 0x4720eb
push 0x472134
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b78], eax
push 0x472144
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b7c], eax
push 0x472158
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b80], eax
push 0x472170
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b84], eax
push 0x472188
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b88], eax
push 0x47219c
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b8c], eax
push 0x4721b4
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b90], eax
push 0x4721cc
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b94], eax
push 0x4721e8
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b98], eax
push 0x4721f4
mov eax, dword [0x502f80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512b9c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472109
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.00404d60
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x477001
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404fe0
mov esp, ebp
pop ebp
ret
Function at 0x47fc1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x47fc74]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x47fc36
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x47fc40
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x47fc4a
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x47fc54
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x47fc5e
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47fc6e
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x47fc78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x47fcbc]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47fc99
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47fca9
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x47fcb3
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x487cd4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x487ce6
add esp, 0xfffffff0
call fcn.0040426c
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00425fcc
mov eax, dword [0x510b48]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x488244
mov eax, dword [0x510b5c]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x488264
mov eax, dword [ebp - 4]
call fcn.00488284
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b184]
call fcn.00403f04
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b184]
call fcn.00403f04
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b184]
call fcn.00403f04
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b184]
call fcn.00403f04
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b184]
call fcn.00403f04
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, 0x4835ec
push eax
push 0
push 0
mov eax, dword [0x510d60]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4282ac]
call fcn.00429bd4
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x4282ac]
call fcn.00429bd4
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x4282ac]
call fcn.00429bd4
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
call fcn.004887d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x48861c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x48861c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x48861c
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x487e6e
call fcn.004042c4
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4883d4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48859f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x48857d
mov dl, 1
mov eax, dword [0x41b72c]
call fcn.00403f04
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404d60
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x488566
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.004722fc
test al, al
je 0x48855a
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x4885b0
lea eax, [ebp - 0x25c]
call fcn.0040b038
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48855a
xor eax, eax
push ebp
push 0x488553
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x4885e8
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48853c
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404fe0
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x48853c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404fe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48855a
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x488449
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dl, 1
call fcn.004211f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4885a6
lea eax, [ebp - 0x268]
call fcn.00404d60
ret
Function at 0x4891a4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x512bc0]
cmp byte [eax + 0xa5], 0
jne 0x48921b
cmp dword [0x512bd8], 0
jne 0x4891d9
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x489160
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x512bd8], eax
cmp dword [0x512bd4], 0
jne 0x4891f4
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x512bd4], eax
cmp dword [0x512bdc], 0
jne 0x48921b
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x489100
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x512bdc], eax
pop ecx
pop ebp
ret

Function at 0x4892e4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.0048927c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x489305
xor eax, eax
call fcn.004892b4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x48931f
mov al, 1
call fcn.004892b4
mov esp, ebp
pop ebp
ret

Function at 0x489a50
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x512bc0]
cmp dword [eax + 0x30], 0
je 0x489b1a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x489b11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x4899d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x489b11
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x489acb
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x489b11
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.0041db74
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x489ae0
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x48a830
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x48a875
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.00404e50
jmp 0x48a886
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.00404db4
mov esp, ebp
pop ebp
ret
Function at 0x48bdd4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x48be27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0046d830
test al, al
je 0x48be27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0046d52c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48be27
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0046d52c
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret
Function at 0x49d8a8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x49d8d6
mov eax, ebx
call fcn.0049e35c
cmp dword [ebx + 0x40], 0
je 0x49d8cf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49d947
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x49d939
cmp dword [ebx + 8], 0
je 0x49d8f8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x49d90a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49d939
cmp dword [ebx + 8], 0
je 0x49d8eb
cmp eax, 3
je 0x49d91d
dec eax
jne 0x49d8eb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x49d8eb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x49d8eb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x49d965
cmp dword [ebx + 0x14], 0xcc
je 0x49d965
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049d970
pop ebx
ret

Function at 0x4b2964
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, ebx
call fcn.00405230
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4b2a16
xor eax, eax
push ebp
push 0x4b2a0f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, 2
call fcn.004b28e8
push eax
xor eax, eax
call fcn.004b28e8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4b29dc
mov eax, 2
call fcn.004b28e8
cmp eax, dword [ebp - 0xc]
je 0x4b29e0
xor eax, eax
jmp 0x4b29e2
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x4b29f8
mov eax, ebx
call fcn.00405230
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2a16
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2a20
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b2b58
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.004053bc
push 0x104
lea eax, [ebp - 8]
call fcn.00405288
push eax
push 0x4b2b6c
call sub.kernel32.dll_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 8]
call fcn.004053bc
mov eax, dword [ebp - 8]
call fcn.00405030
test eax, eax
jle 0x4b2b3a
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403610
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push dword [ebp - 8]
push 0x4b2b7c
push ebx
push 0x4b2b8c
push esi
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.004050f0
mov eax, dword [ebp - 0x60]
call fcn.00405230
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4b2b3a
xor eax, eax
push ebp
push 0x4b2b33
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2b3a
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2b5f
lea eax, [ebp - 0x60]
call fcn.00404d60
lea eax, [ebp - 8]
call fcn.00404d60
ret

Function at 0x4b2b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405230
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b2bb0
and eax, 0x10
cmp eax, 0x10
je 0x4b2bb5
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
Function at 0x4b336c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebx]
call fcn.00405030
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jle 0x4b33e8
mov eax, dword [ebx]
mov dl, byte [ebp - 1]
add byte [eax], dl
mov edx, dword [ebp - 8]
sub edx, 2
jl 0x4b33ba
inc edx
mov eax, 2
mov ecx, dword [ebx]
mov cl, byte [ecx + eax - 2]
mov esi, dword [ebx]
add cl, byte [esi + eax - 1]
xor cl, byte [ebp + 0xc]
mov esi, dword [ebx]
mov byte [esi + eax - 1], cl
inc eax
dec edx
jne 0x4b33a1
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 2]
add byte [eax + edx - 1], cl
mov eax, dword [ebp - 8]
dec eax
cmp eax, 1
jl 0x4b33e8
mov edx, dword [ebx]
mov dl, byte [edx + eax]
mov ecx, dword [ebx]
add dl, byte [ecx + eax - 1]
xor dl, byte [ebp + 8]
mov ecx, dword [ebx]
mov byte [ecx + eax - 1], dl
dec eax
test eax, eax
jne 0x4b33cf
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4b33f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebx]
call fcn.00405030
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jle 0x4b346b
mov edx, dword [ebp - 8]
dec edx
test edx, edx
jle 0x4b3435
mov eax, 1
mov ecx, dword [ebx]
mov cl, byte [ecx + eax - 1]
xor cl, byte [ebp + 8]
mov esi, dword [ebx]
sub cl, byte [esi + eax]
mov esi, dword [ebx]
mov byte [esi + eax - 1], cl
inc eax
dec edx
jne 0x4b341d
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 2]
sub byte [eax + edx - 1], cl
mov eax, dword [ebp - 8]
cmp eax, 2
jl 0x4b3464
mov edx, dword [ebx]
mov dl, byte [edx + eax - 1]
xor dl, byte [ebp + 0xc]
mov ecx, dword [ebx]
sub dl, byte [ecx + eax - 2]
mov ecx, dword [ebx]
mov byte [ecx + eax - 1], dl
dec eax
cmp eax, 1
jne 0x4b3449
mov eax, dword [ebx]
mov dl, byte [ebp - 1]
sub byte [eax], dl
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4b3dcc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4b3de4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov dword [ebp - 0x40], 0x40
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
push 0
push 0x100000
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.00405d80
mov esp, ebp
pop ebp
ret

Function at 0x4b53a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004080d4
pop ebp
ret
Function at 0x4b5550
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405220
xor eax, eax
push ebp
push 0x4b569e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.004b53a0
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405230
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4b567d
xor eax, eax
push ebp
push 0x4b5676
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4b565f
xor eax, eax
push ebp
push 0x4b5658
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b5641
xor eax, eax
push ebp
push 0x4b563a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.004b53d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5641
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b565f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b567d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.004b5460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b56a5
lea eax, [ebp - 4]
call fcn.00404d60
ret

Function at 0x4b59fc
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x503cfc]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x4b5a38
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4b5a50
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4b5a49
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00403610
xor edx, edx
mov eax, 0x503efc
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4b5aba
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4b5a6e
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4