joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10af5738
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x10b1e210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x26c]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x280], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x284], eax
movsd dword es:[edi], dword [esi]
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x26c]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x18]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x54]
push eax
push 0x10af2440
mov esi, 0x104
lea eax, [ebp - 0x25c]
push esi
push eax
call fcn.10af4e38
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
add esp, 0x10
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x25c]
push eax
push SysReAllocStringLen
call ebx
test eax, eax
je 0x10af57d5
or eax, 0x80070000
jmp 0x10af593e
push edi
mov edi, 0x10af2438
push edi
lea eax, [ebp - 0x25c]
push esi
push eax
call fcn.10af4e38
add esp, 0x10
push 0x208
lea eax, [ebp - 0x25c]
push eax
push 1
push 0
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
mov dword [ebp - 0x278], eax
je 0x10af5826
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x278]
jmp 0x10af57cb
push dword [ebp - 0x284]
lea eax, [ebp - 0x25c]
push edi
push esi
push eax
call fcn.10af4e38
add esp, 0x10
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x270]
call ebx
mov ebx, eax
test ebx, ebx
je 0x10af586c
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10af57cb
push dword [ebp - 0x27c]
lea eax, [ebp - 0x25c]
push edi
push esi
push eax
call fcn.10af4e38
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x25c]
push eax
push 1
push 0
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
mov dword [ebp - 0x278], eax
je 0x10af58d3
push dword [ebp - 0x270]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x274]
call esi
jmp 0x10af581e
push dword [ebp - 0x280]
lea eax, [ebp - 0x25c]
push edi
push esi
push eax
call fcn.10af4e38
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x25c]
push eax
push 1
push 0
push 0x10af2418
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x270]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
push dword [ebp - 0x274]
call esi
test edi, edi
jle 0x10af593c
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10af9677
leave
ret 0x20
Function at 0x10af786e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x10af7888
mov eax, 0x80004003
jmp 0x10af794b
push esi
mov esi, dword [ebp + 8]
lea eax, [esi - 0xc]
neg eax
lea ecx, [esi + 4]
sbb eax, eax
and eax, ecx
push edi
push eax
lea ecx, [ebp + 8]
call fcn.10af5d91
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 8]
test edi, edi
je 0x10af793b
lea eax, [edi - 1]
test dword [ebp - 8], eax
jne 0x10af793b
cmp dword [esi + 0x44], 1
jne 0x10af78de
mov esi, 0x8004020f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x10af7949
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x30]
jge 0x10af78ed
mov esi, 0x80040210
jmp 0x10af78d1
mov eax, dword [ecx + 4]
add eax, dword [ecx + 0xc]
mov dword [ebp + 0x10], eax
cdq
idiv edi
test edx, edx
je 0x10af7902
sub edi, edx
add dword [ebp + 0x10], edi
mov eax, dword [ebp + 0x10]
sub eax, dword [ecx + 0xc]
push dword [ebp + 8]
mov dword [esi + 0x34], eax
mov dword [ebx + 4], eax
mov eax, dword [ecx]
mov dword [esi + 0x2c], eax
mov dword [ebx], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x38], eax
mov dword [ebx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0x3c], ecx
mov dword [ebx + 0xc], ecx
mov dword [esi + 0x40], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x10af7949
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x8004020e
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10af9af0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x10af9b03
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10af9aff
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x10af9b30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10af9b6f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10af9b65
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10af9b71
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10af9b55
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10b0b13f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push dword [ebp + 0x10]
push 0x50
call fcn.10b0a071
test eax, eax
mov dword [ebp - 4], eax
jne 0x10b0b15a
leave
ret
push ebx
push esi
push edi
cld
mov edi, dword [ebp - 4]
mov eax, 0
mov ecx, 0x50
or ecx, ecx
je 0x10b0b171
rep stosb byte es:[edi], al
mov eax, dword [ebp - 4]
push 0x14
xor esi, esi
pop ebx
mov eax, esi
shr eax, 2
mov edx, eax
mov eax, dword [ebp - 4]
shl edx, 2
add eax, edx
mov ecx, esi
sub ecx, edx
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
shl ecx, 3
shl edx, cl
or dword [eax], edx
inc esi
cmp esi, ebx
jb 0x10b0b179
and dword [ebp - 0x24], 0
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], 0x123174bb
mov dword [ebp - 0x48], 0x86521ff8
mov dword [ebp - 0x44], 0x98d2438b
mov dword [ebp - 0x40], 0x7966ce12
mov dword [ebp - 0x3c], 0xc5d92014
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0xc]
mov esi, 0x10b20454
mov ecx, dword [ebp - 8]
mov eax, edi
cld
or ecx, ecx
je 0x10b0b1ec
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
xor edx, edx
push 5
mov eax, ecx
pop esi
div esi
mov eax, dword [ebp + edx*4 - 0x4c]
xor dword [ebp + ecx*4 - 0x24], eax
inc ecx
cmp ecx, esi
jb 0x10b0b1ee
lea eax, [ebp - 0x24]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
cld
or ecx, ecx
je 0x10b0b225
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push dword [ebp + 0xc]
push 0
push 0x10b20ee4
push dword [0x10b20468]
push eax
push ebx
push dword [ebp - 4]
call fcn.10b12f21
lea eax, [ebp - 0x38]
mov byte [eax], 0
inc eax
dec ebx
jne 0x10b0b248
mov eax, dword [ebp - 4]
push 0x50
pop ecx
pop edi
pop esi
pop ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x10b0b258
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10b0a091
xor eax, eax
inc eax
leave
ret
Function at 0x10b0dd30
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x10b0de6b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x10b0de40
test eax, eax
jne 0x10b0de40
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x10b0dd80
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x10b0de6b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x10b0de40
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc
Function at 0x10b0ee5b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
je 0x10b0eea8
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, edx
sub ecx, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], esi
mov esi, dword [edi + edx]
mov ecx, dword [edx]
lea ebx, [ecx + esi]
add eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + edx], eax
mov ebx, ecx
xor ebx, esi
and ebx, eax
or ecx, esi
xor ebx, ecx
shr ebx, 0x1f
add edx, 4
dec dword [ebp + 0x14]
mov eax, ebx
jne 0x10b0ee7f
pop edi
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x10b0f0a0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
xor eax, eax
test edx, edx
je 0x10b0f0ed
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
sub ebx, esi
sub ecx, esi
push edi
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edx
mov edi, dword [ebx + esi]
mov edx, dword [esi]
mov ecx, edi
sub ecx, edx
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + esi], ecx
xor ecx, edi
xor edx, edi
or ecx, edx
xor ecx, edi
shr ecx, 0x1f
add esi, 4
dec dword [ebp + 0x14]
mov eax, ecx
jne 0x10b0f0c4
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10b142e6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.10b14265
test eax, eax
je 0x10b14327
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push 0x10af3b60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8
Function at 0x10b1acc5
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
xor edi, edi
cmp dword [ebp + 0x1c], edi
lea ebx, [esi + 0x1c]
mov dword [esi + 0x18], eax
mov dword [ebx], edi
je 0x10b1acf2
xor eax, eax
inc eax
cmp ecx, eax
jg 0x10b1acf4
xor eax, eax
push dword [ebp + 0xc]
mov dword [esi + 0x24], ecx
push edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.10af909f
mov al, byte [ebp + 0x28]
mov byte [esi + 0x4c], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 1
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
cmp dword [eax], edi
jl 0x10b1ae15
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push 0x10af22e4
push eax
call dword [ecx]
cmp eax, edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jl 0x10b1ae15
cmp dword [ebp + 0x10], edi
je 0x10b1ad75
mov ebx, dword [ebx]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x20]
cmp eax, edi
jl 0x10b1ad75
xor ecx, ecx
cmp eax, edi
sete cl
mov dword [ebp + 0x14], ecx
mov eax, dword [esi + 0x24]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [esi + 0x38], eax
jne 0x10b1ad9f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x8007000e
jmp 0x10b1ae15
cmp dword [ebp + 0x14], edi
je 0x10b1ae15
push edi
push 0x7fffffff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
cmp eax, edi
mov dword [esi + 0x2c], eax
jne 0x10b1adcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
or eax, 0x80070000
mov dword [ecx], eax
jmp 0x10b1ae15
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x10b1ade8
push dword [ebp + 0x20]
mov ecx, ebx
push edi
call fcn.10af8aaf
mov eax, ebx
jmp 0x10b1adea
xor eax, eax
cmp eax, edi
mov dword [esi + 0x28], eax
je 0x10b1ad94
lea eax, [ebp + 0x28]
push eax
push edi
push esi
push 0x10b1ac96
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x34], eax
je 0x10b1adb9
push dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x24
Function at 0x401010
Capabilities:
Suspend thread

Disassembly:
enter 0x5c, 0
lea edx, [esi + 0x8c]
adc edi, dword [edx - 0xdc]
push edx
push ebx
push edi
call fcn.004016fc
pop edx
push edx
push 0
call sub.KERNEL32.dll_SuspendThread
pop edx
push edx
call sub.KERNEL32.dll_GetTickCount
pop edx
add esp, 0x5c
pop ebp
ret 0x10

Function at 0x401040
Capabilities:
Suspend thread

Disassembly:
pushal
lea esi, str.msdxm.ocx
inc ebx
push 2
push 0
push esi
call sub.KERNEL32.dll_LoadLibraryExA
cmp eax, 3
jg 0x401304
popal
ret 0
enter 0x60, 0
mov esi, 0x4c1110
adc dword [ebp - 0x40], esi
push 0
call sub.KERNEL32.dll_SuspendThread
push esi
push dword [esi + 0xe0]
push dword [esi + 0x1a4]
call fcn.00401684
pop esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push dword [esi - 0xec]
pop ecx
call ecx
add esp, 0x60
pop ebp
ret

Function at 0x401124
Capabilities:
Get keyboard layout

Disassembly:
enter 0x30, 0
lea esi, [0x4c1170]
adc dword [esi + 0x20], esi
push esi
push dword [esi + 0x11c]
push eax
push edx
push edi
call fcn.004015c0
pop esi
push 0
call sub.USER32.dll_GetKeyboardLayout
call sub.KERNEL32.dll_GetSystemDefaultLangID
add esp, 0x30
pop ebp
ret 0xc

Function at 0x40116c
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x44, 0
lea edi, [esi - 0xe8]
cmp edi, 0x2157
jb 0x40116f
add byte [ebp - 0xe742], cl
inc dword [ecx + 0x2157ff]
add byte [edx - 0xf], dh
push 0
call sub.KERNEL32.dll_lstrlenA
push edi
push dword [edi + 0x134]
push dword [edi + 0xb8]
push dword [edi + 0x1dc]
call fcn.0040148c
pop edi
mov eax, 0
push eax
call sub.USER32.dll_GetKeyState
add esp, 0x44
pop ebp
ret 0x10

Function at 0x4011c0
Capabilities:
Accept command line arguments
Suspend thread

Disassembly:
enter 0x20, 0
lea edx, [0x4c117c]
adc dword [edx - 0x108], ecx
push edx
push ecx
push esi
push dword [edx + 0x1a0]
call fcn.004018a0
pop edx
push edx
call sub.KERNEL32.dll_GetCommandLineA
pop edx
push edx
push 0
call sub.KERNEL32.dll_SuspendThread
pop edx
add esp, 0x20
pop ebp
ret 8

Function at 0x4011f8
Capabilities:
Accept command line arguments

Disassembly:
enter 0x30, 0
lea eax, [0x4c102c]
xor ebx, dword [eax + 0x190]
push eax
push dword [eax + 0xf8]
push dword [eax + 0xc8]
call fcn.00401984
pop eax
push eax
call sub.KERNEL32.dll_GetCommandLineA
pop eax
push eax
call sub.KERNEL32.dll_GetConsoleCP
pop eax
add esp, 0x30
pop ebp
ret 0x10

Function at 0x401348
Capabilities:
Suspend thread

Disassembly:
enter 0x44, 0
lea edx, [esi - 0xdc]
sbb esi, edi
push edx
mov esi, 0
push esi
call sub.KERNEL32.dll_SuspendThread
pop edx
push edx
push eax
push esi
push edi
push edi
call fcn.00401240
pop edx
push edx
lea esi, [edx - 0x30]
push esi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x40136d
pop edx
add esp, 0x44
pop ebp
ret 8

Function at 0x40138c
Capabilities:
Get keyboard layout

Disassembly:
enter 0x20, 0
lea esi, [eax + 0x4c]
mov dword [ebp - 8], 0x51
push esi
push dword [esi + 0x9c]
push ecx
call fcn.0040155c
pop esi
push 0
call sub.USER32.dll_GetKeyboardLayout
mov ebx, 0
push ebx
call sub.KERNEL32.dll_lstrlenA
add esp, 0x20
pop ebp
ret 8
Function at 0x4013cc
Capabilities:
Suspend thread

Disassembly:
enter 0x40, 0
mov ebx, str.msdxm.ocx
add esi, dword [ebp - 0x18]
push ebx
push ecx
push eax
push esi
push dword [ebx + 0x1a4]
call fcn.00401a54
pop ebx
push 0
call sub.USER32.dll_DestroyMenu
push 0
call sub.KERNEL32.dll_SuspendThread
add esp, 0x40
pop ebp
ret 0xc

Function at 0x401518
Capabilities:
Accept command line arguments

Disassembly:
enter 0x30, 0
mov edx, 0x4c1028
and dword [edx + 0x30], esi
push edx
lea eax, [edx - 0x28]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x401525
pop edx
push edx
push dword [edx + 0x108]
push dword [edx + 0x150]
push dword [edx + 0xe4]
push edi
call fcn.00401914
pop edx
push edx
call sub.KERNEL32.dll_GetCommandLineA
pop edx
add esp, 0x30
pop ebp
ret 8

Function at 0x401590
Capabilities:
Suspend thread

Disassembly:
enter 0x2c, 0
mov esi, 0x4c11ac
mov eax, dword [ebp - 0x10]
push esi
push dword [esi + 0x5c]
push dword [esi + 0x8c]
call fcn.00401518
pop esi
call sub.KERNEL32.dll_GetTickCount
push 0
call sub.KERNEL32.dll_SuspendThread
add esp, 0x2c
pop ebp
ret 0x10

Function at 0x401604
Capabilities:
Accept command line arguments

Disassembly:
enter 0x50, 0
lea eax, [ecx + 0xd8]
sbb edx, ebx
push eax
push dword [eax + 0x58]
push esi
call fcn.004010dc
pop eax
push eax
push 0
call sub.KERNEL32.dll_GlobalUnlock
pop eax
push eax
call sub.KERNEL32.dll_GetCommandLineA
pop eax
add esp, 0x50
pop ebp
ret 0x10

Function at 0x40164c
Capabilities:
Log keystrokes via polling
Suspend thread

Disassembly:
enter 0x1c, 0
mov esi, 0x4c1124
mov dword [ebp - 0x18], edi
mov edi, 0
push edi
call sub.USER32.dll_GetKeyState
push esi
push edx
push dword [esi + 0x1c0]
push ecx
push dword [esi + 0x34]
call fcn.004016bc
pop esi
push 0
call sub.KERNEL32.dll_SuspendThread
add esp, 0x1c
pop ebp
ret 0xc

Function at 0x4016fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub ebp, ebp
add ebp, esp
sub esp, 0x44
mov eax, 0x4c1054
sub ebx, dword [ebp - 0x28]
push eax
push eax
mov ebx, esp
push ebx
mov edx, 9
push edx
xor dword [esp], 0x73
mov ebx, 0x57a
push ebx
add dword [esp], 0x3ee
push 0x9e6f5c2a
sub dword [esp], 0x9e234a12
mov ebx, 0xc21345e3
push ebx
push 0x3e2cda51
pop ebx
xadd dword [esp], ebx
mov ebx, dword [esp]
add esp, 4
mov ebx, dword [ebx]
call ebx
sub esp, 0xfffffffc
mov esi, dword [esp - 4]
pop eax
xor esi, esi
sbb esi, 0x4c1218
neg esi
mov dword [eax - 0x30], esi
lea ebx, [esi - 0x2b]
sub esi, esi
add esi, 0x402579
xor edx, edx
add edx, 0x568
mov ecx, dword [esi]
add esi, 3
inc esi
push ecx
pop dword [ebx + 0x2b]
add ebx, 4
mov dword [eax + 0xd8], 0x15
xor dword [ebx + 0x27], 0x9e1374a7
sub dword [ebx + 0x27], 0x4eac6723
sub edx, 4
cmp edx, 0
jne 0x401776
push eax
mov edi, 0
push edi
call sub.KERNEL32.dll_SetConsoleCP
pop eax
add esp, 0x44
pop ebp
ret 8

Function at 0x40180c
Capabilities:
Suspend thread

Disassembly:
enter 0x4c, 0
mov eax, 0x4c10b8
adc ecx, 0xd
push eax
mov ebx, 0
push ebx
call sub.KERNEL32.dll_SuspendThread
pop eax
push eax
push edi
push dword [eax + 0x9c]
push dword [eax + 0x150]
push edi
call fcn.00401870
pop eax
push eax
call sub.KERNEL32.dll_GetTickCount
pop eax
add esp, 0x4c
pop ebp
ret 0x10
Function at 0x401870
Capabilities:
Get keyboard layout

Disassembly:
enter 0x3c, 0
lea esi, [0x4c110c]
xor edi, 0x2c
push 0
call sub.KERNEL32.dll_SetConsoleCP
push esi
push ecx
push ecx
call fcn.00401348
pop esi
mov ebx, 0
push ebx
call sub.USER32.dll_GetKeyboardLayout
add esp, 0x3c
pop ebp
ret 0x10

Function at 0x4018e8
Capabilities:
Accept command line arguments
Log keystrokes via polling

Disassembly:
enter 0x2c, 0
mov edi, 0x4c11a8
adc edx, 0xf4d62cac
push 0
call sub.USER32.dll_GetKeyState
push edi
push esi
push ebx
push esi
call fcn.00401acc
pop edi
call sub.KERNEL32.dll_GetCommandLineA
add esp, 0x2c
pop ebp
ret 0xc

Function at 0x401914
Capabilities:
Get keyboard layout

Disassembly:
enter 0x5c, 0
lea edi, [edx + 0x100]
sub dword [edi - 0xc4], esi
call sub.KERNEL32.dll_GetConsoleCP
push edi
push esi
push dword [edi + 0x168]
push dword [edi + 0x80]
call fcn.0040194c
pop edi
push 0
call sub.USER32.dll_GetKeyboardLayout
add esp, 0x5c
pop ebp
ret 0x10

Function at 0x401984
Capabilities:
Log keystrokes via polling

Disassembly:
enter 0x28, 0
mov ecx, 0x4c10f8
add byte [ecx + 0x4c10f8], bh
cmp ecx, 0xbde0
jb 0x401987
push ecx
push dword [ecx + 0x64]
push dword [ecx + 0xc0]
push ebx
push dword [ecx + 0x84]
call fcn.00401604
pop ecx
push ecx
mov edx, 0
push edx
call sub.KERNEL32.dll_CloseHandle
pop ecx
push ecx
mov ebx, 0
push ebx
call sub.USER32.dll_GetKeyState
pop ecx
add esp, 0x28
pop ebp
ret 8

Function at 0x4019d0
Capabilities:
Accept command line arguments

Disassembly:
enter 0x4c, 0
lea ebx, [eax - 0x108]
and dword [ebx + 0x84], esi
call sub.KERNEL32.dll_GetCommandLineA
push ebx
push dword [ebx + 0x98]
push dword [ebx + 0x1ec]
push edx
call fcn.0040164c
pop ebx
mov eax, 0
push eax
call sub.USER32.dll_DestroyMenu
add esp, 0x4c
pop ebp
ret 0xc