joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7f45cf
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x17e0]
mov eax, 0x1860
call fcn.6d7f99b0
mov eax, dword [0x6d808560]
xor eax, ebp
mov dword [ebp + 0x17dc], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x17e8]
mov esi, 0x7ff
xor ebx, ebx
push esi
lea eax, [ebp + 0x7dd]
push ebx
push eax
mov byte [ebp + 0x7dc], bl
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp - 0x23]
push ebx
push eax
mov byte [ebp - 0x24], bl
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp + 0xfdd]
push ebx
push eax
mov byte [ebp + 0xfdc], bl
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xfdc]
push eax
push edi
mov dword [ebp - 0x28], 0x800
call fcn.6d7f38c4
add esp, 0x34
test eax, eax
jne 0x6d7f465b
xor eax, eax
jmp 0x6d7f475f
lea eax, [ebp + 0xfdc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp byte [ebp + eax + 0xfdb], 0x5c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x6d7f468a
lea eax, [ebp + 0xfdc]
push eax
push 0x6d7ff210
push eax
call esi
add esp, 0xc
push str.jqs.exe
lea eax, [ebp + 0xfdc]
push eax
lea eax, [ebp + 0x7dc]
push str._sbin_s
push eax
call esi
lea eax, [ebp + 0x7dc]
push eax
call fcn.6d7f9c30
add esp, 0x14
test eax, eax
je 0x6d7f4654
call fcn.6d7f9c30
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp + 0x7dc]
push eax
xor edi, edi
lea eax, [ebp - 0x24]
push str.__s___unregister
inc edi
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], edi
call esi
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
push 0x2000000
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6d7f4654
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x8000008
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, ebx
je 0x6d7f4654
push 0x7530
push dword [ebp - 0x3c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov eax, edi
mov ecx, dword [ebp + 0x17dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d7f98d8
add ebp, 0x17e0
leave
ret
Function at 0x6d7f57d2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x6d808560]
xor eax, ebp
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xb8]
push esi
mov esi, dword [ebp + 0xbc]
push 0x6d7ff3e0
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x6d7f593d
push esi
call dword [sym.imp.MSVCR100.dll__chdir]
pop ecx
test eax, eax
jne 0x6d7f593d
mov esi, dword [sym.imp.MSVCR100.dll_fread]
push ebx
push dword [ebp - 0x7c]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x78]
push 0x1e
push eax
call esi
add esp, 0x10
cmp eax, ebx
jne 0x6d7f5932
push edi
cmp dword [ebp - 0x78], 0x4034b50
jne 0x6d7f5931
cmp word [ebp - 0x70], 0
jne 0x6d7f5931
movzx eax, word [ebp - 0x5e]
push dword [ebp - 0x7c]
movzx edi, word [ebp - 0x5e]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x6d7f5931
lea eax, [ebp - 0x58]
push eax
mov byte [ebp + edi - 0x58], 0
call fcn.6d7f9c30
cmp word [ebp - 0x5c], 0
pop ecx
jbe 0x6d7f58ab
movzx eax, word [ebp - 0x5c]
push ebx
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x6d7f5931
movzx eax, word [ebp - 0x5e]
cmp byte [ebp + eax - 0x59], 0x2f
je 0x6d7f5911
lea eax, [ebp - 0x58]
push 0x6d7ff3e4
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
je 0x6d7f5931
push dword [ebp - 0x62]
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp - 0x7c]
mov edi, eax
push dword [ebp - 0x62]
push ebx
push edi
call esi
add esp, 0x14
cmp eax, dword [ebp - 0x62]
jne 0x6d7f592a
push dword [ebp - 0x80]
push dword [ebp - 0x62]
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
push edi
cmp eax, dword [ebp - 0x62]
jne 0x6d7f592b
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop ecx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push ebx
push 0x1e
push eax
call esi
add esp, 0x10
cmp eax, ebx
je 0x6d7f5845
jmp 0x6d7f5931
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
pop esi
call fcn.6d7f98d8
add ebp, 0xb0
leave
ret
Function at 0x6d7f82f8
Capabilities:
Query environment variable

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], ebx
je 0x6d7f831b
push 0x104
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x6d7f831b
mov bl, 1
mov al, bl
pop ebx
ret

Function at 0x6d7f8686
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x6d7fb690
call fcn.6d7f991a
mov eax, dword [ebp + 8]
push 0x104
push eax
xor edi, edi
push edi
push edi
xor ecx, ecx
push 0x6d7fc7f4
mov word [eax], cx
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x6d7f86fa
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.6d7f91ca
pop ecx
pop ecx
push edi
push esi
call fcn.6d7f9c30
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.6d7f8f38
push eax
push esi
push 0x6d7ffdac
call fcn.6d7f91ca
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x6d7f86f3
ret
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x6d7f87ab
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x6d7f8757
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x6d7f86be
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x6d7f87ab
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x6d7f87ab
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x6d7f86be
mov eax, esi
call fcn.6d7f9986
ret
Function at 0x6d7f8924
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x6d808560]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
push ebx
xor ebx, ebx
push esi
mov esi, 0x20019
push esi
push 0x6d7fff18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x50], ebx
call fcn.6d7f9c30
test eax, eax
je 0x6d7f89bf
lea ecx, [ebp - 0x74]
call fcn.6d7e2c8b
lea ecx, [ebp - 0x5c]
call fcn.6d7e2c8b
lea ecx, [ebp - 0x68]
call fcn.6d7e2c8b
lea ecx, [ebp - 0x80]
call fcn.6d7e2c8b
xor eax, eax
mov ecx, dword [ebp + 0x3b4]
pop esi
xor ecx, ebp
pop ebx
call fcn.6d7f98d8
add ebp, 0x3b8
leave
ret
push esi
push 0x6d7fff24
push dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
call fcn.6d7f9c30
test eax, eax
jne 0x6d7f8986
push esi
push 0x6d7fff30
push dword [ebp - 0x68]
lea ecx, [ebp - 0x5c]
call fcn.6d7f9c30
test eax, eax
je 0x6d7f8a0d
lea ecx, [ebp - 0x74]
call fcn.6d7e2c8b
lea ecx, [ebp - 0x5c]
call fcn.6d7e2c8b
lea ecx, [ebp - 0x68]
call fcn.6d7e2c8b
lea ecx, [ebp - 0x80]
call fcn.6d7e2c8b
mov eax, ebx
jmp 0x6d7f89a8
mov esi, 0x400
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x6d7f89e9
push edi
inc dword [ebp - 0x50]
mov edi, dword [ebp + 0x3c0]
lea eax, [ebp - 0x4c]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x6d7f8a60
cmp cl, bl
je 0x6d7f8a5c
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x6d7f8a60
add eax, 2
add edi, 2
cmp cl, bl
jne 0x6d7f8a40
xor eax, eax
jmp 0x6d7f8a65
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea eax, [ebp - 0x4c]
je 0x6d7f8a8e
push esi
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x6d7f8a34
jmp 0x6d7f8ac4
push 0x20019
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.6d7f9c30
test eax, eax
jne 0x6d7f8ac4
push str.UseNewJavaPlugin
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x50], ebx
call fcn.6d7f9c30
test eax, eax
jne 0x6d7f8ac4
xor ebx, ebx
cmp dword [ebp - 0x50], 1
sete bl
pop edi
jmp 0x6d7f89e9
Function at 0x6d7f94e8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6d80871c], 0
push esi
push edi
jne 0x6d7f945e
call fcn.6d7f93ca
test eax, eax
je 0x6d7f94a3
mov eax, dword [0x6d80871c]
cmp eax, 1
jne 0x6d7f947f
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6d7f94a3
jmp 0x6d7f94e5
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x6d7f94e5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x6d7f94a7
xor eax, eax
jmp 0x6d7f94e5
mov eax, dword [esi]
push dword [0x6d80871c]
call edi
mov edi, eax
test edi, edi
je 0x6d7f94c9
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x6d7f94e5
lea edi, [esi + 0xff0]
push esi
push dword [0x6d80871c]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x6d7f94cf
mov eax, esi
pop edi
pop esi
ret
jmp 0x6d7f944a

Function at 0x6d7f98d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d808560]
jne 0x6d7f98e2
repz ret
jmp fcn.6d7f9fe2

Function at 0x6d7f9c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x6d7f9c3f
pop dword [ebp - 0x38]
mov eax, 0x537cda1c
add eax, 0x1a02c223
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x37f3f
push 0
mov eax, 0x3f06f438
sub eax, 0xd18732c8
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x4485
xor edx, edx
add edx, eax
mov edi, 0xd617e7c6
add edi, 0x976b5a3a
add edi, dword [ebp - 0x38]
mov esi, 0x8bb393fd
sub dword [ebp - 0x24], 0x7e84ffbe
mov ebx, dword [edi]
xor dword [ebp - 0x1c], 0xb063ac26
sub ebx, esi
sub dword [ebp - 0x10], esi
mov dword [edx], ebx
xor dword [ebp - 0x24], eax
add edx, 0x3977c70a
add edx, 0xc68838fa
add edi, 4
loop 0x6d7f9c94
add eax, 0x104e7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x175d81c3
add ecx, 0x56207e3d
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2af8633a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x10a35eef
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402804
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402841
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402861
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403cd4
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x40294c
Capabilities:
Accept command line arguments

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

Function at 0x402cac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d24
xor eax, eax
push ebp
push 0x402d1d
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 0x402d60
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 0x402d24
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x40508c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405248
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4050ed
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405264
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40515f
xor eax, eax
push ebp
push 0x405158
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404ee4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405141
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405284
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40515f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405240
cmp byte [ebp - 0xd], 0
jne 0x4051a1
cmp byte [ebp - 0x12], 0
je 0x405240
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4051ba
dec ebx
cmp byte [ebx], 0x2e
je 0x4051c9
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4051b9
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405240
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4051f6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405240
cmp byte [ebp - 0xd], 0
je 0x405240
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405240
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408cb0
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 0x408ce9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b8c
jmp 0x408cf2
mov eax, ebx
mov edx, esi
call fcn.00403af8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408cfc
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 0x408d1d
mov al, byte [esp]
jmp 0x408d1f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413ffc
Capabilities:
Encode data using xor

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

Function at 0x4166d8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x416729
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x416710
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x416700
jmp 0x416729
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x416711
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422338
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x449778], 0
sete dl
or al, dl
jne 0x422478
mov eax, dword [0x44977c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x449778]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x422447
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x449778]
call fcn.0040da8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42243f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42243f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42243f
mov eax, dword [ebp - 0x14]
call fcn.0042a648
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42243f
push ebp
call fcn.004222f4
pop ecx
test al, al
jne 0x42243f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x4223fb
mov eax, dword [ebp - 0x14]
call fcn.00428fd4
dec eax
jle 0x42243f
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00403010
cmp byte [ebp - 1], 0
je 0x42243f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42243f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44977c]
call fcn.00421b40
inc edi
dec esi
jne 0x42238e
mov eax, dword [0x44977c]
cmp dword [eax + 8], 0
jle 0x42245f
mov eax, dword [0x44977c]
call fcn.00421bd0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x422478
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042215c
pop ecx
test al, al
jne 0x422478
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427fe0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x428011
je 0x42806b
sub eax, 7
je 0x428032
dec eax
je 0x42805c
sub eax, 0x17
je 0x428110
jmp 0x42814e
add eax, 0xffffff00
sub eax, 9
jb 0x4280fc
add eax, 0xffffff09
sub eax, 0xb
jb 0x4280c4
jmp 0x42814e
mov eax, ebx
call fcn.00439c48
mov edi, eax
test edi, edi
je 0x4281ae
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4281b7
jmp 0x4281ae
test byte [ebx + 0x44], 0x20
jne 0x4281b7
jmp 0x4281ae
mov edx, esi
mov eax, ebx
call fcn.004255e0
cmp dword [esi + 0xc], 0xffffffff
jne 0x4281b7
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406c38
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00424114
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00427eb8
test eax, eax
je 0x4281b7
mov dword [esi + 0xc], 1
jmp 0x4281b7
mov edx, esi
mov eax, ebx
call fcn.00427f4c
test al, al
je 0x4281ae
cmp dword [esi + 0xc], 0
jne 0x4281b7
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0042a648
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x4281b7
mov eax, ebx
call fcn.00424c7c
test al, al
jne 0x4281b7
jmp 0x4281ae
mov eax, ebx
call fcn.0042a648
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x4281ae
cmp dword [0x448720], 0
je 0x4281ae
mov eax, dword [0x448720]
cmp ebx, dword [eax + 0x24]
jne 0x4281ae
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x448720]
call fcn.00425514
jmp 0x4281ae
mov eax, dword [0x449740]
cmp byte [eax + 0x20], 0
je 0x4281ae
mov eax, dword [0x449740]
cmp dword [eax + 0x1c], 0
je 0x4281ae
mov eax, dword [esi]
mov edx, dword [0x449740]
cmp eax, dword [edx + 0x1c]
jne 0x4281ae
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00439b8c
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00403010
jmp 0x4281b7
mov edx, esi
mov eax, ebx
call fcn.004255e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret