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

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x465718]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x465cd0]
je 0x4530ff
inc eax
cmp eax, 0x13
jb 0x4530f0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x465cd0]
jne 0x453222
mov eax, dword [0x46741c]
cmp eax, 1
je 0x4531fd
cmp eax, edx
jne 0x45312f
cmp dword [0x46545c], 1
je 0x4531fd
cmp ecx, 0xfc
je 0x453222
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x453165
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00449b90
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00449b00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x453199
mov eax, edi
push eax
call fcn.00449b00
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x45bff0
push edi
call fcn.00453ab0
add esp, 0x10
push edi
call fcn.00449b00
push dword [esi + 0x465cd4]
mov ebx, eax
call fcn.00449b00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044c070
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00449b90
push edi
push ebx
call fcn.00449ba0
push 0x45bfd0
push ebx
call fcn.00449ba0
push dword [esi + 0x465cd4]
push ebx
call fcn.00449ba0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00455edd
add esp, 0x2c
jmp 0x453222
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x465cd4]
push dword [esi]
call fcn.00449b00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0044c969
add ebp, 0x90
leave
ret
Function at 0x453588
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x467894]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4535d1
call ebp
mov esi, eax
cmp esi, ebx
je 0x4535b7
mov dword [0x467894], 1
jmp 0x4535d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4535cc
push 2
pop eax
mov dword [0x467894], eax
jmp 0x4535d1
mov eax, dword [0x467894]
cmp eax, 1
jne 0x45362e
cmp esi, ebx
jne 0x4535e9
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4535e9
xor eax, eax
jmp 0x4536d5
cmp word [esi], bx
mov eax, esi
je 0x4535fe
inc eax
inc eax
cmp word [eax], bx
jne 0x4535f0
inc eax
inc eax
cmp word [eax], bx
jne 0x4535f0
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00449adf
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x453621
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4536d5
push ebp
push esi
push edi
call fcn.0044a210
add esp, 0xc
jmp 0x453613
cmp eax, 2
je 0x453637
cmp eax, ebx
jne 0x4535e2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4535e2
cmp byte [ebp], bl
mov esi, ebp
je 0x45366d
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4535e2
push esi
add edi, eax
call fcn.00449b00
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x45364a
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00449adf
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4536e6
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4536c7
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4536dc
push edi
call fcn.00449b00
push esi
lea edi, [edi + eax + 1]
call fcn.004493b8
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x45368d
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00449c88
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4535e2
Function at 0x4536f2
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x467898]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x453732
call esi
test eax, eax
je 0x453717
mov dword [0x467898], 1
jmp 0x453737
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45372e
mov dword [0x467898], 2
jmp 0x453740
xor eax, eax
jmp 0x45378e
cmp eax, 1
jne 0x45373b
call esi
jmp 0x45378e
cmp eax, 2
jne 0x45372e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x453786
lea eax, [esi + esi]
push eax
call fcn.00449adf
mov ebp, eax
test ebp, ebp
pop ecx
je 0x453786
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x45378a
push ebp
call fcn.00449c88
pop ecx
xor eax, eax
jmp 0x45378c
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x454a84
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x454ab2
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x454ab9
cmp ebx, dword [eax + 4]
jae 0x454ab9
xor eax, eax
jmp 0x454ca9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x454aca
xor eax, eax
inc eax
jmp 0x454ca8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x454ae0
cmp ecx, edx
jae 0x454c25
cmp dword [eax + 4], 0
je 0x454ae9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x454ad1
cmp dword [ebp + 8], 0
je 0x454b0b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x454c25
cmp eax, esi
jae 0x454c25
mov eax, dword [0x467928]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x454b30
cmp dword [esi*4 + 0x467930], edi
je 0x454c29
inc esi
cmp esi, eax
jl 0x454b1e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x454ca5
cmp dword [ebp - 8], 0x1000000
jne 0x454ca5
test byte [ebp - 0xc], 0xcc
je 0x454bae
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x454ca5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x454ca5
cmp word [eax + 0x18], 0x10b
jne 0x454ca5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x454ca5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x454bae
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x454bae
test byte [ecx + 0x27], 0x80
jne 0x454c25
push 1
push 0x467970
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x454ac2
mov ecx, dword [0x467928]
test ecx, ecx
mov edx, ecx
jle 0x454be2
lea eax, [ecx*4 + 0x46792c]
cmp dword [eax], edi
je 0x454be2
dec edx
sub eax, 4
test edx, edx
jg 0x454bd6
test edx, edx
jne 0x454c13
push 0xf
pop ebx
cmp ecx, ebx
jg 0x454bef
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x454c07
lea eax, [edx*4 + 0x467930]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x454bf5
cmp ecx, 0x10
jge 0x454c13
inc ecx
mov dword [0x467928], ecx
push 0
push 0x467970
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x454ac2
xor eax, eax
jmp 0x454ca8
test esi, esi
jle 0x454ac2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x467970
call ebx
test eax, eax
jne 0x454ac2
cmp dword [esi*4 + 0x467930], edi
je 0x454c7f
mov eax, dword [0x467928]
lea esi, [eax - 1]
test esi, esi
jl 0x454c6d
cmp dword [esi*4 + 0x467930], edi
je 0x454c69
dec esi
jns 0x454c5d
test esi, esi
jge 0x454c7d
cmp eax, 0x10
jge 0x454c78
inc eax
mov dword [0x467928], eax
lea esi, [eax - 1]
jmp 0x454c7f
je 0x454c97
xor ecx, ecx
test esi, esi
jl 0x454c97
lea eax, [ecx*4 + 0x467930]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x454c85
push 0
push 0x467970
call ebx
jmp 0x454ac2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455edd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x467978], ebx
push esi
push edi
jne 0x455f5d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x455f98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x467978], eax
je 0x455f98
push 0x45c42c
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46797c], eax
call esi
cmp dword [0x4673cc], 2
mov dword [0x467980], eax
jne 0x455f5d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x467988], eax
je 0x455f5d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x467984], eax
mov eax, dword [0x467984]
test eax, eax
je 0x455fa2
call eax
test eax, eax
je 0x455f89
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x467988]
test eax, eax
je 0x455f89
test byte [ebp - 8], 1
jne 0x455fa2
cmp dword [0x4673d8], 4
jb 0x455f9c
or byte [ebp + 0x12], 0x20
jmp 0x455fc1
xor eax, eax
jmp 0x455fd1
or byte [ebp + 0x12], 4
jmp 0x455fc1
mov eax, dword [0x46797c]
test eax, eax
je 0x455fc1
call eax
mov ebx, eax
test ebx, ebx
je 0x455fc1
mov eax, dword [0x467980]
test eax, eax
je 0x455fc1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x467978]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45705f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044c070
mov eax, dword [0x465718]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0044f7f5
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x457194
push 2
push esi
push dword [ebp + 8]
call fcn.0044f7f5
add esp, 0xc
cmp eax, ebx
je 0x457194
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x457134
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00449660
push 0x8000
push dword [ebp + 8]
call fcn.0044b20c
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4570ea
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044faf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x45710a
sub edi, eax
test edi, edi
jg 0x4570e2
jmp 0x457122
call fcn.0044d91e
cmp dword [eax], 5
jne 0x45711f
call fcn.0044d915
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0044b20c
pop ecx
pop ecx
jmp 0x45717c
jge 0x45717c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044f7f5
push dword [ebp + 8]
call fcn.0045089f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x45717c
call fcn.0044d915
mov dword [eax], 0xd
call fcn.0044d91e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0044f7f5
add esp, 0xc
mov eax, esi
pop edi
jmp 0x457196
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c969
leave
ret
Function at 0x457e67
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x457e80
or eax, 0xffffffff
jmp 0x457ee1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x457edd
push 0x3d
push esi
call fcn.00458068
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x457edd
cmp esi, eax
je 0x457edd
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4673ec]
sete cl
cmp eax, dword [0x4673f0]
mov dword [ebp - 4], ecx
jne 0x457ec3
mov edi, eax
call fcn.00457e06
mov dword [0x4673ec], eax
cmp eax, ebx
jne 0x457f1c
cmp dword [ebp + 0xc], ebx
je 0x457ee5
cmp dword [0x4673f4], ebx
je 0x457ee5
call fcn.004571f2
test eax, eax
je 0x457f1c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x457eee
xor eax, eax
jmp 0x457ee0
push 4
call fcn.00449adf
cmp eax, ebx
pop ecx
mov dword [0x4673ec], eax
je 0x457edd
mov dword [eax], ebx
cmp dword [0x4673f4], ebx
jne 0x457f1c
push 4
call fcn.00449adf
cmp eax, ebx
pop ecx
mov dword [0x4673f4], eax
je 0x457edd
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4673ec]
sub edi, esi
push esi
call fcn.00457db9
mov edi, eax
test edi, edi
pop ecx
jl 0x457f83
cmp dword [ebx], 0
je 0x457f83
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00449c88
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x457f63
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x457fc4
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x457f5a
mov eax, edi
shl eax, 2
push eax
push dword [0x4673ec]
call fcn.0044d560
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x457fc4
jmp 0x457fbf
cmp dword [ebp - 4], 0
jne 0x45802b
test edi, edi
jge 0x457f93
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4673ec]
call fcn.0044d560
test eax, eax
pop ecx
pop ecx
je 0x457edd
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4673ec], eax
cmp dword [ebp + 0xc], 0
je 0x458016
push esi
call fcn.00449b00
inc eax
inc eax
push eax
call fcn.00449adf
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x458016
push esi
push edi
call fcn.00449b90
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45800f
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00449c88
pop ecx
cmp dword [ebp - 4], 0
je 0x458023
push esi
call fcn.00449c88
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x457ee0
push esi
call fcn.00449c88
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x457eea
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4027a7
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
mov dword [0x41ff80], eax
push esi
lea eax, [ebp - 0xc]
push edi
push eax
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], 0x5ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push dword [0x41ff84]
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
call esi
cmp eax, 0xb7
je 0x4027ff
call esi
cmp eax, 5
jne 0x402867
mov esi, 0x414d40
mov ecx, esi
call fcn.0040119c
cmp eax, 3
jl 0x402867
lea eax, [ebp - 4]
push eax
push 0x402708
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, esi
call fcn.0040119c
lea eax, [eax + eax + 2]
mov edi, 0x2774
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
call fcn.00401908
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x4a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
jne 0x402867
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
pop eax
jmp 0x402943
cmp dword [ebp + 0x10], ebx
push 1
pop edi
je 0x402888
push 0x41410c
push dword [ebp + 0x10]
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x402888
mov dword [0x425710], edi
push dword [ebp + 8]
call fcn.0040294a
call fcn.004023cf
push dword [0x4257d4]
push str.disable_dark_theme
call fcn.00402381
add esp, 0xc
mov dword [0x4257d4], eax
mov esi, eax
call fcn.00402775
test eax, eax
je 0x4028cf
call fcn.00404446
cmp esi, ebx
jne 0x4028cf
push edi
push dword [0x41ff80]
call fcn.00404998
pop ecx
pop ecx
call fcn.00402c72
test eax, eax
je 0x4028e9
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004029dc
pop ecx
test eax, eax
pop ecx
jne 0x4028ed
xor eax, eax
jmp 0x402943
push 0x6d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call esi
test eax, eax
je 0x402940
mov eax, dword [0x4217e4]
cmp eax, ebx
je 0x402923
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402937
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
jmp 0x402905
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x402a2b
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x402a78
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402a78
push ebx
push 0x12
xor bl, bl
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test ah, 0x80
jne 0x402a62
push 1
pop ebx
push 0
push ebx
push 0
push 0x12
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test bl, bl
pop ebx
je 0x402a78
push 0
push 3
push 0
push 0x12
call esi
pop edi
pop esi
ret
Function at 0x403524
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x40bc64
call fcn.0040b8a0
sub esp, 0x410
push ebx
push esi
push edi
mov esi, 0x4142c4
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call sub.MSVCRT.dll__wfopen
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40362d
push edi
push 1
lea eax, [ebp - 0x14]
push 2
push eax
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_fread
push edi
call sub.MSVCRT.dll_fclose
add esp, 0x14
cmp word [ebp - 0x14], 0xfeff
mov dword [ebp - 0x10], ebx
jne 0x403582
mov dword [ebp - 0x10], 1
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll__wfopen
cmp dword [ebp - 0x10], ebx
pop ecx
pop ecx
mov edi, eax
je 0x4035a5
push edi
push 1
lea eax, [ebp - 0x14]
push 2
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov esi, 0x400
push esi
call fcn.00401908
push edi
push esi
lea eax, [ebp - 0x41c]
push 1
push eax
mov byte [ebp - 0x41c], bl
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, ebx
je 0x403623
cmp word [ebp - 0x14], 0xfeff
mov byte [ebp + eax - 0x41c], bl
jne 0x4035f7
mov ecx, dword [ebp + 0xc]
mov byte [ebp + eax - 0x41b], bl
lea eax, [ebp - 0x41c]
push eax
call fcn.004012ce
jmp 0x4035b3
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040114f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.004012b0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004019e0
jmp 0x4035b3
push edi
call sub.MSVCRT.dll_fclose
pop ecx
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004019e0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403727
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push 0x1bc
cmp dword [ebp + 0xc], eax
jne 0x403739
push eax
jmp 0x40373b
push 2
push eax
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_keybd_event]
pop ebp
ret
Function at 0x404089
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xc
pop ecx
xor eax, eax
mov edi, esi
push 0x5b
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
mov ebx, 0x8000
push 1
test ebx, eax
pop ebp
je 0x4040b0
mov dword [esi], ebp
push 0x5c
call edi
test ebx, eax
je 0x4040bb
mov dword [esi + 4], ebp
push 0xa5
call edi
test ebx, eax
je 0x4040c9
mov dword [esi + 8], ebp
push 0xa4
call edi
test ebx, eax
je 0x4040d7
mov dword [esi + 0xc], ebp
push 0x12
call edi
test ebx, eax
je 0x4040e2
mov dword [esi + 0x10], ebp
push 0x11
call edi
test ebx, eax
je 0x4040ed
mov dword [esi + 0x14], ebp
push 0xa3
call edi
test ebx, eax
je 0x4040fb
mov dword [esi + 0x18], ebp
push 0xa2
call edi
test ebx, eax
je 0x404109
mov dword [esi + 0x1c], ebp
push ebp
call edi
test ebx, eax
je 0x404113
mov dword [esi + 0x20], ebp
push 4
call edi
test ebx, eax
je 0x40411e
mov dword [esi + 0x24], ebp
push 2
call edi
test ebx, eax
je 0x404129
mov dword [esi + 0x28], ebp
cmp dword [esi], 0
mov edi, dword [sym.imp.USER32.dll_keybd_event]
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebp, 0x1bc
je 0x404153
push ebp
push 2
push 0
push 0x5b
call ebx
push eax
push 0x5b
call edi
mov dword [esi], 1
cmp dword [esi + 4], 0
je 0x40416e
push ebp
push 2
push 0
push 0x5c
call ebx
push eax
push 0x5c
call edi
mov dword [esi + 4], 1
cmp dword [esi + 8], 0
je 0x40418f
push ebp
push 2
push 0
push 0xa5
call ebx
push eax
push 0xa5
call edi
mov dword [esi + 8], 1
cmp dword [esi + 0xc], 0
je 0x4041b0
push ebp
push 2
push 0
push 0xa4
call ebx
push eax
push 0xa4
call edi
mov dword [esi + 0xc], 1
cmp dword [esi + 0x14], 0
je 0x4041cb
push ebp
push 2
push 0
push 0x11
call ebx
push eax
push 0x11
call edi
mov dword [esi + 0x14], 1
cmp dword [esi + 0x18], 0
je 0x4041ec
push ebp
push 2
push 0
push 0xa3
call ebx
push eax
push 0xa3
call edi
mov dword [esi + 0x18], 1
cmp dword [esi + 0x1c], 0
je 0x40420d
push ebp
push 2
push 0
push 0xa2
call ebx
push eax
push 0xa2
call edi
mov dword [esi + 0x1c], 1
cmp dword [esi + 0x20], 0
je 0x404228
push ebp
push 2
push 0
push 1
call ebx
push eax
push 1
call edi
mov dword [esi + 0x20], 1
cmp dword [esi + 0x24], 0
je 0x404243
push ebp
push 2
push 0
push 4
call ebx
push eax
push 4
call edi
mov dword [esi + 0x24], 1
cmp dword [esi + 0x28], 0
je 0x40425e
push ebp
push 2
push 0
push 2
call ebx
push eax
push 2
call edi
mov dword [esi + 0x28], 1
cmp dword [esi + 0x10], 0
je 0x404279
push ebp
push 3
push 0
push 0x12
call ebx
push eax
push 0x12
call edi
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret