joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ddc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ecx, 0x10064724
jmp 0x1000f7a0
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.1000eb61
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000eb16
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.1000eb51
stc
add eax, 0x468c07b
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x1000f81a
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1000f845
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x1000fa0f
cmp dword [ebp + 0xc], 1
je 0x1000fa0f
cmp dword [ebp + 0xc], 8
jne 0x1000f9d7
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
invalid
invalid
dec edx

Function at 0x1000eb91
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1000ebcc
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1000ebb3
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1000ebc4
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1000ebce
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1000eba9
xor eax, eax
pop edi
pop esi
ret
Function at 0x10011c30
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0xa4
mov eax, dword [0x10060008]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
mov esi, ecx
mov dword [esp + 4], edx
test esi, esi
jne 0x10011c67
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.100076a5
add esp, 0xa4
ret
push ebx
push ebp
push edi
push 0x64
lea eax, [esp + 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov al, byte [esi]
add esp, 0xc
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyExA]
mov ecx, dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffA]
test al, 8
je 0x10011cf5
push 0
call ecx
push eax
push 0
push 0x11
call ebp
push 0x19
lea ecx, [esp + 0x18]
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push 1
lea eax, [esp + 0x18]
push eax
call edi
push 0x18
lea eax, [esp + 0x19]
push eax
call ebx
lea eax, [esp + 0x14]
mov edx, 0x64
push eax
lea ecx, [esp + 0x50]
call fcn.10003360
push 0x10057cc8
mov edx, 0x64
lea ecx, [esp + 0x50]
call fcn.10003360
mov al, byte [esi]
mov ecx, dword [sym.imp.USER32.dll_GetKeyboardLayout]
test al, 0x10
je 0x10011d4f
push 0
call ecx
push eax
push 0
push 0x12
call ebp
push 0x19
lea ecx, [esp + 0x18]
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push 1
lea eax, [esp + 0x18]
push eax
call edi
push 0x18
lea eax, [esp + 0x19]
push eax
call ebx
lea eax, [esp + 0x14]
mov edx, 0x64
push eax
lea ecx, [esp + 0x50]
call fcn.10003360
push 0x10057ccc
mov edx, 0x64
lea ecx, [esp + 0x50]
call fcn.10003360
mov al, byte [esi]
test al, 4
je 0x10011dad
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0x10
call ebp
push 0x19
lea ecx, [esp + 0x18]
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push 1
lea eax, [esp + 0x18]
push eax
call edi
push 0x18
lea eax, [esp + 0x19]
push eax
call ebx
lea eax, [esp + 0x14]
mov edx, 0x64
push eax
lea ecx, [esp + 0x50]
call fcn.10003360
push 0x10057cd0
mov edx, 0x64
lea ecx, [esp + 0x50]
call fcn.10003360
mov al, byte [esi]
movzx ecx, word [esi + 2]
test al, 1
je 0x10011ddf
push 0x14
lea edx, [esp + 0x3c]
call fcn.10011e60
add esp, 4
test eax, eax
je 0x10011e07
push 1
lea eax, [esp + 0x3c]
push eax
call edi
push 0x13
lea eax, [esp + 0x3d]
push eax
call ebx
lea eax, [esp + 0x38]
jmp 0x10011df8
push ecx
push 0x10057cd4
lea eax, [esp + 0x38]
push 5
push eax
call fcn.100032e0
add esp, 0x10
lea eax, [esp + 0x30]
push eax
mov edx, 0x64
lea ecx, [esp + 0x50]
call fcn.10003360
mov edx, dword [esp + 0xb8]
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x10]
push eax
call fcn.10003270
mov ecx, dword [esp + 0xb0]
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.100076a5
add esp, 0xa4
ret
Function at 0x10011e60
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
add esi, 0xffffffdf
cmp esi, 0xd
ja case.0x10011e87.41
movzx ecx, byte [esi + 0x10011eb4]
jmp dword [ecx*4 + 0x10011eac]
or eax, 0x100
push dword [esp + 0xc]
shl eax, 0x10
push edi
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
ret
Function at 0x1001e860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005566e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10060008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
inc esi
inc eax
mov dword [ebp + 8], esi
movzx ecx, ax
movzx edi, ax
mov dword [ebp - 0x14], ecx
cmp word [ebx + 0xc], si
jne 0x1001e8ae
cmp word [ebx + 0xe], cx
je 0x1001ea0b
movzx ecx, word [ebx + 0xe]
mov eax, edi
mov esi, dword [ebp - 0x14]
mov edx, ecx
movzx edi, si
mov esi, dword [ebp + 8]
cmp cx, di
cmovae edx, eax
xor ecx, ecx
movzx eax, dx
mov edx, 4
mov dword [ebp - 0x20], eax
movzx eax, si
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10007b55
mov ecx, eax
mov dword [ebp + 0xc], 0
xor eax, eax
mov dword [ebp - 0x24], ecx
add esp, 4
cmp ax, si
jae 0x1001e9f4
mov eax, dword [ebp - 0x14]
mov edi, ecx
movzx eax, ax
mov edx, 0x14
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.10007b55
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + 4]
push 0x1001ecc0
push 0x1001ece0
push ecx
push 0x14
mov dword [ebp - 4], 0
push esi
mov dword [eax], ecx
call fcn.10007fe4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], esi
movzx eax, word [ebx + 0xc]
mov esi, dword [ebp + 8]
cmp si, ax
jb 0x1001e978
cmp word [ebp + 0xc], ax
jae 0x1001e9d5
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp cx, ax
jae 0x1001e9d5
movzx eax, ax
xor esi, esi
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax]
mov ecx, dword [edi]
add edx, esi
add ecx, esi
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
xor eax, dword [ecx + 4]
and eax, 0xffffff
xor dword [ecx + 4], eax
mov eax, dword [edx + 8]
xor eax, dword [ecx + 8]
and eax, 0xffffff
xor dword [ecx + 8], eax
push dword [edx + 0x10]
push dword [edx + 0xc]
call fcn.1001eba0
add esi, 0x14
sub dword [ebp - 0x18], 1
jne 0x1001e990
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add edi, 4
add dword [ebp - 0x10], 4
inc eax
mov dword [ebp + 0xc], eax
cmp ax, si
mov eax, dword [ebp - 0x1c]
mov edx, 0x14
jb 0x1001e915
mov ecx, ebx
call fcn.1001ea20
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov word [ebx + 0xc], si
mov word [ebx + 0xe], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10024630
Capabilities:
Hide graphical window
Log keystrokes via application hook
Set global application hook

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, 1
test byte [edi + 4], 2
jne 0x10024650
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp dword [edi + 0x30], 0
je 0x1002465b
call fcn.10024400
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push dword [edi + 8]
call esi
test eax, eax
je 0x1002475b
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 8
push ecx
push dword [esp + 0x38]
xorps xmm0, xmm0
push 0x1305
push dword [eax + 0xc]
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x1002475b
mov eax, dword [esp + 0x34]
push 0xfffffffffffffff0
push ebp
mov dword [edi + 0x30], ebp
mov dword [edi + 0x34], eax
call esi
mov esi, eax
push 0
and esi, 0x3fffffff
push ebp
or esi, 0x80000000
call dword [sym.imp.USER32.dll_SetParent]
push esi
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 3
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x96
call fcn.10007b55
mov esi, dword [esp + 0x38]
add esp, 4
mov ecx, edi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0x96
push 0x96
push eax
push esi
call fcn.10024280
push dword [edi + 0x38]
mov dword [edi + 0x3c], eax
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push esi
push 0x1308
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x100646f8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x100243d0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [edi + 0x40], eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
xor ebx, ebx
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret 4
Function at 0x10024770
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
mov eax, dword [0x10060008]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
xorps xmm0, xmm0
mov ebx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
movups xmmword [esp + 0x2c], xmm0
cmp esi, 0xffffffff
jne 0x100247b0
push 0
push 0
push 0x130b
push dword [ebx + 0xc]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10024819
cmp dword [esp + 0x4c], 0
mov ebp, dword [sym.imp.USER32.dll_DestroyWindow]
je 0x100247f0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 8
push eax
push esi
xorps xmm0, xmm0
push 0x1305
push dword [ebx + 0xc]
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
call edi
push dword [esp + 0x28]
call ebp
push 0
push esi
push 0x1308
push dword [ebx + 0xc]
call edi
push 0
push 0
push 0x1304
push dword [ebx + 0xc]
call edi
test eax, eax
jne 0x10024831
push dword [ebx + 0xc]
call ebp
push dword [ebx + 8]
call ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100076a5
add esp, 0x34
ret 8
cmp eax, 1
jne 0x1002487c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 8
push eax
push 0
xorps xmm0, xmm0
push 0x1305
push dword [ebx + 0xc]
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
call edi
push dword [ebx + 8]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetParent]
push 0
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
lea eax, [esi - 1]
push 0
test esi, esi
cmovle eax, ecx
push eax
push 0x130c
push dword [ebx + 0xc]
call edi
mov ecx, ebx
call fcn.10024ac0
push 0
push 0
push 0x130b
push dword [ebx + 0xc]
call edi
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetClientRect]
movzx esi, word [esp + 0x38]
movzx edx, word [esp + 0x34]
shl esi, 0x10
or esi, edx
push esi
push ecx
mov ecx, ebx
call fcn.10024be0
mov eax, edi
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100076a5
add esp, 0x34
ret 8
Function at 0x10024ac0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x128
mov eax, dword [0x10060008]
xor eax, esp
mov dword [esp + 0x124], eax
push ebp
push esi
push edi
mov esi, ecx
call fcn.10024400
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x130b
push dword [esi + 0xc]
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], eax
push ecx
push eax
xorps xmm0, xmm0
mov dword [esp + 0x18], 8
push 0x1305
push dword [esi + 0xc]
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
call ebp
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x10024b37
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esp + 0x2c]
mov dword [esi + 0x10], edi
mov dword [esp + 0x1c], eax
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movlpd qword [esp + 0x14], xmm0
push eax
push dword [esp + 0x10]
movlpd qword [esp + 0x2c], xmm0
push 0x1305
push dword [esi + 0xc]
mov dword [esp + 0x20], 1
mov dword [esp + 0x30], 0x104
call ebp
lea eax, [esp + 0x2c]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [esi + 0x10]
cmp edi, dword [esi + 0x30]
je 0x10024bbe
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
sub eax, ecx
push 1
push eax
mov eax, dword [esi + 0x1c]
sub eax, edx
push eax
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100076a5
add esp, 0x128
ret
Function at 0x1003b6b0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc
mov eax, dword [0x100646fc]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, ecx
cmp dword [eax + 0x3c], 0
push esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ebx
je 0x1003b825
mov dword [eax + 0x3c], 0
call dword [sym.imp.USER32.dll_GetCapture]
cmp ebx, eax
jne 0x1003b6ec
call dword [sym.imp.USER32.dll_ReleaseCapture]
push edi
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x100646fc]
mov ebp, dword [sym.imp.GDI32.dll_SetROP2]
push 6
push eax
mov ebx, dword [ecx + 0x4c]
mov esi, dword [ecx + 0x48]
mov dword [esp + 0x1c], eax
call ebp
mov ecx, dword [esp + 0x10]
mov edi, eax
push 0
push esi
mov esi, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
push ebx
push dword [esp + 0x14]
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push edi
push esi
call ebp
mov ebx, dword [esp + 0x18]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x100646fc]
mov ecx, dword [esp + 0x10]
push 0x105
push 0
push 0
push ebx
mov dword [eax + 0x24], ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [0x100646fc]
pop edi
mov eax, dword [eax + 4]
test eax, eax
je case.0x1003b789.3
mov eax, dword [eax + 0x14]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
add eax, 0xfffffffd
cmp eax, 0x60
ja case.0x1003b789.4
movzx eax, byte [eax + 0x1003b898]
jmp dword [eax*4 + 0x1003b88c]
mov eax, dword [0x100646fc]
push 5
push dword [eax + 0x20]
call esi
mov eax, dword [0x100646fc]
push 5
push dword [eax + 0x1c]
call esi
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x100646fc]
push 0
push 0xd
push 0x102
push dword [eax + 0x1c]
call ebp
mov eax, dword [0x100646fc]
push 0
push 0xd
push 0x102
push dword [eax + 0x20]
call ebp
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx eax, ax
or eax, 0x10000
push eax
push 0x111
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebp
mov eax, dword [0x100646fc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1003b81e
mov eax, dword [ecx + 0x14]
cmp eax, 3
je 0x1003b81e
cmp eax, 8
je 0x1003b864
cmp eax, 0x63
je 0x1003b81e
push 0
push 9
push 0x100
push ebx
call ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx ecx, word [esp + 0x1c]
shl ecx, 0x10
movzx eax, dx
or ecx, eax
push ecx
push 0
push 0x1a9
push ebx
call ebp
push 0
push 0
push 0x188
push ebx
movzx esi, ax
call ebp
cmp eax, esi
je 0x1003b7ae
push 0
push esi
push 0x186
push ebx
call ebp
jmp 0x1003b7ae
push 0x10058874
push dword [ecx + 8]
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x1003b812
push eax
push 0x20
push 0x100
push ebx
call ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1003b900
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
mov eax, dword [0x10060008]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [0x100646fc]
push ebx
mov ebx, ecx
push ebp
mov ecx, dword [eax + 0x24]
mov ebp, dword [esp + 0x3c]
push esi
push edi
lea eax, [ecx - 5]
mov dword [esp + 0x18], ebx
cmp ebp, eax
jl 0x1003ba72
lea eax, [ecx + 5]
cmp ebp, eax
jg 0x1003ba72
push 0x7f84
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
add dword [esp + 0x1c], 0x10
lea eax, [esp + 0x1c]
sub dword [esp + 0x24], 0xa
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x100646fc]
push ebx
mov dword [eax + 0x3c], 1
mov ecx, dword [0x100646fc]
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x48], eax
mov ecx, dword [0x100646fc]
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x4c], eax
mov eax, dword [0x100646fc]
mov dword [eax + 0x40], ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov ebp, dword [sym.imp.GDI32.dll_SetROP2]
push 6
push eax
mov dword [esp + 0x1c], eax
call ebp
push 0
push esi
push dword [esp + 0x4c]
mov esi, dword [esp + 0x20]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
push ebx
push dword [esp + 0x48]
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push edi
push esi
call ebp
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [0x100646fc]
mov edx, dword [ecx + 4]
test edx, edx
je case.0x1003ba1c.3
mov eax, dword [edx + 0x14]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
add eax, 0xfffffffd
cmp eax, 0x60
ja case.0x1003ba1c.4
movzx eax, byte [eax + 0x1003bae8]
jmp dword [eax*4 + 0x1003bad8]
push esi
mov dword [edx + 8], 0x10058870
call dword [sym.imp.USER32.dll_SetCapture]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100076a5
add esp, 0x30
ret
push 0
push dword [ecx + 0x20]
call edi
mov ecx, dword [0x100646fc]
push 0
push dword [ecx + 0x1c]
call edi
push esi
call dword [sym.imp.USER32.dll_SetCapture]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100076a5
add esp, 0x30
ret
test edx, edx
je 0x1003bab8
movzx ecx, word [esp + 0x48]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
shl ecx, 0x10
movzx eax, bp
or ecx, eax
push ecx
push 0
push 0x1a9
push ebx
call esi
push 0
movzx eax, ax
push eax
push 0x199
push ebx
call esi
cmp eax, 0xffffffff
je 0x1003bab8
test eax, eax
je 0x1003bab8
cmp dword [eax + 0x14], 0x63
jne 0x1003bab8
mov ecx, eax
call fcn.1003be00
mov eax, dword [0x100646fc]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [eax + 0x3c], 0
call fcn.100076a5
add esp, 0x30
ret
Function at 0x100432b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [esp + 8]
push esi
lea esi, [ebx + 0x10]
test ecx, ecx
je 0x1004333f
push edi
mov edi, 0x10
mov edx, esi
sub ecx, esi
nop dword [eax]
lea eax, [edi + 0x7fffffee]
test eax, eax
je 0x100432e9
mov al, byte [ecx + edx]
test al, al
je 0x100432e9
mov byte [edx], al
inc edx
sub edi, 1
jne 0x100432d0
test edi, edi
lea eax, [edx - 1]
pop edi
cmovne eax, edx
mov byte [eax], 0
mov eax, esi
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10043300
sub eax, edx
test esi, esi
jne 0x10043317
xor edx, edx
pop esi
mov dword [ebx + 0x20], edx
pop ebx
ret 4
mov edx, 0xdc379acf
test eax, eax
je 0x10043337
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx ecx, byte [ecx + 0x10057ed0]
xor edx, ecx
rol edx, 5
sub eax, 1
jne 0x10043320
pop esi
mov dword [ebx + 0x20], edx
pop ebx
ret 4
mov byte [esi], 0
pop esi
mov dword [ebx + 0x20], 0
pop ebx
ret 4
Function at 0x100503a0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
cmp dword [edi + 0x5c], 0
jne 0x100504f7
push 0
push 0
push 0x28
push dword [edi + 0x50]
call ebp
push 0
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
jae 0x100503eb
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea esi, [edi + 0x48]
push esi
push dword [edi + 0x50]
call ebx
test eax, eax
je 0x10050538
cmp dword [esp + 0x10], 4
jne 0x10050538
mov eax, dword [esi]
xor ebp, ebp
test eax, eax
je 0x100504e3
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp ebp, eax
jae 0x10050538
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x10050538
lea ebx, [ecx + eax]
test ebx, ebx
je 0x10050538
mov eax, dword [ebx + 0x28]
mov esi, eax
shr esi, 3
test al, 7
lea eax, [esi + 1]
cmovne esi, eax
push esi
call fcn.10007b55
push esi
push dword [ebx + 0x24]
mov dword [esp + 0x24], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
mov word [ebx + 0x20], si
lea eax, [esp + 0x10]
push 0
push eax
push 0x21
push ebx
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10050538
cmp dword [esp + 0x10], 0x21
jne 0x10050538
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
movzx eax, word [ebx + 0x20]
push eax
push esi
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10050538
movzx eax, word [ebx + 0x20]
cmp dword [esp + 0x10], eax
jne 0x10050538
push esi
call fcn.10007a2e
mov ecx, dword [esp + 0x18]
inc ebp
mov eax, dword [edi + 0x48]
add ecx, 0x2c
add esp, 4
mov dword [esp + 0x14], ecx
cmp ebp, eax
jb 0x1005042a
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push dword [edi + 0x50]
call ebp
mov dword [edi + 4], eax
push 0
push 0
push 0
push dword [edi + 0x50]
call ebp
push 0
lea eax, [esp + 0x14]
mov dword [edi], 3
push eax
push 0x28
push edi
push dword [edi + 0x50]
call ebx
test eax, eax
je 0x10050538
cmp dword [esp + 0x10], 0x28
jne 0x10050538
push 0
push 0
push dword [edi + 4]
push dword [edi + 0x50]
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10050af0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 1
mov eax, dword [esi + 0x54]
test eax, eax
je 0x10050bca
cmp eax, 3
jne 0x10050b12
mov dword [esi + 0x54], 5
jmp 0x10050b37
cmp eax, 4
jne 0x10050b37
push 0
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
inc eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.100503a0
test eax, eax
jne 0x10050b37
mov dword [esi + 0x5c], edi
mov dword [esi + 0x54], edi
cmp dword [esi + 0x5c], 0
mov eax, dword [esi + 0x50]
jne 0x10050b4b
test eax, eax
je 0x10050b49
cmp eax, 0xffffffff
jne 0x10050b4b
xor edi, edi
push 0
push 0
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x50]
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
test eax, eax
je 0x10050b8c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x10050ba9
push eax
call fcn.10007a2e
add esp, 4
mov dword [esi + 0xb8], 0
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x10050bc6
push eax
call fcn.10007a2e
add esp, 4
mov dword [esi + 0xbc], 0
test edi, edi
je 0x10050bd1
mov dword [esi + 0x54], 0
mov eax, edi
pop edi
pop esi
ret