joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e3c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e58a
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x1c]
mov edx, 0x1b
mov al, 0x2d
call fcn.004ba330
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov ecx, 0x46e5a0
call fcn.004b9e48
mov eax, dword [ebp - 4]
call fcn.0049f108
dec eax
test eax, eax
jl 0x46e485
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0049f0c8
mov edx, dword [0x43a918]
call fcn.004b8eac
test al, al
je 0x46e47d
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0049f0c8
lea edx, [ebp - 0x20]
call fcn.00476974
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov edx, 3
mov al, 0x20
call fcn.004ba330
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004b9ebc
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x46e42b
mov al, byte [0x46e5a4]
push eax
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, 0x46e5b0
mov eax, dword [ebp - 0x10]
call fcn.004ac9e4
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.004b9bd0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0xb
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.00476974
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0xb
mov eax, 0x46e5a0
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
call fcn.00476974
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov eax, 0x46e5a0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, 0x46e5a0
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x78]
mov ecx, 9
mov eax, 0x46e5bc
call fcn.004a7f9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e591
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.004b9b5c
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004b9b5c
lea eax, [ebp - 0x20]
call fcn.004b9b38
lea eax, [ebp - 0x1c]
call fcn.004b9b38
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b9b5c
ret
Function at 0x4735b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4f4af4], 0
je 0x473705
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4f4180]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x473705
mov eax, dword [0x4f4af8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4f4af4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4736d4
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4f4af4]
call fcn.00496538
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4736c8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4736c8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4736c8
mov eax, dword [ebp - 0x14]
call fcn.00480660
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4736c8
push ebp
call fcn.00473564
pop ecx
test al, al
jne 0x4736c8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004b8f1c
test al, al
je 0x4736c8
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004b8f1c
cmp byte [ebp - 1], 0
je 0x4736c8
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x30]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4736c8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f4af8]
call fcn.00472994
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x47361c
mov eax, dword [0x4f4af8]
cmp dword [eax + 8], 0
jle 0x4736ec
mov eax, dword [0x4f4af8]
call fcn.00472a70
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x473705
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004733a0
pop ecx
test al, al
jne 0x473705
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47cbf4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call sub.USER32.DLL_GetMessagePos
call fcn.004a54cc
mov dword [ebp - 0x19], eax
movsx eax, word [ebp - 0x19]
mov dword [ebp - 0x21], eax
movsx eax, word [ebp - 0x17]
mov dword [ebp - 0x1d], eax
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x21]
mov eax, dword [ebp - 4]
call fcn.004762cc
cmp dword [ebp - 0xc], 0
jne 0x47cc49
push 0
push 0
lea edx, [ebp - 0x15]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0047cb08
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47cd45
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x47cc7b
mov eax, dword [ebp - 0x15]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x40]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x11]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x44]
mov dword [ebp - 0x134], eax
jmp 0x47cc8d
mov eax, dword [ebp - 0x15]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x11]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 8]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0xa]
cmp eax, 0x201
jge 0x47cccc
add eax, 0xffffff5f
sub eax, 2
jb 0x47cce4
dec eax
sub eax, 2
jb 0x47ccf6
dec eax
sub eax, 2
jb 0x47cced
jmp 0x47ccff
add eax, 0xfffffdff
sub eax, 2
jb 0x47cce4
dec eax
sub eax, 2
jb 0x47ccf6
dec eax
sub eax, 2
jb 0x47cced
jmp 0x47ccff
mov byte [ebp - 0x12c], 0
jmp 0x47cd06
mov byte [ebp - 0x12c], 2
jmp 0x47cd06
mov byte [ebp - 0x12c], 1
jmp 0x47cd06
mov byte [ebp - 0x12c], 0
lea eax, [ebp - 0x121]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [ebp - 0x121]
call fcn.0045ab34
mov byte [ebp - 0x12b], al
lea eax, [ebp - 0x138]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, dword [ebp - 0xc]
call fcn.00478270
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov byte [ebp - 0xd], 1
jmp 0x47cd49
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x47db74
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x240], 0
je 0x47db95
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x47dbca
mov eax, dword [ebp - 4]
test byte [eax + 0x55], 1
jne 0x47dbba
mov eax, dword [ebp - 4]
call fcn.0047b9ec
test eax, eax
jne 0x47dbba
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x47dcf4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047d4a0
jmp 0x47dcf4
push 0
call sub.USER32.DLL_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x47dced
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00480660
push eax
call sub.USER32.DLL_BeginPaint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.00478270
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047db74
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00480660
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dcf4
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.GDI32.DLL_DeleteObject
ret
mov esp, ebp
pop ebp
ret
Function at 0x4870a4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x4f4290]
cmp byte [eax + 0xc], 0
je 0x487216
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48720f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f4b04], 0
jne 0x4870fd
push 0x48721c
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 4], eax
push 0x487224
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b04], eax
cmp dword [0x4eced4], 0
jne 0x4871f8
push 0x487234
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4eced4], eax
cmp dword [0x4eced4], 0
je 0x4871f8
push 0x487240
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b08], eax
push 0x487250
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b0c], eax
push 0x487264
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b10], eax
push 0x48727c
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b14], eax
push 0x487294
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b18], eax
push 0x4872a8
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b1c], eax
push 0x4872c0
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b20], eax
push 0x4872d8
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b24], eax
push 0x4872f4
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b28], eax
push 0x487300
mov eax, dword [0x4eced4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f4b2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487216
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x49a2f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x49a326
push ebp
call fcn.0049a250
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x49a34c
push ebp
call fcn.0049a250
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.KERNEL32.DLL_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00499e98
mov esp, ebp
pop ebp
ret 8
Function at 0x49e694
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.0049e358
cmp dword [ebp - 8], 1
jne 0x49e6c8
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret

Function at 0x49ff84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x4f4d60], 0
jne 0x4a0031
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [0x4f4d5c]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4ed06c
mov ecx, 2
call fcn.004b7ca8
mov edx, 0x49ff40
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0049ff60
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0049ff60
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x4f4d60]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4f4d60], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x49ffeb
mov eax, dword [ebp - 8]
mov dword [0x4f4d5c], eax
mov eax, dword [0x4f4d60]
mov dword [ebp - 4], eax
mov eax, dword [0x4f4d60]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x4f4d60], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4a2970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.004b84fc
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004b9ffc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.004a2484
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4a2ad4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.004a2434
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004b9ffc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4a2b3c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x4f4244]
mov dl, 1
mov eax, dword [0x4a2310]
call fcn.004ab1f8
call fcn.004b9594
mov esp, ebp
pop ebp
ret 8

Function at 0x4a2b44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004b9ffc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4a2ba6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x4f4240]
mov dl, 1
mov eax, dword [0x4a2310]
call fcn.004ab1f8
call fcn.004b9594
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.004a2484
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x4a64e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4a6570
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4a6570
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4a6523
test edx, 3
jne 0x4a6512
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4a651d
jmp 0x4a6523
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4a6523
cmp dword [ecx - 8], 1
je 0x4a652d
mov edx, ebx
or edx, 3
call fcn.004ba2cc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4a653f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004b9b38
Function at 0x4a657c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4a660c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4a660c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4a65bf
test edx, 3
jne 0x4a65ae
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4a65b9
jmp 0x4a65bf
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4a65bf
cmp dword [ecx - 8], 1
je 0x4a65c9
mov edx, ebx
or edx, 3
call fcn.004ba2cc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4a65db
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004b9b38

Function at 0x4a71f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4a7225
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4a722c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4a725d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004b9ffc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a731e
test byte [ebp - 0xc], 0x10
je 0x4a7322
xor eax, eax
jmp 0x4a7324
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004b9ffc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a7356
test byte [ebp - 0xc], 0x10
jne 0x4a735a
xor eax, eax
jmp 0x4a735c
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x4a7728
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.004b9ffc
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4aa7e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4aa82c
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004b9c28
jmp 0x4aa837
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004b9b8c
mov esp, ebp
pop ebp
ret 4

Function at 0x4aa840
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4aa86e
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x4aa874
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x4aaffc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004aae44
mov eax, dword [0x4f4478]
cmp byte [eax], 0
je 0x4ab08f
mov eax, dword [0x4f4480]
call fcn.004b8340
call fcn.004b7c14
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.USER32.DLL_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.004a7754
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x4ab0d4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4ab0c5
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x4f4310]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f46cc]
call fcn.004bb190
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
mov esp, ebp
pop ebp
ret