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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x408487
cmp byte [esi + 0x3d], 0
je 0x408487
push 0xffffffffffffffff
call fcn.00407460
cmp eax, 0xffffffff
je 0x408440
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x408499
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x28], edi
sub eax, 0
je 0x408452
sub eax, 1
je 0x408456
sub eax, 2
je 0x408487
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x408470
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00452bdc
add esp, 0x10
cmp edi, eax
jne 0x408440
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00444204
mov esp, ebp
pop ebp
ret
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 [edx + 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x408431

Function at 0x408750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470860
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4954f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004446a7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00442cac
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.004084c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40a000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470a9a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x497fcc]
test eax, eax
jne 0x40a116
push 0x28
call fcn.004446a7
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
lea ebx, [esi + 4]
mov dword [ebx], 0
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 7
mov word [esi + 0x10], ax
mov byte [ebp - 4], 1
mov word [ebp - 0x24], ax
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x65006b
push eax
mov dword [ebp - 0x30], 0x6e0072
mov dword [ebp - 0x2c], 0x6c0065
mov dword [ebp - 0x28], 0x320033
mov dword [ebp - 0x20], 0x6f577349
mov dword [ebp - 0x1c], 0x50343677
mov dword [ebp - 0x18], 0x65636f72
mov word [ebp - 0x14], 0x7373
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40a0e0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push str.RtlGetNtVersionNumbers
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a10e
push 0
lea ecx, [esi + 8]
push ecx
push ebx
call eax
xor eax, eax
mov word [esi + 6], ax
mov word [esi + 0xa], ax
mov dword [0x497fcc], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret
Function at 0x40b920
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40b954
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b954
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x40ba1c
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x40b973
cmp dx, 0x5c
jne 0x40b975
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x40b967
cmp esi, ebx
je 0x40b9c3
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.0044b510
add esp, 0xc
cmp esi, 0x208
jae 0x40ba2c
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0040b920
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x40b9e6
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044f0a8
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00453b77
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ba1c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00444204
mov esp, ebp
pop ebp
ret
call fcn.004445cd
int3
Function at 0x40c390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x40c534
cmp dword [ebx + 4], 0xffffffff
jne 0x40c534
push esi
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c3c7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x40c3fb
cmp eax, 0x2f
je 0x40c3fb
push 0x487e58
push 0x104
push esi
call fcn.00453b77
add esp, 0xc
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x40c426
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c441
pop edi
pop esi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x40c43e
cmp edi, 3
je 0x40c43e
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x40c487
cmp edi, 2
jne 0x40c4a3
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c481
pop edi
pop esi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x40c48d
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.004446a7
add esp, 4
mov esi, eax
cmp edi, 1
je 0x40c4de
cmp edi, 2
je 0x40c4de
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x40c50f
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x40c50f
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.0040f520
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop edi
cmove ecx, edx
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cc20
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x475900]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x475900]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x40f0e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x40f11e
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f112
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call fcn.0044b510
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40f150
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40f15e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x40f21d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
sub edi, 1
jne 0x40f176
pop edi
test esi, esi
je 0x40f23b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x475900]
sub esi, 1
jne 0x40f221
not eax
pop esi
pop ebp
ret
Function at 0x410010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
cmp byte [esi], 0
je 0x410044
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xb]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41003f
mov byte [esi + 8], 1
mov edi, dword [ebp - 4]
jmp 0x410070
mov ecx, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x410056
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp + 0xb]
push eax
call fcn.0044b510
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x1c], eax
pop ebx
cmp edi, 1
jne 0x410086
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0xb]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x41007e
cmp byte [esi + 8], 0
je 0x41007e
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470c71
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4954f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x38]
mov dword [edi], 0
mov ecx, ebx
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp + 8], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00415210
mov dword [ebx], eax
lea esi, [edi + 0x40]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b490
mov dword [esi], eax
add edi, 0x48
mov byte [ebp - 4], 1
mov ecx, edi
mov dword [ebp + 8], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00415230
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, ebx
mov dword [eax + 0x50], 0
call fcn.00415c60
mov ecx, esi
call fcn.0040b4f0
mov esi, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 3
push dword [esi + 4]
call fcn.004154a0
mov eax, dword [edi]
mov byte [ebp - 4], 2
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
call fcn.0041aeb0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411a40
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x411bbb
test ebx, ebx
je 0x411bbb
cmp word [ebx], 0
je 0x411bbb
push esi
push 0xfffffffffffffff0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x411b39
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
jne 0x411b39
mov eax, dword [edi + 0x18]
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x34], 0x2c
mov dword [ebp - 0x30], 0xa1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [edi]
mov dword [ebp - 0x10], ebx
call esi
lea ecx, [ebp - 0x3c]
call fcn.0041a310
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x38]
add eax, 0xf
movzx ecx, ax
mov eax, dword [ebp - 0x3c]
add eax, 0xf
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push 0
push 0x412
push dword [edi]
call esi
lea eax, [ebp - 0x34]
push eax
push 1
push 0x411
jmp 0x411bb6
mov eax, dword [edi + 0x18]
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x34], 0x2c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x18]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [edi]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0041a310
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push 0
push 0x41c
push dword [edi]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00444204
mov esp, ebp
pop ebp
ret 4
Function at 0x4197e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x419945
cmp dword [eax + 0x21c], 0
je 0x41982f
push ebx
push esi
push edi
push eax
call fcn.004199e0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret 0x10
push 0x104
add eax, 0xc
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00453cb9
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00453b77
add esp, 0x1c
lea eax, [ebp - 0x20c]
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x419945
test edi, edi
je 0x419945
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x419916
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push 0
push eax
mov dword [esi], eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebx], 0
jne 0x4198c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419937
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
push ecx
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419916
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
test ecx, ecx
je 0x41992f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444204
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41b7c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b7e0
lea ecx, [ebp + 0xc]
sub eax, edx
push ecx
push 0
push dword [ebp + 8]
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00401560
push dword [eax + 4]
push dword [eax]
call fcn.00452767
mov ecx, dword [0x496f98]
lea eax, [ecx + 1]
mov dword [0x496f98], eax
lea eax, [ebp - 0x404]
push eax
push ecx
lea eax, [ebp - 0xc04]
push str.__d__s
push eax
call fcn.004113d0
add esp, 0x30
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret
Function at 0x421580
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov di, word [ebp + 8]
and eax, 0x8000
movzx edx, di
add edx, 0xfffffffd
cmp edx, 0x17
ja case.0x4215ae.4
movzx ecx, byte [edx + 0x421710]
jmp dword [ecx*4 + 0x4216f8]
test dword [esi + 0xdf8], 0x800
jne 0x4216ed
test eax, eax
jne 0x4216ed
mov eax, dword [esi + 0xe10]
cmp eax, dword [esi + 0xe14]
jne 0x421609
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00420dd0
mov eax, dword [esi + 0xe14]
test eax, eax
lea ecx, [eax - 1]
cmove ecx, eax
push ecx
push dword [esi + 0xe10]
mov ecx, esi
call fcn.00420dd0
mov ecx, esi
call fcn.00420ab0
mov eax, dword [esi]
push esi
call dword [eax + 0x1c4]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test byte [esi + 0xdf8], 0x20
jne 0x4216ed
mov eax, dword [esi]
push esi
call dword [eax + 0x1c0]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0xdf8], 0x800
jne 0x4216ed
mov eax, dword [esi]
push esi
call dword [eax + 0x1bc]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0xdf8], 0x820
jne 0x4216ed
mov eax, dword [esi]
push esi
call dword [eax + 0x1c8]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
test dword [esi + 0xdf8], 0x800
jne 0x4216ed
mov ecx, esi
call fcn.00421ed0
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0xdf8]
test eax, 0x2000
je 0x4216bf
cmp di, 0x30
jb 0x4216b9
cmp di, 0x39
jbe 0x4216bf
cmp di, 0x2d
jne 0x4216ed
test eax, 0x800
jne 0x4216ed
cmp di, 0x20
jb 0x4216ed
cmp di, 0x7f
je 0x4216ed
xor eax, eax
mov word [ebp + 8], di
push 1
mov word [ebp + 0xa], ax
mov ecx, esi
push 1
lea eax, [ebp + 8]
push eax
push 1
call fcn.00421960
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x421760
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0xe10]
mov ecx, edi
mov eax, dword [eax + 0xe14]
cmp edi, eax
cmovge ecx, eax
cmovle edi, eax
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x4217f2
sub edi, ecx
push ebx
add edi, edi
push esi
lea eax, [edi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 4]
push edi
mov ecx, dword [ecx + 0xdd8]
lea ecx, [ecx + eax*2]
push ecx
push esi
call fcn.0044b510
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push dword [eax + 0xc38]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x422660
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test dword [esi + 0xdf8], 0x800
jne 0x4226d8
push edi
push dword [esi + 0xc38]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4226b6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
push 1
push eax
push 1
mov ecx, esi
call fcn.00421960
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4
test byte [esi + 0xdf8], 0x20
je 0x4226d1
push 1
push 1
push 0x477508
push 1
mov ecx, esi
call fcn.00421960
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4

Function at 0x4240f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0xcb0]
mov dword [esi + 0xc24], edi
test edi, edi
je 0x424120
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xc24], edi
pop edi
pop esi
pop ebp
ret 8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xc24], edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4251a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [edi]
call dword [eax + 0x54]
push 2
push edi
mov esi, eax
call fcn.00417a80
push 1
push edi
call fcn.00417690
cmp esi, 4
jne 0x4251ec
push 5
push 0
push 0
lea eax, [edi + 0xcb0]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0x21
mov ecx, edi
call fcn.004165d0
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x425220
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 5
push 0
push 0
add eax, 0xcb0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 4