joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x906058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009061a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x90607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90606a
add dl, dl
jne 0x906089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9060dc
xor eax, eax
add dl, dl
jne 0x906096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90617d
add dl, dl
jne 0x9060a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9060d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x906075
mov eax, 1
add dl, dl
jne 0x9060ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9060e1
sub eax, ebx
mov ebx, 1
jne 0x906128
mov ecx, 1
add dl, dl
jne 0x90610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x906119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x90613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x90614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906136
cmp eax, 0x7d00
jae 0x90616d
cmp eax, 0x500
jb 0x906168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
cmp eax, 0x7f
ja 0x906170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x90619e
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 0x906075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xa062b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0xa062ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa062d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa062c0
mov eax, 1
add ebx, ebx
jne 0xa062e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa062d8
jne 0xa062f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa062d8
xor ecx, ecx
sub eax, 3
jb 0xa06308
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa0637a
mov ebp, eax
add ebx, ebx
jne 0xa06313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xa06320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xa06344
inc ecx
add ebx, ebx
jne 0xa06330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa06325
jne 0xa06341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa06325
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa06364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa06355
jmp 0xa062c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa06364
add edi, ecx
jmp 0xa062c6
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0xa063c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1606c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa06381
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16074]
or eax, eax
je 0xa063bd
mov dword [ebx], eax
add ebx, 4
jmp 0xa0639e
call dword [esi + 0x16070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xa063f4
cmp al, 0xef
ja 0xa063e7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xa063c9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xa063d6
mov ebp, dword [esi + 0x16078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa06428
sub esp, 0xffffff80
jmp 0x9f5dd2
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..00cfg
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2d371b94
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
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
pop eax
nop
nop
nop
nop
mov esi, 0x65af5777
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0xdb12b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0xdb50a0
push edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
dec dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.00db11ad
test eax, eax
jne 0xdb1323
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xdb1340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0xdb1323
cmp dword [ebp - 0x10], 4
jne 0xdb1323
cmp dword [ebp - 8], 1
jne 0xdb1323
cmp dword [esi + 0xc], ebx
je 0xdb136e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0xdb133b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
leave
ret 4
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
je 0xdb1323
mov eax, dword [esi + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
jmp 0xdb1323
Function at 0xdb25d1
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
xor edi, edi
inc ebx
cmp eax, edi
jne 0xdb2d32
mov eax, dword [esi + 0x30]
cmp eax, edi
jne 0xdb303e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, edi
je 0xdb2616
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x34], edi
jne 0xdb32d7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
test byte [esi + 0x38], bl
jne 0xdb32c4
push ebx
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.00db2d61
test eax, eax
jne 0xdb25ec
jmp 0xdb32bd
shl eax, 0xa
push eax
jmp 0xdb2610
xor eax, eax
jmp 0xdb262b
push 4
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0xdb25ec
jmp 0xdb32bd
push ebx
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0xdb261f
Function at 0x100021dd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 4], ax
jmp 0x1000220e
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jge 0x10002263
movzx eax, word [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax + 8]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x10], edx
movzx eax, word [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0xc], edx
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
rep movsb byte es:[edi], byte [esi]
jmp 0x10002202
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, 0x1000
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
leave
ret

Function at 0x10002274
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 4], ax
jmp 0x100022a5
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jge 0x100022fa
movzx eax, word [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x10], edx
movzx eax, word [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0xc], edx
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
rep movsb byte es:[edi], byte [esi]
jmp 0x10002299
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, 0x1000
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
leave
ret
Function at 0x1000230b
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
push dword [ebp + 0x18]
push 0x400000
push 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x1000236d
xor eax, eax
jmp 0x10002370
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x100023c2
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0xc], eax
xor eax, eax
mov word [ebp - 4], ax
jmp 0x100023fc
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jge 0x10002453
movzx eax, word [ebp - 4]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x34]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + eax + 0xc]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x10008040]
mov eax, dword [eax + 0x380]
dec eax
and eax, dword [ebp - 0x10]
jne 0x1000243c
mov dword [ebp - 0x14], 1
jmp 0x10002440
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002451
mov eax, dword [ebp - 8]
jmp 0x10002488
jmp 0x100023f0
mov eax, dword [0x10008040]
mov eax, dword [eax + 0x380]
dec eax
mov ecx, dword [ebp + 8]
and eax, dword [ecx + 0x34]
jne 0x10002470
mov dword [ebp - 0x18], 1
jmp 0x10002474
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002485
mov eax, dword [ebp - 8]
jmp 0x10002488
mov eax, dword [ebp - 8]
leave
ret
Function at 0x10005686
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
push 0x40
push 0x3000
push 0x618
call fcn.10005858
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0x208
push dword [ebp + 8]
push str.___s
push dword [ebp - 8]
call dword [0x10008048]
add esp, 0xc
push 0x208
mov eax, dword [ebp - 8]
add eax, 0x208
push eax
push 0x208
push dword [ebp - 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
add eax, 0x208
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
call dword [0x1000804c]
pop ecx
shl eax, 1
mov word [ebp - 0x28], ax
push dword [ebp - 0x10]
call dword [0x1000804c]
pop ecx
shl eax, 1
mov word [ebp - 0x26], ax
mov dword [ebp - 0x50], 0x18
and dword [ebp - 0x4c], 0
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x48], eax
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
push 0
push 0
push 0
push 1
push 1
push 0xa0
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x80100000
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10005828
lea eax, [ebp - 0x68]
mov dword [ebp - 0x18], eax
xor eax, eax
mov edi, dword [ebp - 0x18]
mov al, 0
mov ecx, 0x18
rep stosb byte es:[edi], al
push 5
push 0x18
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000581f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov edi, dword [ebp - 0x1c]
mov al, 0
mov ecx, 8
rep stosb byte es:[edi], al
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
push 0x40
push 0x3000
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000581f
cmp dword [ebp - 4], 0x103
jne 0x1000581f
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
push dword [ebp - 8]
call fcn.1000589d
pop ecx
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x40d15a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
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.00407e6b
mov dword [ebp - 0x14], eax
cmp dword [0x43723c], esi
jne 0x40d24d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d32d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d32d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d32d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43723c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x437240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x437244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43724c], eax
test eax, eax
je 0x40d24a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x437248], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d272
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d265
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d287
push 4
pop eax
jmp 0x40d32f
cmp dword [ebp - 0x14], esi
je 0x40d287
push dword [0x43723c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d26c
mov eax, dword [0x437248]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2e5
cmp dword [0x43724c], edi
je 0x40d2e5
push eax
call ebx
push dword [0x43724c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2e5
test eax, eax
je 0x40d2e5
call ecx
test eax, eax
je 0x40d2da
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 0x40d2da
test byte [ebp - 8], 1
jne 0x40d2e5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d315
mov eax, dword [0x437240]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
call eax
mov esi, eax
test esi, esi
je 0x40d312
mov eax, dword [0x437244]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43723c]
call ebx
test eax, eax
je 0x40d32d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d32f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043b8
mov esp, ebp
pop ebp
ret
Function at 0x10007400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ba30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10085054]
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_char__struct_std::char_traits_char__.0
call fcn.10026fb5
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10025ae8
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 0x10014dc0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ce20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x10085054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov word [esi], 0x100
mov byte [esi + 2], 0
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
push 0x100189d0
push 0x10018a30
push 6
mov dword [ebp - 4], 1
mov byte [esi + 0x1c], al
lea eax, [esi + 0x20]
push 0xc
push eax
call fcn.100274c4
push 0x100189d0
push 0x10018a30
push 6
push 0xc
lea eax, [esi + 0x68]
mov byte [ebp - 4], 2
push eax
call fcn.100274c4
push 0x100189d0
push 0x10018a30
push 6
push 0xc
lea eax, [esi + 0xb0]
mov byte [ebp - 4], 3
push eax
call fcn.100274c4
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], 0
xor eax, eax
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 7
mov word [esi + 0x134], ax
mov byte [ebp - 4], 7
movaps xmm0, xmmword [0x1007e180]
movups xmmword [esi + 0x150], xmm0
movaps xmm0, xmmword [0x1007e170]
movups xmmword [esi + 0x160], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x170], xmm0
movups xmmword [esi + 0x180], xmm0
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xb4], eax
movups xmmword [esi + 0xf8], xmm0
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0xbc]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x80]
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0xc8]
mov dword [esi + 0xcc], eax
movups xmmword [esi + 0x108], xmm0
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x8c]
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0xd4]
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x98]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0xe0]
mov dword [esi + 0xe4], eax
movups xmmword [esi + 0x118], xmm0
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0xa8], ecx
mov ecx, dword [esi + 0xec]
mov dword [esi + 0xf0], ecx
mov ecx, esi
call fcn.10015810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret