joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa656
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 0x5806f0
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4aa6b5
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.bExplicitLibCEFLoading
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aa6ac
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 0x4aa6ba
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x55f353
call fcn.00505228
xor esi, esi
inc esi
cmp dword [0x5db644], 0
jne 0x4aa7a2
xor eax, eax
mov dword [0x5db644], 2
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 7
pop ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
push eax
call fcn.004aa08b
cmp dword [ebp - 0x18], 0
pop ecx
je 0x4aa75f
mov edi, 0x580460
lea ecx, [ebp - 0x28]
push edi
call fcn.00456be3
push 0x580464
lea ecx, [ebp - 0x28]
call fcn.00456be3
cmp dword [ebp - 0x18], 0
je 0x4aa75f
push edi
lea ecx, [ebp - 0x28]
call fcn.00456be3
push str.aaFEAT.api
lea ecx, [ebp - 0x28]
call fcn.00456be3
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4aa75f
mov dword [0x5db644], esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x4aa7a2
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], esi
cmp eax, 0x1000
jb 0x4aa799
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00455e65
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00504e76
pop ecx
pop ecx
cmp dword [0x5db644], esi
sete al
call fcn.005051d7
ret

Function at 0x4aa7b1
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_ReaderDCProcessTerminationFix
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4aa810
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.bDisableProcessTerminationFix
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aa807
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 0x4aa8d3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x55f3ce
call fcn.00505228
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push str.SOFTWAREAdobeAcrobat_ReaderDCRestrictedSecuritySettings
xor ebx, ebx
call fcn.00452fe1
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x4aa94d
cmp dword [esi + 0x10], ebx
je 0x4aa94d
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
cmova eax, dword [ebp - 0x28]
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4aa94d
cmp dword [esi + 0x14], 0xf
jbe 0x4aa92e
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]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
setne bl
lea ecx, [ebp - 0x28]
call fcn.0045687b
mov al, bl
call fcn.005051d7
ret

Function at 0x4aa95d
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 0x4aa9bc
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 0x4aa9b3
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 0x4aaa96
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 0x5806f0
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4aaaf5
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.bDisableGPU
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aaaec
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 0x4aabb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call fcn.004aa656
mov bl, al
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push 0x5806f0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4aac1f
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push esi
push esi
push str.bExplicitLibCEFLoading
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aac16
cmp dword [ebp - 8], esi
setne bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4bb9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x4bbb29
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 8], eax
inc ebx
mov edx, dword [ebp + 0x1c]
mov ecx, eax
cmp dword [esi], edx
je 0x4bbb29
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edi, word [edx]
cmp bx, di
jae 0x4bba3f
lea eax, [ecx + 0x2400]
mov edx, 0x3ff
cmp ax, dx
ja 0x4bbb38
mov eax, edi
lea edx, [ecx - 0xdc00]
shl eax, 0xa
or edx, eax
mov cl, byte [ebp - 1]
cmp edx, 0x80
jae 0x4bba61
mov bl, dl
xor edi, edi
jmp 0x4bba91
mov edx, eax
lea eax, [ecx + 0x2800]
mov ecx, 0x3ff
cmp ax, cx
ja 0x4bba2e
add edx, 0xffff2840
mov cl, bl
shl edx, 0xa
mov byte [ebp - 1], cl
jmp 0x4bba31
mov ebx, edx
cmp edx, 0x800
jae 0x4bba76
shr ebx, 6
xor edi, edi
or bl, 0xc0
inc edi
jmp 0x4bba91
cmp edx, 0x10000
jae 0x4bba88
shr ebx, 0xc
or bl, 0xe0
push 2
jmp 0x4bba90
shr ebx, 0x12
or bl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 8]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 0xc]
jl 0x4bbb29
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x4bbacd
cmp edi, 3
jb 0x4bbacd
mov ebx, dword [ebp - 0xc]
jmp 0x4bbad6
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x4bbafe
imul ecx, edi, 6
mov edi, dword [ebp - 8]
sub ecx, 6
mov eax, edx
dec ebx
shr eax, cl
and al, 0x3f
or al, 0x80
mov byte [edi], al
inc dword [esi]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
jg 0x4bbae2
xor ebx, ebx
shr edx, 0xa
inc ebx
movzx eax, dx
cmp byte [ebp - 1], 0
mov ecx, ebx
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 8], eax
cmp ecx, dword [ebp + 0x10]
jne 0x4bb9ec
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x4bbb31
Function at 0x4bd5a6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x98
mov eax, 0x561c10
call fcn.00505228
xor ebx, ebx
call fcn.004bd8a3
test al, al
je 0x4bd785
cmp byte [0x5db87f], bl
jne 0x4bd61f
lea eax, [ebp - 0x9c]
mov byte [0x5db87f], 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 0x5db880
lea eax, [ebp - 0xa4]
push eax
push ebx
push str.tOutputDir
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [0x5db87e], bl
lea ecx, [ebp - 0x38]
mov eax, 0x584380
mov edi, 0x584384
push str.AcroCEF_TimeInfo
cmove edi, eax
call fcn.00452f2e
push 0xa
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x20], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00515e48
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x98]
push 0x5db880
push eax
call fcn.004bd382
add esp, 0x18
push esi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00445860
push eax
lea ecx, [ebp - 0x80]
call fcn.00452ed1
push edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00445860
push eax
lea ecx, [ebp - 0x68]
call fcn.00452ed1
push 4
push str..log
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00456b7a
push eax
lea ecx, [ebp - 0x50]
call fcn.00452ed1
lea ecx, [ebp - 0x38]
call fcn.00456855
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.00456578
lea ecx, [ebp - 0x50]
call fcn.00456855
lea ecx, [ebp - 0x68]
call fcn.00456855
lea ecx, [ebp - 0x80]
call fcn.00456855
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], bl
call fcn.00456855
cmp dword [ebp - 0x24], 0xf
lea eax, [ebp - 0x38]
push 0x5843a4
cmova eax, dword [ebp - 0x38]
push eax
call fcn.00512e60
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4bd77d
call fcn.004bd834
mov esi, eax
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [ebp - 0x9c], ecx
cmp ecx, edx
je 0x4bd776
movsd xmm0, qword [ecx + 0x28]
ucomisd xmm0, qword [0x57b198]
lahf
test ah, 0x44
jnp 0x4bd761
add ecx, 0x10
cmp dword [ecx + 0x14], 0xf
jbe 0x4bd743
mov ecx, dword [ecx]
divsd xmm0, qword [0x580338]
push ecx
push ecx
push ecx
movsd qword [esp], xmm0
push str._lf_t_s_n
push edi
call fcn.004bd9de
add esp, 0x14
lea ecx, [ebp - 0x9c]
call fcn.00453f62
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [esi]
jne 0x4bd725
push edi
call fcn.00513643
pop ecx
lea ecx, [ebp - 0x38]
call fcn.00456855
call fcn.005051d7
ret
Function at 0x4bd8a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5ce440]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5db87d], 0
jne 0x4bd92f
cmp byte [0x5db87e], 0
mov byte [0x5db87d], 1
je 0x4bd92f
push esi
push edi
push 0xc
pop ecx
lea eax, [ebp - 0x38]
mov esi, 0x584310
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 0x4bd92d
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 [0x5db87c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [0x5db87c]
xor ecx, ebp
call fcn.005051b5
leave
ret

Function at 0x4bec4f
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x561ee8
call fcn.005051f5
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c2838
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
push 0x4beb40
push ebx
push ebx
call fcn.005169bc
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x4bec93
call fcn.005051c3
ret 4
push 6
mov dword [edi], ebx
call fcn.004f15bf
int3

Function at 0x4bec9d
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x561f12
call fcn.005051f5
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c2872
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
push 0x4beba0
push ebx
push ebx
call fcn.005169bc
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x4bece1
call fcn.005051c3
ret 4
push 6
mov dword [edi], ebx
call fcn.004f15bf
int3
Function at 0x4c5c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
call fcn.004cbff2
push str.Acrobat
mov ecx, eax
call fcn.0046c0d6
lea ecx, [ebp - 4]
xor esi, esi
push ecx
push 1
test al, al
mov edx, str.SoftwareAdobeAdobe_AcrobatDCPrivileged
push esi
mov ecx, str.SoftwareAdobeAcrobat_ReaderDCPrivileged
cmovne ecx, edx
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c5ca5
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
push str.bProtectedMode
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4c5ca5
cmp dword [ebp - 8], 4
jne 0x4c5ca5
cmp dword [ebp - 0xc], esi
setne al
jmp 0x4c5ca7
xor al, al
pop esi
leave
ret
Function at 0x4c5caa
Capabilities:
Accept command line arguments

Disassembly:
push 0x440
mov eax, 0x562f99
call fcn.00505228
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x44c], esi
mov ecx, esi
push 0x576489
mov dword [ebp - 4], ebx
mov dword [ebp - 0x448], ebx
call fcn.00452f2e
mov dword [ebp - 4], ebx
mov dword [ebp - 0x448], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4c5e8a
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x4c5e35
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.00452f2e
xor ecx, ecx
lea eax, [ebp - 0x428]
inc ecx
cmp dword [ebp - 0x414], 0xf
push ecx
cmova eax, dword [ebp - 0x428]
push 0x5806ec
push 0xffffffffffffffff
push dword [ebp - 0x418]
mov dword [ebp - 4], ecx
push eax
call fcn.004bee3a
add esp, 0x14
cmp eax, 0xffffffff
je 0x4c5e27
lea ecx, [ebp - 0x441]
inc eax
push ecx
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.004b7262
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x448], 3
call fcn.00456855
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x428]
call fcn.00456578
lea ecx, [ebp - 0x440]
call fcn.00456855
cmp dword [ebp - 0x414], 0xf
lea eax, [ebp - 0x428]
push 1
cmova eax, dword [ebp - 0x428]
push 0x57dac0
push ebx
push dword [ebp - 0x418]
push eax
call fcn.004a6e6e
add esp, 0x14
cmp eax, 0xffffffff
je 0x4c5e27
lea ecx, [ebp - 0x441]
push ecx
push eax
push ebx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
call fcn.004b7262
lea eax, [ebp - 0x440]
mov dword [ebp - 0x448], 7
push eax
mov ecx, esi
call fcn.00453c3d
lea ecx, [ebp - 0x440]
call fcn.00456855
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], bl
call fcn.00456855
push str.Acrobat
mov ecx, esi
call fcn.0046c0d6
test al, al
jne 0x4c5e55
push str.AcroRd32
mov ecx, esi
call fcn.0046c0d6
test al, al
je 0x4c5e83
call fcn.004cc064
test al, al
je 0x4c5e83
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.__typerenderer
push eax
call fcn.00509623
pop ecx
pop ecx
test eax, eax
jne 0x4c5e83
push 6
push str.Broker
mov ecx, esi
call fcn.00456b7a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.005051d7
ret 4
Function at 0x4cba0f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557a40
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5ce440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
jbe 0x4cba3c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x4cc190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 1
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cc1de
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
test esi, esi
je 0x4cc1d8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4cc1de
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x4cce06
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x55e6c9
call fcn.00505228
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.00514839
add esp, 0x10
cmp eax, esi
jne 0x4cce37
call fcn.005051d7
ret 4
call fcn.0050b684
mov esi, dword [eax]
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004c8a29
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push str.Failed_writing_to_file
push eax
call fcn.004ac22f
add esp, 0x14
push esi
push eax
mov byte [ebp - 4], 1
call fcn.004ccbaa
int3
Function at 0x4d8186
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557f37
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ce440]
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.00535760
cmp dword [edi + 0xc], 0xffffffff
je 0x4d81e0
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 0x4d81fc
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x57244c]
mov ecx, ebx
call esi
mov ebx, dword [edi + 0xb0]
test ebx, ebx
je 0x4d8218
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x57244c]
mov ecx, ebx
call esi
lea ecx, [edi + 0xb4]
call fcn.0045b9cb
lea esi, [edi + 0x94]
lea ecx, [esi + 0x14]
call fcn.0045b9cb
mov ecx, esi
call fcn.004ad208
lea ecx, [edi + 0x50]
call fcn.004ad45f
lea ecx, [edi + 0x38]
call fcn.0045687b
lea ecx, [edi + 0x20]
call fcn.0045687b
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 0x4ec030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x5dbf90], 0x12c
push ebx
push esi
push edi
mov esi, ecx
jg 0x4ec0f1
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.00535f87
add esp, 0xc
lea edi, [esi + 0xc]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4ec0c0
cmp dword [ebp - 4], 0
jne 0x4ec0c0
cmp byte [esi + 0x48], 0
lea eax, [ebp - 4]
je 0x4ec085
push eax
push edi
call fcn.0053611d
pop ecx
pop ecx
test al, al
jne 0x4ec098
jmp 0x4ec0c0
push 0x493e0
push eax
push edi
call fcn.00536169
add esp, 0xc
test al, al
je 0x4ec0f1
and dword [0x5dbf90], 0
mov ebx, dword [esi + 0x14]
mov byte [esi + 0x48], 1
test ebx, ebx
je 0x4ec0c0
mov eax, dword [ebx]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x57244c]
mov ecx, ebx
call esi
test al, al
jne 0x4ec0ec
cmp dword [edi], 0xffffffff
je 0x4ec0d5
cmp dword [ebp - 4], 0
jne 0x4ec0ec
push edi
call fcn.00535e61
or dword [edi], 0xffffffff
pop ecx
cmp dword [ebp - 4], 0
je 0x4ec0ec
inc dword [0x5dbf90]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x5048ff
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0051a3d6
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x50493e
sub eax, 1
je 0x504939
sub eax, 1
je 0x504935
xor eax, eax
leave
ret
push 3
jmp 0x504940
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x506123
Capabilities:
Parse pe header

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

Function at 0x524cb4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00524b2a

Function at 0x525555
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005254d7

Function at 0x527383
Capabilities:
Set environment variable

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

Function at 0x531490
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 0x531510
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 0x535a70
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 0x535b90
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