joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x432cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058c5
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x432cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x432cb0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x402dca
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41e97c]
sub esi, dword [0x422988]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x432c20], eax
jle 0x402f28
push dword [0x422984]
call fcn.00402db3
push ebx
push ebx
push dword [0x422988]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41e978], esi
mov dword [0x40e8ec], ebx
mov ebp, 0x416978
mov eax, dword [0x422980]
sub eax, dword [0x422984]
mov edi, 0x4000
cmp eax, edi
jg 0x402e3f
mov edi, eax
push edi
mov esi, 0x41e980
push esi
call fcn.00402d81
test eax, eax
je 0x402f3a
add dword [0x422984], edi
mov dword [0x416908], esi
mov dword [0x41690c], edi
cmp dword [0x432bcc], ebx
je 0x402e96
cmp dword [0x432ca0], ebx
jne 0x402e96
mov eax, dword [0x41e978]
sub eax, dword [0x41e97c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x422988]
mov dword [0x40e8ec], eax
call fcn.00402ce2
pop ecx
mov ecx, 0x4168f0
mov dword [0x416910], ebp
mov dword [0x416914], 0x8000
call fcn.004060ab
test eax, eax
jl 0x402f3f
mov esi, dword [0x416910]
sub esi, ebp
je 0x402ef4
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f44
cmp esi, dword [esp + 0x10]
jne 0x402f44
add dword [0x422988], esi
cmp dword [0x41690c], ebx
jne 0x402e65
jmp 0x402f00
cmp dword [0x41690c], ebx
jne 0x402f3f
cmp edi, ebx
je 0x402f3f
mov eax, dword [0x41e97c]
mov ecx, eax
sub ecx, dword [0x422988]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402e29
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402ce2
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402f32
push 0xfffffffffffffffd
pop eax
jmp 0x402f32
push 0xfffffffffffffffe
jmp 0x402f41
Function at 0x402f48
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f74
mov ecx, dword [0x432c18]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x41e97c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402dca
cmp eax, edi
jl 0x40306d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403069
cmp dword [ebp - 4], esi
jne 0x403069
push dword [ebp + 8]
add dword [0x41e97c], esi
call fcn.00402dca
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40306c
cmp dword [ebp + 0x10], edi
jne 0x403038
cmp dword [ebp + 8], edi
jle 0x403064
mov esi, 0x41e980
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fe8
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403069
cmp edi, dword [ebp - 4]
jne 0x403069
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403034
cmp dword [ebp + 0x14], edi
jne 0x403034
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41e97c], eax
cmp dword [ebp + 8], 0
jg 0x402fdb
jmp 0x403064
push 0xfffffffffffffffe
jmp 0x40306b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403043
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403069
mov eax, dword [ebp - 4]
add dword [0x41e97c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40306c
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4054b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x42b9d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x42b9d0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054eb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405632
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40564f
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405652
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405681
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056c5
test edi, edi
jne 0x40568c
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056bf

Function at 0x4056c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40573a
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x1000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405729
cmp dword [ebp + 0x14], 1
je 0x40572b
cmp dword [ebp + 0x14], 2
je 0x40572b
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0xfff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405983
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ba18
push esi
call fcn.004057e2
push esi
call fcn.004055bb
mov edi, eax
test edi, edi
jne 0x4059a4
xor eax, eax
jmp 0x4059fc
push edi
call fcn.00405804
test byte [0x432c28], 0x80
je 0x4059bd
mov al, byte [edi]
test al, al
je 0x4059a0
cmp al, 0x5c
je 0x4059a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059dd
push esi
call fcn.0040589e
test eax, eax
je 0x4059d7
test byte [eax], 0x10
je 0x405a01
push esi
call fcn.0040595c
push esi
call ebx
cmp eax, edi
jg 0x4059c8
push esi
call fcn.0040592f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059fb
Function at 0x405cb5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004058c5
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405cd9
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e12
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42ca18], 0x4c554e
mov edi, 0x400
mov ebp, 0x42ca18
test esi, esi
je 0x405d1d
push 1
push 0
push esi
call fcn.00405652
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e18
cmp eax, edi
jg 0x405e18
push edi
mov esi, 0x42d358
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e18
cmp eax, edi
jg 0x405e18
push esi
push ebp
push str._s_s_r_n
push 0x42ce18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x432bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a5b
push 4
push 0xc0000000
push esi
call fcn.00405652
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405e12
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405e0b
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405e0b
cmp edi, dword [esp + 0x18]
jne 0x405e0b
push str._Rename__r_n
push esi
call fcn.00405a05
test eax, eax
jne 0x405e1f
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057e2
add edi, 0xa
mov eax, edi
push ebx
push 0x42ce18
add eax, esi
push eax
call fcn.0040560e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x432c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40762c
add eax, 0xa
push eax
call fcn.00405a05
test eax, eax
je 0x405dd6
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405e46
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e3b
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dd8
Function at 0x405e4e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405983
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405e83
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x432c88], eax
jmp 0x406015
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e9e
test eax, eax
je 0x405fc0
test cl, 2
je 0x405fc0
push edi
push ebx
mov esi, 0x42d758
push esi
call fcn.004057e2
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405ec1
push str..
push esi
call edi
jmp 0x405ec7
push ebx
call fcn.0040595c
cmp byte [ebx], 0
jne 0x405ed5
cmp byte [0x42d758], 0x5c
jne 0x405edd
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405fb5
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405577
cmp byte [eax], 0
je 0x405f20
cmp byte [ebp - 0x18], 0
je 0x405f20
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405f36
mov al, byte [esi + 1]
test al, al
je 0x405f94
cmp al, 0x2e
jne 0x405f36
cmp byte [esi + 2], 0
je 0x405f94
push esi
push edi
call fcn.004057e2
test byte [ebp - 0x148], 0x10
je 0x405f5b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f94
push dword [ebp + 0xc]
push ebx
call fcn.00405e4e
jmp 0x405f94
push ebx
call fcn.00405632
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f8c
test byte [ebp + 0xc], 4
je 0x405f84
push ebx
push 0xfffffffffffffff1
call fcn.00404891
push 0
push ebx
call fcn.00405cb5
jmp 0x405f94
inc dword [0x432c88]
jmp 0x405f94
push ebx
push 0xfffffffffffffff2
call fcn.00404891
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405f02
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405fbf
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406014
cmp dword [ebp - 8], esi
je 0x406004
push ebx
call fcn.0040589e
test eax, eax
je 0x406014
push ebx
call fcn.0040592f
push ebx
call fcn.00405632
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40600c
test byte [ebp + 0xc], 4
je 0x406004
push ebx
push 0xfffffffffffffff1
call fcn.00404891
push esi
push ebx
call fcn.00405cb5
jmp 0x406014
inc dword [0x432c88]
jmp 0x406014
push ebx
push 0xffffffffffffffe5
call fcn.00404891
pop esi
pop ebx
leave
ret 8
Function at 0x40601a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42e75c], 0
jne 0x406058
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40602e
mov dword [ecx*4 + 0x42e758], eax
inc ecx
cmp ecx, 0x100
jl 0x406029
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406085
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42e758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406066
not eax
pop ebp
ret 0xc
Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10
Function at 0x1001221
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10010b8
call fcn.0100140c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100125e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100125e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001276
cmp eax, 0x20b
je 0x1001263
mov dword [ebp - 0x1c], ebx
jmp 0x100128a
cmp dword [ecx + 0x84], 0xe
jbe 0x100125e
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001284
cmp dword [ecx + 0x74], 0xe
jbe 0x100125e
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.01001406
cmp dword [section..data], ebx
jne 0x10012e5
push fcn.01001406
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010013f4
push 0x1001080
push 0x100107c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001078
push 0x1001074
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x100137b
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100134f
cmp al, 0x22
jne 0x1001341
cmp byte [esi], 0x22
jne 0x1001358
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001362
cmp al, 0x20
jbe 0x1001354
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x1001386
movzx eax, word [ebp - 0x48]
jmp 0x1001389
cmp byte [esi], 0x20
jbe 0x1001358
inc esi
mov dword [ebp - 0x34], esi
jmp 0x100137b
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10013a6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10013db
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001445
ret
Function at 0x401020
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4e9688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4eae2c]
test eax, eax
jl 0x401053
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [ebp - 0x120]
push edx
mov dword [0x4eae2c], 0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
call fcn.00497780
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x4010df
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x40112e
push str.GetNativeSystemInfo
push 0x4c474c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40112e
lea edx, [ebp - 0x144]
push edx
call eax
mov eax, dword [ebp - 0x144]
cmp ax, 9
je 0x401115
cmp ax, 6
jne 0x40112e
mov eax, 1
mov dword [0x4eae2c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491281
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00491281
mov esp, ebp
pop ebp
ret

Function at 0x401410
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6aeb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e9688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00425150
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00425150
add eax, 0x10
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x40147a
xor edi, edi
jmp 0x40148a
neg edi
sbb edi, edi
and edi, 0xffffff00
add edi, 0x200
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [esi + 0xc], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x10
Function at 0x401820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401880
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4019c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp ecx, esi
je 0x401a1b
push 0x20019
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0xc]
call fcn.00424a20
mov esi, dword [ebp - 0xc]
test eax, eax
jne 0x401a1b
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a1b
cmp dword [ebp - 8], 4
jne 0x401a1b
mov bl, 1
jmp 0x401a1d
xor bl, bl
test esi, esi
je 0x401a28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d4a
mov esi, dword [ebp - 4]
push eax
push eax
push 3
push eax
push str.MPChangeFromWhite
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x401d4a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret