joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e890
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c27f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x88], edi
cmp dword [ebp + 8], 1
je 0x43e8e0
mov dword [edi + 0x1cc], 0
xor eax, eax
jmp 0x43ea79
mov dword [ebp - 4], 0
wait
mov esi, dword [edi + 0x280]
mov ebx, dword [edi + 0x284]
cmp esi, ebx
je 0x43ea02
mov dword [ebp - 0x98], esi
cmp esi, ebx
je 0x43ea12
mov eax, dword [esi + 0x28]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
ucomisd xmm0, qword [0x59d928]
lahf
test ah, 0x44
jnp 0x43ea0a
xorps xmm0, xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0x94], xmm0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x43e949
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x94]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x90]
mov dword [esi + 0x24], eax
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x94]
call fcn.0053f9e0
mulsd xmm0, qword [0x59d940]
mov eax, dword [esi + 0x28]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm0, xmm1
xorps xmm1, xmm1
comisd xmm1, xmm0
jbe 0x43ea0a
mov edi, dword [edi + 0x1d4]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
push 0x586514
lea ecx, [ebp - 0x84]
call fcn.00406c30
mov byte [ebp - 4], 1
push str.OutOfDiskSpace
lea ecx, [ebp - 0x6c]
call fcn.00406c30
mov byte [ebp - 4], 2
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.00407f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.00407f50
mov eax, 1
wait
jmp 0x43ea79
add esi, 0x30
jmp 0x43e8fc
mov edi, dword [edi + 0x1d4]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
push 0x58989c
lea ecx, [ebp - 0x6c]
call fcn.00406c30
mov byte [ebp - 4], 3
push str.OutOfDiskSpace
lea ecx, [ebp - 0x84]
call fcn.00406c30
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00407f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00407f50
wait
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00521461
mov esp, ebp
pop ebp
ret 4
Function at 0x4587e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550ba6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
call fcn.00435c10
mov dword [ebp - 4], 0
mov dword [esi + 0x130], 0
mov dword [esi], 0x586214
mov dword [esi + 0x24], 0x586130
mov dword [esi + 0x28], 0x58611c
mov dword [ebp - 4], 1
lea ebx, [esi + 0x138]
mov dword [esi + method.std::_Facet_base.virtual_4], 0x589010
mov ecx, edi
mov dword [ebx], method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_56
mov dword [esi], 0x58af9c
mov dword [esi + 0x24], 0x58aeb8
mov dword [esi + 0x28], 0x58aea4
mov dword [esi + 0x134], 0x58ae9c
add esi, 0x140
mov dword [ebx], method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_56
mov eax, dword [edi]
mov dword [ebp + 0xc], esi
call dword [eax + 4]
mov dword [esi], 0x589f9c
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x10]
lea ecx, [esi + 0x158]
mov dword [esi + 0x154], 0
call fcn.0041bb70
lea ecx, [esi + 0x17c]
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 5
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 6
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ecx + 0x20], edx
mov byte [ebp - 4], 8
mov dword [ecx], 0x58afb0
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], esi
mov byte [ecx + 0x30], 0
mov byte [ebp - 4], 9
lea ecx, [esi + 0x1b0]
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 0xb
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 0xc
mov dword [ecx + 0x20], edx
mov byte [ebp - 4], 0xe
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 1
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x38], 0
mov dword [ecx], 0x58afc0
mov dword [ecx + 0x40], esi
mov byte [ebp - 4], 0xf
mov byte [esi + 0x1f4], 0
mov dword [esi + 0x1f8], 0x596cc4
mov dword [esi + 0x1fc], 0
mov dword [esi + 0x200], 1
mov dword [esi + 0x204], 0x23
mov dword [esi + 0x208], 0xc
mov dword [esi + 0x20c], 0
mov byte [esi + 0x210], 0
mov dword [esi + 0x214], ebx
mov byte [esi + 0x218], 0
mov byte [esi + 0x21c], 0
mov dword [ebp - 4], 0xffffffff
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 8
Function at 0x4cf6b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56790f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 4
lea edi, [esi + 0x38]
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0x585ed0
mov dword [esi + 0x24], 0x585ecc
mov dword [esi + 0x28], 0x596994
mov dword [esi], 0x596a14
mov dword [esi + 0x20], 0x5969ec
mov dword [esi + 0x24], 0x585f38
mov dword [esi + 0x28], 0x5969c8
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov dword [ebp + 8], edi
call fcn.00409310
test eax, eax
je 0x4cf8b9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
lea edi, [esi + 0x3c]
mov dword [ebp + 8], edi
call fcn.00409310
test eax, eax
je 0x4cf8b9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
lea ecx, [esi + 0x40]
mov dword [ebp + 8], ecx
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 0xb
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ecx + 0x20], eax
mov byte [ebp - 4], 0xd
lea edi, [ecx + 0x28]
mov dword [ecx], 0x5969b8
mov dword [ecx + 0x24], 0
mov dword [ebp - 0x14], edi
call fcn.00409310
test eax, eax
je 0x4cf8b9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x10
lea edi, [esi + 0x94]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 1
mov byte [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov byte [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [ebp + 8], edi
call fcn.00409310
test eax, eax
je 0x4cf8b9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x12
lea edi, [esi + 0x98]
mov dword [ebp + 8], edi
call fcn.00409310
test eax, eax
je 0x4cf8b9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0xa0]
call fcn.004d4f00
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408fe0
int3
Function at 0x4dc580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5692ef
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 1
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov byte [ebp - 4], 2
lea eax, [edi + 0x30]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 3
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 5
mov dword [edi + 0x50], 0
mov byte [ebp - 4], 6
lea esi, [edi + 0x58]
mov dword [ebp - 0x14], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005214a3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 8
mov ecx, edi
call fcn.004dc800
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureInfoW]
cmp eax, 0xffffffff
jne 0x4dc674
push esi
lea ebx, [eax + 2]
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
jmp 0x4dc676
xor ebx, ebx
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], ebx
cmp dword [edi + 0x48], 0
jne 0x4dc689
mov dword [edi + 0x54], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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 0x4efe20
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d2a6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
xor edi, edi
push 1
sub esp, 0x18
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x68], esp
mov esi, esp
sub esp, 0x18
add eax, 4
mov ecx, esp
mov dword [ebp - 0x6c], esp
mov dword [ebp - 0x64], eax
push eax
call fcn.00406c70
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00486890
add esp, 0x18
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00486cc0
mov dword [ebp - 4], 3
cmp dword [ebp - 0x34], edi
je 0x4eff6a
nop
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004865b0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x4efed8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00407f50
test esi, esi
jne 0x4effb0
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
or edi, 1
lea ecx, [ebp - 0x44]
push eax
mov dword [ebp - 0x60], edi
call fcn.00485670
lea ecx, [ebp - 0x44]
call fcn.00407f50
movups xmm0, xmmword [ebp - 0x2c]
xor eax, eax
and edi, 0xfffffffe
mov word [ebp - 0x2c], ax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x60], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00407f50
cmp dword [ebp - 0x34], esi
jne 0x4efec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407f50
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x14], 8
jb 0x4eff84
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00521461
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407f50
mov al, 1
jmp 0x4eff90
Function at 0x510870
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 0
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x5108a1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x510890
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x51d050
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x5d6024]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x51d087
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00521461
add esp, 0x20
ret
push esi
push 0x14
push 0x59bca0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x51d0e4
lea eax, [esp + 8]
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x10], xmm0
movq qword [esp + 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x51d0e1
cmp dword [esp + 0xc], 4
je 0x51d0fb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x51d0fb
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00521461
add esp, 0x20
ret
push esi
call edi
mov ecx, dword [esp + 0x24]
xor eax, eax
pop esi
pop edi
xor ecx, esp
call fcn.00521461
add esp, 0x20
ret

Function at 0x520630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x520655
xor eax, eax
jmp 0x5206b1
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x520682
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x520682
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x520736
cmp dword [edi + 0x4c], 0
je 0x5206ab
mov ecx, edi
call fcn.005202ab
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x5206c1
push dword [edi + 0x4c]
push ebx
call fcn.0051fef7
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x5206b0
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00521461
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x57829c]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x5206ab
cmp eax, 1
jle 0x520709
cmp eax, 3
jne 0x5206ab
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x52069d
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x520726
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0052f975
add esp, 0x10
cmp esi, eax
jne 0x5206ab
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x5206ab
mov ax, bx
jmp 0x5206b0

Function at 0x53926d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00538f1e
Function at 0x539278
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005390a8

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 0x40d5b8
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.0040803b
mov dword [ebp - 0x14], eax
cmp dword [0x430b00], esi
jne 0x40d6ab
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d78b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d78b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d78b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430b00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430b04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430b08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430b10], eax
test eax, eax
je 0x40d6a8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430b0c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6c3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push 4
pop eax
jmp 0x40d78d
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push dword [0x430b00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6ca
mov eax, dword [0x430b0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d743
cmp dword [0x430b10], edi
je 0x40d743
push eax
call ebx
push dword [0x430b10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d743
test eax, eax
je 0x40d743
call ecx
test eax, eax
je 0x40d738
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 0x40d738
test byte [ebp - 8], 1
jne 0x40d743
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d773
mov eax, dword [0x430b04]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
call eax
mov esi, eax
test esi, esi
je 0x40d770
mov eax, dword [0x430b08]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430b00]
call ebx
test eax, eax
je 0x40d78b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d78d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040433c
mov esp, ebp
pop ebp
ret
Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b65b
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop ebx
inc edi
sub edi, eax
call fcn.0043b68f
push edi
pop eax
mov eax, 0x531702be
push edi
pop edi
xor dword [esi], ebx
push 0x7e60da3e
pop eax
dec edi
inc esi
push 0x1528e8ec
pop edi
inc eax
cmp esi, edx
jne fcn.0043b65b
sub eax, edi
ret

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