joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407188
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4071a9
mov al, byte [esp]
jmp 0x4071ab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410dd4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x410dda
ret

Function at 0x418d88
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 + 0x114], 0
je 0x418da4
cmp dword [esi + 4], 0
je 0x418dcb
mov eax, ebx
call fcn.00417fbc
test eax, eax
jne 0x418dbd
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x418edb
mov edx, esi
mov eax, ebx
call fcn.00418a2c
jmp 0x418edb
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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 0x418ed4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041a388
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.00416ec4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00418d88
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 + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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.0041a388
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418edb
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 0x41bca8
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.00403654
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41bd09
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x41bd09
cmp byte [ebp - 0x102], 0
je 0x41bd09
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403880
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d098
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x41d119
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41d0ca
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41d0dc
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x41d0e8
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0041cf24
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d10d
push ebp
mov eax, dword [ebp - 4]
call fcn.0041d008
pop ecx
mov ebx, eax
cmp bl, 2
je 0x41d0e8
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eed4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x42a6e4
cmp dword [edi], 0
jne 0x41ef50
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x42a6e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4296f4
mov ecx, 2
call fcn.004026a8
mov edx, 0x41eeac
lea eax, [esi + 5]
call fcn.0041eecc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041eecc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ef25
mov dword [0x42a6e0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f074
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41f0c4]
test si, 4
je 0x41f088
or bl, 1
test si, 8
je 0x41f092
or bl, 4
test si, 1
je 0x41f09c
or bl, 8
test si, 2
je 0x41f0a6
or bl, 0x10
test si, 0x10
je 0x41f0b0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41f0bf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x41f0c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41f100]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41f0e1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41f0f0
or bl, 4
test esi, 0x20000000
je 0x41f0fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x423118
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 0x4232bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a234]
call fcn.00402be0
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403654
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x423293
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.0041b448
test al, al
je 0x423286
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x4232cc
lea eax, [ebp - 0x254]
call fcn.00406fcc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x423286
xor eax, eax
push ebp
push 0x42327f
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 0x423304
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x423268
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403880
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x423268
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423286
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x423189
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040d1b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4232c4
lea eax, [ebp - 0x260]
call fcn.00403654
ret
Function at 0x4234a8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x42a6b8]
cmp byte [eax + 0x85], 0
jne 0x423519
cmp dword [0x42a6f0], 0
jne 0x4234da
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x423464
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x42a6f0], eax
cmp dword [0x42a6ec], 0
jne 0x4234f5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x42a6ec], eax
cmp dword [0x42a6f4], 0
jne 0x423519
push esp
push 0
push 0
push 0x423408
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x42a6f4], eax
pop edx
ret

Function at 0x423608
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42361f
add esp, 0xfffffff0
call fcn.00402dbc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040faa8
mov dl, 1
mov eax, dword [0x409e1c]
call fcn.00402be0
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x409e1c]
call fcn.00402be0
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x410cb8]
call fcn.00413aa0
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x423778
mov eax, dword [0x4298fc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00413e38
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x424d9c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4298fc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00408430
test eax, eax
je 0x423700
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00406a20
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00408458
test eax, eax
je 0x423714
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403880
mov eax, dword [0x429888]
cmp byte [eax], 0
jne 0x423745
mov eax, ebx
call fcn.0042385c
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x42376d
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423ab0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x42a6b8]
cmp dword [eax + 0x24], 0
je 0x423b40
cmp dword [ebx + 0x74], 0
jne 0x423b3d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x423a44
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x423b3d
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 0x423b0c
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x423b3d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040afe8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x423b18
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x424428
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x42445d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403738
jmp 0x424467
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.004036ec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42500c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x425044
mov eax, esi
call fcn.0041a484
test al, al
je 0x425044
mov eax, dword [ebx + 0x64]
call fcn.0041a388
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x425044
push 0
mov eax, dword [ebx + 0x64]
call fcn.0041a388
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x427efc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd3c
push ebx
xor ecx, ecx
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
lea eax, [ebp - 0x168]
mov edx, dword [0x405910]
call fcn.00403d20
lea eax, [ebp - 0x2c0]
mov edx, dword [0x405910]
call fcn.00403d20
xor eax, eax
push ebp
push 0x4280b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x1e4]
call fcn.0040391c
mov eax, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x168]
xor edx, edx
call fcn.004067b0
test eax, eax
jne 0x428064
lea eax, [ebp - 0x2c4]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebx + 0x1e8]
call fcn.0040391c
mov eax, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x2c0]
xor edx, edx
call fcn.004067b0
test eax, eax
jne 0x428051
mov eax, dword [ebp - 0x168]
cmp eax, dword [ebp - 0x2c0]
jge 0x428051
mov dl, 1
mov eax, dword [ebx + 0x1dc]
call fcn.00427624
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebx + 0x1e4]
call fcn.0040391c
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x2b4]
mov edx, dword [ebx + 0x1e8]
call fcn.0040391c
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x1e0]
call fcn.00426a48
mov eax, dword [ebx + 0x1e0]
mov edx, dword [eax]
call dword [edx + 0x48]
lea ecx, [ebp - 0x10]
mov edx, 0x4280c8
mov eax, dword [ebp - 8]
call fcn.004068ec
mov eax, dword [ebp - 0x10]
call fcn.00406830
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00406848
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403a94
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x168]
call fcn.004067fc
test eax, eax
je 0x427f83
lea eax, [ebp - 0x168]
call fcn.00406820
mov eax, ebx
call fcn.00422b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4280b9
lea eax, [ebp - 0x2c4]
call fcn.00403654
lea eax, [ebp - 0x2c0]
mov edx, dword [0x405910]
mov ecx, 2
call fcn.00403e14
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403678
ret
Function at 0x497bd8
Capabilities:
Parse pe header

Disassembly:
push 0
push ebp
call fcn.0080db27
test eax, eax
je 0x497c17
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x497c17
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x497c17
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x497c17
cmp dword [ecx + 0x74], 0xe
jbe 0x497c17
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a1a60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x5a8314]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4a1b3a
lea eax, [esp + 4]
push eax
push edi
push 2
call fcn.004ba0d0
add esp, 0xc
test eax, eax
jne 0x4a1b3a
lea eax, [esp + 8]
push eax
push edi
push 0x17
call fcn.004ba0d0
add esp, 0xc
test eax, eax
jne 0x4a1b3a
push ebx
push ebp
push esi
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a1ab5
sub esi, ecx
push esi
push 0x2e
push edi
call fcn.004ba0a0
add esp, 0xc
test eax, eax
je 0x4a1ae9
sub eax, edi
push eax
push 0x2e
push edi
call fcn.004ba0a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4a1aeb
inc ebx
mov ecx, edi
sub ecx, ebx
add esi, ecx
test ebx, ebx
cmovne edi, ebx
xor ecx, ecx
xor ebp, ebp
mov ebx, 0x1505
lea eax, [esi + edi]
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4a1b24
mov al, byte [edi]
push eax
call fcn.004ae090
movsx ecx, al
lea edi, [edi + 1]
mov eax, ebx
inc ebp
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp ebp, esi
jb 0x4a1b03
pop esi
pop ebp
movzx eax, bl
pop ebx
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00496b5c
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
xor ecx, esp
call fcn.00496b5c
add esp, 0x18
ret

Function at 0x4ab1d0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x610], 0
je 0x4ab214
push esi
push 1
push edi
call fcn.0049da50
push dword [edi + 0x5a4]
mov eax, dword [edi + 0x610]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0049da50
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4ab24d
push dword [edi + 0x5a0]
lea eax, [eax + eax*2]
push 1
add eax, 0x589f34
push 2
push eax
call fcn.004e52e2
push dword [edi + 0x5a0]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004e52e2
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x4de820
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5a8334]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4de847
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4de892
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x4de896
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4de8f6
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4de8b5
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4de927
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x5941fe
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5941ff
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4de900
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x507330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x50735d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x50735d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5b1bf0
Capabilities:
Contain obfuscated stackstrings
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
cmp ebx, esi
je 0x5b1d52
cmp edi, esi
je 0x5b1d52
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, edi
mov dword [ebp - 0x48], 0x44434241
mov dword [ebp - 0x44], 0x48474645
mov dword [ebp - 0x40], 0x4c4b4a49
mov dword [ebp - 0x3c], 0x504f4e4d
mov dword [ebp - 0x38], 0x54535251
mov dword [ebp - 0x34], 0x58575655
mov dword [ebp - 0x30], 0x62615a59
mov dword [ebp - 0x2c], 0x66656463
mov dword [ebp - 0x28], 0x6a696867
mov dword [ebp - 0x24], 0x6e6d6c6b
mov dword [ebp - 0x20], 0x7271706f
mov dword [ebp - 0x1c], 0x76757473
mov dword [ebp - 0x18], 0x7a797877
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x2f2b3938
mov dword [ebp - 4], esi
mov ecx, edi
mov dword [ebp - 8], eax
cmp edx, esi
jbe 0x5b1d42
add edi, 4
jmp 0x5b1ca3
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x5b1cb8
mov dword [ebp - 4], 2
jmp 0x5b1cd9
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x5b1ccf
mov dword [ebp - 4], 1
jmp 0x5b1cd9
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x5b1d52
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x48]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x48]
mov byte [ecx + 1], bl
mov ebx, dword [ebp - 4]
cmp ebx, 1
jbe 0x5b1d10
mov byte [ecx + 2], 0x3d
jmp 0x5b1d1d
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + 2], al
add ecx, 3
add edi, 3
test ebx, ebx
je 0x5b1d2c
mov byte [ecx], 0x3d
jmp 0x5b1d32
mov dl, byte [ebp + edx - 0x48]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x5b1ca0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub ecx, edi
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x65e478
Capabilities:
Encode data using xor

Disassembly:
dec edx
xor ebx, edx
add esi, edx
jmp 0x69c3d7
mov dword [esp], 0x9795c87d
push ebp
mov ebp, 0x57416346
lea ebp, [ebp*4 + 0x60af67d1]
pushfd
xor bp, 0x39cb
mov ebp, dword [esp + 4]
jb 0x65e481
push dword [esp]
popfd
lea esp, [esp + 8]
call fcn.005e6bbc
not edx
dec edx
xor edx, 0x42406b47
jmp 0x6208fd
jmp esi