joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450800
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x450835
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fd0
jmp 0x45083f
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403f3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451704
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x45173c
mov eax, esi
call fcn.00438f14
test al, al
je 0x45173c
mov eax, dword [ebx + 0x74]
call fcn.00438c18
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45173c
push 0
mov eax, dword [ebx + 0x74]
call fcn.00438c18
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45acc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45ae31
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ae0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404090
lea eax, [ebp - 0x118]
mov edx, 0x45ae48
call fcn.00404170
mov eax, dword [ebp - 0x118]
call fcn.0040432c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x45ad7e
lea eax, [ebp - 0x111]
call fcn.00409e80
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403fd0
jmp 0x45ad85
mov eax, esi
call fcn.00403ee8
cmp bl, 0x61
jae 0x45ada6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040d940
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00403f3c
jmp 0x45adc0
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040d8b4
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00403f3c
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x45ae54
call fcn.0040a60c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00403f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae13
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x45d5a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040432c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x45d5c1
test al, 0x10
jne 0x45d5c5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x460364
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x19]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x460392
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x19]
call fcn.0040a0c4
jmp 0x46039f
mov eax, dword [ebp - 4]
mov edx, 0x4603ac
call fcn.00403f3c
mov esp, ebp
pop ebp
ret

Function at 0x461244
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040431c
mov eax, dword [ebp - 8]
call fcn.0040431c
xor eax, eax
push ebp
push 0x4612cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x111]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040432c
push eax
mov eax, dword [ebp - 4]
call fcn.0040432c
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x4612a8
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x111]
call fcn.0040a0c4
jmp 0x4612b0
mov eax, dword [ebp - 0xc]
call fcn.00403ee8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4612d2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f0c
ret
Function at 0x4614c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040431c
xor eax, eax
push ebp
push 0x461613
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 0x200
call fcn.0040449c
mov eax, dword [ebp + 8]
call fcn.00403ee8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x200
lea eax, [ebp - 0x10]
call fcn.00404338
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.0040449c
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
sete byte [eax]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x4615f5
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404170
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
xor edx, edx
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov eax, dword [ebp - 8]
call fcn.00404454
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x4615e9
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.00404168
add eax, dword [ebp - 0x18]
dec eax
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
neg eax
adc edx, 0
neg edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 1
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp byte [ebp - 9], 0
je 0x4615d1
mov edx, dword [ebp - 0x18]
dec edx
mov eax, dword [ebp + 8]
call fcn.0040449c
jmp 0x4615f5
mov eax, dword [ebp - 8]
call fcn.00404168
mov edx, eax
add edx, dword [ebp - 0x18]
dec edx
mov eax, dword [ebp + 8]
call fcn.0040449c
jmp 0x4615f5
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x46150e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46161a
lea eax, [ebp - 0x10]
call fcn.00403ee8
lea eax, [ebp - 8]
call fcn.00403ee8
ret

Function at 0x46165c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040431c
mov eax, dword [ebp - 0xc]
call fcn.0040431c
xor eax, eax
push ebp
push 0x4616d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404170
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404168
push eax
lea eax, [ebp - 8]
call fcn.00404338
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4616d7
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403f0c
ret
Function at 0x4619dc
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov byte [ebp - 1], 0
push 0x461a80
push 0
push 0x1f0001
call sub.kernel32.dll_OpenMutexA
mov dword [0x5138c4], eax
cmp dword [0x5138c4], 0
je 0x461a2d
push 0x7d0
mov eax, dword [0x5138c4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x461a27
cmp dword [ebp - 8], 0x80
jne 0x461a74
mov byte [ebp - 1], 1
jmp 0x461a74
push 0x461a80
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [0x5138c4], eax
cmp dword [0x5138c4], 0
je 0x461a59
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x461a59
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 1
jne 0x461a74
push 0
mov eax, dword [0x5138c4]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x461a74
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [0x5138c0], al
pop ecx
pop ecx
pop ebp
ret
Function at 0x488124
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040432c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x48817c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x512540]
mov dl, 1
mov eax, dword [0x487d18]
call fcn.0040cd24
call fcn.00403918
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00487e20
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48ddbc
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x48decb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
movzx eax, ax
cmp eax, dword [ebp + 8]
jle 0x48de06
lea edx, [ebp - 0x14]
mov eax, dword [0x5121b4]
call fcn.00406544
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.004679b0
mov word [ebp - 8], 0
mov word [ebp - 0xa], 0
mov word [ebp - 0xc], 0
mov eax, ebx
add al, 0xf6
sub al, 2
jae 0x48de38
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0xe]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xa]
lea eax, [ebp - 8]
call fcn.0040aaf0
sub bl, 9
je 0x48de42
sub bl, 2
jne 0x48de56
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea ecx, [ebp - 6]
lea edx, [ebp - 4]
lea eax, [ebp - 2]
call fcn.0040ae08
movzx eax, word [ebp - 2]
mov ebx, 0x64
xor edx, edx
div ebx
add al, 0x64
mov ecx, esi
mov edx, ecx
mov byte [edx], al
movzx eax, word [ebp - 2]
mov ebx, 0x64
xor edx, edx
div ebx
add dl, 0x64
mov eax, ecx
inc eax
mov byte [eax], dl
mov al, byte [ebp - 4]
mov edx, ecx
add edx, 2
mov byte [edx], al
mov al, byte [ebp - 6]
mov edx, ecx
add edx, 3
mov byte [edx], al
mov al, byte [ebp - 8]
inc eax
mov edx, ecx
add edx, 4
mov byte [edx], al
mov al, byte [ebp - 0xa]
inc eax
mov edx, ecx
add edx, 5
mov byte [edx], al
mov al, byte [ebp - 0xc]
inc eax
add ecx, 6
mov byte [ecx], al
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ded2
lea eax, [ebp - 0x14]
call fcn.00403ee8
ret
Function at 0x4b2da0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b2f24
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.0040432c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x4b2f09
mov eax, ebx
call fcn.0040a0d8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b2f02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
mov ebx, eax
test bl, bl
je 0x4b2e37
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b2f38
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4b2e3b
xor eax, eax
jmp 0x4b2e3d
mov al, 1
mov ebx, eax
test bl, bl
jne 0x4b2e4d
call fcn.004039b8
jmp 0x4b2f09
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b2f3c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4b2e9e
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.004097d8
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.004097d8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
pop ecx
call fcn.004041b4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4b2f60
push dword [ebp - 0x1c]
push 0x4b2f7c
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404228
mov eax, dword [ebp - 0x28]
call fcn.0040432c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4b2eec
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
call fcn.0040a0c4
mov eax, dword [ebp - 0x2c]
call fcn.004b2358
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2f09
mov eax, dword [ebp - 0xc]
call fcn.0040a124
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2f2b
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00403f0c
ret

Function at 0x4b3270
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ee8
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 8]
call fcn.0040a0d8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b32d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4b32c1
cmp dword [ebp - 8], 0
jbe 0x4b32c1
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040a0c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b32de
mov eax, dword [ebp - 4]
call fcn.0040a124
ret
Function at 0x4de7dc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4de986
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402b58
mov eax, dword [ebp - 0x20]
call fcn.0040432c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4de917
mov eax, dword [ebp - 0xc]
call fcn.0040a0d8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4de910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402b58
mov eax, dword [ebp - 0x24]
call fcn.0040432c
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
mov edx, 0x4de99c
call fcn.00403f80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4de894
mov eax, 0x510d6c
mov edx, dword [ebp - 0x18]
call fcn.004040a0
lea eax, [ebp - 0x1c]
mov edx, 0x4de9d4
call fcn.00403f80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4de8c7
mov eax, 0x510d74
mov edx, dword [ebp - 0x18]
call fcn.004040a0
lea eax, [ebp - 0x1c]
mov edx, 0x4dea08
call fcn.00403f80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4de8fa
mov eax, 0x510d70
mov edx, dword [ebp - 0x18]
call fcn.004040a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de917
mov eax, dword [ebp - 0x14]
call fcn.0040a124
ret
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
jmp 0x4de95c
mov eax, dword [0x510d70]
mov edx, dword [ebp - 4]
cmp byte [eax + edx - 1], 0x2e
jne 0x4de959
cmp dword [ebp - 8], 3
jge 0x4de941
inc dword [ebp - 8]
jmp 0x4de959
push 0x510d70
mov ecx, dword [ebp - 4]
dec ecx
mov edx, 1
mov eax, dword [0x510d70]
call fcn.00404370
inc dword [ebp - 4]
mov eax, dword [0x510d70]
call fcn.00404168
cmp eax, dword [ebp - 4]
jg 0x4de927
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de98d
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403f0c
ret
Function at 0x4e6cef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x51194e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4e6d47
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x51196f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4e6d3d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4e6d4b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4fa86c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040431c
xor eax, eax
push ebp
push 0x4fa95a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00409a18
test al, al
je 0x4fa8dc
cmp byte [ebp - 9], 0
jne 0x4fa8dc
push 0x4fa970
push dword [ebp - 8]
push 0x4fa980
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404228
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4f7198]
call fcn.004f9110
call fcn.00403918
jmp 0x4fa934
mov eax, dword [ebp - 8]
call fcn.00409b1c
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0046143c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4fa934
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x9c]
cmp dword [ebp - 0x10], 0
je 0x4fa92c
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404168
push eax
lea eax, [ebp - 0x10]
call fcn.00404338
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0x14]
call fcn.0046173c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa961
lea eax, [ebp - 0x1c]
call fcn.00403ee8
lea eax, [ebp - 0x10]
call fcn.00403ee8
lea eax, [ebp - 8]
call fcn.00403ee8
ret
Function at 0x50075c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x500765
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5008d0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x5008a5
cmp dword [ebp - 0xc], 0
je 0x5008a5
mov eax, dword [ebp - 8]
call fcn.004fab38
add al, 0xfb
sub al, 2
jae 0x5008a5
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
lea eax, [ebp - 0x30]
mov edx, dword [0x511ce4]
call fcn.00405590
je 0x5008a5
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0040511c
mov eax, dword [ebp - 0x34]
call fcn.00404168
test eax, eax
jle 0x5008a5
lea eax, [ebp - 0x30]
call fcn.004056cc
cmp eax, 0x100
jne 0x500814
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x30]
call fcn.0040511c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xa0]
jmp 0x5008a5
lea eax, [ebp - 0x3c]
call fcn.00461374
push dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
push dword [eax + 0x20]
push 0x5008e4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404228
mov eax, dword [ebp - 0x10]
call fcn.00409b1c
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0046143c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
mov edx, 1
call fcn.00405888
inc eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
call fcn.004058b0
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
lea eax, [ebp - 0x30]
call fcn.004058d4
mov eax, dword [ebp - 0x14]
call fcn.0046173c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004fa994
mov eax, dword [ebp - 0x10]
call fcn.00409b1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5008d7
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00403f0c
lea eax, [ebp - 0x30]
call fcn.004056a0
lea eax, [ebp - 0x10]
call fcn.00403ee8
ret
Function at 0x503a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
test dl, dl
je 0x503a3e
add esp, 0xfffffff0
call fcn.004034c0
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x503b36
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403150
cmp byte [ebp + 8], 0
je 0x503a77
mov eax, dword [0x511c30]
mov eax, dword [eax]
xor ecx, ecx
mov dl, 1
call dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x503a7c
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
add eax, 0x28
mov edx, 0x503b68
call fcn.00403f3c
mov dl, 1
mov eax, dword [0x410730]
call fcn.00403150
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x30
mov edx, 0x503b7c
call fcn.00403f3c
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 1
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call dword [eax + 0x44]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x18]
mov eax, dword [0x512208]
mov eax, dword [eax]
call fcn.0045111c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409d34
push dword [ebp - 0x14]
push 0x503b90
lea eax, [ebp - 0x1c]
call fcn.00460364
push dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, 3
call fcn.00404228
mov eax, dword [ebp - 4]
mov dl, byte [0x503b98]
mov byte [eax + 0x36], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503b3d
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403f0c
ret