joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422700
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e97d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x49a128
push 1
push 0
push 0x49a118
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42281c
cmp dword [ebp - 0x14], 0
je 0x42281c
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
call fcn.004013e0
mov dword [ebp - 4], 0
mov edx, dword [eax]
test edx, edx
je 0x42277d
mov edx, dword [edx]
jmp 0x42277f
xor edx, edx
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x18]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4227f2
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x4227eb
test esi, esi
je 0x4227eb
mov eax, dword [esi]
test eax, eax
je 0x4227c9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4227e0
push eax
call fcn.0046b303
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046b8fe
add esp, 8
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42281e
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x18]
jmp 0x42281e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret
Function at 0x444920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f4cc
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x1a
push 0x13c
movlpd qword [ebp - 0x1c], xmm0
call fcn.0046b90c
add esp, 4
mov dword [ebp - 0x2c], eax
push 0x401730
push 0x401500
push 0x1a
lea ebx, [eax + 4]
mov dword [ebp - 4], 0
push 0xc
push ebx
mov dword [eax], 0x1a
mov dword [ebp - 0x28], ebx
call fcn.0046b941
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x1a
push ecx
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00420d30
xor edi, edi
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x444a5a
mov esi, ebx
nop dword [eax]
cmp dword [esi], 0
jne 0x4449d9
push 2
call fcn.0046b90c
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], ecx
push dword [esi]
mov ecx, 8
mov eax, esi
lea ebx, [eax + ecx]
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4449f8
cmp eax, 2
jne 0x444a4d
cmp dword [esi], 0
jne 0x444a11
push 2
call fcn.0046b90c
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov word [eax], cx
mov dword [ebx - 4], ecx
mov ecx, dword [esi]
mov byte [ebx], 1
call fcn.00420330
cmp eax, dword [ebp + 8]
jne 0x444a4d
cmp dword [esi], 0
jne 0x444a39
push 2
call fcn.0046b90c
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], ecx
push ecx
push dword [esi]
mov ecx, dword [ebp - 0x24]
mov byte [esi + 8], 1
call fcn.00443bf0
cmp eax, 0xffffffff
je 0x444abc
inc edi
add esi, 0xc
cmp edi, dword [ebp - 0x20]
jl 0x4449c0
mov edi, 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x444a9c
push 0x401730
lea esi, [eax - 4]
mov dword [ebp - 4], 3
push dword [esi]
push 0xc
push eax
call fcn.0046b598
mov ecx, dword [esi]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx*4 + 4]
push ecx
push esi
call fcn.0046b308
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 4
or edi, 0xffffffff
jmp 0x444a5f
Function at 0x4463d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f65d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
test edx, edx
js 0x4465d1
mov ecx, dword [esi + 0x9c4]
cmp edx, ecx
jge 0x4465d1
jb 0x446421
lea ecx, [edx + 1]
mov dword [esi + 0x9c4], ecx
mov eax, dword [esi + 0x9cc]
lea edi, [edx + edx*2]
shl edi, 5
cmp byte [edi + eax], 0
je 0x4465d1
cmp ecx, edx
ja 0x446444
lea eax, [edx + 1]
mov dword [esi + 0x9c4], eax
mov esi, dword [esi + 0x9cc]
mov eax, dword [esi + edi + 0x54]
test eax, eax
je 0x4465d1
cmp word [eax], 0
je 0x4465d1
mov byte [esi + edi + 0x5c], 1
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov edi, str.Monitoring_
xor eax, eax
nop dword [eax]
lea eax, [eax + 1]
cmp word [eax*2 + str.HKCUSoftwareClearDiskInfo], 0
jne 0x446480
xor ecx, ecx
lea ecx, [ecx + 1]
cmp word [ecx*2 + str.Monitoring_], 0
jne 0x446490
mov dword [ebp - 0x28], esi
lea edx, [eax + ecx]
test esi, esi
je 0x4464be
xor eax, eax
cmp word [esi], ax
je 0x4464bc
mov dword [ebp - 0x28], esi
mov ecx, esi
inc eax
cmp word [ecx + eax*2], 0
jne 0x4464b4
add edx, eax
mov dword [ebp - 0x18], edx
lea eax, [edx + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
mov ebx, str.HKCUSoftwareClearDiskInfo
mov dword [ebp - 0x1c], eax
add esp, 4
mov ecx, eax
mov edx, 0x48
sub ebx, eax
nop
mov word [ecx], dx
add ecx, 2
movzx eax, word [ebx + ecx]
mov edx, eax
test ax, ax
jne 0x4464f0
mov eax, 0x5c
mov word [ecx], ax
lea edi, [edi + 2]
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x446506
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x446541
movzx eax, word [eax]
mov edx, eax
test ax, ax
je 0x446541
nop dword [eax + eax]
mov word [ecx], ax
lea esi, [esi + 2]
movzx eax, word [esi]
add ecx, 2
test ax, ax
jne 0x446530
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
push ecx
mov dword [ebp - 4], 0
mov edx, 0x20019
mov ecx, edi
mov byte [ebp - 0x2c], 1
call fcn.004054e0
mov esi, eax
mov dword [ebp - 0x20], 0
test esi, esi
je 0x4465b2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4a7bd8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4465b2
cmp dword [ebp - 0x18], 4
jne 0x4465b2
cmp dword [ebp - 0x20], eax
je 0x4465b2
mov bl, 1
jmp 0x4465b8
xor bl, bl
test esi, esi
je 0x4465c4
cmp esi, 0xffffffff
je 0x4465c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0046b303
add esp, 4
mov al, bl
jmp 0x4465d3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 4
Function at 0x446600
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f6a5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [ecx + 0x9c4]
cmp esi, edx
jge 0x44680d
lea edi, [esi + 1]
jb 0x446649
mov edx, edi
mov dword [ecx + 0x9c4], edi
mov eax, dword [ecx + 0x9cc]
lea ebx, [esi + esi*2]
shl ebx, 5
cmp byte [ebx + eax], 0
je 0x44680d
cmp edx, esi
ja 0x446669
mov dword [ecx + 0x9c4], edi
mov esi, eax
mov eax, dword [esi + ebx + 0x54]
test eax, eax
je 0x44680d
cmp word [eax], 0
je 0x44680d
xorps xmm0, xmm0
mov byte [esi + ebx + 0x5c], 1
mov esi, eax
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov edi, str.Monitoring_
xor eax, eax
nop
lea eax, [eax + 1]
cmp word [eax*2 + str.HKCUSoftwareClearDiskInfo], 0
jne 0x4466a0
xor ecx, ecx
lea ecx, [ecx + 1]
cmp word [ecx*2 + str.Monitoring_], 0
jne 0x4466b0
mov dword [ebp - 0x28], esi
lea edx, [eax + ecx]
test esi, esi
je 0x4466de
xor eax, eax
cmp word [esi], ax
je 0x4466dc
mov dword [ebp - 0x28], esi
mov ecx, esi
inc eax
cmp word [ecx + eax*2], 0
jne 0x4466d4
add edx, eax
mov dword [ebp - 0x18], edx
lea eax, [edx + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
mov ebx, str.HKCUSoftwareClearDiskInfo
mov dword [ebp - 0x20], eax
add esp, 4
mov ecx, eax
mov edx, 0x48
sub ebx, eax
nop
mov word [ecx], dx
add ecx, 2
movzx eax, word [ebx + ecx]
mov edx, eax
test ax, ax
jne 0x446710
mov eax, 0x5c
mov word [ecx], ax
lea edi, [edi + 2]
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x446726
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x446761
movzx eax, word [eax]
mov edx, eax
test ax, ax
je 0x446761
nop dword [eax + eax]
mov word [ecx], ax
lea esi, [esi + 2]
movzx eax, word [esi]
add ecx, 2
test ax, ax
jne 0x446750
mov edi, dword [ebp - 0x20]
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
push ecx
mov dword [ebp - 4], 0
mov edx, 0xf003f
mov ecx, edi
mov byte [ebp - 0x2c], 1
call fcn.004054e0
mov esi, eax
mov dword [ebp - 0x1c], 0
test esi, esi
je 0x4467ee
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4a7bd8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4467ee
cmp dword [ebp - 0x18], 4
jne 0x4467ee
cmp dword [ebp - 0x1c], eax
je 0x4467ee
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x4a7bd8
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
jmp 0x4467f4
mov bl, 1
test esi, esi
je 0x446800
cmp esi, 0xffffffff
je 0x446800
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0046b303
add esp, 4
mov al, bl
jmp 0x44680f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 4
Function at 0x44f9a0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fa7d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b5200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x44fa09
cmp dword [esi + 0x994], 0
jne 0x44f9f5
push 2
call fcn.0046b90c
add esp, 4
mov dword [esi + 0x994], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x998], ecx
push dword [esi + 0x994]
mov ecx, ebx
mov byte [esi + 0x99c], 1
call fcn.00401a90
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 0x20a
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call fcn.0046b90c
add esp, 4
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], esi
push esi
push eax
push eax
push 0x26
mov word [esi + 0x208], ax
push eax
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov byte [ebp - 0x14], 0
cmp word [esi], ax
je 0x44fa73
inc eax
cmp word [esi + eax*2], 0
jne 0x44fa66
mov dword [ebp - 0x18], eax
jmp 0x44fa78
mov dword [ebp - 0x18], eax
xor eax, eax
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp word [ecx*2 + str.Clear_Disk_InfoClearDiskInfo.exe], 0
jne 0x44fa80
add eax, ecx
mov edx, 2
mov dword [ebp - 0x10], eax
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
movzx edx, word [esi]
mov ebx, eax
add esp, 4
mov ecx, ebx
mov eax, edx
test dx, dx
je 0x44fad1
mov edi, esi
sub edi, ebx
nop dword [eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [edi + ecx]
mov edx, eax
test ax, ax
jne 0x44fac0
mov edi, str.Clear_Disk_InfoClearDiskInfo.exe
mov edx, 0x5c
sub edi, ecx
nop dword [eax]
mov word [ecx], dx
lea ecx, [ecx + 2]
movzx eax, word [edi + ecx]
mov edx, eax
test ax, ax
jne 0x44fae0
xor eax, eax
push esi
mov word [ecx], ax
call fcn.0046b303
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
je 0x44fb2a
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x44fb2a
push ebx
mov byte [ebp - 0x14], 1
call fcn.00401a90
push ebx
call fcn.0046b303
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46c0f7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46c136
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46c136
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46c136
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46c136
cmp dword [ecx + 0x74], 0xe
jbe 0x46c136
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x47bce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47bd0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47bd0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10004f30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x54f
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x10004f5d
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x10004f51
pop esi
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x41be75a1
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x41711dfc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push 0x103
lea eax, [ebp - 0x127]
push 0
push eax
mov byte [ebp - 0x128], 0
call fcn.00402de0
xor eax, eax
add esp, 0xc
cmp dword [ebp + 8], 5
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x12c], eax
je 0x401071
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040135e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed___ErrorCode___d_n
call fcn.004014c6
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040135e
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
lea edx, [ebp - 0x24]
push edx
call fcn.00401120
add esp, 4
test eax, eax
je 0x401103
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 1
push 0x20
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x12c], 0x104
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [ebp - 0x128]
push eax
push str.KEY:_t_s
call fcn.004012e0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040135e
mov esp, ebp
pop ebp
ret
Function at 0x4012e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00408c70
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
mov dword [ebp - 0x1008], 0
call fcn.00402de0
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.00401798
add esp, 0x20
push 0
lea ecx, [ebp - 0x1008]
push ecx
mov esi, eax
push esi
lea edx, [ebp - 0x1004]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040135e
mov esp, ebp
pop ebp
ret

Function at 0x40135e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x401368
repz ret
jmp fcn.0040194c

Function at 0x407882
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404bf8
and dword [ebp - 0x14], 0
cmp dword [0x40eb1c], 0
mov dword [ebp - 0x18], eax
jne 0x407935
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4079dd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4079dd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40eb1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40eb20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40eb24], eax
call edi
push eax
call esi
mov dword [0x40eb2c], eax
test eax, eax
je 0x407935
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40eb28], eax
mov eax, dword [0x40eb28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40798e
cmp dword [0x40eb2c], ecx
je 0x40798e
push eax
call esi
push dword [0x40eb2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40798e
test ebx, ebx
je 0x40798e
call edi
test eax, eax
je 0x407985
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407985
test byte [ebp - 8], 1
jne 0x40798e
or dword [ebp + 0x10], 0x200000
jmp 0x4079c1
mov eax, dword [0x40eb20]
cmp eax, dword [ebp - 0x18]
je 0x4079c1
push eax
call esi
test eax, eax
je 0x4079c1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4079c1
mov eax, dword [0x40eb24]
cmp eax, dword [ebp - 0x18]
je 0x4079c1
push eax
call esi
test eax, eax
je 0x4079c1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40eb1c]
call esi
test eax, eax
je 0x4079dd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4079df
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040135e
leave
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret