joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c33c8
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x4da154
call fcn.004cbc30
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x28], ebx
jne 0x4c347d
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call sym.QQProtectUpd.exe_void___cdecl_Util::Misc::SplitCmdString_class_CTXStringW_const___class_std::vector_class_CTXStringW__class_std::allocator_class_CTXStringW____
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
inc eax
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], eax
je 0x4c3468
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
cmp esi, eax
jbe 0x4c3468
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.004525b7
mov ecx, eax
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
cmp eax, ebx
je 0x4c3460
push 0xa
push 0x4f4c98
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4c3460
mov dword [edi + 0x2c], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jb 0x4c3432
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [edi + 0x28], eax
call fcn.00431c80
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x28], eax
je 0x4c34a3
cmp dword [edi + 0x2c], ebx
je 0x4c349f
push ebx
push 0x4e4a0c
push 0x4f775c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4c34a6
xor eax, eax
inc eax
call fcn.004cbd08
ret
Function at 0x4c3810
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x44
mov eax, 0x4d9e68
call fcn.004cbc30
push 0x4dcd18
push str..FS_SS
push str.CSSFile::Close
push 1
push 0xad
mov ebx, str.....SourceCommonFileSystemSSFileSystemSSFile.cpp
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0045ba29
add esp, 0x1c
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push 1
push str.SS::Close
push 0x4f7750
push esi
lea ecx, [ebp - 0x50]
call fcn.004a27a8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebp - 4], 1
call edi
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004c33c8
test eax, eax
jne 0x4c3882
mov byte [ebp - 4], al
jmp 0x4c3934
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
je 0x4c3931
cmp dword [eax + 4], ecx
je 0x4c3931
cmp dword [esi + 8], ecx
je 0x4c3931
dec dword [eax + 0xc]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xc], ecx
jne 0x4c38d2
push dword [esi + 8]
call fcn.0047d907
mov ecx, eax
call fcn.0047e066
test eax, eax
je 0x4c38d2
push dword [esi + 0xc]
mov ecx, dword [esi + 8]
call fcn.004b15db
mov ecx, dword [esi + 8]
call fcn.004b0658
and dword [esi + 0xc], 0
call edi
sub eax, dword [ebp + 8]
cmp eax, 0xa
jbe 0x4c3915
push eax
push dword [esi + 0x14]
mov eax, dword [esi + 8]
push ecx
add eax, 8
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push str.Path_s_FileName_s_CostTime__d
push str.PerfFS.CloseFile
push 4
push str.CSSFile::Close
push 0xcf
push ebx
call fcn.0042d2a0
add esp, 0x24
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.004a288d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0045baa8
xor eax, eax
jmp 0x4c394d
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x50]
call fcn.004a288d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0045baa8
mov eax, 0x80004005
call fcn.004cbd08
ret 4
Function at 0x4c48eb
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x4da154
call fcn.004cbc30
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x68], ebx
jne 0x4c49a0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x14]
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call sym.QQProtectUpd.exe_void___cdecl_Util::Misc::SplitCmdString_class_CTXStringW_const___class_std::vector_class_CTXStringW__class_std::allocator_class_CTXStringW____
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sym.QQProtectUpd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
inc eax
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], eax
je 0x4c498b
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
cmp esi, eax
jbe 0x4c498b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.004525b7
mov ecx, eax
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
cmp eax, ebx
je 0x4c4983
push 0xa
push 0x4f4c98
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4c4983
mov dword [edi + 0x6c], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jb 0x4c4955
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [edi + 0x68], eax
call fcn.00431c80
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x68], eax
je 0x4c49c6
cmp dword [edi + 0x6c], ebx
je 0x4c49c2
push ebx
push 0x4e4a0c
push 0x4f7bb4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4c49c9
xor eax, eax
inc eax
call fcn.004cbd08
ret
Function at 0x4c70ce
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x4da7b0
call fcn.004cbc30
mov esi, ecx
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 0x14], ecx
mov eax, dword [esi + 8]
mov ebx, dword [ebp + 0x10]
jb 0x4c70f6
ja 0x4c70f0
cmp ebx, eax
jbe 0x4c70f6
mov ecx, ebx
sub ecx, eax
jmp 0x4c70fa
sub eax, ebx
mov ecx, eax
push dword [ebp + 0xc]
xor edi, edi
push ecx
push edi
push str.CD::ReadIO
push 0x4f829c
push esi
lea ecx, [ebp - 0x40]
call fcn.004a2814
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add eax, ebx
adc ecx, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
mov dword [esi + 0xc], ecx
jne 0x4c7146
mov edi, 0xe06303e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004a288d
mov eax, edi
call fcn.004cbd08
ret 0x10
cmp dword [ebp + 8], edi
jne 0x4c7152
mov edi, 0x80070057
jmp 0x4c7130
push edi
push edi
push dword [ebp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4c716a
mov edi, 0xe06303e8
jmp 0x4c7130
mov ebx, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c7163
cmp ebx, dword [ebp - 0x10]
je 0x4c7130
mov edi, 0x206303e8
jmp 0x4c7130

Function at 0x4c718e
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x4da7b0
call fcn.004cbc30
mov esi, ecx
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 0x14], ecx
mov eax, dword [esi + 8]
mov ebx, dword [ebp + 0x10]
jb 0x4c71b6
ja 0x4c71b0
cmp ebx, eax
jbe 0x4c71b6
mov ecx, ebx
sub ecx, eax
jmp 0x4c71ba
sub eax, ebx
mov ecx, eax
push dword [ebp + 0xc]
xor edi, edi
push ecx
push edi
push str.CD::WriteIO
push 0x4f829c
push esi
lea ecx, [ebp - 0x40]
call fcn.004a2814
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add eax, ebx
adc ecx, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
mov dword [esi + 0xc], ecx
jne 0x4c7200
mov esi, 0xe06303e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004a288d
mov eax, esi
jmp 0x4c7262
cmp dword [ebp + 8], edi
jne 0x4c720c
mov esi, 0x80070057
jmp 0x4c71f0
push edi
push edi
push dword [ebp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4c7224
mov esi, 0xe06303e8
jmp 0x4c71f0
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c7251
cmp edi, dword [ebp - 0x10]
jne 0x4c7251
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004a288d
xor eax, eax
jmp 0x4c7262
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004a288d
mov eax, 0xe06303e8
call fcn.004cbd08
ret 0x10
Function at 0x4cb27a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x56d2e4], 0
push esi
jne 0x4cb1ed
call fcn.004cb118
test eax, eax
je 0x4cb230
mov eax, dword [0x56d2e4]
cmp eax, 1
jne 0x4cb20e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4cb230
pop esi
ret
push eax
call dword [0x56d2ec]
test eax, eax
jne 0x4cb278
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4cb234
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x56d2e4]
call dword [0x56d2ec]
mov edi, eax
test edi, edi
je 0x4cb25b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4cb277
lea edi, [esi + 0xff0]
push esi
push dword [0x56d2e4]
call dword [0x56d2e8]
add esi, 0x10
cmp esi, edi
jb 0x4cb261
mov eax, esi
pop edi
pop esi
ret
jmp 0x4cb1da

Function at 0x4cb3a4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x528f34]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004cb339
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4cb3f3
cmp dword [ebp - 0x1c], 5
jb 0x4cb40b
jmp 0x4cb407
cmp dword [ebp - 0x10], 1
jne 0x4cb40b
cmp dword [ebp - 0x1c], 4
ja 0x4cb407
jne 0x4cb40b
cmp dword [ebp - 0x18], 0
jbe 0x4cb40b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4f86d4
call fcn.00444990
test eax, eax
jge 0x4cb42c
mov byte [0x56d6d8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00417cf0
add ebp, 0x78
leave
ret

Function at 0x4cb642
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x528f34]
jne 0x4cb64c
repz ret
jmp fcn.004cbf8f
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x403d60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov edi, ecx
not eax
nop
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4571d0]
sub esi, 1
jne 0x403d70
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x403d90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x403ddc
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x403dbf
cmp edi, 2
jb 0x403dbf
cmp byte [esi], cl
jne 0x403dbf
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4571d0]
test edi, edi
jne 0x403da5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x403e0b
cmp cl, 0x23
jne 0x403df2
cmp byte [esi], cl
jne 0x403df2
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4571d0]
test cl, cl
jne 0x403de3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x403f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edx
push dword [ebp + 0x10]
push 1
push ecx
call fcn.00439215
add esp, 0x10
xor edx, edx
pop ebp
ret
Function at 0x418120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004137e0
Function at 0x41e6c0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
xor esi, esi
mul ebx
mov ecx, 1
mov dword [ebp - 0xc], esi
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebx
sub edx, eax
mov dword [ebp - 4], edx
test ebx, ebx
je 0x41e807
xor ebx, ebx
cmp edx, 7
jbe 0x41e759
mov eax, 7
sub eax, edi
mov dword [ebp - 0x10], eax
movzx eax, byte [edi]
add ebx, 8
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add edi, 8
add ecx, eax
mov eax, dword [ebp - 0x10]
add eax, edi
add esi, ecx
cmp eax, edx
jb 0x41e708
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x10], 0
cmp ebx, eax
jae 0x41e7cc
sub eax, ebx
cmp eax, 2
jb 0x41e7b8
mov edx, dword [ebp - 4]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov esi, ebx
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add ebx, ecx
add edi, 2
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x41e786
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jae 0x41e7c4
movzx eax, byte [edi]
mov edx, dword [ebp - 8]
add ecx, eax
add esi, ecx
inc edi
jmp 0x41e7c7
movzx eax, byte [edi]
mov ebx, edx
add ecx, eax
add esi, ecx
inc edi
jmp 0x41e7c7
mov edx, dword [ebp - 8]
lea eax, [edx + ebx]
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, dword [ebp - 4]
add esi, eax
sub dword [ebp + 8], edx
mov edx, 0x15b0
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edx
jne 0x41e6f7
shl esi, 0x10
pop edi
lea eax, [ecx + esi]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4207a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.004061d0
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push dword [0x46cf4c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
movd xmm2, ecx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
cvtdq2ps xmm2, xmm2
movd xmm1, ecx
lea ecx, [ebp - 0x28]
cvtdq2ps xmm1, xmm1
call fcn.00401520
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x46cf50]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x46cf54]
call fcn.0044cb70
mov edx, dword [0x46cf5c]
mov ecx, dword [0x46cf58]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x24], xmm0
call fcn.0044cb70
movss xmm1, dword [ebp - 0x24]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [0x46cf50], eax
mov dword [0x46cf54], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf9], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xfb], 0
mov byte [edi + 0xfa], al
call fcn.00420400
cmp byte [edi + 0xa8], 0
je 0x4208a1
or eax, 0xffffffff
jmp 0x4208a6
call fcn.00408430
cmp dword [0x4698d4], eax
je 0x4208b8
mov dword [0x4698d4], eax
call fcn.004202d0
call fcn.00420500
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00432429
mov esp, ebp
pop ebp
ret
Function at 0x4316a0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
mov dword [0x46bb68], 0x1571
push esi
push edi
mov dword [0x46bb6c], 0
mov edi, 0x1571
lea esi, [edx + 1]
push 0x5851f42d
mov ecx, edx
xor eax, eax
push 0x4c957f2d
shr ecx, 0x1e
xor eax, edx
xor ecx, edi
push eax
push ecx
call fcn.0044c570
mov edi, eax
add edi, esi
mov dword [esi*8 + 0x46bb68], edi
adc edx, 0
mov dword [esi*8 + 0x46bb6c], edx
inc esi
cmp esi, 0x138
jb 0x4316c0
pop edi
mov dword [0x46bb60], 0x138
pop esi
ret 0x10

Function at 0x435e32
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044c450
mov eax, dword [0x46900c]
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.00440126
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x435e74
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x435fd0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044c3a0
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 + 0x46a068]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00440335
mov ecx, dword [esi*4 + 0x46a068]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x435fc9
cmp eax, dword [ecx + edi + 0x24]
jne 0x435fc9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435fc9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00440335
add esp, 0x14
test edx, edx
jl 0x435fc9
jg 0x435f3f
test eax, eax
jb 0x435fc9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x435fc9
jl 0x435f59
cmp dword [ebp - 0x1008], eax
ja 0x435fc9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x435f77
test ebx, ebx
je 0x435fb0
cmp ecx, edi
jae 0x435fb0
mov al, byte [ecx]
cmp al, 0xd
jne 0x435f91
lea eax, [edi - 1]
cmp ecx, eax
jae 0x435f9d
cmp byte [ecx + 1], 0xa
jne 0x435f9d
inc ecx
jmp 0x435f9d
movzx eax, al
movsx eax, byte [eax + 0x4691c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x435f77
cmp edx, ebx
jne 0x435f77
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x435fce
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00432429
leave
ret
Function at 0x43edaa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43ede9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43ede9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ede9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43ede9
cmp dword [ecx + 0x74], 0xe
jbe 0x43ede9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4409da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x46a068]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x440a1a
cmp byte [ebx], 0xa
jne 0x440a1a
or byte [edi + eax + 0x28], 4
jmp 0x440a1f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x440b1e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x440b01
inc eax
cmp dl, 0xd
je 0x440a4b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x440a71
cmp eax, ecx
jae 0x440a7f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x440a33
jmp 0x440b1e
push 0
lea eax, [ebp - 0x10]
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 0x440afc
cmp dword [ebp - 0x10], 0
je 0x440afc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46a068]
test byte [eax + edi + 0x28], 0x48
je 0x440ad6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x440ac1
mov byte [esi], dl
jmp 0x440ad2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46a068]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x440b1e
cmp byte [ebp - 1], 0xa
jne 0x440ae5
cmp esi, ebx
jne 0x440ae5
mov byte [esi], 0xa
jmp 0x440b1d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00440353
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x440b1e
mov byte [esi], 0xd
jmp 0x440b1d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46a068]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x440b1b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x440b1e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret