joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4d548d
add esp, 0xfffffff0
call fcn.004038d4
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4d5628
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004ca1c8
test al, al
jne 0x4d54ca
mov ecx, 0x4d565c
mov dl, 1
mov eax, dword [0x4be8c4]
call fcn.0040cd88
call fcn.00403e00
xor eax, eax
push ebp
push 0x4d54f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004c8c74
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004c8b60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5516
mov eax, edi
xor edx, edx
call fcn.00404e18
jne 0x4d5543
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404e18
je 0x4d5543
mov ecx, 0x4d5680
mov dl, 1
mov eax, dword [0x4beb6c]
call fcn.0040cd88
call fcn.00403e00
mov eax, dword [ebp - 0x10]
mov edx, 0x4d5698
call fcn.00404e18
jne 0x4d5576
mov eax, edi
mov edx, 0x4d56a4
call fcn.00404e18
je 0x4d5576
mov ecx, 0x4d5680
mov dl, 1
mov eax, dword [0x4beb6c]
call fcn.0040cd88
call fcn.00403e00
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004d1aac
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404bac
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404bac
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404bac
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404bac
lea eax, [ebx + 8]
call fcn.00404b70
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x41b4d4]
call fcn.00403538
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x41b4d4]
call fcn.00403538
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41b4d4]
call fcn.00403538
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x4d56f0]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4c18e8]
call fcn.004d0d04
mov dword [ebx + 0x3c], eax
mov ax, word [0x4d56f4]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d562f
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404b88
ret
Function at 0x4d8084
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4d80a6
add esp, 0xfffffff0
call fcn.004038d4
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4d8211
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004ca1c8
test al, al
jne 0x4d80e3
mov ecx, 0x4d8244
mov dl, 1
mov eax, dword [0x4be8c4]
call fcn.0040cd88
call fcn.00403e00
push dword [0x56400c]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x56400c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404dd0
mov eax, dword [ebp - 0xc]
call fcn.004caca0
test al, al
jne 0x4d81b5
push dword [0x564008]
push dword [ebp + 8]
push dword [0x564008]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404dd0
mov eax, dword [ebp - 0x14]
call fcn.004caca0
test al, al
jne 0x4d81b5
push dword [0x56400c]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x56400c]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404dd0
mov eax, dword [ebp - 0x18]
call fcn.004cadb8
test al, al
jne 0x4d81b5
push dword [0x564008]
push edi
push dword [0x564008]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404dd0
mov eax, dword [ebp - 0x20]
call fcn.004cadb8
test al, al
jne 0x4d81b5
mov ecx, 0x4d8244
mov dl, 1
mov eax, dword [0x4be8c4]
call fcn.0040cd88
call fcn.00403e00
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004d1aac
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404bac
lea eax, [ebx + 8]
call fcn.00404b70
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.00404bac
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.00404bac
mov byte [ebx + 0xc], 0xc
mov ax, word [0x4d8260]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8218
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404b88
ret

Function at 0x50cd14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50cd8f
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x50cd76
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004046d4
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50cd96
lea eax, [ebp - 0x104]
call fcn.00404464
ret
Function at 0x51bce8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x51bda2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x10]
add dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x20]
mov dl, byte [ebx + 0x30]
mov byte [eax], dl
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
sub esi, eax
test esi, esi
je 0x51bd27
mov edx, dword [ebx + 0x10]
mov ecx, esi
call fcn.00402b14
add esi, dword [ebx + 0x10]
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 0x18]
sub ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 0xc]
add dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x1c], eax
mov esi, dword [ebx + 0x14]
mov dword [ebx + 0x20], esi
cmp esi, dword [ebx + 0x18]
jne 0x51bd7e
mov edx, esi
dec edx
mov eax, dword [ebx + 0x10]
call fcn.0041de90
mov edi, eax
mov dword [ebx + 0x20], edi
cmp edi, dword [ebx + 0x10]
jne 0x51bd7e
lea edx, [ebp - 4]
mov eax, dword [0x565744]
call fcn.00406838
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0051bbe8
mov eax, dword [ebx + 0x20]
mov al, byte [eax]
mov byte [ebx + 0x30], al
mov eax, dword [ebx + 0x20]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bda9
lea eax, [ebp - 4]
call fcn.00404464
ret
Function at 0x54c42c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x54c434
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x54c626
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x54c63c
mov eax, esi
call fcn.0054a2b8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004044b8
lea ecx, [ebp - 0x10]
mov edx, 0x54c650
mov eax, esi
call fcn.0054a2b8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004044b8
lea ecx, [ebp - 0x14]
mov edx, 0x54c668
mov eax, esi
call fcn.0054a2b8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004044b8
lea ecx, [ebp - 0x18]
mov edx, 0x54c684
mov eax, esi
call fcn.0054a2b8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004044b8
lea ecx, [ebp - 0x1c]
mov edx, 0x54c6a0
mov eax, esi
call fcn.0054a2b8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004044b8
lea ecx, [ebp - 0x24]
mov edx, 0x54c6b8
mov eax, esi
call fcn.0054a2b8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408ff0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004096ac
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x54c6d0
mov eax, esi
call fcn.0054a2b8
mov eax, dword [ebp - 0x28]
call fcn.00543d90
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x54c6e0
mov eax, esi
call fcn.0054a2b8
mov eax, dword [ebp - 0x2c]
call fcn.00543d90
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x54c6f8
mov eax, esi
call fcn.0054a2b8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004096ac
inc eax
je 0x54c5c9
lea ecx, [ebp - 0x34]
mov edx, 0x54c6f8
mov eax, esi
call fcn.0054a2b8
mov eax, dword [ebp - 0x34]
call fcn.00409670
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040acc4
fstp qword [ebp - 0x3c]
wait
call fcn.0040b028
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x54c5e4
lea ecx, [ebp - 0x40]
mov edx, 0x54c6f8
mov eax, esi
call fcn.0054a2b8
mov eax, dword [ebp - 0x40]
call fcn.00543d90
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x54c708
mov eax, esi
call fcn.0054a2b8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004044b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54c62d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404488
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404488
ret
Function at 0x5533b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x553412
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.005533a8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.005429fc
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.005425fc
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553419
lea eax, [ebp - 4]
call fcn.00404464
ret

Function at 0x557a90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, dword [0x565818]
mov eax, dword [eax]
call fcn.0047d618
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x557ad1
cmp eax, dword [esp]
pop edx
pop eax
ja 0x557a9b
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x557a9b
pop esi
pop ebx
ret
Function at 0x4019d0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
push edi
mov edi, dword [esp + 0x110]
push eax
mov dword [edi], 0
call fcn.004019a0
mov esi, eax
add esp, 4
test esi, esi
je 0x401a3a
lea ecx, [esp + 8]
push str..ico
push ecx
call fcn.00403620
add esp, 8
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.004034a0
push 0x10
push 0
push 0
lea eax, [esp + 0x14]
push 1
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
lea ecx, [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [edi], esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x403290
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4032c2
pop edi
mov eax, 0xfffffffd
pop esi
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push edi
call ebx
mov ecx, eax
mov eax, dword [esp + 0x14]
push 0
push 0
sub ecx, eax
push eax
push edi
mov dword [esi], ecx
call ebx
mov eax, dword [esi]
pop ebx
test eax, eax
ja 0x4032fc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0xfffffffe
pop esi
ret 0xc
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
cmp ecx, eax
jbe 0x403320
test eax, eax
jbe 0x403320
mov dword [esi], eax
mov ecx, dword [esi]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push 0
push edx
push ecx
push eax
push edi
mov dword [esi + 8], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov edi, dword [esi]
sub eax, edi
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xfe
inc eax
ret 0xc

Function at 0x4034a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4034d2
pop edi
mov eax, 0xfffffffd
pop esi
ret 4
mov edx, dword [esi]
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push edx
push eax
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov edi, dword [esi]
sub eax, edi
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xfd
inc eax
ret 4
Function at 0x403620
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x10
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, esi
push esi
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x403654
push 0x40c1cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403664
cmp byte [eax + esi - 1], 0x5c
je 0x403664
mov byte [eax + esi], 0x5c
mov byte [eax + esi + 1], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, eax
inc ebp
lea ecx, [esp + 0x10]
mov eax, ebx
push 0xa
push ecx
push eax
mov byte [esi + ebp], 0
inc ebx
call fcn.0040988f
add esp, 0xc
push 0x40c1c8
push esi
call edi
lea edx, [esp + 0x10]
push edx
push esi
call edi
mov eax, dword [esp + 0x28]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40367c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x403b30
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x403b55
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
push edi
call fcn.0040688b
mov esi, eax
add esp, 4
test esi, esi
jne 0x403b70
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0xc]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x403b96
push esi
call fcn.00406880
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
add esp, 8
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0x40c1d0
push esi
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403bcc
push esi
call fcn.00406880
add esp, 4
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
call fcn.00406880
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x403d30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x120
lea ecx, [esp + 4]
push ebx
push ebp
push esi
push edi
call fcn.00403780
mov ebp, dword [esp + 0x134]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x30], 0x104
call ebx
test eax, eax
jne 0x403dc5
push 0xc
inc esi
call fcn.0040688b
add esp, 4
test eax, eax
je 0x403db5
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00402880
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.00403800
jmp 0x403d52
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.00403800
jmp 0x403d52
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jle 0x403e48
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea ecx, [esp + 0x18]
call fcn.004037e0
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x2001f
push 0
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00403410
push eax
push ebp
call ebx
test eax, eax
jne 0x403e2b
mov eax, dword [esp + 0x10]
push eax
call fcn.00403d30
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.00403410
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test esi, esi
je 0x403e3f
mov ecx, esi
call fcn.00402950
push esi
call fcn.00406880
add esp, 4
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jl 0x403dd5
lea ecx, [esp + 0x14]
call fcn.004037b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x4042c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x44]
mov ebx, dword [esp + 0x8c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x44]
mov dword [esp + 0x20], eax
push ecx
push edx
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push ebx
push eax
mov dword [esp + 0x6c], 0x44
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40431e
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x78
ret
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [esp + 0x14], eax
push 0xff
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push 0
push ecx
push 1
call esi
test eax, eax
je 0x404399
cmp eax, 1
jne 0x404399
push 0
push 0
push 0
lea edx, [esp + 0x34]
push 0
push edx
call edi
test eax, eax
je 0x404338
push 0
push 0
lea eax, [esp + 0x30]
push 0
push eax
call ebp
test eax, eax
je 0x40438f
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x404338
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push str..BAT
push ebx
call fcn.00406930
push str..CMD
push ebx
mov esi, eax
call fcn.00406930
push str..EXE
push ebx
mov edi, eax
call fcn.00406930
add esp, 0x18
test esi, esi
jne 0x4043e7
mov esi, edi
test edi, edi
jne 0x4043ed
mov edi, esi
test esi, esi
je 0x40441d
test edi, edi
je 0x40441d
test eax, eax
je 0x404401
cmp esi, eax
jb 0x404401
cmp edi, eax
jae 0x40441d
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
sete al
xor edx, edx
pop edi
test eax, eax
setne dl
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x78
ret
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
pop edi
pop esi
setne dl
pop ebp
mov eax, edx
pop ebx
add esp, 0x78
ret
Function at 0x406720
Capabilities:
Shutdown system

Disassembly:
mov al, byte [0x40cb44]
sub esp, 0x14
test al, al
push esi
mov esi, ecx
je 0x4067b3
push 4
push 0x40c924
push 8
mov byte [0x40cb44], 0
call fcn.004035e0
add esp, 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4067b3
lea ecx, [esp + 4]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 0xc]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 4]
push 0
push 0
lea eax, [esp + 0x10]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0x14
ret

Function at 0x407991
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c6e8
cmp edx, dword [eax]
je 0x4079b3
add eax, 8
inc ecx
cmp eax, 0x40c778
jl 0x4079a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c6e8]
jne 0x407ae1
mov eax, dword [0x40cb50]
cmp eax, 1
je 0x407abb
test eax, eax
jne 0x4079e4
cmp dword [0x40c424], 1
je 0x407abb
cmp edx, 0xfc
je 0x407ae1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a1b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408ee0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408fd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407a5e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408fd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c404
push edi
call fcn.004090e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408ee0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408ef0
lea eax, [ebp - 0xa0]
push 0x40a57c
push eax
call fcn.00408ef0
push dword [esi + 0x40c6ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408ef0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040904b
add esp, 0x2c
pop edi
jmp 0x407ae1
lea eax, [ebp + 8]
lea esi, [esi + 0x40c6ec]
push 0
push eax
push dword [esi]
call fcn.00408fd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret