joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea3a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x5d9ec8], 0x12c
push ebx
push esi
push edi
mov esi, ecx
jg 0x4ea461
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.005343b7
add esp, 0xc
lea edi, [esi + 0xc]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4ea430
cmp dword [ebp - 4], 0
jne 0x4ea430
cmp byte [esi + 0x48], 0
lea eax, [ebp - 4]
je 0x4ea3f5
push eax
push edi
call fcn.0053454d
pop ecx
pop ecx
test al, al
jne 0x4ea408
jmp 0x4ea430
push 0x493e0
push eax
push edi
call fcn.00534599
add esp, 0xc
test al, al
je 0x4ea461
and dword [0x5d9ec8], 0
mov ebx, dword [esi + 0x14]
mov byte [esi + 0x48], 1
test ebx, ebx
je 0x4ea430
mov eax, dword [ebx]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x57044c]
mov ecx, ebx
call esi
test al, al
jne 0x4ea45c
cmp dword [edi], 0xffffffff
je 0x4ea445
cmp dword [ebp - 4], 0
jne 0x4ea45c
push edi
call fcn.00534291
or dword [edi], 0xffffffff
pop ecx
cmp dword [ebp - 4], 0
je 0x4ea45c
inc dword [0x5d9ec8]
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 0x502cff
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0051881a
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 0x502d3e
sub eax, 1
je 0x502d39
sub eax, 1
je 0x502d35
xor eax, eax
leave
ret
push 3
jmp 0x502d40
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x504533
Capabilities:
Parse pe header

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

Function at 0x5230e3
Capabilities:
Read file on windows

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

Function at 0x523984
Capabilities:
Print debug messages

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

Function at 0x5257b3
Capabilities:
Set environment variable

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

Function at 0x52f8c0
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 0x52f940
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 0x533ea0
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 0x533fc0
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 0x5342de
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
or edi, 0xffffffff
cmp dword [ebx + 0x10], 0
jne 0x534300
mov ecx, dword [ebp + 0x10]
or eax, edi
mov dword [ecx], 1
jmp 0x5343a2
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0xfa
push esi
mov dword [eax], 7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
div ecx
mov esi, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x53433e
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x57044c]
mov ecx, dword [ebp + 0x14]
call esi
cmp eax, 6
je 0x534394
mov esi, dword [ebp - 4]
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x534348
mov eax, dword [ebx]
push 0
push 0x4110100
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x534399
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 2
je 0x53437d
cmp eax, 0xe7
jne 0x5343a6
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
dec esi
mov dword [ebp - 4], esi
test eax, eax
jne 0x53431d
jmp 0x53439f
cmp edi, 0xffffffff
je 0x53439f
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
call fcn.00534206
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x53439f

Function at 0x5343b7
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 0x5343e1
mov dword [esi], 1
jmp 0x534475
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
mov eax, dword [ebp - 4]
and dword [ebp - 8], 0
cmp byte [0x5ccf04], 0
mov dword [ebp - 0xc], eax
mov eax, 0x80001
cmovne ebx, eax
mov dword [ebp - 0x10], 0xc
cmp dword [edi + 0x14], 7
jbe 0x53441f
mov edi, dword [edi]
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, 0x400
push eax
push eax
push 0xff
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, 0xffffffff
jne 0x534462
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00534206
pop ecx
mov dword [esi], eax
jmp 0x534475
cmp byte [0x5ccf04], 0
je 0x534472
mov byte [0x5ccf04], 0
and dword [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x53447c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, eax
mov dword [esi], 7
cmp dword [ebx], 0xffffffff
jne 0x5344a5
mov dword [esi], 1
jmp 0x534546
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5344d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp eax, 0xea
je 0x5344d7
lea eax, [ebp - 0xc]
jmp 0x53453d
cmp dword [ebp - 8], 0x1fffff
jbe 0x5344e8
mov dword [esi], 3
jmp 0x534546
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.004053b2
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
and dword [ebp - 0xc], 0
sub ecx, edi
push 0
push edx
mov eax, dword [eax]
push ecx
add eax, edi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53452b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xea
jne 0x53453a
add edi, dword [ebp - 0xc]
and dword [esi], 0
mov ecx, dword [ebp - 8]
cmp edi, ecx
jb 0x5344fa
jmp 0x534546
lea eax, [ebp - 0x14]
push eax
call fcn.00534206
mov dword [esi], eax
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x534599
Capabilities:
Create thread

Disassembly:
push 0x1c
mov eax, 0x569529
call fcn.005035f5
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.00503246
pop ecx
test eax, eax
je 0x5345df
mov edi, eax
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
jmp 0x5345e1
mov eax, esi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
push ecx
push esi
push eax
push 0x534170
push esi
push esi
call fcn.005181cc
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x53466a
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
push ebx
call fcn.0053454d
pop ecx
pop ecx
push dword [ebp - 0x10]
mov bl, al
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x18], 0
je 0x534671
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [ebp - 0x18], eax
jne 0x534634
push 5
jmp 0x534673
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004efa19
add esp, 0xc
test eax, eax
je 0x53464b
push 2
jmp 0x534673
push dword [ebp - 0x10]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
jne 0x534678
mov al, bl
call fcn.005035c3
ret
mov dword [ebp - 0x18], esi
push 6
jmp 0x534673
push 1
call fcn.004efde0
call fcn.00517918
int3
Function at 0x5532f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ea8d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5cc440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x553324
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x553358
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.005531c0
add esp, 0xc
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
push esi
push edi
call fcn.00553090
add esp, 8
mov edx, eax
mov dword [ebp - 0x10], edx
test esi, 0x400
je 0x553430
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x55337d
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x553397
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0044aaa8
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 0
cmova eax, dword [ebp - 0x30]
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 - 0x18], esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.0044bf30
cmp esi, 0xffffffff
je 0x553335
push edi
call fcn.00552f90
add esp, 4
push esi
test al, al
jne 0x553424
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edi], 9
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x553448
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0x57c878
and esi, 0x10
je 0x553452
mov edi, dword [ebp - 0x18]
jmp 0x553457
mov edi, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
xor ecx, ecx
test esi, esi
setne cl
add ecx, 2
test esi, esi
mov dword [eax], ecx
cmove edx, edi
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x554430
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55445d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55445d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405790
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454855
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x474298]
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, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x10], 0
je 0x4058c5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4057db
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4058c5
push edi
lea ecx, [ebp - 0x40]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004017f0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4599cc
push eax
call fcn.0042877a
add esp, 8
test eax, eax
je 0x40582e
push 0xb
push str.__enableetw
lea ecx, [ebp - 0x28]
call fcn.00402f00
xor eax, eax
mov dword [ebp - 0x94], 0x44
push 0x40
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00428620
add esp, 0xc
cmp dword [esi + 0x10], 0
jne 0x405862
xor esi, esi
jmp 0x40586a
cmp dword [esi + 0x14], 8
jb 0x40586a
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x94]
push edx
push 0
push 0
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
cmovae eax, dword [ebp - 0x40]
push esi
push ecx
push eax
call fcn.0041bf90
add esp, 0x20
test eax, eax
je 0x4058ae
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4058ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
call fcn.00401fd0
lea ecx, [ebp - 0x40]
call fcn.00401fd0
mov eax, esi
jmp 0x4058c7
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.00426959
mov esp, ebp
pop ebp
ret

Function at 0x4060a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x4060dc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4060b7
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4060dc
cmp dword [esi + 0x14], 8
jb 0x4060ca
mov esi, dword [esi]
push esi
call fcn.004214a0
add esp, 4
test eax, eax
je 0x4060dc
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x407f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454b15
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x474298]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x407f9d
push dword [0x474048]
call fcn.00407240
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 4], 0
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x407f7c
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00407220
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x407f9d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x14
call fcn.004266bc
mov esi, eax
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 4], 1
push ecx
mov dword [eax], ecx
push ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov byte [ebp - 4], 2
mov dword [edx + 0x10], eax
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x408018
push dword [0x474048]
call fcn.00407240
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov byte [ebp - 4], 3
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x408014
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00407220
mov eax, dword [ebx + 0x2c]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x10]
push edi
push 0
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408044
mov eax, dword [ebp + 8]
push eax
push str._ld_not_overlapped
call fcn.00408590
add esp, 8
mov bl, 1
jmp 0x40806b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x408080
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str._ld_readfile_failed:__ld
call fcn.00408590
add esp, 0xc
xor bl, bl
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4080cd
cmp eax, 0xffffffff
je 0x4080cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4080cd
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0xc]
xor esi, esi
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], esi
cmp eax, dword [ebx + 0x14]
je 0x40809b
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x4080a5
lea edx, [ebp + 8]
push edx
push eax
call fcn.00407260
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], eax
cmp edx, dword [ebx + 0x20]
je 0x4080c1
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x4080cb
lea eax, [ebp + 8]
push eax
push edx
call fcn.00407260
mov bl, 1
test esi, esi
je 0x4080dc
push 0x14
push esi
call fcn.004266ec
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4085a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40860c
mov esi, dword [ebp + 0x18]
mov dword [ebp - 8], 3
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
jne 0x40860c
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40864f
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push dword [ebp + 0x10]
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]
mov eax, dword [ebp + 0x14]
test esi, esi
pop esi
cmove eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4086a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call fcn.0042e3e0
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408707
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x409dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454e38
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x474298]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [ecx + 0x4bc], 0
lea esi, [ecx + 0x4bc]
mov edi, dword [ebp + 8]
je 0x409ec7
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e31
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x40]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401fd0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x409f79
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409f6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f98
jmp 0x409f6f
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x409eed
push 0x208
push eax
push esi
call fcn.00428620
add esp, 0xc
xor al, al
jmp 0x409f7b
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409f10
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x70]
call fcn.00401fd0
lea ecx, [ebp - 0x88]
jmp 0x409e85
push edx
push ecx
call fcn.004266ec
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426959
mov esp, ebp
pop ebp
ret 4
call fcn.0042b04f
int3