joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ef3f
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x54a117
call fcn.004dda2a
mov eax, dword [0x5daadc]
xor esi, esi
inc esi
test eax, eax
jne 0x49efcf
and dword [ebp - 0x18], eax
mov dword [0x5daadc], 2
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0049eb4b
cmp dword [ebp - 0x18], 0
pop ecx
je 0x49efbf
push 0x5662c2
lea ecx, [ebp - 0x28]
call fcn.0049fb37
push str.aaFEAT.api
lea ecx, [ebp - 0x28]
call fcn.0049fb37
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [0x5daadc]
test eax, eax
cmovne ecx, esi
mov dword [0x5daadc], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00454a39
mov eax, dword [0x5daadc]
cmp eax, esi
sete al
call fcn.004dd9d4
ret

Function at 0x49efda
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
call fcn.0049f1e2
test al, al
je 0x49f034
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREAdobeAcrobat_ReaderDCRestrictedSecuritySettings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49f034
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
push ebx
lea eax, [ebp - 8]
mov edi, str.FuzzTestLog
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x49f03a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], 1
jne 0x49f02b
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push dword [ebp - 0xc]
call fcn.004094fa
cmp dword [esi + 0x14], 0x10
jb 0x49f057
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop esi
test eax, eax
jne 0x49f06f
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x49f036
Function at 0x49f141
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x55091c
call fcn.004dda2a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
xor ebx, ebx
mov word [ebp - 0x28], ax
push str.SOFTWAREAdobeAcrobat_ReaderDCRestrictedSecuritySettings
mov dword [ebp - 0x18], ebx
call fcn.00454c13
xor edi, edi
mov dword [ebp - 4], ebx
inc edi
cmp dword [ebp - 0x18], ebx
je 0x49f1cf
cmp dword [esi + 0x10], ebx
je 0x49f1cf
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49f1cf
cmp dword [esi + 0x14], 0x10
jb 0x49f1af
mov esi, dword [esi]
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
cmp eax, 2
movzx ebx, bl
cmovne ebx, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.00454a39
mov al, bl
call fcn.004dd9d4
ret

Function at 0x49f1e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREAdobeAcrobat_ReaderDCRestrictedSecuritySettings
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49f241
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push ebx
push ebx
push str.CEFSecurityMK
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49f238
cmp dword [ebp - 8], ebx
setne bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x4ab647
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x98
mov eax, 0x552247
call fcn.004dda2a
call fcn.004ab95d
test al, al
je 0x4ab81c
xor ebx, ebx
mov esi, 0x5dad08
cmp byte [0x5dad03], bl
jne 0x4ab6c1
lea eax, [ebp - 0x9c]
mov byte [0x5dad03], 1
push eax
push str.SOFTWAREAdobeAcroPerf
push 0x80000001
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa0], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0xa0]
push eax
push esi
lea eax, [ebp - 0xa4]
push eax
push ebx
push str.tOutputDir
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [0x5dad02], bl
lea ecx, [ebp - 0x38]
mov eax, 0x584dc4
mov edi, 0x584dc8
push str.AcroCEF_TimeInfo
cmove edi, eax
call fcn.00452cca
lea eax, [ebp - 0x38]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x98]
mov byte [ebp - 0x20], bl
push esi
push eax
call fcn.004327f0
add esp, 0xc
mov esi, eax
push 0xa
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004ee6f4
push eax
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0045224f
push edi
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
call fcn.0045224f
push str..log
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push eax
call fcn.0045224f
add esp, 0x30
lea ecx, [ebp - 0x38]
push eax
call fcn.00453434
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.004549ea
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.004549ea
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.004549ea
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 7
call fcn.004549ea
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push 0x584de8
cmovae eax, dword [ebp - 0x38]
push eax
mov byte [ebp - 4], bl
call fcn.004eb53a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ab80d
call fcn.004ab8ef
mov esi, eax
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [ebp - 0x9c], ecx
cmp ecx, edx
je 0x4ab806
movsd xmm0, qword [ecx + 0x28]
add ecx, 0x10
ucomisd xmm0, qword [0x567360]
lahf
test ah, 0x44
jnp 0x4ab7f1
cmp dword [ecx + 0x14], 0x10
jb 0x4ab7d3
mov ecx, dword [ecx]
divsd xmm0, qword [0x582580]
push ecx
push ecx
push ecx
movsd qword [esp], xmm0
push str._lf_t_s_n
push edi
call fcn.004abc08
add esp, 0x14
lea ecx, [ebp - 0x9c]
call fcn.004534df
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [esi]
jne 0x4ab7b5
push edi
call fcn.004ec750
pop ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 8
call fcn.004549ea
call fcn.004dd9d4
ret
Function at 0x4ab95d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5ce16c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5dad01], 0
jne 0x4ab9e9
cmp byte [0x5dad02], 0
mov byte [0x5dad01], 1
je 0x4ab9e9
push esi
push edi
push 0xc
pop ecx
lea eax, [ebp - 0x38]
mov esi, 0x584d54
push eax
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push 1
xor esi, esi
lea eax, [ebp - 0x34]
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x38], esi
je 0x4ab9e7
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], esi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 4
push eax
push esi
push esi
push str.bLaunchTiming
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x3c], esi
push dword [ebp - 0x38]
setne byte [0x5dad00]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [0x5dad00]
xor ecx, ebp
call fcn.004dd9ae
leave
ret

Function at 0x4b6254
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553df0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ce16c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.rna::messaging::NamedPipeChannelServer.0
call fcn.0050f4c0
cmp dword [edi + 0xc], 0xffffffff
je 0x4b62ae
push 0xfa
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 0xac]
test ebx, ebx
je 0x4b62ca
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x561420]
mov ecx, ebx
call esi
mov ebx, dword [edi + 0xb0]
test ebx, ebx
je 0x4b62e6
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x561420]
mov ecx, ebx
call esi
lea ecx, [edi + 0xb4]
call fcn.00456df9
lea esi, [edi + 0x94]
lea ecx, [esi + 0x14]
call fcn.00456df9
mov ecx, esi
call fcn.004a12b2
lea ecx, [edi + 0x50]
call fcn.004a14f6
and dword [ebp - 4], 0
lea ecx, [edi + 0x38]
call fcn.00454a39
lea ecx, [edi + 0x20]
mov dword [ebp - 4], 1
call fcn.00454a39
mov dword [edi], vtable.rna::messaging::IpcChannelBase.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4cd9c2
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edx
sbb esi, esi
not esi
and esi, eax
je 0x4cd9f1
movzx eax, byte [edx]
xor eax, dword [ecx]
imul eax, eax, 0x1000193
inc edx
inc edi
mov dword [ecx], eax
cmp edi, esi
jne 0x4cd9dc
jmp 0x4cd9f3
mov eax, dword [ecx]
pop edi
pop esi
pop ebp
ret 8

Function at 0x4fd70c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fd589
Function at 0x4fdd20
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fdca2

Function at 0x50aff7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
push ecx
push esi
push 0x50b070
push ecx
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
leave
ret

Function at 0x50b9f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5ce16c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esi], eax
mov byte [esi + 4], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, str.Proxy_object_acquired_for_write_by_thread__d._n
test bl, bl
mov eax, str.Proxy_object_acquired_for_read__by_thread__d._n
cmovne eax, ecx
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0050aaaf
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 4], 1
mov ecx, dword [esi]
jne 0x50ba4b
call fcn.00456e20
jmp 0x50ba50
call fcn.00456e0a
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dd9ae
leave
ret 8

Function at 0x50bac7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5587cd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5ce16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov bl, byte [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, str.Thread__d_releasing_Proxy_object_acquired_for_write._n
test bl, bl
mov eax, str.Thread__d_releasing_Proxy_object_acquired_for_read._n
cmovne eax, ecx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0050aaaf
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 4], 1
mov ecx, dword [esi]
jne 0x50bb32
call fcn.00456e2b
jmp 0x50bb37
call fcn.00456e15
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dd9ae
leave
ret

Function at 0x50f7d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
push ecx
push esi
push 0x50f8f0
push ecx
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop esi
leave
ret
Function at 0x50fd0b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x50fd2b
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
or eax, 0xffffffff
jmp 0x50fdb5
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0xfa
mov dword [edi], 7
mov eax, dword [eax]
div ecx
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x50fd51
mov ecx, dword [esi]
push 0
push 0x4110100
push 3
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x50fdae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp eax, 2
je 0x50fd86
cmp eax, 0xe7
jne 0x50fda0
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 4]
mov eax, edx
dec edx
mov dword [ebp - 4], edx
test eax, eax
jne 0x50fd47
jmp 0x50fdb1
lea eax, [ebp - 8]
push eax
call fcn.0050fc26
pop ecx
mov dword [edi], eax
jmp 0x50fdb1
and dword [edi], 0
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret

Function at 0x50fdb8
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 8]
mov dword [esi], 7
cmp dword [edi + 0x10], eax
jne 0x50fde2
mov dword [esi], 1
jmp 0x50fe6d
push eax
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 4]
inc ebx
push eax
push ebx
push str.S:_ML__NW___LW_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
and dword [ebp - 8], 0
cmp dword [edi + 0x14], 8
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], eax
jb 0x50fe11
mov edi, dword [edi]
cmp byte [0x5ceb34], 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, 0x400
push eax
push eax
push 0xff
mov eax, 0x80001
push 8
cmovne ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x50fe5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0050fc26
pop ecx
mov dword [esi], eax
jmp 0x50fe6d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [esi], 0
mov byte [0x5ceb34], 0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x50fe74
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esi], 7
cmp dword [eax], 0xffffffff
jne 0x50fe9c
mov dword [esi], 1
jmp 0x50ff47
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp - 4]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50fed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp eax, 0xea
je 0x50fed7
lea eax, [ebp - 8]
push eax
call fcn.0050fc26
pop ecx
mov dword [esi], eax
jmp 0x50ff47
cmp dword [ebp - 4], 0x1fffff
jbe 0x50fee8
mov dword [esi], 3
jmp 0x50ff47
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push ebx
push dword [ebp - 4]
call fcn.004ac08a
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
lea edx, [ebp - 8]
and dword [ebp - 8], 0
sub ecx, edi
push 0
push edx
add eax, edi
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50ff2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp eax, 0xea
jne 0x50ff3a
add edi, dword [ebp - 8]
and dword [esi], 0
mov ecx, dword [ebp - 4]
cmp edi, ecx
jb 0x50fefa
jmp 0x50ff46
lea eax, [ebp - 0x10]
push eax
call fcn.0050fc26
pop ecx
mov dword [esi], eax
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x530d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5ce16c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], esi
cmp dword [edi + 0x14], 8
jb 0x530d7e
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x530dac
push esi
push edi
push ebx
call fcn.00530ba0
add esp, 0xc
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
test eax, 0x400
je 0x530ee9
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x530dc1
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x530de0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00454c45
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x530e60
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x530e56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x530f4e
push edx
push ecx
call fcn.004dd465
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp esi, 0xffffffff
jne 0x530e9a
push dword [ebp - 0x10]
push edi
push ebx
call fcn.00530ba0
add esp, 0xc
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
push edi
call fcn.00530690
add esp, 4
test al, al
jne 0x530ed8
mov eax, dword [ebp - 0x14]
push eax
push edi
call fcn.00530760
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x530efb
mov dword [esi], 0
call fcn.0049db60
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov esi, eax
push eax
push edi
call fcn.00530760
add esp, 8
and esi, 0x10
je 0x530f1b
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], eax
jmp 0x530f25
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
test esi, esi
lea ecx, [ebp - 0x20]
cmovne ecx, eax
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
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
call fcn.004e44e8
int3
Function at 0x534645
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 0x5349df
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x5349f4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x534a06
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.00534f10
push 0x5c9628
lea eax, [ebp - 0x10]
push eax
call fcn.004e172a
int3

Function at 0x53debc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x55ee2a
call fcn.004dd9f6
mov edi, ecx
mov dword [ebp - 0x10], edi
or dword [edi + 4], 0xfffffff
lea ecx, [edi + 0x3c]
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0x80000000
mov dword [edi + 0x18], ebx
mov dword [edi + 0x38], ebx
call fcn.0053342f
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x64]
mov dword [edi + 0x64], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], eax
test dword [0x5cec14], 0x80000000
je 0x53df2d
push dword [0x5dc704]
call fcn.00534a2c
pop ecx
test eax, eax
jne 0x53df32
call fcn.0053a301
mov dword [edi + 0xc], eax
mov eax, dword [eax + 0x34]
mov dword [edi], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
test eax, eax
je 0x53df4d
cmp eax, 2
je 0x53df4d
lock inc dword [eax + 4]
mov ecx, edi
call fcn.0053eaf2
lea ecx, [edi + 0x3c]
call fcn.00533dfc
cmp byte [ebp + 0xc], 0
je 0x53df8e
mov edx, dword [edi + 0x64]
mov ecx, edi
add edx, 0x68
mov esi, dword [edx]
mov eax, esi
mov dword [edi + 0x68], esi
lock cmpxchg dword [edx], ecx
jmp 0x53df88
mov dword [edi + 0x68], eax
mov esi, eax
mov ecx, dword [edi + 0x64]
mov edx, edi
add ecx, 0x68
lock cmpxchg dword [ecx], edx
cmp eax, esi
jne 0x53df77
jmp 0x53df96
or dword [edi + 0x78], 1
and dword [edi + 0x68], 0
call fcn.0053a4fd
mov esi, eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x53dfae
mov ecx, esi
call fcn.0053d40a
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
and dword [edi + 4], 0xfffffff
mov dword [edi + 0x80], eax
mov eax, edi
call fcn.004dd9bf
ret 8

Function at 0x5463ec
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5dc76c], eax
cmp eax, 0xffffffff
je 0x546406
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x546418
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.00534f10
push 0x5c9628
lea eax, [ebp - 0x10]
push eax
call fcn.004e172a
int3
Function at 0x402804
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40d008], 0x8088405
inc edx
mov dword [ebx + 0x40d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cb8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c98
xor eax, eax
push ebp
push 0x402c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402cd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40d010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403720
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40e044], 0
je 0x403781
cmp word [0x40e218], 0xd7b2
jne 0x403749
cmp dword [0x40e220], 0
jbe 0x403749
mov eax, 0x40e214
call dword [0x40e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40d050
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4037a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d01c], 0
jne 0x40379d
push 0
push 0x40d070
push 0x40d050
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret