joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ed9e6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4edaa4
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4eda99
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4eda99
neg eax
sbb eax, eax
and eax, ecx
cmp dword [ebx], eax
jne 0x4eda99
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4eda6d
sub eax, 1
je 0x4eda39
sub eax, 1
jne 0x4eda99
mov edi, 0x428e
jmp 0x4eda72
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4eda72
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call fcn.00542d35
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4eda72
add edi, 3
jmp 0x4eda72
mov edi, 0x3ea0
push edi
call fcn.0040a83d
test eax, eax
je 0x4edaa4
push edi
push eax
mov ecx, 0x621dd8
call fcn.00408f9c
test eax, eax
je 0x4edaa4
mov eax, dword [0x621dd8]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
jmp 0x4eda9b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00409709
int3

Function at 0x4f945e
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4f94ad
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.0054c699
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x4f94a2
mov edx, ecx
movzx ecx, word [esi + edi*2]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x4f9490
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00409709
int3
Function at 0x5439f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x618f60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0x10
mov dword [ebp - 0x40], edi
lea eax, [edi + 0x3c8]
push eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00545690
mov ebx, dword [ebp + 0x10]
add esp, 0xc
test ebx, ebx
jle 0x543b54
mov edx, dword [ebp + 0xc]
dec ebx
add edx, 2
shr ebx, 4
add esi, 2
mov dword [ebp - 0x38], edx
inc ebx
mov dword [ebp - 0x3c], ebx
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
call fcn.005439d0
add esp, 8
xor edi, edi
nop word [eax + eax]
mov al, byte [ebp + edi - 0x34]
xor al, byte [ebp + edi - 0x14]
mov edx, dword [ebp + edi - 0x34]
mov ebx, dword [ebp + edi - 0x14]
mov ecx, ebx
mov byte [esi + 1], al
mov eax, edx
shr ecx, 8
shr eax, 8
xor cl, al
mov eax, edx
mov byte [esi], cl
mov ecx, ebx
shr eax, 0x10
shr ecx, 0x10
xor cl, al
shr ebx, 0x18
mov eax, dword [ebp + edi - 0x24]
shr edx, 0x18
xor bl, dl
mov dword [ebp + edi - 0x34], eax
mov byte [esi - 1], cl
add edi, 4
mov byte [esi - 2], bl
add esi, 4
cmp edi, 0x10
jl 0x543af0
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add edx, 0x10
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edx
jne 0x543a43
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x44]
call fcn.00545690
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054250a
mov esp, ebp
pop ebp
ret
Function at 0x54a750
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5f08c4
push str.FlsAlloc
push 0
call fcn.0054a6c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54a782
push dword [ebp + 8]
mov ecx, esi
call fcn.00542d35
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x54a7c4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5f08e8
push str.FlsGetValue
push 2
call fcn.0054a6c9
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x54a7f5
mov ecx, esi
call fcn.00542d35
call esi
jmp 0x54a7fb
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x54a7fe
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x5f08fc
push str.FlsSetValue
push 3
call fcn.0054a6c9
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x54a832
mov ecx, esi
call fcn.00542d35
call esi
jmp 0x54a838
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x561b20
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005617df

Function at 0x561b2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00561962

Function at 0x5656f8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00565010

Function at 0x565703
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056524f
Function at 0x10094d9
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102b004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x100952a
push edi
push 0x1007304
lea edi, [ebp - 0x20c]
call fcn.01009f81
pop edi
test eax, eax
jl 0x100952a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0102045a
leave
ret

Function at 0x100a932
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x100a948
push 0x80004005
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100a94f
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100af18
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x102b004]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
lea edx, [esp + 0x18]
push edx
xor edi, edi
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100af7d
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x10]
call fcn.0100aef1
mov esi, eax
cmp esi, edi
je 0x100af99
cmp dword [esp + 0xc], edi
je 0x100b00e
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100b00e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, 0x100
jmp 0x100afbc
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
call fcn.0100af18
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x100b027
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push edi
push dword [esp + 0x28]
mov dword [esp + 0x3c], ebx
call esi
test eax, eax
je 0x100afa6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xc], edi
je 0x100aff3
push dword [esp + 0xc]
call ebx
mov dword [esp + 0xc], edi
push dword [esp + 0x24]
mov esi, dword [esp + 0x24]
call fcn.0100b07e
mov esi, eax
cmp dword [esp + 0xc], edi
je 0x100b00e
push dword [esp + 0xc]
call ebx
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0102045a
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0xc], edi
je 0x100b037
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
jmp 0x100b010
Function at 0x100b9f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1023eaa
call fcn.01022cf7
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x100ba48
call fcn.0100a47f
mov esi, eax
jmp 0x100bb6f
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100ba61
call fcn.0100a47f
jmp 0x100bb61
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x100ba57
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x100bac7
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100baad
lea eax, [ebp - 0x418]
call fcn.0100a9e1
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0100a984
mov eax, esi
call fcn.01022d62
ret 0xc
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0100aa6d
cmp eax, 0x400
jbe 0x100bae9
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0100aa18
jmp 0x100baf5
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x100bb13
cmp dword [ebp - 0x418], esi
jne 0x100bb22
mov esi, 0x8007000e
jmp 0x100bb63
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100ba57
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x430]
call fcn.0100b893
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100bab2
lea eax, [ebp - 0x418]
call fcn.0100a9e1
jmp 0x100bab2

Function at 0x100c34b
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [edi], esi
call dword [sym.imp.SHELL32.dll_ILGetSize]
mov ebx, eax
cmp ebx, esi
je 0x100c3bd
lea eax, [ebp - 4]
push eax
push esi
push 1
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
call esi
test eax, eax
je 0x100c3af
mov eax, dword [ebp - 4]
add eax, eax
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [edi], eax
test eax, eax
je 0x100c3b6
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x100c3a7
xor eax, eax
jmp 0x100c3c2
push dword [edi]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x80004005
jmp 0x100c3c2
mov eax, 0x8007000e
jmp 0x100c3c2
mov eax, 0x8000ffff
pop esi
pop ebx
leave
ret 4
Function at 0x100c3cd
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
or dword [ebp - 0xc], 0xffffffff
push esi
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
push edi
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0x80000000
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x100c49e
cmp dword [ebp - 0xc], ebx
jne 0x100c49e
cmp dword [ebp - 8], 1
jne 0x100c49e
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
cmp edi, ebx
je 0x100c497
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x100c489
mov esi, dword [ebp - 4]
push 2
pop ecx
mov edx, edi
cmp esi, ecx
jb 0x100c482
movzx eax, word [edx]
test ax, ax
je 0x100c46e
movzx eax, ax
mov ebx, esi
sub ebx, ecx
cmp eax, ebx
ja 0x100c46e
add ecx, eax
add edx, eax
cmp ecx, esi
jbe 0x100c453
cmp ecx, esi
ja 0x100c482
xor eax, eax
cmp ax, word [edx]
jne 0x100c482
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor esi, esi
jmp 0x100c4a3
mov esi, 0x80070057
jmp 0x100c4a3
push edi
mov esi, 0x8000ffff
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100c4a3
mov esi, 0x8007000e
jmp 0x100c4a3
mov esi, 0x8000ffff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100c556
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x1007614
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c5be
cmp dword [ebp + 8], 1
je 0x100c596
cmp dword [ebp + 8], 2
je 0x100c596
push 0xd
pop eax
jmp 0x100c5be
mov eax, dword [ebp - 4]
test edi, edi
je 0x100c5b8
test eax, eax
je 0x100c5b3
test al, 1
jne 0x100c591
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x100c5b8
jmp 0x100c591
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4

Function at 0x100ce8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100cee6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100ced8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100ced4
cmp edi, eax
jae 0x100ced8
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100cec6
cmp edi, eax
jb 0x100cedc
xor eax, eax
jmp 0x100cee5
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x100d286
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x102c62c], ebx
jne 0x100d2c6
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x100d2bc
push 0x10077b0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x10077c0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x102c628], eax
mov dword [0x102c62c], 1
mov eax, dword [0x102c628]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100d2e1
push dword [ebp + 0xc]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x100d312
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x100d30a
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x100d2fc
push dword [edi + 0xc]
call dword [edi + 8]
jmp 0x100d301
push dword [edi + 4]
call dword [edi]
test eax, eax
je 0x100d312
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push dword [ebp + 0xc]
push eax
call esi
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x1010247
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x102b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x68], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
mov edi, ecx
and dword [edi], 0
push eax
mov byte [ebp - 0x5d], 0
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x5c]
push eax
push 0x1014
mov ebx, 0x400
push ebx
call esi
test eax, eax
je 0x101036e
and dword [ebp - 0x6c], 0
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
add esp, 0xc
dec eax
je 0x1010368
dec eax
jne 0x101036e
push 0x1007d40
push dword [ebp - 0x64]
mov dword [edi], 1
call dword [sym.imp.msvcrt.dll_wcspbrk]
pop ecx
pop ecx
test eax, eax
je 0x101036e
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x13
push ebx
call esi
test eax, eax
je 0x101036e
mov eax, dword [ebp - 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101030d
mov esi, dword [ebp - 0x68]
sub eax, edx
sar eax, 1
mov edi, eax
push edi
call fcn.0100c848
test edi, edi
jle 0x1010358
mov esi, dword [ebp - 0x64]
mov ecx, eax
sub esi, eax
mov ebx, edi
movzx eax, word [esi + ecx]
lea edx, [eax - 0x30]
cmp dx, 9
ja 0x1010350
movzx edx, ax
movzx edx, word [ebp + edx*2 - 0x7c]
test dx, dx
je 0x1010350
movzx eax, dx
mov word [ecx], ax
inc ecx
inc ecx
dec ebx
jne 0x1010333
mov edx, dword [ebp - 0x68]
mov eax, edi
call fcn.0100c89a
mov byte [ebp - 0x5d], 1
jmp 0x101036e
mov dword [edi], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x5d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102045a
leave
ret 8
Function at 0x10105e3
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x102b004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102c640], 0
jne 0x101066e
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x102c644], ax
test ax, ax
je 0x1010659
push 0x10
lea ecx, [ebp - 0x24]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1010659
test dword [ebp - 0x16], 0x800
je 0x1010659
push edi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
mov ax, word [0x102c644]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x1010576
call dword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
pop edi
cmp dword [ebp - 0x28], esi
je 0x1010659
inc esi
xor eax, eax
test esi, esi
sete al
inc eax
push eax
push 0x102c640
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x102c640], 1
sete al
xor ecx, ebp
call fcn.0102045a
leave
ret

Function at 0x1013a5b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [ebp + 0xc], edi
jne 0x1013a73
mov eax, 0x80004003
jmp 0x1013ad6
push ebx
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1014123
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x1013aae
call fcn.01014b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
jmp 0x1013ad5
push dword [ebp + 8]
mov edi, 0x800705b4
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1013acc
mov al, byte [esi + 0xc]
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi + 8]
mov byte [ecx], al
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x101b866
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push esi
push 0xfffffffffffffff0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x20
push 0x12
or esi, 0x2000
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
cmp cx, ax
jg 0x101b89e
or esi, 0x80
mov eax, esi
pop esi
ret
Function at 0x101e0a0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
mov esi, 0x100
push edi
mov dword [ebp + 8], eax
cmp eax, esi
jb 0x101e0bc
mov dword [ebp + 8], esi
mov eax, dword [ebp + 0x18]
sub esi, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov edi, eax
shr edi, 2
and eax, 3
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
test edx, edx
jbe 0x101e1e4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov edx, 0xff00ff
push ebx
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x1c], ecx
test edi, edi
jbe 0x101e186
mov dword [ebp + 0xc], edi
mov eax, dword [eax]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mov edi, eax
shr edi, 8
mov ebx, ecx
shr ebx, 8
and edi, 0xffff00ff
imul edi, dword [ebp + 8]
and ebx, 0xffff00ff
imul ebx, esi
add edi, ebx
mov esi, eax
and esi, edx
imul esi, dword [ebp + 8]
mov ebx, ecx
and ebx, edx
imul ebx, dword [ebp - 4]
add dword [ebp + 0x18], 4
shr eax, 8
add esi, ebx
shr esi, 8
xor edi, esi
mov esi, dword [ebp - 4]
mov edx, 0xff00ff
and eax, edx
imul eax, dword [ebp + 8]
shr ecx, 8
and ecx, edx
imul ecx, esi
add eax, ecx
and edi, edx
xor edi, eax
mov eax, dword [ebp + 0x1c]
add dword [ebp + 0x1c], 4
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
add eax, 4
dec dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jne 0x101e10c
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jbe 0x101e1c2
mov ecx, dword [ebp + 0x18]
sub ecx, eax
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x1c]
sub ecx, eax
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x18], ebx
mov ecx, dword [ebp + 0x10]
movzx ecx, byte [ecx + eax]
movzx ebx, byte [eax]
imul ecx, esi
imul ebx, dword [ebp + 8]
add ecx, ebx
mov ebx, dword [ebp + 0x1c]
shr ecx, 8
mov byte [ebx + eax], cl
inc eax
dec dword [ebp + 0x18]
jne 0x101e1a0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, dword [ebp + 0x20]
add ecx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x28]
add dword [ebp + 0x14], ebx
dec dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jne 0x101e0f9
pop ebx
pop edi
pop esi
leave
ret 0x24