joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015bdb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1015bddf
push esi
call fcn.1015c540
add esp, 4
cmp byte [esi + 0x40], 0
je 0x1015bdd8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1015be5a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x1015be4a
mov eax, dword [esi + 8]
test eax, eax
je 0x1015be04
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x1015be46
cmp eax, 2
je 0x1015be4a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1015bdf5
cmp eax, 3
je 0x1015be2c
cmp eax, 1
jne 0x1015bdf5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x1015bdf5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x1015bdf5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.1015bc40
pop esi
ret
cmp eax, 0xcc
je 0x1015be7c
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.1015bc40
pop esi
ret
Function at 0x10164810
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x10164837
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x10164843
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x1016494f
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x1016488c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x101648ad
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.10164680
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x101648e2
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.10164680
mov ecx, eax
cmp esi, ecx
jg 0x101648d0
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x101648c5
cmp dword [esp + 0x10], 0
je 0x10164930
mov eax, 1
lea ecx, [edi - 1]
jmp 0x10164910
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x10164910
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x10164880
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x10330473
Capabilities:
Get number of processors

Disassembly:
jmp 0x10324794
call fcn.1032477f
salc
arpl word [ebp - 0x79], cx
loop 0x1032478a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x1034a3b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x103431dd
jmp 0x1032f476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x1033e856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x10346e32
jmp 0x1033e86d
call fcn.1033e858
adc byte [eax - 0x77], dl
loopne 0x1033e87c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x1032477d
jmp 0x103431f4
call fcn.103431df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x10324bce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x10325698
jmp 0x10326265

Function at 0x1034f6f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x1033ea70

Function at 0x105d3ab5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x105d3b13
jmp 0x105d3ad2
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x105d3ad2
jmp 0x105d3b13
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret
Function at 0x4107d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4107e5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410824
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x410820
lea ebx, [ebx]
cmp esi, edx
jae 0x410824
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x410810
cmp esi, edx
jb 0x410829
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4114a0
Capabilities:
Inspect section memory permissions

Disassembly:
call fcn.00410f6c
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je fcn.004117a0
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00410f18
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x411517
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00410f18
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x4114e4
call fcn.00410fa7
pop esi
or byte [ecx], ah
xor ecx, dword [ebx - 0x1fcc382]
mov edi, dword [esi + 0x3c]
add edi, esi

Function at 0x411840
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x17af0001], ebp
insb byte es:[edi], dx
idiv edi
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00410f6c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
cld
invalid
inc dword [eax]
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
shufps xmm0, xmmword [ebp - 0x3b5], 0xa
Function at 0x4442c4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00424a7c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x444300
call fcn.004444e3
mov dword [esi + 0xc], 1
jmp 0x444305
call fcn.004444e3
cmp dword [esi], 0
je 0x44434e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x444328
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00417497
jmp 0x444339
push 0xff
mov ecx, esi
call fcn.00410b70
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004174ba
jmp 0x444372
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x444372
push dword [esi]
push dword [ebp - 4]
call fcn.004290af
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x444438
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004444e3
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x444480
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417497
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004174ba
jmp 0x44448b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004290af
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x478563
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.CSettingsStore.0
call fcn.00412960
mov ecx, dword [esi + 0x10]
sub ecx, 0x10
call fcn.00410a10
pop edi
lea ecx, [esi + 4]
pop esi
jmp fcn.00412960
Function at 0x401f80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push str..pipe88A57DF2_861F_4019_B912_BBBF247131AC
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 4], 0xffffffff
mov ebx, eax
jne 0x40206d
or eax, 0xffffffff
cmp dword [edi + 0xc], 0xffffffff
je 0x401ff2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [edi + 0xc]
sub ecx, dword [ebp - 8]
cmp ecx, eax
ja 0x40201f
sub eax, ecx
cmp ebx, 0xe7
jne 0x402029
push eax
push str..pipe88A57DF2_861F_4019_B912_BBBF247131AC
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x40203b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x402021
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4020b9
jmp 0x40206f
cmp ebx, 2
jne 0x40200a
push 0xa
mov esi, 0xc1d10005
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push str..pipe88A57DF2_861F_4019_B912_BBBF247131AC
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 4], 0xffffffff
mov ebx, eax
je 0x401fd5
xor esi, esi
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x4020a0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
test eax, eax
jne 0x4020b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4020b7
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4020e2
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4020d1
push eax
call ebx
mov dword [edi + 4], 0xffffffff
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4020e2
push ecx
call ebx
mov dword [edi + 8], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c36
mov esp, ebp
pop ebp
ret 4
Function at 0x402100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
xor esi, esi
mov dword [ebp - 8], esi
movdqu xmmword [ebp - 0x18], xmm0
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 0xc]
push edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40216c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40216c
cmp eax, 0x3e5
je 0x40216c
test eax, eax
jg 0x40215f
mov esi, eax
jmp 0x402168
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x4021d6
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40219c
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CancelIo]
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c36
mov esp, ebp
pop ebp
ret 0xc
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4021d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4021d8
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c36
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402c36
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4021f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
xor esi, esi
mov dword [ebp - 8], esi
movdqu xmmword [ebp - 0x18], xmm0
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 0xc]
push edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40225c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40225c
cmp eax, 0x3e5
je 0x40225c
test eax, eax
jg 0x40224f
mov esi, eax
jmp 0x402258
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x4022c6
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40228c
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CancelIo]
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c36
mov esp, ebp
pop ebp
ret 0xc
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4022c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4022c8
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c36
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402c36
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a2f6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040877a
mov dword [ebp - 0x14], eax
cmp dword [0x4192ac], esi
jne 0x40a3e9
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40a376
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a4c9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40a4c9
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a4c9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4192ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4192b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4192b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4192bc], eax
test eax, eax
je 0x40a3e6
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4192b8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a40e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a401
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40a423
push 4
pop eax
jmp 0x40a4cb
cmp dword [ebp - 0x14], esi
je 0x40a423
push dword [0x4192ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a408
mov eax, dword [0x4192b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40a481
cmp dword [0x4192bc], edi
je 0x40a481
push eax
call ebx
push dword [0x4192bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a481
test eax, eax
je 0x40a481
call ecx
test eax, eax
je 0x40a476
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a476
test byte [ebp - 8], 1
jne 0x40a481
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40a4b1
mov eax, dword [0x4192b0]
cmp eax, edi
je 0x40a4ae
push eax
call ebx
test eax, eax
je 0x40a4ae
call eax
mov esi, eax
test esi, esi
je 0x40a4ae
mov eax, dword [0x4192b4]
cmp eax, edi
je 0x40a4ae
push eax
call ebx
test eax, eax
je 0x40a4ae
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4192ac]
call ebx
test eax, eax
je 0x40a4c9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40a4cb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c36
mov esp, ebp
pop ebp
ret
Function at 0x10008190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 4], ebx
mov edi, eax
mov dword [ebp - 0x14], ecx
sar edi, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x1000820a
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*4]
lea eax, [ecx - 0xc]
push eax
push ecx
call fcn.10006200
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
movq xmm0, qword [ebx + eax*4]
lea edx, [ebx + eax*4]
mov eax, dword [ebp - 8]
mov dword [ebp - 8], esi
lea eax, [eax + eax*2]
movq qword [ebx + eax*4], xmm0
lea ecx, [ebx + eax*4]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
cmp esi, edi
jl 0x100081c3
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x10008235
test cl, 1
jne 0x10008235
mov edi, dword [ebp - 0x1c]
lea eax, [ecx + ecx*2]
movq xmm0, qword [ebx + eax*4 - 0xc]
lea edx, [ebx + eax*4]
lea eax, [esi + esi*2]
lea ecx, [ebx + eax*4]
movq qword [ecx], xmm0
mov eax, dword [edx - 4]
mov dword [ecx + 8], eax
cmp dword [ebp - 0xc], edi
jge 0x1000827c
nop word [eax + eax]
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
lea eax, [esi + esi*2]
lea ebx, [ebx + eax*4]
push ebx
call fcn.10006200
test al, al
je 0x10008279
lea eax, [edi + edi*2]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax*4]
movq xmm0, qword [ebx]
mov edi, esi
movq qword [ecx], xmm0
mov eax, dword [ebx + 8]
mov ebx, dword [ebp - 4]
mov dword [ecx + 8], eax
cmp dword [ebp - 0xc], esi
jl 0x10008240
mov ebx, dword [ebp - 4]
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000b75c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1000b784
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000b78a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1000b7f2
jg 0x1000b7a1
test esi, esi
je 0x1000b7f2
test ecx, ecx
jl 0x1000b7ed
jg 0x1000b7ab
test eax, eax
je 0x1000b7ed
cmp edi, ecx
jg 0x1000b7bf
jl 0x1000b7b5
cmp esi, eax
jae 0x1000b7bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1000b7f5
mov ecx, dword [ebp + 8]
jmp 0x1000b7ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000b819
jg 0x1000b7ff
test esi, esi
je 0x1000b819
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000b819
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc