joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45277c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458b44]
cmp dword [eax + 0x30], 0
je 0x452826
cmp dword [ebx + 0x94], 0
jne 0x452820
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45270c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452820
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4527e6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452820
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413e7c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4527f5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453384
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4533b9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404324
jmp 0x4533c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404288
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4544d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454519
mov eax, esi
call fcn.0043aac8
test al, al
je 0x454519
mov eax, dword [ebx + 0x84]
call fcn.0043a7c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454519
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a7c4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401190
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431890
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x45b680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x43c0b8
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x2e
call fcn.0041f52c
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
movzx edx, word [eax + 0x14]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ebx
lea esi, [edx + eax + 0x18]
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
jge 0x4012be
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40124d
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x4012b0
mov eax, dword [esi + 0xc]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call dword [0x45cab4]
nop
nop
nop
nop
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.0041f8f0
inc dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add esi, 0x28
jmp 0x4011f4
mov ecx, dword [esi + 0xc]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call dword [0x45cab4]
push 0x43c0b8
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 0x63
call fcn.0041f52c
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
call fcn.0041f580
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, 0x4012a4
ret
inc dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add esi, 0x28
jmp 0x4011f4
mov eax, 0x4012c4
ret

Function at 0x401e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401eb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401eb0
lea ebx, [ebx]
cmp esi, eax
jae 0x401eb4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ea0
cmp esi, eax
jb 0x401eba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40598d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4059b1
cmp dword [edi + 0x54], 0
jne 0x4059b1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040dc20
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040594e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x405fce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x406016
call fcn.0040dc20
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x406016
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x406059
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x406042
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406042
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406056
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40bf78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40bfbf
call fcn.0040dc20
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40bfbf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40bfdb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040baf2
mov esi, eax
test edi, edi
je 0x40bfd9
test ebx, ebx
je 0x40bfd9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c6ff
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x431fa2
call fcn.0041fe7d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40c724
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40c76a
lea ecx, [ebp - 0x10]
call fcn.004023b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bfe2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401f10
mov eax, esi
call fcn.0041ff55
ret 8

Function at 0x41f51d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b680]
jne 0x41f527
repz ret
jmp fcn.0042503c

Function at 0x42bed2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00424a23
and dword [ebp - 4], 0
cmp dword [0x45f38c], 0
mov ebx, eax
jne 0x42bf83
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42c034
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4388d0
push edi
call esi
test eax, eax
je 0x42c034
push eax
call fcn.004249b1
mov dword [esp], 0x4388c0
push edi
mov dword [0x45f38c], eax
call esi
push eax
call fcn.004249b1
mov dword [esp], 0x4388ac
push edi
mov dword [0x45f390], eax
call esi
push eax
call fcn.004249b1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45f394], eax
call esi
push eax
call fcn.004249b1
pop ecx
mov dword [0x45f39c], eax
test eax, eax
je 0x42bf83
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004249b1
pop ecx
mov dword [0x45f398], eax
mov eax, dword [0x45f398]
cmp eax, ebx
je 0x42bfdb
cmp dword [0x45f39c], ebx
je 0x42bfdb
push eax
call fcn.00424a2c
push dword [0x45f39c]
mov esi, eax
call fcn.00424a2c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42bfdb
test edi, edi
je 0x42bfdb
call esi
test eax, eax
je 0x42bfd2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42bfd2
test byte [ebp - 0xc], 1
jne 0x42bfdb
or dword [ebp + 0x10], 0x200000
jmp 0x42c014
mov eax, dword [0x45f390]
cmp eax, ebx
je 0x42c014
push eax
call fcn.00424a2c
pop ecx
test eax, eax
je 0x42c014
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42c014
mov eax, dword [0x45f394]
cmp eax, ebx
je 0x42c014
push eax
call fcn.00424a2c
pop ecx
test eax, eax
je 0x42c014
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45f38c]
call fcn.00424a2c
pop ecx
test eax, eax
je 0x42c034
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c036
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100097b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x100097dc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
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__]
jmp 0x100098c3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x10009874
jg 0x10009805
cmp dword [ebp + 0xc], 0
jbe 0x10009874
cmp dword [ebp - 8], 0
jl 0x10009874
jg 0x10009813
cmp dword [ebp - 0xc], 0
jbe 0x10009874
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x10009831
jl 0x10009825
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x10009831
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.1000aa00
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
nop
cmp dword [ebp + 0x10], 0
jl 0x100098b7
jg 0x10009882
cmp dword [ebp + 0xc], 0
jbe 0x100098b7
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x100098b7
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100098d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x100098f0
jl 0x100098e7
cmp dword [ebp + 0xc], 0
ja 0x100098f0
xor eax, eax
xor edx, edx
jmp 0x10009a38
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10009913
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
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__]
jmp 0x10009a38
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10009986
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.10009a40
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1000aa00
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10009a29
mov ecx, dword [ebp - 8]
call fcn.1000a300
mov dword [ebp - 0x20], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x100099f7
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x100099f5
xor eax, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
sbb edx, eax
mov eax, ecx
jmp 0x10009a38
jmp 0x100099a2
cmp dword [ebp - 4], 0
jbe 0x10009a29
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x1000a3ad
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1000a3b4
mov al, 1
jmp 0x1000a4a1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
call fcn.1000a970
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
call dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.1000a970
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.1000a9c0
add esp, 8
movzx eax, al
test eax, eax
je 0x1000a3fa
xor al, al
jmp 0x1000a4a1
mov dword [ebp - 0x2c], 0x20
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000a43d
cmp dword [ebp - 8], 1
je 0x1000a444
cmp dword [ebp - 8], 3
je 0x1000a494
jmp 0x1000a49f
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x1000a474
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x1000a474
xor al, al
jmp 0x1000a4a1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x1000a488
mov dword [ebp - 0x10], 1
jmp 0x1000a48f
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
jmp 0x1000a4a1
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x1000a4a1
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x100221f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x10601870
call fcn.1000fb00
push eax
mov ecx, dword [ebp - 8]
call fcn.10022310
movzx eax, al
test eax, eax
je 0x10022218
jmp 0x10022302
mov ecx, 0x10601870
call fcn.1000fb00
push eax
mov ecx, dword [ebp - 8]
call fcn.10020670
nop
mov ecx, 0x105db320
call fcn.100e7210
mov ecx, eax
call fcn.10020120
movzx ecx, byte [eax]
test ecx, ecx
jne 0x10022302
mov ecx, 0x105db320
call fcn.100e7130
cmp dword [eax + 0x4d30], 0x10
jg 0x10022302
mov edx, dword [0x1025ba18]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
mov edx, dword [0x10807990]
cmp edx, dword [ecx + 4]
jle 0x100222c2
push 0x10807990
call fcn.1013de53
add esp, 4
cmp dword [0x10807990], 0xffffffff
jne 0x100222c2
push str.B8_________3B_F0_0F_4F_F0_89_5D_FC
push 0x1014bda8
call fcn.100ef520
add esp, 8
add eax, 1
adc edx, 0
mov dword [0x10807998], eax
mov dword [0x1080799c], edx
push 0x10807990
call fcn.1013de02
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [0x10807998]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x10807998]
mov dword [edx], 0x11
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 4
mov edx, dword [0x10807998]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov esp, ebp
pop ebp
ret
Function at 0x1005d4b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
ja case.default.0x1005d4c8
mov ecx, dword [ebp - 8]
jmp dword [ecx*4 + 0x1005d51c]
mov al, 1
jmp 0x1005d515
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.1005d430
jmp 0x1005d515
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0xffff
je 0x1005d4fc
mov byte [ebp - 1], 1
jmp 0x1005d500
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
jmp 0x1005d515
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.1005d470
jmp 0x1005d515
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x100619f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x10061a0b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 0x1b8
call fcn.10022560
cmp dword [ebp - 4], eax
jae 0x10061a9a
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 4]
push edx
push str._preset__i
lea eax, [ebp - 0x48]
push eax
call sym.gs.dll_sprintf
add esp, 0xc
push 0x1015b204
push 0
lea ecx, [ebp - 0x48]
push ecx
push 0x1015b224
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
add edx, 0x40
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.10012c80
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.1001b900
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
lea ecx, [ebp - 0x28]
call fcn.1000a130
nop
jmp 0x10061a02
mov esp, ebp
pop ebp
ret

Function at 0x10067190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
mov dword [ebp - 0xc], ecx
mov ecx, 0xb
mov esi, str._pipediscord_ipc_0
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x10], 0x15
mov eax, 2
imul ecx, eax, 0x15
mov edx, 0x30
mov word [ebp + ecx - 0x40], dx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x100671fd
mov ecx, dword [ebp - 4]
mov byte [ecx], 1
mov al, 1
jmp 0x1006726e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0x10067240
mov edx, 2
imul eax, edx, 0x15
movzx ecx, word [ebp + eax - 0x40]
cmp ecx, 0x39
jge 0x1006723e
mov edx, 2
imul eax, edx, 0x15
mov cx, word [ebp + eax - 0x40]
add cx, 1
mov edx, 2
imul eax, edx, 0x15
mov word [ebp + eax - 0x40], cx
jmp 0x100671cb
jmp 0x10067265
cmp dword [ebp - 8], 0xe7
jne 0x10067265
push 0x2710
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x10067260
xor al, al
jmp 0x1006726e
jmp 0x100671cb
xor al, al
jmp 0x1006726e
pop edi
pop esi
mov esp, ebp
pop ebp
ret