joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5f85d4d
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x22c364cc
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xf76058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f761a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf7607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf7606a
add dl, dl
jne 0xf76089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf760dc
xor eax, eax
add dl, dl
jne 0xf76096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf7617d
add dl, dl
jne 0xf760a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf760b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf760bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf760c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf760d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf76075
mov eax, 1
add dl, dl
jne 0xf760ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf760f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf760e1
sub eax, ebx
mov ebx, 1
jne 0xf76128
mov ecx, 1
add dl, dl
jne 0xf7610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf76119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf76105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf76075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf7613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf7614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf76136
cmp eax, 0x7d00
jae 0xf7616d
cmp eax, 0x500
jb 0xf76168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf76075
cmp eax, 0x7f
ja 0xf76170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf76075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf7619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf76075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401e40
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
lahf
in al, dx
js 0x401e9d
cmp dh, byte [ebp + 0xc]
push esi
inc edi
and dword [eax - 0x10af8796], ecx
cmp eax, 0x4c00680f
cmp cl, byte [ebp - 0x72]
mov edx, dword [0xcd40c0c8]
push eax
push ecx
add edx, 0x40
push 0x40d4a5
push edx
call dword [ebx + 0x408780]
mov eax, dword [0x41021a]
add esp, 0x14
test eax, eax
inc eax
add byte [edx - 1], dl
xchg ebx, eax
add byte [edi + 0x1aa10040], 2
inc ecx
add byte [ebx - 0x3f7aeb3c], al
je 0x401e7c
call dword [eax + 0x68]
push esp
pop dword [eax - 0x78]
push eax
push 0x88408f54
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push esi
call dword [sym.imp.WSOCK32.dll_connect]
pop esi
nop
mov dl, 0x90
nop
nop
nop
nop
nop
sbb dl, byte [eax - 0x13742b1e]
sub edx, 0x14
arpl word [esi - 0x75], dx
jne 0x401eba
cmp byte [ebx + 0x45891459], cl
fsub st(0), st(0)
dec ebp
dec ebx
add byte [ebp - 0x5d], dl
mov al, byte [0x8900410b]
adc eax, 0x410ba4
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x24], eax
call 0x55406a04
mov dword [0x410ba0], eax
mov dword [0x410ba4], edx
inc ecx
add byte [ecx + 0x410ba415], cl
add byte [ebx + 0x14468be3], cl
mov esp, ebx
mov eax, dword [esi + 0x14]
add al, al
mov edx, eax
jne 0x401e68
mov esp, dword [ecx + 0x6a006a04]
rcl byte [ecx - 0x18], 0x84
sbb dword [eax], eax
add byte [ecx - 0x20f7b262], cl
fisttp word [ecx + 0x83cbe]
add bh, al
inc esi
sbb byte [eax], al
add byte [eax], al
add byte [ebx + 0x4117ec15], cl
add byte [ecx + 0x60a11456], cl
inc dword [ecx]
test eax, eax
je 0x401f3a
mov eax, dword [0x410270]
mov ecx, edx
pop ecx
enter 0x4e89, 0x14
jmp 0x401ec4
mov edi, 0x1d8b7956
xor byte [ecx - 0x974ffc0], dh
add al, 0x8d
dec ebp
or byte [ebx], al
rcl dword [ecx + 0x52], cl
push eax
call fcn.00408ac1
test eax, eax
je 0x401f8a
cmp eax, 0xb
xor eax, 0xfd68402e
or ch, al
je 0x401f8a
cmp eax, 0x8c0a42d9
pop ds
and byte [0x27f9fd57], bh
je 0x401fb8
cmp eax, 0xafd24
je 0x401f8a
cmp eax, 0xafca1
je 0x401f8a
cmp eax, 0xb23b3
jne 0x401fac
sbb esp, dword [esi - 0x5f80a911]
add al, byte [ecx]
mov edi, dword [0x41029e]
add ebx, eax
rcr dword [ecx], 0x89
sbb eax, 0x4102a0
mov dword [0x4121c9], edi
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add esp, dword [ebx + 0x2b]
inc edx
mov dword [ebp + 0x144e8918], ebp
jne 0x401eac
sbb byte [ebx + 0x6303144e], cl
sub eax, dword [edx - 0x77]
lodsd eax, dword [esi]
sbb byte [ecx - 0x7af0ebb2], cl
in al, dx
dec esi
adc al, 0xf
test esp, ebp
invalid
mov dword [0x39d86], eax
add byte [eax], al
call 0xcd406a00
mov dword [0x410ba0], eax
inc eax
adc eax, 0x413aa4
mov edx, dword [esi + 4]
scasb al, byte es:[edi]
shl byte [edi - 0x3dfffff8], 0x5b
movsb byte es:[edi], byte [esi]
or eax, dword [ecx]
jmp 0x401fe9
add byte [ecx + ecx*4 + 0x45], cl
invalid
Function at 0x492059
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x492098
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x492098
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x492098
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x492098
cmp dword [ecx + 0x74], 0xe
jbe 0x492098
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007ad0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1009b01c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
lea ecx, [esp + 4]
push str._stop_service.bat
mov edx, esi
call fcn.10007f70
add esp, 4
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10007b04
mov ecx, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x10007b0c
mov eax, dword [eax]
push 0
push ecx
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
jb 0x10007b5b
mov edx, dword [esp + 4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007b51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007be1
push ecx
push edx
call fcn.1004d17b
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._start_service.bat
mov edx, esi
lea ecx, [esp + 8]
call fcn.10007f70
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x10007b7e
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x10007b86
mov eax, dword [eax]
push 0
push esi
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
jb 0x10007bd1
mov edx, dword [esp + 4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007bc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007be6
push ecx
push edx
call fcn.1004d17b
add esp, 8
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.1004d16d
mov esp, ebp
pop ebp
ret
call fcn.1005cdcf
call fcn.1005cdcf
int3
Function at 0x10008230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a820
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x1009b01c]
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
push 0x104
lea eax, [ebp - 0x26c]
push eax
push dword [0x100a0638]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 0
push eax
push 0x1008a3f8
push 0x17
push 0
push 0x10080610
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100083fc
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x278]
push eax
push 0x20019
xor edi, edi
mov dword [ebp - 0x284], esi
push edi
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100083a0
mov esi, 0xe0200804
nop
cmp esi, 0xe0ff0804
ja 0x1000839a
push esi
push str._08X
lea eax, [ebp - 0x24]
push 9
push eax
call fcn.100081b0
add esp, 0x10
lea eax, [ebp - 0x274]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008384
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0x40
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push str.Ime_File
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10008384
cmp dword [ebp - 0x280], 1
jne 0x10008384
lea eax, [ebp - 0x64]
push str.weasel.ime
push eax
call fcn.10061543
add esp, 8
test eax, eax
cmove edi, esi
push dword [ebp - 0x274]
call ebx
add esi, 0x10000
test edi, edi
je 0x100082f0
mov esi, dword [ebp - 0x284]
push dword [ebp - 0x278]
call ebx
push 0
mov eax, dword [esi]
lea ecx, [ebp - 0x26c]
push 1
push 0
push edi
push 0
push dword [ebp - 0x288]
push ecx
push 3
push 0x1008a3dc
push 0x10089fcc
push 0x804
push 0x10089fdc
push esi
call dword [eax + 0x20]
test eax, eax
js 0x100083fc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x100083f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x10008415
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x10008413
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
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.1004d16d
mov esp, ebp
pop ebp
ret
Function at 0x100084a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x1009b01c]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0x100
lea ecx, [esp + 0xc]
mov eax, edx
push ecx
push eax
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x100084f5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1004d16d
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
xor esi, esi
lea eax, [esp + 0x14]
push esi
push esi
push esi
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x10008560
nop word [eax + eax]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
mov byte [esp + 0x11f], 0
call fcn.100084a0
mov esi, eax
test esi, esi
jne 0x10008560
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x10008520
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000857b
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004d16d
mov esp, ebp
pop ebp
ret
Function at 0x10009fb0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1009b01c]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov esi, ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], esi
mov dword [esp + 0xc], esi
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esp + 8]
test eax, eax
je 0x1000a025
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004d791
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [esp + 8], 0
ja 0x1000a05a
push edi
call fcn.1004d79a
add esp, 4
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x10089df4
mov dword [esi + 0x14], 0
call fcn.10003610
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1004d16d
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movaps xmmword [esp + 0x10], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a077
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.10003610
push edi
call fcn.1004d79a
mov ecx, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
add esp, 4
mov dword [esi + 0x10], 0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 0x14], 0
mov eax, esi
movups xmmword [esi], xmm0
pop edi
movq xmm0, qword [esp + 0x1c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.1004d16d
mov esp, ebp
pop ebp
ret

Function at 0x1000a990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ac00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1009b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea esi, [ecx + 0x20]
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
call fcn.10018fc0
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push dword [esi + 0x18]
call fcn.1000ad70
mov ebx, dword [esi + 0x18]
lea eax, [ebp + 8]
push 0
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000aa3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1000aa71
push dword [esi + 0x20]
push 0
push dword [esi + 0x24]
call fcn.10053570
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000aa82
mov eax, dword [ebp + 0xc]
mov byte [esi + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x10096c44
push eax
call fcn.10052f5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x10096c44
push eax
call fcn.10052f5b
int3
Function at 0x1000ad70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ac50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1009b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x1c]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edi
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp byte [edi], 0
je 0x1000adc7
mov eax, dword [esi + 0x20]
jmp 0x1000adcc
mov eax, 0xc
push 0
lea edx, [ebp - 0x18]
mov dword [ebp + 0xc], eax
push edx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000ae68
cmp dword [ebp - 0x18], 0
jbe 0x1000ae68
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x1000ae29
mov ecx, dword [esi + 0x28]
mov byte [edi], 0
test ecx, ecx
je 0x1000ae54
mov dword [esi + 0x28], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test ecx, ecx
je 0x1000ae54
mov eax, dword [ecx]
push 1
call dword [eax]
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x10096c44
push eax
call fcn.10052f5b
int3
Function at 0x1000cb40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007afd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1009b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.1000e520
push 8
call fcn.1004d1ac
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.10037afa
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.1000d530
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx eax, ax
mov ecx, esi
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x1000cc61
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov eax, dword [ebp + 8]
mov word [edi + 0x40], ax
jne 0x1000cc7e
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.1000e520
mov eax, dword [ebx + 0x10]
lea edx, [ebx + 0x10]
mov dword [ebp + 8], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
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 0x1000ccd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b000
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1009b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1004d1ac
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10037afa
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001dc30
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1009b01c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push 0
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
push eax
push dword [esi + 4]
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1001dd41
test edi, edi
je 0x1001dd1e
test ebx, ebx
je 0x1001dd1e
push ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1001dd1e
mov ecx, dword [ebx]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
sub esi, ecx
mov ebx, dword [ebx + 0xc]
push edi
mov dword [ebp - 0x28], ecx
sub ebx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push esi
push dword [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 0xcc0020
push ebx
mov edi, eax
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0x2c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
push edi
push ebx
call esi
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call ebx
mov edi, dword [ebp - 0x1c]
jmp 0x1001dd26
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call ebx
mov esi, dword [ebp - 0x30]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d16d
mov esp, ebp
pop ebp
ret 4