joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41834a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407940
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414745
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41838c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421760
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x48e148]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418770
mov ecx, dword [esi*4 + 0x48e148]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4184e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184e1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4184e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418770
add esp, 0x14
test edx, edx
jl 0x4184e1
jg 0x418457
test eax, eax
jb 0x4184e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184e1
jl 0x418471
cmp dword [ebp - 0x1008], eax
ja 0x4184e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41848f
test ebx, ebx
je 0x4184c8
cmp ecx, edi
jae 0x4184c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4184a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184b5
cmp byte [ecx + 1], 0xa
jne 0x4184b5
inc ecx
jmp 0x4184b5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41848f
cmp edx, ebx
jne 0x41848f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069ff
leave
ret
Function at 0x41eada
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48e148]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb1a
cmp byte [ebx], 0xa
jne 0x41eb1a
or byte [eax + edi + 0x28], 4
jmp 0x41eb1f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec1d
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebff
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb4e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb73
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb7d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41eb30
jmp 0x41ec1d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebfa
cmp dword [ebp - 0xc], 0
je 0x41ebfa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48e148]
test byte [eax + edi + 0x28], 0x48
je 0x41ebd4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebbf
mov byte [esi], dl
jmp 0x41ebd0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48e148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec1d
cmp byte [ebp - 1], 0xa
jne 0x41ebe3
cmp esi, ebx
jne 0x41ebe3
mov byte [esi], 0xa
jmp 0x41ec1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec1d
mov byte [esi], 0xd
jmp 0x41ec1c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48e148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec19
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec1d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x48e148]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec69
cmp word [esi], dx
jne 0x41ec69
or byte [edi + eax + 0x28], 4
jmp 0x41ec6e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edc1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41eda1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ecb0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ece6
cmp eax, edx
jae 0x41ecf2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec88
jmp 0x41edc1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed9d
cmp dword [ebp - 0x14], 0
je 0x41ed9d
mov eax, dword [ebx*4 + 0x48e148]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed75
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed3e
mov word [esi], cx
jmp 0x41ed71
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48e148]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48e148]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48e148]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edc1
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed86
cmp esi, dword [ebp + 0xc]
jne 0x41ed86
mov word [esi], bx
jmp 0x41edbe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edc1
push 0xd
jmp 0x41edba
mov ecx, dword [ebx*4 + 0x48e148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edc1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x409480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
mov esi, 0x41c874
push ebx
sub esp, 0x8c
fld dword [0x41c8dc]
mov edx, dword [0x4295d4]
mov dword [esp + 0x38], 0
lea ebp, [esp + 0x38]
lea edi, [esp + 0x44]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], 0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x44], eax
mov eax, dword [0x4295d0]
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], eax
mov eax, dword [0x4295d0]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x54], 0
shl eax, 2
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x50], 2
mov dword [esp + 0x4c], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 3
fst dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov eax, 0x57
fstp dword [esp + 0x70]
lea esi, [esi]
nop
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x64]
add esi, 4
mov edx, dword [eax]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x38]
sub esp, 0x10
test eax, eax
jns 0x40956f
mov eax, dword [esi]
test eax, eax
jne 0x409540
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4096d0
mov eax, dword [esp + 0x68]
mov esi, dword [ecx]
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x6c]
fld dword [0x41c8dc]
mov dword [esp], ecx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
fst dword [esp + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
fstp dword [esp + 0x5c]
call dword [esi + 0x10]
sub esp, 0x1c
test eax, eax
js 0x409690
mov eax, dword [esp + 0x68]
cmp eax, 0x56
jbe 0x4095f1
mov edx, dword [0x4200f4]
cmp dword [edx + 0x20], 0x17
jg 0x40962d
cmp eax, 0x56
mov dword [esp], 0x20
setbe al
movzx eax, al
mov dword [esp + 4], eax
call fcn.00410400
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x2c]
imul eax, dword [esp + 0x4c]
mov dword [esp], 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_calloc
mov dword [ebx + 0x24], eax
test eax, eax
je 0x409690
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x41c880
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
js 0x409690
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x18], 0x4086d0
mov dword [ebx + 0x1c], fcn.00409480
mov dword [ebx + 0x12c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x14], eax
add esp, 0x8c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4096a3
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4096b6
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
add esp, 0x8c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x409698
jmp 0x4096b6
Function at 0x40bb20
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push ebx
sub esp, 0x114
mov eax, dword [0x4295cc]
test eax, eax
jne 0x40bb40
call fcn.00406bd0
add esp, 0x114
pop ebx
pop esi
ret
lea eax, [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, byte [0x41d280]
mov edx, 0x41d281
sub esp, 4
test al, al
jne 0x40bb7c
jmp 0x40bb31
or cl, byte [esp + ebx + 0x10]
shr cl, 7
mov byte [eax], cl
movzx eax, byte [edx + 2]
add edx, 3
test al, al
je 0x40bb31
movzx ecx, byte [edx]
mov esi, dword [0x4200f4]
movzx ebx, byte [edx + 1]
movzx ecx, byte [esp + ecx + 0x10]
add eax, dword [esi + 0x64]
test bl, bl
jne 0x40bb68
shr cl, 7
mov byte [eax], cl
jmp 0x40bb71
Function at 0x40cf30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov eax, 0x1018
push edi
push esi
push ebx
call fcn.004183c0
sub esp, eax
mov ebx, dword [esp + 0x102c]
mov eax, dword [esp + 0x1034]
mov byte [esp + 0xd], 1
lea ebp, [esp + 0x1019]
mov ecx, dword [esp + 0x1038]
lea edx, [ebx + 1]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 1]
movzx ebx, byte [ebx]
shl edx, 8
and dx, 0xf00
mov esi, edx
mov edx, dword [esp + 0x1030]
or esi, ebx
lea edi, [edx - 1]
mov ebx, esi
mov edx, esi
mov word [esp + 0x12], si
mov byte [eax], bl
mov ebx, 0x100
mov byte [esp + 0x11], dl
lea edx, [eax + 1]
mov eax, dword [ecx]
mov dword [esp + 4], edi
add eax, edx
mov dword [ecx], 1
mov dword [esp + 0x14], eax
mov word [esp + 0xe], bx
test edi, edi
jle 0x40d0b0
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
sub ebx, 1
cmp byte [esp + 0xd], 0
movzx edi, byte [esi]
movzx eax, byte [esi + 1]
je 0x40d0c8
add esi, 2
sub dword [esp + 4], 2
mov dword [esp + 8], esi
movzx esi, al
mov eax, edi
shr al, 4
shl esi, 4
movzx edi, al
or esi, edi
xor byte [esp + 0xd], 1
cmp si, 0xfff
je 0x40d15b
cmp si, word [esp + 0xe]
jb 0x40d0f0
movzx eax, byte [esp + 0x11]
movzx ebx, word [esp + 0x12]
mov byte [esp + 0x19], al
lea eax, [esp + 0x1a]
jmp 0x40d044
lea ebx, [ebx + ebx*2]
add eax, 1
lea edi, [ebx + ebx + 0x429640]
movzx ebx, byte [edi + 4]
mov byte [eax - 1], bl
movzx ebx, word [edi + 2]
cmp eax, ebp
je 0x40d0b0
cmp ebx, 0xff
jg 0x40d028
mov byte [esp + 0x11], bl
mov byte [eax], bl
mov edi, dword [esp + 0x14]
cmp edi, edx
jbe 0x40d0b0
mov ebx, edx
sub ebx, edi
lea edi, [esp + 0x19]
add ebx, eax
mov dword [esp], ebx
jmp 0x40d075
cmp dword [esp], eax
je 0x40d0b0
movzx ebx, byte [eax]
sub eax, 1
add edx, 1
mov byte [edx - 1], bl
add dword [ecx], 1
cmp eax, edi
jae 0x40d070
movzx edi, word [esp + 0xe]
cmp di, 0xffe
jbe 0x40d130
mov eax, dword [esp + 4]
test eax, eax
jle 0x40d0b0
mov word [esp + 0x12], si
jmp 0x40cfbb
mov eax, 0xffffffff
add esp, 0x1018
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov esi, eax
mov eax, edi
add dword [esp + 8], 1
shl esi, 8
movzx edi, al
mov dword [esp + 4], ebx
and si, 0xf00
or esi, edi
jmp 0x40cff4
movzx ebx, si
lea eax, [esp + 0x19]
jmp 0x40d123
lea ebx, [ebx + ebx*2]
add eax, 1
lea edi, [ebx + ebx + 0x429640]
movzx ebx, byte [edi + 4]
mov byte [eax - 1], bl
movzx ebx, word [edi + 2]
lea edi, [esp + 0x1018]
cmp eax, edi
je 0x40d0b0
cmp ebx, 0xff
jg 0x40d100
jmp 0x40d04c
movzx eax, di
movzx ebx, word [esp + 0x12]
add edi, 1
lea eax, [eax + eax*2]
mov word [esp + 0xe], di
lea eax, [eax + eax + 0x429640]
mov word [eax + 2], bx
movzx ebx, byte [esp + 0x11]
mov byte [eax + 4], bl
jmp 0x40d098
xor eax, eax
jmp 0x40d0b5
Function at 0x413340
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
test dword [esp + 0x4c], 0x100
je 0x413363
mov ebx, edi
test bl, bl
je 0x413398
cmp si, 0x58
jbe 0x4133d0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x413380
mov ebx, 0xffffffff
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
movzx ebx, al
test al, al
je 0x413371
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
mov edx, 0x1c
xor eax, eax
jmp 0x4133b3
lea edx, [eax + eax*4]
movzx edx, word [edx + edx + 0x41d1e0]
cmp cx, dx
je 0x413480
add eax, 1
cmp eax, 0xc
jne 0x4133a8
jmp 0x413371
movzx esi, si
movzx eax, ax
mov dword [esp + 4], 2
lea ecx, [esi*8 + 0x41cf00]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ebp, ax
sub esp, 8
mov dword [esp], ebp
mov ebx, ebp
call dword [sym.imp.msvcrt.dll_isupper]
mov dword [esp], ebp
test eax, eax
jne 0x413460
call dword [sym.imp.msvcrt.dll_islower]
mov ecx, eax
mov eax, ebp
test ecx, ecx
je 0x413421
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll_toupper]
test byte [esp + 0x4c], 3
je 0x41346d
mov esi, dword [esp + 0x1c]
movzx ebx, word [esi + 6]
cmp ebx, 0xff
jle 0x413369
mov ecx, edi
movzx ecx, cl
cmp ecx, ebp
je 0x41344d
cmp eax, ecx
jne 0x413369
or bl, 0xff
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll_tolower]
test byte [esp + 0x4c], 3
jne 0x413428
test byte [esp + 0x4c], 0xc
je 0x4134c0
mov esi, dword [esp + 0x1c]
movzx ebx, word [esi + 4]
jmp 0x413430
lea eax, [eax + eax*4]
lea eax, [eax + eax + 0x41d1e0]
test byte [esp + 0x4c], 3
jne 0x4134e0
test byte [esp + 0x4c], 0xc
je 0x413500
movzx ebx, word [eax + 6]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x413371
cmp ebx, 0xff
jle 0x413376
or bl, 0xff
jmp 0x413450
test byte [esp + 0x4c], 0x10
jne 0x4134f0
mov ecx, edi
test cl, cl
jne 0x413430
movzx ebx, word [esi*8 + 0x41cf00]
jmp 0x413430
movzx ebx, word [eax + 8]
xor eax, eax
test ebx, ebx
setne al
jmp 0x4134a3
mov esi, dword [esp + 0x1c]
movzx ebx, word [esi + 2]
jmp 0x413430
test byte [esp + 0x4c], 0x10
je 0x413514
movzx ebx, word [eax + 4]
xor eax, eax
test ebx, ebx
setne al
jmp 0x4134a3
movzx ebx, word [eax + 2]
jmp 0x4134ab
Function at 0x413520
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
mov edx, dword [ebx]
mov eax, dword [eax + 0xc]
test edx, edx
jne 0x4135e0
test al, 0x1c
jne 0x41353f
test al, 3
jne 0x4135d2
mov ebx, dword [0x424928]
test ebx, ebx
je 0x4135d2
movsx eax, bl
mov dword [esp], eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
sub esp, 4
movzx ecx, al
cwde
mov dword [esp + 0x28], 0
mov edx, eax
mov byte [esp + 0x2a], bl
mov ebx, eax
sar edx, 4
sar ebx, 6
and edx, 0x10
sar eax, 9
mov dword [esp], ecx
and ebx, 8
and eax, 2
mov dword [esp + 0x24], 0
or edx, ebx
mov word [esp + 0x26], cx
or eax, edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
sub esp, 8
mov word [esp + 0x28], ax
movzx eax, byte [0x424928]
lea edx, [esp + 0x20]
call fcn.00413210
mov dword [0x424928], 0
add esp, 0x38
pop ebx
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 6]
mov dword [esp + 8], eax
movzx eax, word [ebx + 8]
mov dword [esp + 4], eax
movsx eax, byte [ebx + 0xa]
mov dword [esp], eax
call fcn.00413340
mov edx, dword [ebx + 0xc]
test dl, 0x1c
je 0x41362f
cmp eax, 0xffffffff
je 0x41353f
mov dword [0x424928], 0
mov edx, ebx
call fcn.00413210
add esp, 0x38
pop ebx
ret
and dl, 3
je 0x413610
movzx edx, word [ebx + 6]
lea ecx, [edx - 0x60]
cmp cx, 9
ja 0x413664
mov ecx, dword [ebx]
test ecx, ecx
je 0x41365a
mov ecx, dword [0x424928]
lea ecx, [ecx + ecx*4]
lea edx, [edx + ecx*2 - 0x60]
mov dword [0x424928], edx
cmp eax, 0xffffffff
jne 0x413623
jmp 0x4135d2
cmp eax, 0xffffffff
jne 0x413619
jmp 0x4135d2

Function at 0x413990
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
test ebx, ebx
js 0x413a30
test ebp, ebp
js 0x413a20
shl ebp, 0x10
movzx ebx, bx
or ebx, ebp
test edi, edi
js 0x4139fa
mov dword [esp], 0
lea ebp, [esp + 0x18]
call fcn.00412df0
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
xor eax, eax
sub esp, 8
test edi, edi
setne al
mov dword [esp + 4], ebp
mov dword [esp + 0x1c], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [0x438d8c], 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
sub esp, 8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call fcn.00417340
mov ebp, eax
jmp 0x4139b3
mov dword [esp], esi
call fcn.00412f70
mov ebx, eax
jmp 0x4139af
Function at 0x4188c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00418590
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00418590
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x418920
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x42913c]
test esi, esi
jle 0x418a20
mov eax, dword [0x429140]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x418950
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4189cf
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x418940
mov dword [esp], ebx
call fcn.00419290
mov edi, eax
test eax, eax
je 0x418a47
mov eax, dword [0x429140]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004193a0
mov edx, dword [0x429140]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x418a27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4189c8
sub eax, 4
and eax, 0xfffffffb
jne 0x4189d6
add dword [0x42913c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x429140]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4189c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004188c0
xor esi, esi
jmp 0x41895a
mov eax, dword [0x429140]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004188c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004188c0
lea esi, [esi]
nop
Function at 0x418f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x429158
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x429150]
sub esp, 4
test ebx, ebx
je 0x418f55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x418f4e
test esi, esi
je 0x418f4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x418f30
mov dword [esp], 0x429158
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret