joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435755
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00431f19
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00431f19
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4357cc
cmp word [ecx], dx
je 0x4357cc
mov eax, dword [0x46033c]
push edi
dec eax
push eax
push 0x460228
call fcn.004356f4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43583f
cmp word [eax], dx
je 0x43583f
mov eax, dword [edi]
test eax, eax
je 0x4357f0
cmp word [eax], dx
je 0x4357f0
lea eax, [ebp - 0x10]
push eax
call fcn.004350c2
jmp 0x4357f9
lea eax, [ebp - 0x10]
push eax
call fcn.0043515d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x435869
mov eax, dword [0x460224]
push dword [ebp - 0x14]
dec eax
push eax
push 0x45ff18
call fcn.004356f4
add esp, 0xc
test al, al
je 0x435869
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x435834
cmp word [eax], di
je 0x435834
lea eax, [ebp - 0x10]
push eax
call fcn.004350c2
pop ecx
jmp 0x43586b
lea eax, [ebp - 0x10]
push eax
call fcn.0043515d
jmp 0x435831
mov eax, dword [edi]
test eax, eax
je 0x435856
cmp word [eax], dx
je 0x435856
lea eax, [ebp - 0x10]
push eax
call fcn.00435077
pop ecx
jmp 0x435869
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x435934
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00435579
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x435934
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x435934
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x435934
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4358c1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00436003
test ebx, ebx
je 0x43592f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00436003
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435934
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435934
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042a460
add esp, 0x10
xor eax, eax
inc eax
jmp 0x435936
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420701
leave
ret
Function at 0x435e06
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x461320
push 0x461318
push str.FlsAlloc
push 0x1f
call fcn.00435c71
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435e3a
push dword [ebp + 8]
mov ecx, esi
call dword [0x44026c]
call esi
jmp 0x435e40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x435e84
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x461330
push 0x461328
push str.FlsGetValue
push 0x21
call fcn.00435c71
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435ebb
push dword [ebp + 8]
mov ecx, esi
call dword [0x44026c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x435ec3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x461338
push 0x461330
push str.FlsSetValue
push 0x22
call fcn.00435c71
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435efd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44026c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x437e44
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x437e8f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00437fdf
test al, al
jne 0x437e89
sub edx, 2
cmp edx, edi
jne 0x437e6f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x437eb1
lea eax, [edi + 2]
cmp edx, eax
je 0x437eb1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00437d90
add esp, 0x10
jmp 0x437fab
push esi
lea ecx, [ebp - 0x255]
call fcn.00437fdf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x437ef4
push dword [ebp - 0x25c]
jmp 0x437ea1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x437f31
cmp word [ebp - 0x226], 0
je 0x437f52
cmp word [ebp - 0x226], ax
jne 0x437f31
cmp word [ebp - 0x224], 0
je 0x437f52
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00437d90
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x437f9e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x437f0b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x437f86
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x437fab
push 0x437bc0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042f1a0
add esp, 0x10
jmp 0x437f7b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420701
leave
ret

Function at 0x4380f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x438101
pop esi
ret
push ebx
push edi
push esi
call fcn.004380b9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004309cd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x438129
push ebx
push esi
push edi
call fcn.00423850
add esp, 0xc
push 0
call fcn.00430993
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4384f9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043813e
Function at 0x43d2d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43d2fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d2fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100032bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011440]
jne 0x100032c6
repz ret
jmp fcn.1000356d
Function at 0x100040e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x10011414], 0x206c
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10011410], 0x8b9
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000413b
mov dword [0x10011414], 0x10e8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1000417d
jmp 0x10004194
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1000419b
jmp 0x10004164
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10004120
jmp 0x10004194
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1000413b
jmp 0x1000419b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x10004208
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x10004208
mov eax, dword [ebp - 0x1c]
mov dword [0x10011414], 0x172
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x10004194
mov dword [0x10011414], 0x2673
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10004194
mov dword [0x10011414], 0x3a7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10004194
mov dword [0x10011410], 0x20d2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10004153
jmp 0x10004194
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x100059f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x5e9
mov dword [0x10011414], 0x8d0
mov dword [0x10011418], 0
mov dword [0x1001141c], 0
mov dword [0x10011428], 0
mov dword [0x10011410], 0xeb
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x10005ba9
xor eax, eax
mov ecx, 0xeb
mov edx, eax
mov esi, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
jmp 0x10005a8f
mov eax, dword [0x10011410]
mov ecx, dword [0x1001141c]
mov edx, dword [0x10011418]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov edi, 0x100
mov ebx, eax
add ebx, 1
mov dword [ebp - 0x38], eax
mov eax, ecx
add eax, 0xffffeaaa
add ecx, 0xffffddca
add esi, 1
mov dword [0x10011410], eax
mov eax, esi
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x10011418], edx
mov esi, dword [ebp - 0x1c]
movzx esi, byte [esi + edx]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x3c]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x44], edx
cdq
idiv edi
mov dword [0x1001141c], edx
mov ecx, dword [ebp - 0x40]
mov dword [0x10011410], ecx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x44]
mov cl, byte [ecx + esi]
mov byte [0x10011420], cl
mov dword [0x10011414], 0x12a6
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10011420]
mov edx, dword [0x1001141c]
mov byte [edi + edx], cl
mov edx, dword [0x10011418]
movzx edx, byte [edi + edx]
mov ecx, dword [0x1001141c]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov edx, dword [0x10011414]
mov esi, edx
add esi, 0x1316
mov dword [0x10011410], esi
and ecx, 0xff
mov dword [0x10011428], ecx
mov dword [0x10011414], 0xa75
mov cl, byte [edi + ecx]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x38]
mov ch, byte [esi + edi]
add edx, 0xfffff7f7
mov dword [0x10011410], edx
xor ch, cl
mov byte [0x1001142c], ch
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x34], ebx
jne 0x10005a6f
mov eax, dword [0x10011414]
add eax, 0xfffffd19
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10011410], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x10011410], 0x42a
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.10004ce0
lea ecx, [0x10004230]
mov dword [0x10011410], 0x8ad
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x58], 0x140a00
mov edx, dword [0x100113fc]
mov dword [esp + 0x70], edx
mov edx, dword [0x10011400]
mov dword [esp + 0x80], edx
mov edx, dword [0x10011404]
mov dword [esp + 0x90], edx
mov edx, dword [0x10011408]
mov dword [esp + 0x40], edx
mov edx, dword [0x1001140c]
mov dword [esp + 0x44], edx
mov dword [0x10011414], 0xffffef27
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x10005cb3
lea eax, [esp + 0x38]
mov dword [0x10011410], 0x23c1
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10005340
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10011414], 0x554
mov dword [esp + 0x18], eax
jmp 0x10005d21
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
je 0x10005ce0
jmp 0x10005cc2
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
je 0x10005c99
mov dword [0x10011410], 0x592
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x10005cb3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x94], ecx
mov dword [0x10011414], 0x1275
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x54], eax
mov dword [0x10011410], 0x234f
call fcn.100040e0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x10005c56
mov eax, dword [esp + 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b2030]
jne 0x401116
repz ret
jmp fcn.00401b11

Function at 0x408edc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004047d5
and dword [ebp - 4], 0
cmp dword [0x4b478c], 0
mov ebx, eax
jne 0x408f8d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40903e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40903e
push eax
call fcn.00404763
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b478c], eax
call esi
push eax
call fcn.00404763
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b4790], eax
call esi
push eax
call fcn.00404763
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b4794], eax
call esi
push eax
call fcn.00404763
pop ecx
mov dword [0x4b479c], eax
test eax, eax
je 0x408f8d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404763
pop ecx
mov dword [0x4b4798], eax
mov eax, dword [0x4b4798]
cmp eax, ebx
je 0x408fe5
cmp dword [0x4b479c], ebx
je 0x408fe5
push eax
call fcn.004047de
push dword [0x4b479c]
mov esi, eax
call fcn.004047de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408fe5
test edi, edi
je 0x408fe5
call esi
test eax, eax
je 0x408fdc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408fdc
test byte [ebp - 0xc], 1
jne 0x408fe5
or dword [ebp + 0x10], 0x200000
jmp 0x40901e
mov eax, dword [0x4b4790]
cmp eax, ebx
je 0x40901e
push eax
call fcn.004047de
pop ecx
test eax, eax
je 0x40901e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40901e
mov eax, dword [0x4b4794]
cmp eax, ebx
je 0x40901e
push eax
call fcn.004047de
pop ecx
test eax, eax
je 0x40901e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b478c]
call fcn.004047de
pop ecx
test eax, eax
je 0x40903e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409040
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af90
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x4b2030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b6d09c]
push ebx
mov ebx, dword [0x2b6cee8]
push esi
mov esi, dword [0x4b2f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40afd1
push str.lefovuweceh
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b6d09c]
mov dword [0x4b48f4], esi
cmp eax, 0x114e
jne 0x40affb
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.durinarusunavabaxomoyowev
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2b6d09c]
cmp eax, 0x2f
jne 0x40b01d
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
call fcn.0040af00
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x453924
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040415c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x453973
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004043cc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45b0dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45b114]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b0f5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b104
or bl, 4
test esi, 0x20000000
je 0x45b10f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4617bc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4617ce
add esp, 0xfffffff0
call fcn.004036b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cba8
mov eax, dword [0x46e7e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x461b60
mov eax, dword [0x46e7f4]
mov dword [eax + 4], ebx
mov dword [eax], 0x461b6c
mov eax, ebx
call fcn.00461b78
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414e4c]
call fcn.00403360
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414e4c]
call fcn.00403360
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414e4c]
call fcn.00403360
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414e4c]
call fcn.00403360
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414e4c]
call fcn.00403360
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45df94
push eax
push 0
push 0
mov eax, dword [0x46e944]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e624]
call fcn.0041fcc0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e624]
call fcn.0041fcc0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e624]
call fcn.0041fcc0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00461f98
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461e74
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461e74
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x461e74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46190b
call fcn.0040370c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x461c58
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x461e03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x461de4
mov dl, 1
mov eax, dword [0x415268]
call fcn.00403360
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040415c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x461dd3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044fc8c
test al, al
je 0x461dc6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x461e14
lea eax, [ebp - 0x254]
call fcn.00409188
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x461dc6
xor eax, eax
push ebp
push 0x461dbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x461e4c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x461da8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043cc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x461da8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461dc6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x461cc9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418d44
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461e0a
lea eax, [ebp - 0x260]
call fcn.0040415c
ret

Function at 0x462738
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46fbc0]
cmp byte [eax + 0xa5], 0
jne 0x4627a9
cmp dword [0x46fbd8], 0
jne 0x46276a
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4626f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46fbd8], eax
cmp dword [0x46fbd4], 0
jne 0x462785
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x46fbd4], eax
cmp dword [0x46fbdc], 0
jne 0x4627a9
push esp
push 0
push 0
push 0x462698
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [0x46fbdc], eax
pop edx
ret