joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e27d0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c0290]
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 0x4e280e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
push 0x94
call fcn.0053ac46
push 0x94
push 0
push eax
mov dword [esi + 0x10], eax
call fcn.0053e0b0
mov eax, dword [esi + 0x10]
push 0x80
push 0x582248
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.0053c67b
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 0x4e27f9
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 0x4e28bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
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 0x4e291f
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 0x4e291f
push dword [ebp - 8]
call fcn.0053ac46
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.0053e0b0
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 0x4e2936
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
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.0053d3a0
mov esp, ebp
pop ebp
ret
Function at 0x4e2960
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xf0000040
push 0x18
push 0
push 0
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4e29ee
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4e29ee
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4e29ee
lea eax, [esi + 4]
push eax
push 1
push dword [ebp - 8]
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4e29ee
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
je 0x4e29fc
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 8
Function at 0x4e97b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e9865
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4e9865
cmp dword [ebp - 8], 0x103
jne 0x4e9865
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4e9840
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4e9828
cmp dword [ebp - 8], 0x103
jne 0x4e9828
mov ecx, 1
xor eax, eax
test ecx, ecx
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor eax, eax
test ecx, ecx
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
pop esi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
Function at 0x4ebd60
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
call fcn.0053e5e8
xor eax, eax
add esp, 0x14
cmp dword [esi + 0x24c], 0
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
jne 0x4ebdbb
push eax
call fcn.0053f0d0
add esp, 4
lea eax, [esi + 0x2c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4ebdf0
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
Function at 0x4fb6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4fb76b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x4fb72d
cmp eax, 2
jne 0x4fb749
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x4fb765
test ecx, ecx
je 0x4fb760
test cl, 1
jne 0x4fb749
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4fb765
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fe0d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x418], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x404
mov dword [ebp - 8], eax
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 8], ecx
call fcn.0053e0b0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 0xc
mov dword [ebp - 0x410], 0
push 0x60
push 0
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4fe153
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4fe153
call fcn.004be910
mov esi, eax
jmp 0x4fe209
push dword [ebp - 0x418]
push dword [ebp - 0x414]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4fe176
call fcn.004be910
jmp 0x4fe1fc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4fe18b
call fcn.004be910
jmp 0x4fe1fc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4fe1a3
mov esi, 0x8007000e
jmp 0x4fe1fe
push eax
lea ecx, [ebp - 0x410]
call fcn.004be3d0
cmp dword [ebp - 0x410], 0
jne 0x4fe1bf
mov esi, 0x8007000e
jmp 0x4fe1fe
push esi
push dword [ebp - 0x410]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4fe1df
call fcn.004be910
jmp 0x4fe1fc
mov eax, dword [ebp - 0x410]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0xc]
push dword [ebp - 0x410]
call fcn.004fdf70
mov esi, eax
test edi, edi
je 0x4fe209
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x4fe222
lea ecx, [ebp - 0x410]
call fcn.004ccfc0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5067b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x5067c9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5067d5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x5067d0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x506860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x506875
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x506880
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x506880
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x513bb0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push 0xfde9
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x98], eax
call fcn.004e2480
push dword [ebp - 0x98]
lea ecx, [ebp - 0x14]
call fcn.004aeba0
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x513c1d
push eax
call fcn.0053c5ac
add esp, 4
push esi
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 0xc]
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x513c4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x513cba
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.0053ac46
mov ecx, dword [ebp - 0x10]
mov dword [edi], eax
push dword [ecx]
push 0
push eax
call fcn.0053e0b0
mov eax, dword [ebx + 0x1c]
push eax
push dword [ebx + 0x18]
push eax
push dword [edi]
call fcn.0053c67b
mov eax, dword [esi - 0xc]
mov edi, dword [edi]
add edi, dword [ebx + 0x1c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push edi
call fcn.0053c67b
add esp, 0x30
lea eax, [ebp - 0xc]
push dword [ebp - 8]
push eax
push edi
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x513cb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x513cba
xor edi, edi
lea edx, [esi - 0x10]
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x513cd6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
pop esi
jg 0x513cf1
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x513d10
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x9c]
push 0xfde9
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x9c], eax
call fcn.004e2480
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x14]
call fcn.004aeba0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x98]
cmp eax, ecx
je 0x513d80
push eax
call fcn.0053c5ac
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push esi
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 0xc]
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push 0
push dword [ebx + 4]
call edi
test eax, eax
jne 0x513db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x513e0f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
push eax
mov dword [ecx], eax
call fcn.0053ac46
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x18]
push dword [ecx]
push 0
push eax
call fcn.0053e0b0
mov eax, dword [esi - 0xc]
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push dword [eax]
call fcn.0053c67b
add esp, 0x20
lea eax, [ebp - 0xc]
push dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push 0
push 1
push 0
push dword [ebx + 4]
call edi
test eax, eax
jne 0x513e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x513e0f
xor edi, edi
lea edx, [esi - 0x10]
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x513e2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
pop esi
jg 0x513e46
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x535f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x2c], 0
je 0x536062
cmp byte [edi + 0x24], 0
je 0x536062
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
lea ecx, [ebp + 8]
call fcn.005139e0
lea ecx, [ebp - 0x110]
push 3
mov eax, dword [eax]
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.004e23c0
push dword [ebp - 0x114]
lea ecx, [ebp - 0xc]
call fcn.004672d0
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
cmp eax, ecx
je 0x535fc2
push eax
call fcn.0053c5ac
add esp, 4
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x535fdf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xc]
cmp dword [esi - 0xc], 0x1000
jle 0x536028
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x1000
or ecx, eax
jge 0x53600f
push 0x1000
lea ecx, [ebp - 0xc]
call fcn.00468e20
mov esi, dword [ebp - 0xc]
cmp dword [esi - 8], 0x1000
jl 0x536081
xor eax, eax
mov dword [esi - 0xc], 0x1000
mov word [esi + 0x2000], ax
mov ecx, dword [esi - 0xc]
lea eax, [edi + 0x48]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ecx + ecx]
push eax
push esi
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x536064
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x536064
xor bl, bl
lea ecx, [ebp + 8]
call fcn.004498f0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00468960
int3
Function at 0x537780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x5378a0
cmp byte [ebx + 0x45], 0
je 0x5378a0
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x5377c4
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov byte [ebp - 0x1c], 0
mov edx, 0xf
mov dword [ebp - 0x1c], ecx
cmp edx, 0x10
mov dword [ebp - 8], edx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
cmovae eax, ecx
mov dword [ebp - 0xc], 8
push esi
push edi
mov byte [eax + 8], cl
lea ecx, [ecx]
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x20]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x1c]
cmovae edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x1c]
cmovae esi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
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 0x53782a
dec eax
je 0x53782e
sub eax, 2
je 0x53787a
xor bl, bl
jmp 0x53787c
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x20]
cmovae eax, edx
sub esi, eax
je 0x537860
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0053ff5a
add esp, 0x10
cmp esi, eax
jne 0x537826
cmp byte [ebx + 0x45], 0
je 0x53787a
test esi, esi
jne 0x5377f0
push esi
push 8
lea ecx, [ebp - 0x1c]
call fcn.0046ba00
jmp 0x5377f0
mov bl, 1
cmp dword [ebp - 8], 0x10
pop edi
pop esi
jb 0x53788f
push dword [ebp - 0x1c]
call fcn.0053c1e0
add esp, 4
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret

Function at 0x543831
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 0x55bf40
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c0290]
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.005448cf
mov dword [ebp - 0x14], eax
cmp dword [0x5c7c38], esi
jne 0x55c033
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x55bfc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x55c113
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x55c113
push 0x58bbc0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x55c113
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5c7c38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5c7c3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5c7c40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c7c48], eax
test eax, eax
je 0x55c030
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c7c44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x55c058
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x55c04b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x55c06d
push 4
pop eax
jmp 0x55c115
cmp dword [ebp - 0x14], esi
je 0x55c06d
push dword [0x5c7c38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x55c052
mov eax, dword [0x5c7c44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x55c0cb
cmp dword [0x5c7c48], edi
je 0x55c0cb
push eax
call ebx
push dword [0x5c7c48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x55c0cb
test eax, eax
je 0x55c0cb
call ecx
test eax, eax
je 0x55c0c0
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 0x55c0c0
test byte [ebp - 8], 1
jne 0x55c0cb
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x55c0fb
mov eax, dword [0x5c7c3c]
cmp eax, edi
je 0x55c0f8
push eax
call ebx
test eax, eax
je 0x55c0f8
call eax
mov esi, eax
test esi, esi
je 0x55c0f8
mov eax, dword [0x5c7c40]
cmp eax, edi
je 0x55c0f8
push eax
call ebx
test eax, eax
je 0x55c0f8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5c7c38]
call ebx
test eax, eax
je 0x55c113
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x55c115
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret