joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb330
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4fb3ed
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
sub edi, 1
jne 0x4fb346
pop edi
test esi, esi
je 0x4fb40b
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594930]
sub esi, 1
jne 0x4fb3f1
not ecx
mov eax, ecx
pop esi
ret
Function at 0x4fb900
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 8], eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], ecx
cmp dword [esi + 0x18], 0
je 0x4fb9ef
mov eax, dword [esi + 0x20]
push ebx
mov ebx, dword [esi + 0x1c]
push ebp
push edi
mov edi, dword [esp + 0x24]
add ebx, edi
cmp ebx, eax
jb 0x4fb9c4
add eax, eax
push 0
cmp eax, ebx
cmova ebx, eax
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x4fb978
push ebx
push 0
push 0
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4fb992
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
mov eax, 0x300
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0053f778
add esp, 0xc
ret 8
push dword [esi + 0x20]
push dword [esi + 0x18]
push eax
call fcn.00547c20
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 4], ebp
push edi
push ecx
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x18]
push ecx
call fcn.00547c20
add esp, 0xc
mov eax, edi
add dword [esi + 0x1c], edi
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0053f778
add esp, 0xc
ret 8
mov eax, dword [esi]
test eax, eax
je 0x4fba26
push 0
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push dword [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0053f778
add esp, 0xc
ret 8
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esi + 0xc], 0x1000000
pop esi
xor ecx, esp
call fcn.0053f778
add esp, 0xc
ret 8
Function at 0x4fbd30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x64]
test edx, edx
je 0x4fbdc1
mov ecx, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp ecx, edi
jae 0x4fbdf5
sub edi, ecx
lea eax, [ecx + edx]
cmp edi, dword [esp + 0x1c]
cmova edi, dword [esp + 0x1c]
push edi
push eax
push ebx
call fcn.00547c20
add dword [esi + 0x6c], edi
add esp, 0xc
add dword [esi + 0x54], edi
test ebx, ebx
jne 0x4fbd9a
xor eax, eax
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0053f778
add esp, 8
ret 8
mov ecx, dword [esi + 0x58]
mov edx, ebx
push edi
call fcn.004fb330
add esp, 4
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0053f778
add esp, 8
ret 8
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4fbdee
push 0
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fbdf5
mov edi, dword [esp + 0xc]
add dword [esi + 0x54], edi
test ebx, ebx
jne 0x4fbd9a
xor eax, eax
jmp 0x4fbda8
mov dword [esi + 0xc], 0x1000000
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f778
add esp, 8
ret 8
Function at 0x4fe570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x4fe577
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4fe637
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
sub edi, 1
jne 0x4fe590
pop edi
test esi, esi
je 0x4fe65a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x594ef0]
sub esi, 1
jne 0x4fe640
not ecx
mov eax, ecx
pop esi
ret

Function at 0x4fed70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, edx
mov esi, ebx
mov ebp, ecx
imul esi, dword [esp + 0x1c]
cmp byte [edi], 0
je 0x4fedb6
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fedb0
mov byte [edi + 8], 1
mov eax, dword [esp + 0x10]
jmp 0x4feddc
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4fedc7
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push ebp
call fcn.00547c20
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
mov ecx, dword [esp + 0x14]
xor edx, edx
pop edi
pop esi
div ebx
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f778
add esp, 8
ret
Function at 0x4fee00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
mov edi, 1
cmp byte [esi], 0
je 0x4fee43
push 0
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x1b]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fee3d
mov byte [esi + 8], 1
mov edi, dword [esp + 0x10]
jmp 0x4fee70
mov ecx, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4fee55
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [esp + 0x1b]
push eax
call fcn.00547c20
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
pop ebx
cmp edi, 1
jne 0x4fee91
movzx eax, byte [esp + 0xf]
mov dword [ebp], eax
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0053f778
add esp, 0xc
ret
cmp byte [esi], 0
je 0x4fee7d
cmp byte [esi + 8], 0
je 0x4fee7d
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0053f778
add esp, 0xc
ret
Function at 0x4fefb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x18], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x4feff7
cmp byte [edi + 1], 0
je 0x4fefe5
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4feffd
xor eax, eax
pop edi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0053f778
add esp, 0x1c
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
push ebp
je 0x4ff024
cmp byte [edi + 1], 0
je 0x4ff01c
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x4ff027
xor ebx, ebx
mov dword [esp + 0xc], ebx
jmp 0x4ff038
mov ebx, dword [edi + 0x18]
mov ebp, 0xffff
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
cmp ebx, ebp
jae 0x4ff03e
mov ebp, ebx
mov dword [esp + 0x10], ebx
push esi
push 0x404
call fcn.00553927
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ff065
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0053f778
add esp, 0x1c
ret
mov eax, 4
mov dword [esp + 0x18], 0
cmp ebp, eax
jbe 0x4ff170
nop word [eax + eax]
add eax, 0x400
mov ecx, ebx
cmp eax, ebp
mov edx, eax
mov eax, 0x404
cmova edx, ebp
sub ecx, edx
mov dword [esp + 0x20], edx
sub ebx, ecx
mov dword [esp + 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x4ff0cc
cmp byte [edi + 1], 0
je 0x4ff170
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4ff0cf
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ebp, ebx
je 0x4ff0f6
push 0
lea eax, [esp + 0x28]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ff0f0
mov byte [edi + 8], 1
mov eax, dword [esp + 0x24]
jmp 0x4ff11c
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x4ff107
mov ebp, ecx
sub ebp, edx
mov ecx, dword [edi + 0x10]
push ebp
add ecx, edx
push ecx
push esi
call fcn.00547c20
add esp, 0xc
mov eax, ebp
add dword [edi + 0x18], ebp
xor edx, edx
div ebx
cmp eax, 1
jne 0x4ff170
lea eax, [ebx - 3]
test eax, eax
jle 0x4ff15c
nop dword [eax]
dec eax
cmp byte [eax + esi], 0x50
jne 0x4ff14c
cmp byte [eax + esi + 1], 0x4b
jne 0x4ff14c
cmp byte [eax + esi + 2], 5
jne 0x4ff14c
cmp byte [eax + esi + 3], 6
je 0x4ff152
test eax, eax
jg 0x4ff130
jmp 0x4ff15c
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jne 0x4ff170
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
cmp eax, ebp
jb 0x4ff080
push esi
call fcn.00553932
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.0053f778
add esp, 0x1c
ret
Function at 0x4ffeb0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x4fff2b
cmp dword [esi + 4], 0xffffffff
jne 0x4fff2b
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4ffee0
mov eax, dword [0x5a71f4]
mov dword [edi], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004fecb0
add esp, 8
test eax, eax
jne 0x4fff15
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 8
ret 0xc
mov ecx, eax
call fcn.004ff190
mov dword [esi], eax
mov eax, dword [0x5dad24]
pop edi
pop esi
add esp, 8
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
add esp, 8
ret 0xc
Function at 0x500350
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
test ebx, ebx
je 0x50043b
movzx eax, word [ebx]
test ax, ax
je 0x50043b
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x50038f
cmp ax, 0x5c
jne 0x500391
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x500383
cmp edi, ebx
je 0x5003d4
sub edi, ebx
lea eax, [esp + 0xc]
sar edi, 1
push edi
push ebx
push eax
call fcn.0055578f
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x500452
xor eax, eax
lea edx, [esp + 0xc]
mov ecx, esi
mov word [esp + edi + 0xc], ax
call fcn.00500350
lea ecx, [esp + 0x214]
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x5003e0
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x5003f2
lea edi, [esp + 0x214]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x500410
mov ecx, ebx
lea eax, [esp + 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [esp + 0x418]
pop esi
pop ebx
xor ecx, esp
call fcn.0053f778
add esp, 0x414
ret
call fcn.0053ff39
int3
Function at 0x504f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [edx + 0x14], 8
push ebx
push esi
push edi
mov edi, ecx
jb 0x504fb1
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp word [edx], ax
je 0x504fe1
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x504fd2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402b20
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
cmp dword [esp + 0x24], 8
push 0
push edx
lea ecx, [eax + eax]
mov dword [esp + 0x30], 0
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
cmp eax, 8
jb 0x505037
push 2
inc eax
push eax
push dword [esp + 0x18]
call fcn.00403190
add esp, 0xc
mov ecx, dword [esp + 0x2c]
test bl, bl
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0053f778
mov esp, ebp
pop ebp
ret

Function at 0x509160
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push 0
push 0
call esi
xor ecx, ecx
mov edi, eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f7f7
add esp, 4
mov ebx, eax
push ebx
push edi
call esi
test eax, eax
jne 0x5091be
push ebx
call fcn.0053f7f2
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f778
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x509244
xor esi, esi
test edi, edi
je 0x509230
push 2
push dword [ebx + esi*4]
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test eax, eax
je 0x50922b
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
movups xmmword [ebp - 0x16], xmm0
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x50922b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x18]
push 0x5af260
push eax
call fcn.00497b50
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x50922b
push 0
push eax
push dword [ebx + esi*4]
call fcn.005096c0
inc esi
cmp esi, edi
jb 0x5091d3
push ebx
call fcn.0053f7f2
add esp, 4
push 2
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f778
mov esp, ebp
pop ebp
ret
Function at 0x50ac00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd43
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5d3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.RT::CSound.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x24], vtable.RT::CStringList.0
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x20], eax
call fcn.0050af60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x50dfe0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add ecx, 0xfffffffe
mov dword [0x5dad30], eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayout]
push edi
mov edi, edx
cmp ecx, 0xa
ja case.0x50e001.4
jmp dword [ecx*4 + 0x50e0a4]
push 0
call esi
test eax, eax
je case.0x50e001.4
or dword [0x5dad2c], 1
jmp case.0x50e001.4
push 0
call esi
test eax, eax
je case.0x50e001.9
or dword [0x5dad2c], 1
push 0
call esi
test eax, eax
je case.0x50e001.4
or dword [0x5dad2c], 0x10
jmp case.0x50e001.4
push 0
call esi
test eax, eax
je case.0x50e001.8
or dword [0x5dad2c], 4
push 0
call esi
test eax, eax
je case.0x50e001.4
or dword [0x5dad2c], 8
jmp case.0x50e001.4
push 0
call esi
test eax, eax
je 0x50e068
or dword [0x5dad2c], 4
push 0
call esi
test eax, eax
je case.0x50e001.3
or dword [0x5dad2c], 8
push 0
call esi
test eax, eax
je case.0x50e001.4
or dword [0x5dad2c], 2
push 0
call esi
test eax, eax
je 0x50e09f
test edi, edi
je 0x50e09f
push ecx
mov edx, edi
mov ecx, eax
call fcn.0050e1b0
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x50e0d0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push edi
mov edi, ecx
mov ebx, edx
cmp edi, 0xffffffff
jne 0x50e0e0
pop edi
xor al, al
pop ebx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
test eax, eax
je 0x50e0db
push esi
xor esi, esi
cmp edi, 7
jne 0x50e108
mov esi, 1
or dword [0x5dad2c], esi
test esi, esi
pop esi
pop edi
setne al
pop ebx
ret
cmp edi, 8
jne 0x50e121
mov esi, 2
or dword [0x5dad2c], esi
test esi, esi
pop esi
pop edi
setne al
pop ebx
ret
cmp edi, 0xb
jne 0x50e13a
mov esi, 4
or dword [0x5dad2c], esi
test esi, esi
pop esi
pop edi
setne al
pop ebx
ret
cmp edi, 9
jne 0x50e153
mov esi, 8
or dword [0x5dad2c], esi
test esi, esi
pop esi
pop edi
setne al
pop ebx
ret
cmp edi, 0xa
jne 0x50e16c
mov esi, 0x10
or dword [0x5dad2c], esi
test esi, esi
pop esi
pop edi
setne al
pop ebx
ret
cmp edi, 0xd
jne 0x50e185
mov esi, 0x20
or dword [0x5dad2c], esi
test esi, esi
pop esi
pop edi
setne al
pop ebx
ret
test ebx, ebx
jne 0x50e18f
pop esi
pop edi
xor al, al
pop ebx
ret
push ecx
mov edx, ebx
mov ecx, eax
call fcn.0050e1b0
or dword [0x5dad2c], esi
add esp, 4
test esi, esi
setne al
pop esi
pop edi
pop ebx
ret

Function at 0x510550
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e02c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.RT::CTableCtrl.0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 1
call fcn.005103d0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x5c], vtable.RT::CTableColumnList.0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x48]
mov dword [edi + 0x24], 0xffffffff
mov dword [edi + 0x20], 0
mov dword [edi + 0x2c], 0xffffff
mov dword [edi + 0x30], 0xffffff
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xcccccc
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
call fcn.0045a0f0
mov dword [edi + 0x54], 0
mov eax, edi
mov dword [edi + 0x58], 1
mov dword [edi + 0x74], 0xffffffff
mov dword [edi + 0x78], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f778
mov esp, ebp
pop ebp
ret
Function at 0x5157b0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, edx
test cx, cx
jne 0x5157bd
or eax, 0xffffffff
pop esi
ret
push ebx
push ecx
xor ebx, ebx
call dword [sym.imp.USER32.dll_VkKeyScanW]
shr eax, 8
movzx eax, al
dec eax
cmp eax, 7
ja case.0x5157d3.3
jmp dword [eax*4 + 0x51583c]
xor ebx, ebx
cmp esi, 2
sete bl
add ebx, 2
mov eax, ebx
pop ebx
pop esi
ret
xor ebx, ebx
cmp esi, 2
sete bl
add ebx, 5
mov eax, ebx
pop ebx
pop esi
ret
xor ebx, ebx
cmp esi, 2
sete bl
add ebx, 8
mov eax, ebx
pop ebx
pop esi
ret
xor ebx, ebx
cmp esi, 2
sete bl
lea ebx, [ebx*2 + 9]
mov eax, ebx
pop ebx
pop esi
ret
xor ebx, ebx
cmp esi, 2
sete bl
lea ebx, [ebx*2 + 0xa]
mov eax, ebx
pop ebx
pop esi
ret
mov ebx, 0x10
mov eax, ebx
pop ebx
pop esi
ret

Function at 0x515860
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
test eax, 0x8000
je 0x515878
mov eax, 2
ret
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x8000
neg eax
sbb eax, eax
and eax, 3
ret

Function at 0x5158f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0xa0
mov dword [ebp - 4], ecx
call ebx
test eax, 0x8000
je 0x515915
mov esi, 2
jmp 0x51592c
push 0xa1
call ebx
mov si, ax
and esi, 0x8000
neg esi
sbb esi, esi
and esi, 3
push 0xa4
call ebx
test eax, 0x8000
je 0x515941
mov edi, 8
jmp 0x515958
push 0xa5
call ebx
mov di, ax
and edi, 0x8000
neg edi
sbb edi, edi
and edi, 9
push 0xa2
call ebx
test eax, 0x8000
je 0x51596d
mov eax, 5
jmp 0x515980
push 0xa3
call ebx
and eax, 0x8000
neg eax
sbb eax, eax
and eax, 6
mov ecx, dword [ebp - 4]
test esi, esi
je 0x515992
pop edi
mov dword [ecx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x5159a1
mov dword [ecx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x5159b0
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [ecx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret