joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f48c
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 0x49f5b1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0049f294
mov esi, eax
mov eax, dword [0x69abbc]
cmp byte [eax], 0
je 0x49f559
mov eax, dword [0x69abc4]
call fcn.004b8fe0
call fcn.004b8ba0
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 [0x49f45c]
call fcn.004bd1b8
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 0x49f5cc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x49f595
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x69aa24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x69b0a0]
call fcn.004bd2ac
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 0x49f5b8
lea eax, [ebp - 4]
mov edx, dword [0x49f45c]
call fcn.004bd1c4
ret

Function at 0x4a061c
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 0x4a06f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004bb51c
lea eax, [ebp - 4]
call fcn.004bb684
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004bbe30
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4a06dc
mov eax, ebx
call fcn.004b899c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a06d5
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.004bbe30
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x4a06bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4a0704
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x4a06bf
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 0x4a06dc
mov eax, dword [ebp - 0x10]
call fcn.004b89b8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a06f9
lea eax, [ebp - 4]
call fcn.004bb0f4
ret
Function at 0x4a11b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004bb5c4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004bed74
mov edi, eax
cmp edi, 0x104
jbe 0x4a115b
mov eax, edi
add eax, eax
call fcn.004b899c
mov esi, eax
jmp 0x4a115d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004bed74
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4a1196
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4a1180
mov eax, esp
cmp esi, eax
je 0x4a11a3
mov eax, esi
call fcn.004b89b8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4a11dc
cmp bl, 0
je 0x4a11d8
cmp bl, 0x41
jl 0x4a11d3
cmp bl, 0x5a
jg 0x4a11d3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4a11b7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4a111c

Function at 0x4a19dc
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004bbedc
add esp, 0x800
pop ebx
ret

Function at 0x4b8e0c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004bb0f4
test esi, esi
jne 0x4b8e42
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004bb27c
jmp 0x4b8e60
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004b8cf0
mov edi, eax
test esi, esi
je 0x4b8e60
cmp dword [ebx], 0
je 0x4b8e60
dec esi
jmp 0x4b8e49
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4b9f50
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.004ba33c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4ba0dc
test edi, edi
je 0x4ba0dc
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4ba013
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4b9fee
cmp edi, 0xffffffff
je 0x4b9faf
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4b9faf
mov byte [esp], 0
jmp 0x4ba0dc
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4b9fee
test ebx, ebx
jne 0x4b9fe4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004b6df0
test eax, eax
jne 0x4b9fe4
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4ba0dc
call 0x4ba460
dec ebp
test ebp, ebp
jg 0x4b9f94
cmp edi, 0xffffffff
je 0x4ba013
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4ba011
mov byte [esp], 0
jmp 0x4ba0dc
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4b9f5e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004b6df0
cmp ebx, eax
jne 0x4ba013
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004ba14c
mov edx, eax
mov ebx, dword [0x69e298]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4ba07a
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4ba078
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4ba07a
xor edi, edi
cmp byte [esp], 0
je 0x4ba0a3
mov ebx, dword [esi]
test bl, 1
jne 0x4ba0bc
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004b6df0
cmp ebx, eax
jne 0x4ba080
mov byte [esp + 1], 1
jmp 0x4ba0bc
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004b6df0
cmp ebx, eax
jne 0x4ba0a3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4ba02d
cmp byte [esp], 0
je 0x4ba0dc
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 0x4bad8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x69d9f8], 0
je 0x4badf3
cmp word [0x69dce4], 0xd7b2
jne 0x4badb5
cmp dword [0x69dcec], 0
jbe 0x4badb5
mov eax, 0x69dce0
call dword [0x69dcfc]
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
mov eax, 0x4bae20
call fcn.004bba94
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x693830], 0
jne 0x4bae0f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4bafb0
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 [0x693804], 0
je 0x4bafdb
mov edx, edi
mov eax, esi
call dword [0x693804]
mov ebx, eax
jmp 0x4bafec
mov eax, 8
call fcn.004b899c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x69d9f9], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4baf78
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 0x4bb021
mov edx, 8
mov eax, ebx
call fcn.004b89b8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4bd768
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 0x4bd8cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004bb0f4
cmp si, word [0x6941fc]
jb 0x4bd800
cmp si, word [0x6943fc]
ja 0x4bd800
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4bd800
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6941fc]
jae 0x4bd7da
mov edi, ebx
dec edi
jmp 0x4bd7fb
cmp si, word [ebx*8 + 0x6941fc]
jbe 0x4bd7ea
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4bd7fb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x694200]
call fcn.004bd678
jmp 0x4bd800
cmp edi, dword [ebp - 8]
jae 0x4bd7c4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4bd8af
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4bd8af
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.004bbedc
push dword [ebp - 0x160]
push 0x4bd8e8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004bbedc
push dword [ebp - 0x164]
push 0x4bd8f8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004bbedc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004bc114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd8d4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004bb154
ret
Function at 0x4bda80
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 0x4bdb83
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6a0530
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x6a0548]
jne 0x4bdacc
mov eax, esi
mov edx, 0x6a054a
mov ecx, 0x55
call fcn.004bbedc
push 0x6a0530
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4bdb6d
push 0x6a0530
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.004bb0f4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4bdb3b
cmp byte [0x6a052c], 0
je 0x4bdb00
mov edx, esi
mov eax, ebx
call fcn.004bd964
jmp 0x4bdb3b
mov edx, esi
mov eax, ebx
call fcn.004bd768
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4bdb3b
cmp dword [esi], 0
je 0x4bdb24
mov eax, esi
mov edx, 0x4bdb9c
call fcn.004bc034
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004bd768
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004bc034
push 0x6a0530
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x6a0548], bx
push 0xaa
mov eax, dword [esi]
call fcn.004bbe30
push eax
push 0x6a054a
call sub.KERNEL32.DLL_lstrcpynW
push 0x6a0530
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdb8a
lea eax, [ebp - 4]
call fcn.004bb0f4
ret
Function at 0x4bddb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004bb1d8
xor eax, eax
push ebp
push 0x4bdfdd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4bddf8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4bde12
push 0x105
mov eax, dword [ebp - 4]
call fcn.004bbe30
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4bdfc7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4bdfec
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4bdee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4bdfec
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4bdee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4be028
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4bdee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4be028
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4bdee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4be05c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4bdee1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4be090
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4bdfc7
xor eax, eax
push ebp
push 0x4bdfc0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004bdbc4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4bdf50
mov eax, dword [ebp - 0x10]
call fcn.004b899c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004bbe88
jmp 0x4bdf9b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4be0d0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4bdf9b
mov eax, dword [ebp - 0x10]
call fcn.004b899c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4be0d0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004bbe88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdfc7
cmp dword [ebp - 8], 0
je 0x4bdfb6
mov eax, dword [ebp - 8]
call fcn.004b89b8
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdfe4
lea eax, [ebp - 4]
call fcn.004bb0f4
ret
Function at 0x4be2c4
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.004bb1d8
xor eax, eax
push ebp
push 0x4be384
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
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.004bbedc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004bc08c
mov eax, dword [ebx]
call fcn.004be18c
test al, al
jne 0x4be361
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004bbedc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004bc08c
mov eax, dword [ebx]
call fcn.004be18c
test al, al
jne 0x4be361
mov eax, ebx
call fcn.004bb0f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be38b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004bb154
lea eax, [ebp - 4]
call fcn.004bb0f4
ret

Function at 0x4bed94
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 0x4beeb8
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x69e2b4], 1
jae 0x4bef6b
push 0x400
call sub.KERNEL32.DLL_SetThreadLocale
call fcn.004b8758
call fcn.004bd510
mov byte [0x69381c], 2
mov dword [0x69d9b4], 0x674014
mov dword [0x69d9b8], 0x674032
mov byte [0x69d9fa], 2
call fcn.004bed94
mov dword [0x69da00], eax
mov dword [0x69d9a0], 0x4bcc04
call fcn.004b93b0
call fcn.004b93cc
mov word [0x69da08], 0xd7b0
mov word [0x69dce4], 0xd7b0
mov word [0x69dfc0], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x69d9ec], eax
call fcn.004b6e24
mov dword [0x69d9e8], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x69e29c], eax
mov dword [0x69e2a0], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x69d9e0], eax
call fcn.004beda8
ret

Function at 0x51151f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x511582
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov edi, dword [ebx + eax + 0x78]
add edi, ebx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
je 0x511580
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ecx + esi*4]
add eax, ebx
mov dword [esp], eax
call fcn.005114fb
test al, al
je 0x51157d
lea edx, [esi + esi]
add edx, ebx
add edx, dword [edi + 0x24]
movzx eax, word [edx]
lea eax, [ebx + eax*4]
add eax, dword [edi + 0x1c]
add ebx, dword [eax]
jmp 0x511582
inc esi
jmp 0x511548
xor ebx, ebx
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5115f4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add ebx, 0xc
mov ebx, dword [ebx]
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x51160f
test edi, edi
je 0x51161e
mov dword [edi], eax
test esi, esi
je 0x511631
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.005115c3
cmp eax, esi
jne 0x51160f
mov eax, dword [ebx + 0x18]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x51163c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x20]
push ebx
sub esp, 0x2c
mov dword [ebp - 0x20], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.005115f4
mov dword [esp + 4], 0
mov edi, eax
mov eax, dword [0x6991cc]
mov dword [esp], eax
call fcn.005115f4
mov esi, dword [0x699204]
mov ebx, eax
cmp dword [esi], 0
je 0x5116b1
mov ecx, dword [ebp - 0x20]
mov dword [esp], ecx
call fcn.005114e7
cmp byte [esi], al
je 0x51169b
cmp byte [esi + 1], al
jne 0x511797
mov dword [esp], ecx
call fcn.005115a9
cmp dword [esi + 4], eax
je 0x5116b1
cmp dword [esi + 8], eax
jne 0x511797
mov eax, dword [0x6991dc]
mov dword [ebp - 0x1c], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push edx
push edx
xor edx, edx
mov ecx, dword [0x6991e0]
cmp ecx, edx
jbe 0x5116f2
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [eax + edx], ecx
mov ecx, dword [0x6991f0]
add edx, ecx
jmp 0x5116d2
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0051151f
mov esi, eax
test eax, eax
je 0x511797
mov ebx, dword [0x6991e4]
lea ecx, [ebp - 0x1c]
mov edx, dword [0x6991e0]
mov dword [esp + 0xc], ecx
mov eax, dword [0x6991d4]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call esi
mov eax, dword [0x6991f4]
mov edx, 8
sub esp, 0x10
add edi, eax
mov ecx, dword [edi + 4]
mov eax, dword [0x6991d4]
cmp eax, edx
jbe 0x511759
mov eax, dword [edi + edx]
add eax, ecx
mov dword [ebx + edx], eax
mov eax, dword [0x6991f0]
add edx, eax
jmp 0x51173f
mov eax, dword [0x6991fc]
lea edi, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [0x6991d4]
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
call esi
mov eax, dword [0x6991f8]
mov edx, dword [0x6991f8]
sub esp, 0x10
add eax, dword [ebx + 0xc]
add eax, ebx
add ebx, edx
mov dword [esp], ebx
call eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x533818
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.005338c8
test eax, eax
je 0x533853
push 0x100
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.005338c8
push eax
call sub.USER32.DLL_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004bb27c
jmp 0x533861
mov ecx, esi
mov edx, 0x533880
mov eax, ebx
call fcn.00533764
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.004bb4d4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x5744f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.004bb0f4
push 0
movzx eax, bl
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x574542
push 0x100
lea eax, [esp + 4]
push eax
push ebx
call sub.USER32.DLL_GetKeyNameTextW
test eax, eax
je 0x57453b
mov eax, esi
mov edx, esp
mov ecx, 0x100
call fcn.004bbedc
jmp 0x574542
mov eax, esi
call fcn.004bb0f4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x579cb8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x579e17
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6951e4], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x475c88]
call fcn.00476dd4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x579ded
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00476f54
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004bbedc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x579e30
call fcn.004bc08c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004771e0
test al, al
je 0x579dd7
lea ecx, [ebp - 4]
mov edx, 0x579ea4
mov eax, dword [ebp - 0xc]
call fcn.00477a68
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004a1e08
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x579dd7
xor edx, edx
push ebp
push 0x579dd0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x579ebc
mov eax, dword [ebp - 8]
push eax
call fcn.004b0480
test eax, eax
je 0x579db9
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x579db9
call fcn.00579c44
test eax, eax
je 0x579da9
mov eax, dword [ebx + 0x50]
jmp 0x579dac
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6951e4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x579dd7
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x579df4
mov eax, dword [ebp - 0xc]
call fcn.004b9588
ret

Function at 0x579f20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x579f67
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x579f4a
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x579f5b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x579f67
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x59535c
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 0x595362
ret