joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435a40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd95
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b42b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00412ed0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x435a85
push 0x80004005
call fcn.00412c60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
call fcn.00412ed0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x435ab2
push 0x80004005
call fcn.00412c60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
call fcn.00412ed0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x435adf
push 0x80004005
call fcn.00412c60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 2
call fcn.00412ed0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x435b0c
push 0x80004005
call fcn.00412c60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 3
call fcn.00412ed0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x435b39
push 0x80004005
call fcn.00412c60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004251b0
add esp, 4
add eax, 0x10
mov dword [esi + 0x38], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x437dc0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0xf0000000
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push dword [esi + 8]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x437e54
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [esi + 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x437e54
push 0
push dword [ebp + 0xc]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x437e54
push 0
lea eax, [esi + 0xc]
push eax
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x437e54
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0xc]
jmp 0x437e6c
mov eax, dword [ebp - 8]
test eax, eax
je 0x437e62
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x437e72
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044448b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438020
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dd70
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b42b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00412ed0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x438064
push 0x80004005
call fcn.00412c60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push str.ezY1MxYzIwM_FjgeHRwlPxoZHhE2DAAMNR4tHTgeFiQdAAgyDx0SICsrHi0_LA0kPgoWHg4GEyMmJwgxBhkOKSM3Jho9JD4JKzEGJQYNICMCIy0GEic4OD0hMAonODscAAAAXA
push eax
call fcn.00429e10
add esp, 8
mov esi, eax
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ecx]
lea ecx, [ebp - 0x18]
call fcn.004113d0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
sar ecx, 1
mov byte [ebp - 4], 2
jne 0x4380b5
push str.invalid_vector_T__subscript
call fcn.00441bba
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00436be0
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [eax]
call fcn.00425220
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4380fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43811a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x43813f
push eax
call fcn.0044317c
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x438151
xor edi, edi
jmp 0x438182
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x438182
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x438182
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4381a0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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
Function at 0x4396b0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47db48
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4b42b0]
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
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
push 0
push ecx
push 0
push 1
push dword [eax - 0xc]
mov dword [ebp - 4], 0
push eax
call esi
test eax, eax
jne 0x439718
mov ecx, edi
call fcn.00412d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x439785
push dword [ebp - 0x14]
call fcn.004419aa
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.004454b0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
add esp, 0x10
push 0
push 0
push eax
push ebx
push 1
push dword [ecx - 0xc]
push ecx
call esi
test eax, eax
jne 0x439762
push ebx
call fcn.004437ea
add esp, 4
mov ecx, edi
call fcn.00412d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x439785
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.004397d0
mov esi, eax
test esi, esi
je 0x43977c
mov ecx, edi
call fcn.00412d00
push ebx
call fcn.004437ea
add esp, 4
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4397a9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0044448b
mov esp, ebp
pop ebp
ret 8
Function at 0x4397d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47adab
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4b42b0]
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
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.004419aa
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.004454b0
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004437ef
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x43986e
push esi
call fcn.004437ea
mov ecx, dword [ebp - 0x18]
add esp, 4
call fcn.00412d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4398ed
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.00425f90
mov edx, dword [ebp - 0x120]
mov dword [ebp - 4], 0
test edx, edx
jne 0x4398a7
xor ecx, ecx
jmp 0x4398bf
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4398b0
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.00413590
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x4398e2
push eax
call fcn.004436b7
add esp, 4
push esi
call fcn.004437ea
add esp, 4
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.0044448b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43a550
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000040
push 0x18
push 0
mov esi, ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x43a58e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
push 0x94
call fcn.004419aa
push 0x94
push 0
push eax
mov dword [esi + 0x10], eax
call fcn.004454b0
mov eax, dword [esi + 0x10]
push 0x80
push 0x48fee8
push 0x94
mov dword [eax], 0x206
mov dword [eax + 4], 0xa400
mov eax, dword [esi + 0x10]
mov dword [eax + 8], 0x31415352
mov dword [eax + 0xc], 0x400
mov dword [eax + 0x10], 0x10001
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
call fcn.004437ef
add esp, 0x20
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x94
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x43a579
push edi
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x43a63f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [esi + 0xc]
push ebx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x43a69f
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x43a69f
push dword [ebp - 8]
call fcn.004419aa
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.004454b0
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x43a6b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
add eax, 0xc
mov dword [esi + 0x18], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
pop ebx
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
pop esi
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x43d160
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b05b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4b42b0]
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
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xa4], eax
call fcn.00413000
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004112e0
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x43d1f5
push eax
call fcn.004436b7
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
push 0
push dword [edi + 8]
call ebx
test eax, eax
jne 0x43d224
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43d292
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [edi + 0x1c]
push eax
mov dword [ecx], eax
call fcn.004419aa
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push 0
push eax
call fcn.004454b0
mov eax, dword [edi + 0x1c]
push eax
push dword [edi + 0x18]
push eax
push dword [esi]
call fcn.004437ef
mov eax, dword [ebp - 0x1c]
mov esi, dword [esi]
add esi, dword [edi + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push esi
call fcn.004437ef
add esp, 0x30
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [edi + 8]
call ebx
test eax, eax
jne 0x43d290
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43d292
xor esi, esi
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43d2b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x43d2d6
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0044448b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43e3b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dd70
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b42b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00412ed0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x43e3f4
push 0x80004005
call fcn.00412c60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push str.ezY1MzUtPwYTByAuNAswLgEBETsfEDAAKjUrPAMOAAAAGg
push eax
call fcn.00429e10
add esp, 8
mov esi, eax
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ecx]
lea ecx, [ebp - 0x18]
call fcn.004113d0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
sar ecx, 1
mov byte [ebp - 4], 2
jne 0x43e445
push str.invalid_vector_T__subscript
call fcn.00441bba
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00436be0
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [eax]
call fcn.00425220
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43e48a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43e4aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x43e4cf
push eax
call fcn.0044317c
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x43e4f9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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
Function at 0x43e880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b108
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b42b0]
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
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x43e9b1
cmp byte [ebx + 0x46], 0
je 0x43e9b1
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x43e8df
xor al, al
jmp 0x43e9b3
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
nop
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43e94a
dec eax
je 0x43e94e
sub eax, 2
je 0x43e99a
xor bl, bl
jmp 0x43e99c
mov byte [ebx + 0x46], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x43e980
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00446816
add esp, 0x10
cmp esi, eax
jne 0x43e946
cmp byte [ebx + 0x46], 0
je 0x43e99a
test esi, esi
jne 0x43e910
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00415da0
jmp 0x43e910
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x43e9ad
push dword [ebp - 0x28]
call fcn.0044317c
add esp, 4
mov al, bl
jmp 0x43e9b3
mov al, 1
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.0044448b
mov esp, ebp
pop ebp
ret

Function at 0x44b521
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x46441a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b42b0]
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.0044c580
mov dword [ebp - 0x14], eax
cmp dword [0x4ba2b4], esi
jne 0x46450d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x46449a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4645ed
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4645ed
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4645ed
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ba2b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ba2b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ba2bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba2c4], eax
test eax, eax
je 0x46450a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba2c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x464532
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x464525
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x464547
push 4
pop eax
jmp 0x4645ef
cmp dword [ebp - 0x14], esi
je 0x464547
push dword [0x4ba2b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46452c
mov eax, dword [0x4ba2c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4645a5
cmp dword [0x4ba2c4], edi
je 0x4645a5
push eax
call ebx
push dword [0x4ba2c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4645a5
test eax, eax
je 0x4645a5
call ecx
test eax, eax
je 0x46459a
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 0x46459a
test byte [ebp - 8], 1
jne 0x4645a5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4645d5
mov eax, dword [0x4ba2b8]
cmp eax, edi
je 0x4645d2
push eax
call ebx
test eax, eax
je 0x4645d2
call eax
mov esi, eax
test esi, esi
je 0x4645d2
mov eax, dword [0x4ba2bc]
cmp eax, edi
je 0x4645d2
push eax
call ebx
test eax, eax
je 0x4645d2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ba2b4]
call ebx
test eax, eax
je 0x4645ed
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4645ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044448b
mov esp, ebp
pop ebp
ret
Function at 0x41fec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
shl edi, 4
lea esi, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
lea esi, [esi + 4]
mov edx, dword [esi - 4]
add ecx, edi
movzx ecx, byte [ecx + eax]
xor byte [edx], cl
mov ecx, dword [ebx + 0x10]
mov edx, dword [esi - 4]
add ecx, edi
movzx ecx, byte [ecx + eax + 4]
xor byte [edx + 1], cl
mov ecx, dword [ebx + 0x10]
mov edx, dword [esi - 4]
add ecx, edi
movzx ecx, byte [ecx + eax + 8]
xor byte [edx + 2], cl
mov ecx, dword [ebx + 0x10]
mov edx, dword [esi - 4]
add ecx, edi
movzx ecx, byte [ecx + eax + 0xc]
inc eax
xor byte [edx + 3], cl
cmp eax, 4
jl 0x41fed3
pop edi
pop esi
pop ebx
pop ebp
ret 4