joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd218
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x64de84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x43fc3e
cmp byte [ebx + 0x3d], 0
je 0x43fc3e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x43fb69
xor al, al
jmp 0x43fc40
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0041e690
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43fbcf
sub eax, 1
je 0x43fbd3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x43fc26
xor bl, bl
jmp 0x43fc28
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x43fc08
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005b07ea
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x43fbcb
cmp byte [ebx + 0x3d], 0
je 0x43fc26
test esi, esi
jne 0x43fb91
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0041eef0
jmp 0x43fb8e
mov bl, 1
cmp ecx, 0x10
jb 0x43fc3a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00420600
mov al, bl
jmp 0x43fc40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584350
mov esp, ebp
pop ebp
ret
Function at 0x44e260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x64f108], 0
je 0x44e2b7
mov eax, dword [0x657208]
test eax, eax
je 0x44e290
push eax
call dword [0x64f158]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.0044b4c0
mov eax, dword [0x657208]
test eax, eax
je 0x44e2b2
push eax
call dword [0x64f160]
mov esi, dword [ebp - 4]
jmp 0x44e2c1
mov esi, dword [ebp - 4]
jmp 0x44e2c4
push 0x14
call dword [0x64f128]
mov esi, eax
add esp, 4
test esi, esi
jne 0x44e2d2
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x64f10c], 0
mov ebx, dword [ebp + 8]
je 0x44e31c
mov eax, dword [0x64f1fc]
test eax, eax
je 0x44e2f5
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x44e31c
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x44d630
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.005b1916
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x44e329
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x44e342
call dword [0x5d026c]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x4580fb
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
movq qword [eax], xmm0
jmp 0x458175
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
adc edx, 0
push edx
push edi
call fcn.0044b5f0
mov esi, eax
add esp, 8
test esi, esi
je 0x458127
push edi
push 0
push esi
call fcn.0059d550
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
test esi, esi
jne 0x458165
push dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.00584f00
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
pop edi
mov dword [esi + 0x18], ecx
inc dword [ebx + 0x78]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d57e0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x4d57f4
mov dword [esp + 0x18], 0x4d3f80
jmp fcn.004d7fc0
mov dword [esp + 0x18], 0x4d3a30
jmp fcn.004d7d00
Function at 0x5bce3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bccba

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0xf72c1b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0xf75000]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x138], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push 0x14
push eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x130], ebx
call fcn.00f72b90
pop ecx
pop ecx
push ebx
push 0x25
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [fcn.00f740d4]
lea eax, [ebp - 0x120]
push 0xf7433c
push eax
call fcn.00f737b8
mov edi, dword [fcn.00f74020]
pop ecx
pop ecx
push ebx
mov esi, 0x80
push esi
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call edi
mov dword [ebp - 0x124], eax
cmp eax, 0xffffffff
je 0xf72d35
push 2
push ebx
push ebx
push eax
call dword [0xf74074]
push ebx
push dword [ebp - 0x124]
call dword [0xf74078]
push ebx
push ebx
push ebx
push dword [ebp - 0x124]
mov dword [ebp - 0x12c], eax
call dword [0xf74074]
push dword [ebp - 0x12c]
call dword [0xf74134]
pop ecx
mov dword [ebp - 0x130], eax
cmp eax, ebx
je 0xf72d35
push dword [ebp - 0x12c]
push ebx
push eax
call fcn.00f737be
add esp, 0xc
push ebx
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [ebp - 0x124]
call dword [0xf7407c]
push dword [ebp - 0x124]
call dword [fcn.00f74068]
movzx eax, word [ebp - 0x128]
push 0xf74338
push eax
push ebx
call dword [0xf74054]
mov dword [ebp - 0x128], eax
cmp eax, ebx
je 0xf72e62
push eax
push ebx
call dword [0xf74058]
mov dword [ebp - 0x140], eax
cmp eax, ebx
je 0xf72e62
push ebx
push esi
push 2
push ebx
push 2
push 0x40000004
push dword [ebp - 0x138]
call edi
mov dword [ebp - 0x124], eax
cmp eax, 0xffffffff
je 0xf72e62
push dword [ebp - 0x128]
push ebx
call dword [0xf7405c]
mov edi, eax
lea eax, [edi + 1]
push eax
call dword [0xf74134]
mov esi, eax
pop ecx
cmp esi, ebx
je 0xf72e62
push edi
push dword [ebp - 0x140]
push esi
call fcn.00f737d0
add esp, 0xc
cmp edi, ebx
jbe 0xf72ddd
mov eax, edi
xor byte [esi], 3
inc esi
dec eax
jne 0xf72dd6
push 0x16
pop eax
sub eax, edi
push ebx
add esi, eax
lea eax, [ebp - 0x134]
push eax
add edi, 0xffffffea
push edi
mov edi, dword [fcn.00f74018]
push esi
push dword [ebp - 0x124]
call edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0xf72e46
mov dword [ebp - 0x128], eax
push ebx
lea eax, [ebp - 0x134]
push eax
push 0x14
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x124]
call edi
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [ebp - 0x124]
call edi
dec dword [ebp - 0x128]
jne 0xf72e0c
push dword [ebp - 0x124]
call dword [fcn.00f74068]
add esi, 0xffffffea
push esi
call dword [0xf74140]
xor eax, eax
pop ecx
inc eax
jmp 0xf72e64
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00f734c0
leave
ret
Function at 0xf72ed5
Capabilities:
Encode data using xor

Disassembly:
inc eax
push esi
call dword [fcn.00f74020]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0xf72f75
push edi
push ebx
call dword [0xf7405c]
mov esi, eax
lea eax, [esi + 1]
push eax
call dword [0xf74134]
mov edi, eax
pop ecx
cmp edi, ebx
je 0xf72f75
push esi
push dword [ebp - 0x24]
push edi
call fcn.00f737d0
add esp, 0xc
cmp esi, ebx
jbe 0xf72f1e
mov eax, esi
xor byte [edi], 3
inc edi
dec eax
jne 0xf72f17
push 0x16
pop eax
sub eax, esi
push ebx
add edi, eax
lea eax, [ebp - 0x28]
push eax
add esi, 0xffffffea
push esi
mov esi, dword [fcn.00f74018]
push edi
push dword [ebp - 0x20]
call esi
cmp dword [ebp + 0x10], ebx
je 0xf72f5c
lea eax, [ebp - 0x1c]
push 0x14
push eax
call fcn.00f72b90
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x14
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x20]
call dword [fcn.00f74068]
add edi, 0xffffffea
push edi
call dword [0xf74140]
xor eax, eax
pop ecx
inc eax
jmp 0xf72f77
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00f734c0
leave
ret

Function at 0xf73ca0
Capabilities:
Parse pe header

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

Function at 0xf73cd0
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 0xf73d0f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0xf73d05
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0xf73d11
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0xf73cf5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401a2d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401a3c
push esp
mov dword [ebp - 0x24], 0x401778
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401adb
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401abc
pop ebp
ret 0x10
Function at 0x1000721f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100072bc
push ebx
push esi
call fcn.100071e8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000717c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007269
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100072bb
push edi
push eax
call fcn.100081da
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007289
call fcn.10005cc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100072ba
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000717c
add esp, 0x20
test eax, eax
jne 0x100072a8
push edi
call fcn.10005cc4
jmp 0x100072b0
push ebx
call fcn.10005cc4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007529
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e4f8
push 0x1000e4f0
push str.FlsAlloc
push 0x1f
call fcn.10007445
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000755d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d118]
call esi
jmp 0x10007563
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100075a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e508
push 0x1000e500
push str.FlsGetValue
push 0x21
call fcn.10007445
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100075de
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100075e6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e510
push 0x1000e508
push str.FlsSetValue
push 0x22
call fcn.10007445
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007620
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000d118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5c4ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x144000]
mov dword [edi + 0x19f408], 0x55b9c113
push edi
or ebp, 0xffffffff
jmp 0x5c4b0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5c4b11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c4b00
mov eax, 1
add ebx, ebx
jne 0x5c4b23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5c4b18
jne 0x5c4b34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c4b18
xor ecx, ecx
sub eax, 3
jb 0x5c4b48
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5c4bba
mov ebp, eax
add ebx, ebx
jne 0x5c4b53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5c4b60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5c4b84
inc ecx
add ebx, ebx
jne 0x5c4b70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5c4b65
jne 0x5c4b81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c4b65
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5c4ba4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5c4b95
jmp 0x5c4b06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5c4ba4
add edi, ecx
jmp 0x5c4b06
pop esi
mov edi, esi
mov ecx, 0x513d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5c4bc2
cmp byte [edi], 0x22
jne 0x5c4bc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5c4bc7
lea edi, [esi + 0x1be000]
mov eax, dword [edi]
or eax, eax
je 0x5c4c36
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c4000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c4074]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5c4bf4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c407c]
or eax, eax
je 0x5c4c30
mov dword [ebx], eax
add ebx, 4
jmp 0x5c4c11
call dword [esi + 0x1c4078]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5c4c67
cmp al, 0xef
ja 0x5c4c5a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5c4c3c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5c4c49
mov ebp, dword [esi + 0x1c4080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5c4c9b
sub esp, 0xffffff80
jmp 0x4011fe
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 [0x46f7ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x461b60
mov eax, dword [0x46f7f8]
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 [0x46f948]
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 [0x470bc0]
cmp byte [eax + 0xa5], 0
jne 0x4627a9
cmp dword [0x470bd8], 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 [0x470bd8], eax
cmp dword [0x470bd4], 0
jne 0x462785
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x470bd4], eax
cmp dword [0x470bdc], 0
jne 0x4627a9
push esp
push 0
push 0
push 0x462698
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [0x470bdc], eax
pop edx
ret