joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403eb8
test esi, esi
jne 0x402a56
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403fa8
jmp 0x402a74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028d4
mov edi, eax
test esi, esi
je 0x402a74
cmp dword [ebx], 0
je 0x402a74
dec esi
jmp 0x402a5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403014
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x421020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40308c
xor eax, eax
push ebp
push 0x403085
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40308c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x421020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x421020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42304c], 0
je 0x403d9d
cmp word [0x423220], 0xd7b2
jne 0x403d65
cmp dword [0x423228], 0
jbe 0x403d65
mov eax, 0x42321c
call dword [0x423238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42106c
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 0x403dc4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x421030], 0
jne 0x403db9
push 0
push 0x421064
push 0x42106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ca0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d06
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404128
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c08
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cf0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d0d
lea eax, [ebp - 0x10]
call fcn.00403eb8
ret

Function at 0x40a04c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a085
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fa8
jmp 0x40a08e
mov eax, ebx
mov edx, esi
call fcn.00403f0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a098
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 0x40a0b9
mov al, byte [esp]
jmp 0x40a0bb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a740
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a5b8
mov eax, dword [0x422d68]
cmp byte [eax], 0
je 0x40a7bc
mov eax, dword [0x422c44]
call fcn.00402b14
call fcn.00402800
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407984
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a804
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a7f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x422c1c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x423668]
call fcn.00405198
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b4e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b54c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404128
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004074f4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b553
lea eax, [ebp - 0xc]
call fcn.00403eb8
ret

Function at 0x41b834
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x42154c
push 0x41b954
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x41b850
cmp dword [ebx], 0xffffffff
jne 0x41b856
xor eax, eax
mov dword [ebx], eax
pop ebx
ret
push 0x41b960
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421514], eax
push 0x41b978
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421518], eax
push 0x41b988
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x42151c], eax
push 0x41b9a0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421520], eax
push 0x41b9b8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421524], eax
push 0x41b9cc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421528], eax
push 0x41b9e4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x42152c], eax
push 0x41b9f8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421530], eax
push 0x41ba10
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421534], eax
push 0x41ba2c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421538], eax
push 0x41ba48
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x42153c], eax
push 0x41ba58
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421540], eax
push 0x41ba68
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421544], eax
push 0x41ba7c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x421548], eax
pop ebx
ret
Function at 0x403c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45eb36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x477110]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], 0x46cbc4
mov dword [esi + 0x20], 0x46cc8c
mov dword [esi + 0x30], 0x46cc94
mov dword [esi + 0x34], 0x46cc9c
mov dword [esi + 0x38], 0x46cca4
mov dword [esp + 0x14], 1
mov edi, dword [esi + 0x43c]
test edi, edi
je 0x403cea
mov ecx, edi
call fcn.0040cd60
push edi
call fcn.00446af0
add esp, 4
cmp dword [esi + 0x438], 8
jb 0x403d02
mov eax, dword [esi + 0x424]
push eax
call fcn.00446af0
add esp, 4
xor eax, eax
mov dword [esi + 0x438], 7
mov dword [esi + 0x434], 0
mov ecx, esi
mov word [esi + 0x424], ax
mov dword [esp + 0x14], 0xffffffff
call fcn.00406c60
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x406900
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x45f068
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x477110]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401ac0
mov eax, 0x46c49c
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406960
sub eax, edx
sar eax, 1
push eax
mov eax, 0x46c49c
lea ecx, [esp + 0x10]
call fcn.00401530
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401ac0
cmp dword [esp + 0x24], 8
jb 0x4069ac
mov edx, dword [esp + 0x10]
push edx
call fcn.00446af0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x406c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e7fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x477110]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x460ab4
mov dword [esi + 0x20], 0x460aac
mov dword [esi + 0x30], 0x460aa4
mov dword [esi + 0x34], 0x460a9c
mov dword [esi + 0x38], 0x460a94
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], 0
call fcn.00410849
lea ecx, [esi + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041345d
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4179c7
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4179d2
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x417a8d
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x462730]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x462730]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x462730]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x462730]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x462730]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x462730]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x462730]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x462730]
inc edx
sub edi, 8
dec esi
jne 0x4179f2
pop ebx
test edi, edi
je 0x417aa6
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x462730]
inc edx
dec edi
jne 0x417a91
pop edi
not eax
pop esi
ret

Function at 0x42cb0f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x42cb34
cmp eax, edi
jge 0x42cb2c
mov eax, esi
call fcn.0042c4c3
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x42cb56
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x42cb3b
cmp ecx, 4
jge 0x42cb75
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x42cb63
xor eax, eax
jmp 0x42cb6b
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x42cb59
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x42cba7
mov eax, 0x464c20
call fcn.0042a0e0
jmp 0x42cbe2
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x42cbb7
mov eax, 0x464c0c
jmp 0x42cba0
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x42cbcc
mov ecx, edi
call fcn.0042c4ee
test eax, eax
je 0x42cbe2
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0044a0a0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x450b0f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x450b34
cmp eax, edi
jge 0x450b2c
mov eax, esi
call fcn.004504c3
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x450b56
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x450b3b
cmp ecx, 4
jge 0x450b75
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x450b63
xor eax, eax
jmp 0x450b6b
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x450b59
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x450ba7
mov eax, 0x464c20
call fcn.0044e0e0
jmp 0x450be2
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x450bb7
mov eax, 0x464c0c
jmp 0x450ba0
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x450bcc
mov ecx, edi
call fcn.004504ee
test eax, eax
je 0x450be2
push edi
push dword [esi]
push dword [esi + 0x10]
call 0x46e0a0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x10011210
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x1017b63f
call fcn.10166ba4
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.1001118c
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.1001118c
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.10011161
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
call fcn.10011136
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.1001110b
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1001121b
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x1017b63f
call fcn.10166ba4
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.1001118c
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.1001118c
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.10011161
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
call fcn.10011136
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.1001110b
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1001126c
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x1017b63f
call fcn.10166ba4
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.1000fa93
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.1000fa93
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.1000fa93
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.1000fa6e
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.1000fa6e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10019d39
Capabilities:
Create directory

Disassembly:
mov eax, 0x1017c9aa
call fcn.10166ba4
sub esp, 0x18c
mov eax, dword [0x101cb280]
push esi
push 0
mov dword [ebp - 0x10], eax
push str.ScreenShot
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str..ScreenShotTantra
lea ecx, [ebp - 0x110]
call fcn.101521f0
and dword [ebp - 4], 0
call fcn.101691c1
lea eax, [ebp - 0x198]
push eax
call fcn.10168b52
lea eax, [ebp - 0x198]
push eax
call fcn.10168944
push eax
push str.__Y_m_d__H__M__S_
lea eax, [ebp - 0x190]
push 0x80
push eax
call fcn.10168929
add esp, 0x18
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x110]
call fcn.10152380
push 0x1018f104
lea ecx, [ebp - 0x110]
call fcn.10152380
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
lea edx, [ebp - 0x110]
push edx
call dword [eax + 0x38]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
mov esi, eax
call fcn.101521c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.10165cbe
leave
ret
Function at 0x1003a244
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.1003a06c
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, 0x100
push edi
add esi, 8
push 0
push esi
mov ebx, eax
call fcn.10165d70
add esp, 0xc
push edi
push esi
push ebx
call sub.IMM32.dll_ImmGetDescriptionA
push esi
mov ecx, 0x10a61680
call fcn.101520c0
cmp dword [0x10a19d54], 0
pop edi
sete al
pop esi
mov byte [0x10a19d68], al
xor eax, eax
pop ebx
ret

Function at 0x1003a4f1
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call fcn.10039ffe
mov ecx, edi
call fcn.1003a39a
mov eax, dword [0x10a19d54]
test eax, eax
je 0x1003a516
cmp eax, 4
jne 0x1003a59e
push esi
mov esi, 0x800
test dword [ebp + 0x10], esi
je 0x1003a59d
push ebx
push dword [edi]
call sub.IMM32.dll_ImmGetContext
push 0
push 0
push esi
push eax
mov dword [ebp - 4], eax
call sub.IMM32.dll_ImmGetCompositionStringA
mov ebx, eax
test ebx, ebx
je 0x1003a592
lea eax, [ebx + 4]
push eax
call fcn.10165744
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
je 0x1003a562
push ebx
push eax
push esi
push dword [ebp - 4]
call sub.IMM32.dll_ImmGetCompositionStringA
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov byte [eax + ebx], 0
lea esi, [edi + 0x108]
mov eax, dword [esi]
push ebx
push dword [ebp + 0x10]
lea eax, [eax + edi + 0x114]
push eax
call fcn.10166e90
add dword [esi], ebx
mov esi, dword [esi]
push dword [ebp + 0x10]
mov byte [esi + edi + 0x114], 0
call fcn.10167651
add esp, 0x10
push dword [ebp - 4]
push dword [edi]
call sub.IMM32.dll_ImmReleaseContext
pop ebx
pop esi
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1003a5ec
Capabilities:
Get keyboard layout

Disassembly:
push esi
push edi
push 4
xor edi, edi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sub.IMM32.dll_ImmGetProperty
or dword [esi + 0x71c], 0xffffffff
or dword [esi + 0x720], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov ecx, 0x10a61680
mov dword [esi], eax
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x718], edi
mov dword [esi + 0x724], edi
mov dword [esi + 0x728], edi
call fcn.10152020
mov ecx, esi
call fcn.1003a06c
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x10060cb5
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov byte [ecx + 0x108], 1
mov ecx, dword [0x10a1f6b0]
cmp byte [ecx + 0x13d], 1
je 0x10060cd0
jmp fcn.1011440e
ret

Function at 0x1006116b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x108], 1
jne 0x10061180
cmp byte [0x10a1f674], 3
jne 0x100611fc
mov eax, dword [0x10a1f6b0]
cmp byte [eax + 0x2434], 0
je 0x100611fc
mov ecx, dword [0x10a1f7a4]
push 0xee
call fcn.100951ef
test al, al
jne 0x100611fc
mov ecx, dword [0x10a1f7a4]
push 0xe1
call fcn.100951ef
test al, al
jne 0x100611fc
mov ecx, dword [0x10a1f7a4]
push 0xe8
call fcn.100951ef
test al, al
jne 0x100611fc
mov ecx, dword [0x10a1f7a4]
push 0xe9
call fcn.100951ef
test al, al
jne 0x100611fc
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0x10c]
add ecx, 0x2bf20
cmp eax, ecx
jbe 0x100611fc
mov ecx, esi
pop esi
jmp fcn.10060cb5
pop esi
ret
Function at 0x10086684
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x101cb280]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call fcn.1016a251
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
call fcn.10165cbe
leave
ret

Function at 0x10086745
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x10180358
call fcn.10166ba4
sub esp, 0x310
mov eax, dword [0x101cb280]
push esi
mov esi, ecx
cmp byte [esi + 4], 2
mov dword [ebp - 0x10], eax
push edi
jne 0x10086892
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x42c]
add ecx, 0x2bf20
cmp eax, ecx
jbe 0x10086892
lea ecx, [ebp - 0x310]
call fcn.101521d0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x210]
call fcn.101521d0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
call fcn.101521d0
mov ecx, dword [0x10a1f6c4]
lea eax, [ebp - 0x210]
push eax
push 0x890
mov byte [ebp - 4], 2
call fcn.10043240
cmp al, 1
jne 0x10086865
mov ecx, dword [0x10a1f6b0]
lea eax, [ebp - 0x318]
push eax
call fcn.1010fde8
push dword [ebp - 0x314]
lea eax, [ebp - 0x110]
push dword [ebp - 0x318]
push 0x10199768
push eax
call fcn.10152030
add esp, 0x10
lea ecx, [ebp - 0x110]
call fcn.10152000
push eax
lea ecx, [esi + 0x264]
call fcn.10152000
push eax
lea ecx, [ebp - 0x210]
call fcn.10152000
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.10152030
add esp, 0x10
call edi
sub esp, 0x100
mov dword [esi + 0x42c], eax
lea eax, [ebp - 0x310]
mov ecx, esp
mov dword [ebp - 0x31c], esp
push eax
call fcn.101521f0
mov ecx, dword [0x10a1f6e0]
call fcn.1012bc5c
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
call fcn.101521c0
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 0
call fcn.101521c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
call fcn.101521c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10165cbe
pop edi
pop esi
leave
ret
Function at 0x10093815
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10180f37
call fcn.10166ba4
push ecx
push ebx
push ebp
push esi
push edi
push 0x1008f5aa
push 0x1008f55e
mov edi, 0x12c
push edi
mov esi, ecx
push 0x131b8
push esi
mov dword [esp + 0x24], esi
call fcn.10167a02
and dword [esp + 0x1c], 0
push fcn.101521c0
mov ebp, fcn.101521d0
push ebp
push edi
mov ebx, 0x100
push ebx
lea eax, [esi + 0x16643a0]
push eax
call fcn.10167a02
push fcn.101521c0
push ebp
push edi
push ebx
lea eax, [esi + 0x1676fa0]
push eax
mov byte [esp + 0x30], 1
call fcn.10167a02
push fcn.101521c0
push ebp
push edi
push ebx
lea eax, [esi + 0x1689ba0]
push eax
mov byte [esp + 0x30], 2
call fcn.10167a02
push fcn.101521c0
push ebp
push edi
push ebx
lea eax, [esi + 0x169c7a0]
push eax
mov byte [esp + 0x30], 3
call fcn.10167a02
push 0x1008f5aa
push 0x1008f55e
push edi
push 0x131b8
lea eax, [esi + 0x16af3a0]
push eax
mov byte [esp + 0x30], 4
call fcn.10167a02
push fcn.101521c0
push ebp
push edi
push ebx
lea eax, [esi + 0x2d13740]
push eax
mov byte [esp + 0x30], 5
call fcn.10167a02
push fcn.101521c0
push ebp
push edi
push ebx
lea eax, [esi + 0x2d26340]
push eax
mov byte [esp + 0x30], 6
call fcn.10167a02
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1009d2d1
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x101810eb
call fcn.10166ba4
push ecx
push ebx
push esi
push edi
push 0x38
mov ebx, ecx
call fcn.101656a0
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
cmp ecx, eax
mov dword [ebp - 4], eax
je 0x1009d2fc
call fcn.100975c5
push dword [ebp + 0x68]
mov edx, dword [ebp + 8]
push dword [ebp + 0x64]
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0x60]
lea esi, [ebp + 0x34]
push dword [ebp + 0x5c]
mov dword [ebp - 0x10], eax
sub esp, 0x28
push 0xa
pop ecx
mov edi, esp
sub esp, 0x28
rep movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
mov edi, esp
lea esi, [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, eax
mov dword [eax + 0x30], edx
call fcn.1009cd96
lea ecx, [ebx + 0x74]
mov eax, dword [ecx + 4]
mov eax, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.1009b51e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x64