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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100019bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100019e4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100019ea
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10001a52
jg 0x10001a01
test esi, esi
je 0x10001a52
test ecx, ecx
jl 0x10001a4d
jg 0x10001a0b
test eax, eax
je 0x10001a4d
cmp edi, ecx
jg 0x10001a1f
jl 0x10001a15
cmp esi, eax
jae 0x10001a1f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10001a55
mov ecx, dword [ebp + 8]
jmp 0x10001a5f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10001a79
jg 0x10001a5f
test esi, esi
je 0x10001a79
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10001a79
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x10001abc
jl 0x10001ab0
test ecx, ecx
jne 0x10001abc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10001ad5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10001b23
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10001b29
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10001b29
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10001b96
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10001b52
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10001b84
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10001b96
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10001b60
test edi, edi
je 0x10001b96
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10008040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10001f40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10001f7c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10001f7c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10002053
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10001fa4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10001fb0
movsx eax, bl
jmp 0x10001fe8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10002012
sub eax, 1
je 0x10002012
sub eax, 2
jne 0x10002053
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002030
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10002053
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003312
mov esp, ebp
pop ebp
ret 4
Function at 0x10002420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10008040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100024dc
cmp byte [esi + 0x3d], 0
je 0x100024dc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100024ca
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10002491
sub eax, 1
je 0x10002495
sub eax, 2
jne 0x100024ca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100024b3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100024ca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003312
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10003312
mov esp, ebp
pop ebp
ret
Function at 0x401810
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push ebp
mov edx, dword [eax]
lea ebp, [ecx + 4]
push esi
mov dword [ecx], edx
lea esi, [eax + 4]
mov ebx, ebp
push edi
mov edi, dword [eax]
xor ecx, ecx
sub ebx, esi
mov eax, dword [esi]
add esi, 4
mov edx, eax
sub eax, ecx
xor edx, edi
add eax, edi
mov edi, ecx
mov dword [ebx + esi - 4], edx
imul edi, ecx
xor eax, edi
inc ecx
cmp ecx, 7
mov edi, eax
jl 0x40182e
mov ecx, dword [ebp]
xor eax, eax
pop edi
cmp ecx, 0x4e4e4f4b
pop esi
pop ebp
sete al
pop ebx
ret

Function at 0x401870
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ebx
mov ebx, eax
not eax
shr ebx, 2
add edx, eax
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
test ebx, ebx
jle 0x4018b4
push ebp
mov ebp, dword [esp + 0x10]
push edi
sub ebp, esi
mov edi, dword [esi]
add esi, 4
mov ecx, edi
add edi, eax
xor ecx, edx
add edi, edx
mov edx, eax
mov dword [esi + ebp - 4], ecx
imul edx, eax
xor edx, edi
inc eax
cmp eax, ebx
jl 0x401895
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x43b657
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
inc ebx
mov ebx, edx
mov edx, 0x118ce94a
call fcn.0043b697
and edx, edx
xor dword [edi], eax
sub edx, 0xda623e5e
sub ebx, ebx
add edi, 1
add ebx, ebx
push ebx
pop ebx
or edx, ebx
cmp edi, ecx
jne fcn.0043b657
sub edx, 0xd887eedc
sub ebx, ebx
sub esp, 4
mov dword [esp], edx
pop ebx
ret
Function at 0x44ca92
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
shl edi, 6
add edi, 0x58a298
test byte [0x5a04c0], 1
jne 0x44cad9
or byte [0x5a04c0], 1
push 0x4b9686
push fcn.00405973
push 0x12
push 4
push 0x5a0328
call fcn.004e6265
push 0x44cbdd
call fcn.004e7063
pop ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push dword [eax]
call fcn.004e68b0
inc eax
push eax
call fcn.00504a8e
lea ebx, [ebx*4 + 0x5a0328]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
push dword [ecx]
push eax
call fcn.004e7250
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
push dword [eax + 4]
call fcn.004e7d26
fstp dword [edi + 8]
add esp, 0x14
lea ebx, [edi + 0xc]
mov dword [ebp + 8], 8
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
push dword [ecx + eax]
call fcn.004e716c
add dword [ebp + 8], 4
mov byte [ebx], al
inc ebx
cmp dword [ebp + 8], 0x18
pop ecx
jl 0x44cb21
lea ebx, [edi + 0x10]
mov dword [ebp + 8], 0x18
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
push dword [ecx + eax]
call fcn.004e716c
add dword [ebp + 8], 4
mov byte [ebx], al
inc ebx
cmp dword [ebp + 8], 0x28
pop ecx
jl 0x44cb47
lea ebx, [edi + 0x14]
mov dword [ebp + 8], 0x28
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
push dword [ecx + eax]
call fcn.004e716c
add dword [ebp + 8], 4
mov byte [ebx], al
inc ebx
cmp dword [ebp + 8], 0x38
pop ecx
jl 0x44cb6d
lea eax, [edi + 0x18]
mov dword [ebp + 8], 0x38
mov dword [ebp + 0xc], eax
mov ebx, 0xa8
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
push dword [ecx + eax]
call fcn.004e716c
add dword [ebp + 8], 4
pop ecx
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
cmp dword [ebp + 8], ebx
mov byte [ecx], al
jl 0x44cb9b
add edi, 0x34
mov eax, dword [esi + 4]
push dword [ebx + eax]
call fcn.004e716c
mov byte [edi], al
add ebx, 4
inc edi
cmp ebx, 0xcc
pop ecx
jl 0x44cbbe
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45ea6f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x526547
call fcn.004e66c0
sub esp, 0x10
mov eax, dword [0x5948c8]
and dword [ebp - 0x14], 0
push ebx
push esi
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push 1
pop ebx
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push 4
push edx
mov dword [ebp - 4], ebx
call dword [eax + 0x64]
mov eax, dword [0x5948c8]
mov dword [ebp + 0xc], eax
mov esi, 0x104
lea ecx, [ebp + 0xc]
push esi
mov byte [ebp - 4], 2
call fcn.00505109
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.00505158
test esi, esi
push str.autosave
jne 0x45eafa
lea ecx, [ebp - 0x18]
call fcn.00504dbb
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
push ecx
push eax
push dword [ebp + 8]
call fcn.00504f7c
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
jmp 0x45eb3b
lea ecx, [ebp - 0x1c]
call fcn.00504dbb
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.00504f7c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
push ecx
push eax
push dword [ebp + 8]
call fcn.00504f7c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 4
call fcn.00504d4d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00504d4d
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00504d4d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00504d4d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x460375
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
xor eax, eax
push ebx
cmp dword [0x5a0ee0], eax
push esi
push edi
mov esi, ecx
jbe 0x46048c
cmp dword [esi + 0xb4], eax
jne 0x46048c
cmp dword [esi + 0xb8], eax
jne 0x46048c
cmp dword [esi + 0xbc], eax
jne 0x46048c
cmp dword [esi + 0xc0], eax
jne 0x46048c
cmp dword [esi + 0xc4], eax
jne 0x46048c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [0x5a0ee0]
mov ecx, dword [esi + 0x148]
imul edi, edi, 0xea60
sub eax, ecx
mov ebx, eax
cmp ebx, edi
jb 0x46048c
xor edx, edx
div edi
sub ecx, edx
add ecx, ebx
mov dword [esi + 0x148], ecx
cmp byte [esi + 0xc9], 0
je 0x46048c
lea edi, [esi + 0xcc]
push 0x5c
mov ecx, edi
call fcn.004fe181
cmp eax, 0xffffffff
je 0x460472
push eax
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.004fe109
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x460456
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x144]
shr ebx, 4
and bl, 1
jmp 0x460466
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
lea ecx, [ebp - 4]
call fcn.00504d4d
test bl, bl
je 0x46048c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
push dword [edi]
mov ecx, esi
mov ebx, eax
call fcn.0050ab11
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x5c]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x468f7a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi], bl
jne 0x468f9a
cmp byte [esi + 1], bl
je 0x468f9a
mov eax, dword [esi + 4]
jmp 0x4690c9
cmp word [esi + 0xc], bx
mov byte [esi], bl
mov byte [esi + 1], 1
jne 0x468fc0
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, ebx
setne cl
inc ecx
mov dword [esi + 8], eax
mov word [esi + 0xc], cx
cmp word [esi + 0xc], 2
jne 0x468ff4
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x468ff4
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x468ff4
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 4], eax
jmp 0x4690c9
push 0x94
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.004e77b0
add esp, 0xc
add esi, 4
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x94
push eax
mov dword [esi], 3
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4690c7
cmp dword [ebp - 0x90], 1
je 0x469047
cmp dword [ebp - 0x90], 2
jne 0x4690c7
cmp dword [ebp - 0x9c], 4
jae 0x4690b3
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4690c7
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.WheelScrollLines
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4690a8
push 0xa
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.004e7c8a
add esp, 0xc
mov dword [esi], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4690c7
cmp dword [ebp - 0x90], 2
jne 0x4690c7
push ebx
push esi
push ebx
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi]
pop esi
pop ebx
leave
ret
Function at 0x46c02a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x14]
mov esi, ecx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x46c125
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetClientRect]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0050143c
cmp eax, esi
je 0x46c0ac
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call fcn.0050143c
cmp eax, esi
jne 0x46c125
push dword [ebp - 8]
lea eax, [ebp - 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x46c125
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
call esi
mov di, ax
push 4
and edi, 0xfffffffe
neg di
sbb edi, edi
and edi, 8
call esi
and al, 0xfe
push 0x10
neg ax
sbb eax, eax
and eax, 0x10
or edi, eax
call esi
and al, 0xfe
push 2
neg ax
sbb eax, eax
and eax, 4
or edi, eax
call esi
and al, 0xfe
push 1
neg ax
sbb eax, eax
and eax, 2
or edi, eax
call esi
and al, 0xfe
neg ax
movzx ecx, word [ebp - 0xc]
sbb eax, eax
neg eax
or edi, eax
movzx eax, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
mov eax, dword [ebp - 4]
push edi
push 0x200
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
leave
ret
Function at 0x46c128
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x526e27
call fcn.004e66c0
sub esp, 0xc8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_OpenClipboard]
xor ebx, ebx
cmp eax, ebx
je 0x46c283
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x46c191
mov al, byte [ebp - 0x11]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.004016d9
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x78]
push eax
mov byte [ebp - 4], 2
call fcn.0040204d
lea eax, [ebp - 0x78]
push 0x55d660
push eax
call fcn.004e692b
push 0x1000
push 0x2002
lea ecx, [ebp - 0x5c]
call fcn.00515b29
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0xd4]
push eax
mov byte [ebp - 4], 3
call fcn.00486885
mov al, byte [esi + 0x50]
mov ecx, dword [esi + 0x48]
xor edx, edx
cmp al, bl
setne dl
push edx
mov byte [ebp - 4], 4
call fcn.00429ebd
push dword [esi + 0xd4]
mov ecx, eax
call fcn.0042b259
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00429622
pop ecx
mov byte [ebp - 4], 3
pop ecx
lea ecx, [ebp - 0xd4]
call fcn.0048695c
lea ecx, [ebp - 0x5c]
call fcn.00515c4e
cmp eax, ebx
mov dword [esi + 0x124], eax
jne 0x46c23d
mov al, byte [ebp - 0x11]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.004016d9
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x94]
push eax
mov byte [ebp - 4], 5
call fcn.0040204d
lea eax, [ebp - 0x94]
push 0x55d660
push eax
call fcn.004e692b
push eax
push dword [0x5a2c58]
call dword [sym.imp.USER32.dll_SetClipboardData]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00515b6f
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
jmp 0x46c285
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x486885
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x528f53
call fcn.004e66c0
sub esp, 0x24
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.00448f2f
and dword [ebp - 4], 0
mov ecx, esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00449962
mov eax, dword [ebp + 8]
and dword [esi + 0x3c], 0
push 0x200
mov dword [ebp - 4], 1
mov dword [esi + 0x38], eax
mov dword [esi], vtable.TMFCFileBuf.0
call fcn.00504a8e
test eax, eax
pop ecx
mov dword [esi + 0x3c], eax
jne 0x4868fc
push str.Allocation_failure.
lea ecx, [ebp - 0x30]
call fcn.004188a5
lea eax, [ebp - 0x30]
push 0x55d608
push eax
mov dword [ebp - 0x30], vtable.TAllocationFailure.0
call fcn.004e692b
mov edx, dword [esi + 0xc]
lea ecx, [eax + 0x200]
mov dword [edx], eax
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, ecx
sub eax, ecx
mov ecx, dword [esi + 0x2c]
mov dword [ecx], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x3c]
mov dword [edx], eax
mov edx, dword [esi + 0x20]
lea ecx, [eax + 0x200]
mov dword [edx], eax
sub ecx, eax
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x48a499
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x529469
call fcn.004e66c0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005006ed
and dword [ebp - 4], 0
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.0050101b
mov dword [edi], vtable.CButton.0
lea ebx, [esi + 0x98]
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.0050101b
mov edi, vtable.CComboBox.0
mov dword [ebx], edi
lea ebx, [esi + 0xd4]
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.0050101b
mov dword [ebx], edi
lea ebx, [esi + 0x110]
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.0050101b
mov dword [ebx], edi
lea ebx, [esi + 0x14c]
mov byte [ebp - 4], 4
mov ecx, ebx
call fcn.0050101b
mov dword [ebx], edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x19c]
mov byte [ebp - 4], 5
call fcn.0045decb
and dword [esi + 0x1b0], 0
and dword [esi + 0x18c], 0
or eax, 0xffffffff
mov byte [ebp - 4], 6
mov dword [esi], vtable.TNewMapDlg.0
mov dword [esi + 0x188], eax
mov dword [esi + 0x190], eax
mov dword [esi + 0x194], eax
mov dword [esi + 0x198], eax
call fcn.00518d40
mov edi, dword [eax + 0xc]
push 5
push 0x9f
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x48a5ed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48a5ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x48a5ed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.004e814e
test eax, eax
pop ecx
mov dword [esi + 0x1b0], eax
je 0x48a5ed
push edi
push dword [ebp + 0xc]
push eax
call fcn.004e6970
mov eax, dword [esi + 0x1b0]
mov cx, word [0x5a2fe8]
add esp, 0xc
mov word [eax + 0xe], cx
mov eax, dword [esi + 0x1b0]
mov cx, word [0x5a2fec]
push 0
push dword [ebp + 8]
mov word [eax + 0x10], cx
mov ecx, esi
push dword [esi + 0x1b0]
call fcn.00500a84
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8