joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100128d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x100128f4
jl 0x100128e9
test ecx, ecx
jne 0x100128f4
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1001290e
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1001295a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x10012960
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10012960
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x100129d6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1001298c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x100129c4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x100129d6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100129a0
test edi, edi
je 0x100129d6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001c010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10012d70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001327f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10012da0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10012da0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001327f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10012e78
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10012dc9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10012dd5
movsx eax, bl
jmp 0x10012e0d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10012e37
sub eax, 1
je 0x10012e37
sub eax, 2
jne 0x10012e78
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001327f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10012e55
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10012e78
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001327f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001327f
mov esp, ebp
pop ebp
ret 4
Function at 0x10013020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001c010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100130dc
cmp byte [esi + 0x3d], 0
je 0x100130dc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100130ca
mov ecx, dword [esi + 0x38]
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 [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10013091
sub eax, 1
je 0x10013095
sub eax, 2
jne 0x100130ca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001327f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100130b3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100130ca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001327f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001327f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1001327f
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Get file attributes
Get file size
Hide graphical window
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x1000
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
push 0x410c0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0
push 0x418ac0
push 0
push 0
push 0x418ac0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x80070057
jne 0x401166
cmp dword [ebp - 0x20], 0
jne 0x40108f
mov ecx, 0x41a040
test ecx, ecx
jne 0x40108f
mov edx, 0x427f48
test edx, edx
je 0x401166
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x4010a3
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
jmp 0x4010ad
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0x23
je 0x4010d7
mov ecx, 0x411170
test ecx, ecx
je 0x4010d7
mov edx, dword [ebp - 0x10]
mov dword [0x4bc2e8], edx
mov ecx, 0x40
push ecx
push dword [ebp - 0x18]
mov eax, 0x1720
push eax
push 0
cmp dword [ebp - 0x20], 0x10a
je 0x40114e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x401125
mov dword [ebp - 0x10], ebx
mov edx, 0xffffffff
push edx
pop ecx
call dword [ebp - 0x10]
mov dword [0x4bc2e8], eax
jmp 0x401133
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp + 8], 0xa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, 0x17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403765
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4bb810
cmp edx, dword [eax]
je 0x403787
add eax, 8
inc ecx
cmp eax, 0x4bb8a0
jl 0x403778
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4bb810]
jne 0x4038b5
mov eax, dword [0x4bc2fc]
cmp eax, 1
je 0x40388f
test eax, eax
jne 0x4037b8
cmp dword [0x4bb448], 1
je 0x40388f
cmp edx, 0xfc
je 0x4038b5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4037ef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405600
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004039f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403832
lea eax, [ebp - 0x1a4]
push eax
call fcn.004039f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418ea4
push edi
call fcn.00406fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405600
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405610
lea eax, [ebp - 0xa0]
push 0x418e84
push eax
call fcn.00405610
push dword [esi + 0x4bb814]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405610
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406f16
add esp, 0x2c
pop edi
jmp 0x4038b5
lea eax, [ebp + 8]
lea esi, [esi + 0x4bb814]
push 0
push eax
push dword [esi]
call fcn.004039f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x73e35ef2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x4304d8
nop
mov ecx, 0x2a204715
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10004450
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x4c
mov eax, dword [0x1005fe78]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
mov esi, dword [esp + 0x58]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x1000448f
mov eax, 0x2711
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1004475d
add esp, 0x4c
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
test eax, eax
je 0x1000447a
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov eax, dword [esp + 0x18]
shrd edx, eax, 8
push ebx
shr eax, 8
xor dl, cl
mov eax, dword [esp + 0xc]
mov ecx, eax
mov ebx, dword [esp + 0x30]
shr ecx, 8
xor cl, al
mov byte [esi], dl
mov eax, dword [esp + 8]
mov byte [esi + 3], al
mov eax, dword [esp + 0x24]
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x20]
mov edx, ecx
shrd edx, eax, 8
mov byte [esi + 2], bl
shr eax, 8
xor dl, cl
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov byte [esi + 5], al
mov eax, dword [esp + 0x34]
shrd ebx, eax, 8
mov byte [esi + 4], dl
shr eax, 8
mov eax, dword [esp + 8]
shr eax, 8
mov byte [esi + 6], bl
mov byte [esi + 7], al
xor eax, eax
pop ebx
pop esi
xor ecx, esp
call fcn.1004475d
add esp, 0x4c
ret

Function at 0x10004800
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x4c], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x54]
xor ecx, ecx
xor edx, edx
jmp 0x10004830
movzx eax, byte [esp + edx + 4]
xor byte [ecx + esi], al
inc ecx
movzx eax, byte [esp + edx + 5]
and ecx, 7
xor byte [ecx + esi], al
inc ecx
movzx eax, byte [esp + edx + 6]
and ecx, 7
xor byte [ecx + esi], al
inc ecx
movzx eax, byte [esp + edx + 7]
and ecx, 7
add edx, 4
xor byte [ecx + esi], al
inc ecx
and ecx, 7
cmp edx, 0x4c
jb 0x10004830
xor eax, eax
pop esi
add esp, 0x4c
ret
Function at 0x10004df0
Capabilities:
Encode data using xor
Enumerate process modules

Disassembly:
mov eax, 0x1084
call fcn.10044780
mov eax, dword [0x1005fe78]
xor eax, esp
mov dword [esp + 0x1080], eax
mov eax, dword [esp + 0x1090]
push ebx
mov ebx, dword [esp + 0x1090]
mov dword [esp + 8], eax
xor eax, eax
cmp dword [0x1005ff60], eax
push esi
mov esi, 0x2711
cmovne esi, eax
lea eax, [esp + 8]
push eax
push 0x1000
lea eax, [esp + 0x90]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x10004f2c
push ebp
mov ebp, dword [esp + 0xc]
push edi
shr ebp, 2
xor edi, edi
test ebp, ebp
je 0x10004f11
mov edi, edi
push dword [esp + edi*4 + 0x90]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10004f08
mov eax, dword [esp + 0x14]
mov dword [0x1005ff60], 1
inc dword [eax]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 0x28
lea eax, [esp + 0x3c]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
xor edx, edx
lea ecx, [ecx]
movzx eax, byte [esp + edx + 0x28]
xor byte [ebx + ecx], al
inc ecx
movzx eax, byte [esp + edx + 0x29]
and ecx, 3
xor byte [ebx + ecx], al
inc ecx
movzx eax, byte [esp + edx + 0x2a]
and ecx, 3
xor byte [ebx + ecx], al
inc ecx
movzx eax, byte [esp + edx + 0x2b]
and ecx, 3
add edx, 4
xor byte [ebx + ecx], al
inc ecx
and ecx, 3
cmp edx, 0x68
jb 0x10004ed0
inc edi
cmp edi, ebp
jb 0x10004e60
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1080]
xor ecx, esp
call fcn.1004475d
add esp, 0x1084
ret
mov ecx, dword [esp + 0x1088]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1004475d
add esp, 0x1084
ret

Function at 0x10005270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftCryptographyRNG
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [esp + 0x18]
test eax, eax
jne 0x100052d8
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x18]
push 0
push 0
push str.Seed
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
test esi, esi
je 0x10005323
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SYSTEMRNG
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10005323
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x18]
push esi
push esi
push str.Seed
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 0x2711
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x10006070
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
test edi, edi
je 0x1000613c
push ebp
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
je 0x10006122
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
call esi
push 0xa
push edi
mov dword [esp + 0x18], eax
call esi
push 2
push dword [esp + 0x14]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
je 0x10006122
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10006122
lea eax, [esp + 0x18]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x1000610c
push 0xcc0020
push ebx
push ebx
push edi
push 2
push dword [esp + 0x24]
push ebx
push ebx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
push dword [esp + 0x14]
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x10006122
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
test ebp, ebp
je 0x10006132
push ebp
call esi
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x20
ret
pop edi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x1000aed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
cmp dword [esi + 4], ebp
jne 0x1000aee5
pop esi
mov eax, 0x271f
pop ebp
ret
push ebx
mov ebx, dword [esp + 0x14]
push edi
test ebx, ebx
je 0x1000af51
push dword [esi + 8]
push 0
push dword [esi]
call sub.MSVCR120.dll_memset
mov edi, dword [esp + 0x28]
add esp, 0xc
cmp edi, dword [esi + 8]
jbe 0x1000af28
push dword [esi + 4]
call fcn.1000a1e0
push edi
push ebx
push dword [esi + 4]
call fcn.1000a210
push dword [esi]
push dword [esi + 4]
call fcn.1000a240
add esp, 0x18
jmp 0x1000af36
push edi
push ebx
push edi
push dword [esi]
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x1000af51
lea ecx, [ecx]
mov eax, dword [esi]
xor dword [eax + ecx], 0x36363636
add ecx, 4
cmp ecx, dword [esi + 8]
jb 0x1000af40
push dword [esi + 4]
call fcn.1000a1e0
push dword [esi + 8]
push dword [esi]
push dword [esi + 4]
call fcn.1000a210
add esp, 0x10
test ebx, ebx
jne 0x1000af76
cmp dword [esi + 0x10], ebp
jne 0x1000b02e
mov ecx, dword [esi + 4]
push 0
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
shr eax, 1
and eax, 1
mov dword [esi + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push ecx
je 0x1000af9a
call fcn.10019a00
jmp 0x1000af9f
call fcn.10009e70
mov ebx, dword [esp + 0x30]
lea edi, [esi + 0x10]
add esp, 0x10
push ebx
push dword [edi]
call fcn.1003a6a0
lea ebp, [esi + 0x14]
push ebx
push dword [ebp]
call fcn.1003a6a0
mov eax, dword [esp + 0x24]
push 0
add eax, 7
mov dword [edi], 0
and eax, 0xfffffff8
mov dword [ebp], 0
push ebx
push eax
push edi
mov dword [esp + 0x34], eax
call fcn.10003e90
add esp, 0x20
test eax, eax
jne 0x1000b0a3
push eax
push ebx
push dword [esp + 0x1c]
push ebp
call fcn.1003a690
add esp, 0x10
test eax, eax
jne 0x1000b0a3
cmp dword [esi + 0x20], 0
mov eax, dword [esp + 0x14]
push eax
push 0
push dword [edi]
mov dword [esi + 0x18], eax
push dword [esi + 4]
je 0x1000b020
call fcn.10019a00
jmp 0x1000b025
call fcn.10009e70
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1000b0a1
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x1000b051
jmp 0x1000b040
mov eax, dword [esi]
xor dword [eax + ecx], 0x6a6a6a6a
add ecx, 4
cmp ecx, dword [esi + 8]
jb 0x1000b040
push dword [esi + 4]
call fcn.1000a1e0
push dword [esi + 8]
push dword [esi]
push dword [esi + 4]
call fcn.1000a210
add esp, 0x10
cmp dword [esi + 0x20], 0
push dword [esi + 0x18]
push 0
push dword [esi + 0x14]
push dword [esi + 4]
je 0x1000b081
call fcn.10019a00
jmp 0x1000b086
call fcn.10009e70
xor ecx, ecx
add esp, 0x10
cmp dword [esi + 8], ecx
jbe 0x1000b0a1
mov eax, dword [esi]
xor dword [eax + ecx], 0x5c5c5c5c
add ecx, 4
cmp ecx, dword [esi + 8]
jb 0x1000b090
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x1000c2d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push edi
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 0x10]
mov dword [esp + 0xc], ebx
lea ecx, [edx + edi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x1000c413
push esi
mov esi, dword [esp + 0x2c]
lea ebx, [ebx]
cmp ebp, edx
jb 0x1000c37b
mov ecx, dword [eax + 0x14]
mov ebp, dword [esp + 0x28]
push edi
lea eax, [ecx + 1]
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x1000c334
push edx
push edi
push ebx
call fcn.1000a830
mov ebp, dword [esp + 0x34]
jmp 0x1000c344
mov ebp, dword [esp + 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.1000a830
add esp, 0x10
push ebx
call fcn.1000a1e0
push dword [esp + 0x18]
push edi
push ebx
call fcn.1000a210
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.1000a210
push dword [esp + 0x34]
push ebx
call fcn.1000a240
mov edx, dword [esp + 0x38]
add esp, 0x24
mov ecx, dword [esp + 0x30]
xor ebp, ebp
mov eax, edx
mov edi, ecx
sub eax, ebp
cmp ecx, eax
mov ecx, dword [esp + 0x18]
cmova edi, eax
add ecx, ebp
cmp dword [esp + 0x34], 0
je 0x1000c41f
xor ebx, ebx
test edi, edi
je 0x1000c3f0
cmp edi, 0x10
jb 0x1000c3dd
lea eax, [ecx - 1]
lea edx, [esi - 1]
add eax, edi
add edx, edi
cmp esi, eax
ja 0x1000c3b4
cmp edx, ecx
jae 0x1000c3dd
mov eax, edi
mov edx, edi
and eax, 0xf
sub edx, eax
lea ecx, [ecx]
movdqu xmm1, xmmword [ecx]
add ebx, 0x10
add ecx, 0x10
movdqu xmm0, xmmword [esi]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
add esi, 0x10
cmp ebx, edx
jb 0x1000c3c0
cmp ebx, edi
jae 0x1000c3f0
mov edx, edi
sub ecx, esi
sub edx, ebx
mov al, byte [ecx + esi]
xor byte [esi], al
inc esi
dec edx
jne 0x1000c3e7
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add ebp, edi
mov edx, dword [esp + 0x14]
sub ecx, edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
jne 0x1000c310
pop esi
pop edi
mov dword [eax + 0x10], ebp
xor eax, eax
pop ebp
pop ebx
add esp, 0x10
ret
push edi
push ecx
push edi
push esi
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
add esi, edi
jmp 0x1000c3f4