joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071c2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x40721e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x4000
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004068be
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x407290
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x3ffe], ax
pop esi
jne 0x407290
cmp dword [ebp + 0x18], 1
je 0x407295
cmp dword [ebp + 0x18], 2
je 0x407295
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x40729a
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x4072fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x407347
test edi, edi
jne 0x40730a
mov word [esi], ax
jmp 0x407349
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x407443
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407465
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4076e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x46741c], 0
push esi
jne 0x40771a
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x4076f1
mov dword [ecx*4 + 0x467418], edx
inc ecx
cmp ecx, 0x100
jl 0x4076ec
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x407744
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x467418]
inc esi
sub edx, 1
jne 0x40772c
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x4d04ec
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d058a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4d054e
cmp byte [ebx + 0x10], 0
jne 0x4d054e
cmp byte [ebx + 0x3c], 0
jne 0x4d054e
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4d056f
lea edx, [ebp - 4]
mov eax, dword [0x5f9d7c]
call fcn.005129fc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4c07d4]
call fcn.004f86d4
call fcn.0050e910
jmp 0x4d056f
lea edx, [ebp - 8]
mov eax, dword [0x5f9d7c]
call fcn.005129fc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4c07d4]
call fcn.004f86d4
call fcn.0050e910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0591
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f198
ret

Function at 0x4d0e98
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4d0ee6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004d0438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0eff
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4d0f08
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004d0438
dec esi
jne 0x4d0f2a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4d28e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5faf74
cmp dword [edi], 0
jne 0x4d295c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5faf70]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5f30a4
mov ecx, 2
call fcn.0050cda0
mov edx, 0x4d28b8
lea eax, [esi + 5]
call fcn.004d28d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004d28d8
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 0x4d2931
mov dword [0x5faf70], 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 0x4d5e10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d5f8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0050f540
mov eax, dword [ebp - 4]
call fcn.004d5770
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4d5e62
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00510204
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004d6a04
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d5f41
xor eax, eax
push ebp
push 0x4d5f3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d5a10
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004d5fc0
test al, al
je 0x4d5f18
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0050f2a0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4d5f18
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0050fdf8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d5970
test al, al
je 0x4d5f12
mov eax, dword [ebp - 8]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0050fe48
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004d5e10
dec ebx
cmp ebx, 0xffffffff
jne 0x4d5ec1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5f41
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004d5a10
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d59fc
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d5970
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5f92
lea eax, [ebp - 0x3c]
call fcn.0050f138
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f198
ret

Function at 0x4d68e0
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
movzx eax, byte [ebp + 8]
call fcn.004d5788
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.0050fdf8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004d5970
test al, al
jne 0x4d6948
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f9d50]
mov dl, 1
mov eax, dword [0x4d4594]
call fcn.004f88d8
call fcn.0050e910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d6954
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.0050fdf8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d5970
test al, al
jne 0x4d69b5
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f9d4c]
mov dl, 1
mov eax, dword [0x4d4594]
call fcn.004f88d8
call fcn.0050e910
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d57b8
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 0x4d6fb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d70dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004d5a10
xor eax, eax
push ebp
push 0x4d70b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004d5fc0
test al, al
je 0x4d709b
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d6e94
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0050f2a0
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4d709b
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
push edi
push esi
call sub.ADVAPI32.DLL_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004d5970
test al, al
je 0x4d7097
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0050fe48
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d6e94
pop ecx
inc edi
dec ebx
jne 0x4d703f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d70be
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004d5a10
ret
Function at 0x4f8584
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4f86a9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004f8394
mov esi, eax
mov eax, dword [0x5f9fa0]
cmp byte [eax], 0
je 0x4f8651
mov eax, dword [0x5f9fac]
call fcn.0050d104
call fcn.0050cd50
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4f855c]
call fcn.00510fc8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4f86c4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4f868d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5f9e00]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5fa2a0]
call fcn.005110bc
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f86b0
lea eax, [ebp - 4]
mov edx, dword [0x4f855c]
call fcn.00510fd4
ret

Function at 0x4f9704
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f97da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0050f540
lea eax, [ebp - 4]
call fcn.0050f6a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4f97c4
mov eax, ebx
call fcn.0050cb4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f97bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x4f97a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4f97ec
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x4f97a7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f97c4
mov eax, dword [ebp - 0x10]
call fcn.0050cb68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f97e1
lea eax, [ebp - 4]
call fcn.0050f138
ret
Function at 0x50df6c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0050e358
mov byte [esp], al
cmp byte [esp], 0
jne 0x50e0f5
test edi, edi
je 0x50e0f5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x50e007
cmp edi, 0xffffffff
je 0x50dfcb
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x50dfcb
mov byte [esp], 0
jmp 0x50e0f5
mov ebx, dword [esi]
cmp ebx, 1
jg 0x50e007
test ebx, ebx
jne 0x50e000
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0050af0c
test eax, eax
jne 0x50e000
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x50e0f5
pause
dec ebp
test ebp, ebp
jg 0x50dfb0
cmp edi, 0xffffffff
je 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x50e02a
mov byte [esp], 0
jmp 0x50e0f5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x50df7a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0050e168
mov edx, eax
mov ebx, dword [0x5fdbdc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x50e093
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x50e091
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x50e093
xor edi, edi
cmp byte [esp], 0
je 0x50e0bc
mov ebx, dword [esi]
test bl, 1
jne 0x50e0d5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e099
mov byte [esp + 1], 1
jmp 0x50e0d5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e0bc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x50e046
cmp byte [esp], 0
je 0x50e0f5
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x50ed9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5fd364], 0
je 0x50edfd
cmp word [0x5fd640], 0xd7b2
jne 0x50edc5
cmp dword [0x5fd648], 0
jbe 0x50edc5
mov eax, 0x5fd63c
call dword [0x5fd658]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x50ee28
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x5f36f4], 0
jne 0x50ee19
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x50eff4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5f36c4], 0
je 0x50f01f
mov edx, edi
mov eax, esi
call dword [0x5f36c4]
mov ebx, eax
jmp 0x50f030
mov eax, 8
call fcn.0050cb4c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5fd365], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x50efbc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x50f065
mov edx, 8
mov eax, ebx
call fcn.0050cb68
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x511578
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5116dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050f138
cmp si, word [0x5f3eb4]
jb 0x511610
cmp si, word [0x5f40b4]
ja 0x511610
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x511610
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5f3eb4]
jae 0x5115ea
mov edi, ebx
dec edi
jmp 0x51160b
cmp si, word [ebx*8 + 0x5f3eb4]
jbe 0x5115fa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x51160b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f3eb8]
call fcn.00511488
jmp 0x511610
cmp edi, dword [ebp - 8]
jae 0x5115d4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x5116bf
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x5116bf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x160]
push 0x5116f8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x164]
push 0x511708
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.005100d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5116e4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0050f198
ret
Function at 0x511890
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x511993
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5ffe6d
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x5ffe86]
jne 0x5118dc
mov eax, esi
mov edx, 0x5ffe88
mov ecx, 0x55
call fcn.0050fe9c
push 0x5ffe6d
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x51197d
push 0x5ffe6d
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0050f138
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x51194b
cmp byte [0x5ffe6c], 0
je 0x511910
mov edx, esi
mov eax, ebx
call fcn.00511774
jmp 0x51194b
mov edx, esi
mov eax, ebx
call fcn.00511578
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x51194b
cmp dword [esi], 0
je 0x511934
mov eax, esi
mov edx, 0x5119ac
call fcn.0050fff4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00511578
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0050fff4
push 0x5ffe6d
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x5ffe86], bx
push 0xaa
mov eax, dword [esi]
call fcn.0050fdf8
push eax
push 0x5ffe88
call sub.KERNEL32.DLL_lstrcpynW
push 0x5ffe6d
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51199a
lea eax, [ebp - 4]
call fcn.0050f138
ret
Function at 0x51212c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0050f21c
xor eax, eax
push ebp
push 0x5121ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0050fe9c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0051004c
mov eax, dword [ebx]
call fcn.00511ff4
test al, al
jne 0x5121c9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0050fe9c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0051004c
mov eax, dword [ebx]
call fcn.00511ff4
test al, al
jne 0x5121c9
mov eax, ebx
call fcn.0050f138
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5121f3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0050f198
lea eax, [ebp - 4]
call fcn.0050f138
ret

Function at 0x512ab0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x512b90
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x5fdbf8], 1
jae 0x512c39
call fcn.00509930
call fcn.0050c928
call fcn.00511320
mov byte [0x5f36e4], 2
mov dword [0x5fd320], 0x5b0c54
mov dword [0x5fd324], 0x5b0c72
mov byte [0x5fd366], 2
call fcn.00512ab0
mov dword [0x5fd368], eax
mov dword [0x5fd30c], 0x510a4c
call fcn.0050d658
mov word [0x5fd370], 0xd7b0
mov word [0x5fd640], 0xd7b0
mov word [0x5fd910], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x5fd358], eax
call fcn.0050af1c
mov dword [0x5fd354], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x5fdbe0], eax
mov dword [0x5fdbe4], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x5fd34c], eax
call fcn.00512ac4
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0050f138
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x525c4d
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.0050fe9c
add esp, 0x200
pop esi
pop ebx
ret