joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [ecx + 8]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x404e78
mov dword [esp + 0xc], eax
lea edx, [esp]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
pop ecx
ret 8

Function at 0x404f40
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x40c688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0xc], ebx
cmp dword [ebp + 8], ebx
push esi
jne 0x404f8b
mov esi, dword [esp + 0x48]
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x40d1ce
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401650
jmp 0x40507d
push edi
push ebx
push 0x40d1ce
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00401650
push 0x100
mov dword [esp + 0x48], ebx
call fcn.0040539a
push 0x100
mov edi, eax
call fcn.0040539a
add esp, 8
mov esi, eax
mov eax, 0x100
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 4]
push esi
push ebx
lea edx, [esp + 0x24]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x405039
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
je 0x405020
mov eax, esi
lea ebp, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405010
sub eax, ebp
push eax
push esi
call fcn.00401650
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405025
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.00401650
push edi
call fcn.00406176
push esi
call fcn.00406176
mov esi, dword [esp + 0x54]
add esp, 8
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x28]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401470
cmp dword [esp + 0x38], 0x10
pop edi
jb 0x40507d
mov eax, dword [esp + 0x20]
push eax
call fcn.0040582d
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0xc
Function at 0x4050a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0xc], ebx
cmp dword [edi + 8], ebx
push ebx
push 0x40d1ce
jne 0x4050eb
mov esi, dword [esp + 0x44]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401650
jmp 0x405192
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00401650
push 0x100
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], 0x100
call fcn.0040539a
mov ecx, dword [esp + 0x44]
mov edx, dword [edi + 4]
add esp, 4
push ebx
push ebx
push ebx
push ebx
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x405155
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405141
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401650
push esi
call fcn.00406176
mov esi, dword [esp + 0x40]
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401470
cmp dword [esp + 0x28], 0x10
jb 0x405192
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040582d
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x4051b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
xor ebx, ebx
cmp eax, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
jne 0x4051ff
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401470
jmp 0x4052a1
mov ecx, dword [esp + 0x4c]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401470
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x38], ebx
call fcn.0040539a
mov ecx, dword [esp + 0x44]
mov edx, dword [edi + 4]
add esp, 4
mov esi, eax
lea eax, [esp + 0x48]
push eax
push esi
push ebx
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405264
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405250
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401650
push esi
call fcn.00406176
mov esi, dword [esp + 0x40]
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401470
cmp dword [esp + 0x28], 0x10
jb 0x4052a1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040582d
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x10
Function at 0x4061a0
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40d3b0
call fcn.00408f74
mov edi, 0x94
mov eax, edi
call fcn.004090d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x410810], ecx
mov eax, dword [esi + 4]
mov dword [0x41081c], eax
mov edx, dword [esi + 8]
mov dword [0x410820], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x410814], esi
cmp ecx, 2
je 0x406200
or esi, 0x8000
mov dword [0x410814], esi
shl eax, 8
add eax, edx
mov dword [0x410818], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40623b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40623b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406253
cmp eax, 0x20b
je 0x406240
mov dword [ebp - 0x1c], esi
jmp 0x406267
cmp dword [ecx + 0x84], 0xe
jbe 0x40623b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406261
cmp dword [ecx + 0x74], 0xe
jbe 0x40623b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00408f20
pop ecx
test eax, eax
jne 0x406293
cmp dword [0x4107bc], 1
jne 0x406280
call fcn.004086d5
push 0x1c
call fcn.0040855e
push 0xff
call fcn.00408275
pop ecx
pop ecx
call fcn.00408e7e
mov dword [ebp - 4], esi
call fcn.00408cd3
test eax, eax
jge 0x4062ac
push 0x1b
call fcn.0040617b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x411db4], eax
call fcn.00408bb1
mov dword [0x4107b4], eax
call fcn.00408b0f
test eax, eax
jge 0x4062d2
push 8
call fcn.0040617b
pop ecx
call fcn.004088dc
test eax, eax
jge 0x4062e3
push 9
call fcn.0040617b
pop ecx
push 1
call fcn.004082a5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4062f9
push eax
call fcn.0040617b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040887f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40631a
movzx eax, word [ebp - 0x40]
jmp 0x40631d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00404bc0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40633b
push edi
call fcn.004083d0
call fcn.004083f2
jmp 0x40636d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00408faf
ret
Function at 0x40830f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x410850], esi
push edi
jne 0x40832f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41084c], esi
mov byte [0x410848], al
jne 0x408395
mov ecx, dword [0x411da8]
test ecx, ecx
je 0x408376
mov eax, dword [0x411da4]
sub eax, 4
cmp eax, ecx
jmp 0x40836f
mov eax, dword [eax]
test eax, eax
je 0x408361
call eax
mov eax, dword [0x411da4]
sub eax, 4
cmp eax, dword [0x411da8]
mov dword [0x411da4], eax
jae 0x408359
mov eax, 0x410024
mov esi, 0x41002c
cmp eax, esi
mov edi, eax
jae 0x408395
mov eax, dword [edi]
test eax, eax
je 0x40838e
call eax
add edi, 4
cmp edi, esi
jb 0x408386
mov eax, 0x410030
mov esi, 0x410038
cmp eax, esi
mov edi, eax
jae 0x4083b4
mov eax, dword [edi]
test eax, eax
je 0x4083ad
call eax
add edi, 4
cmp edi, esi
jb 0x4083a5
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4083ce
push dword [ebp + 8]
mov dword [0x410850], 1
call fcn.00408275
pop ebp
ret

Function at 0x40855e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x410124]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x410150]
je 0x408593
inc eax
cmp eax, 0x13
jb 0x408584
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x410150]
jne 0x4086b9
mov eax, dword [0x4107bc]
cmp eax, 1
je 0x408691
cmp eax, edx
jne 0x4085c3
cmp dword [0x410114], 1
je 0x408691
cmp ecx, 0xfc
je 0x4086b9
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4085f9
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00406910
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40862d
mov eax, edi
push eax
call fcn.00406420
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d8b0
push edi
call fcn.00405fc0
add esp, 0x10
push edi
call fcn.00406420
push dword [esi + 0x410154]
mov ebx, eax
call fcn.00406420
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004090d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00406910
push edi
push ebx
call fcn.00406920
push 0x40d890
push ebx
call fcn.00406920
push dword [esi + 0x410154]
push ebx
call fcn.00406920
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040ac48
add esp, 0x2c
jmp 0x4086b9
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x410154]
push dword [esi]
call fcn.00406420
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040a96a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40a495
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x411c88]
mov eax, dword [0x410124]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40a65b
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x411ca0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40a65b
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40a4ff
xor eax, eax
jmp 0x40a66f
test al, 0x20
je 0x40a510
push 2
push edi
push edi
push ecx
call fcn.0040ba09
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40a5e5
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40a62c
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40a572
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40a563
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40a545
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a5b2
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40a5be
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40a539
jmp 0x40a5c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40a656
cmp dword [ebp + 0x3a4], edi
je 0x40a62c
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40a61e
mov dword [0x410808], eax
jmp 0x40a662
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a610
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40a5c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40a5c0
push dword [ebp + 0x3a4]
call fcn.0040a26c
pop ecx
jmp 0x40a66c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40a644
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40a4f8
mov dword [0x410804], 0x1c
mov dword [0x410808], edi
jmp 0x40a66c
sub eax, dword [ebp - 0x7c]
jmp 0x40a66f
and dword [0x410808], 0
mov dword [0x410804], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040a96a
add ebp, 0x39c
leave
ret
Function at 0x40ac48
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41097c], ebx
push esi
push edi
jne 0x40acc8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40ad03
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41097c], eax
je 0x40ad03
push 0x40de74
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x410980], eax
call esi
cmp dword [0x410810], 2
mov dword [0x410984], eax
jne 0x40acc8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41098c], eax
je 0x40acc8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x410988], eax
mov eax, dword [0x410988]
test eax, eax
je 0x40ad0d
call eax
test eax, eax
je 0x40acf4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41098c]
test eax, eax
je 0x40acf4
test byte [ebp - 8], 1
jne 0x40ad0d
cmp dword [0x41081c], 4
jb 0x40ad07
or byte [ebp + 0x12], 0x20
jmp 0x40ad2c
xor eax, eax
jmp 0x40ad3c
or byte [ebp + 0x12], 4
jmp 0x40ad2c
mov eax, dword [0x410980]
test eax, eax
je 0x40ad2c
call eax
mov ebx, eax
test ebx, ebx
je 0x40ad2c
mov eax, dword [0x410984]
test eax, eax
je 0x40ad2c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41097c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b16d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40b19b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40b1a2
cmp ebx, dword [eax + 4]
jae 0x40b1a2
xor eax, eax
jmp 0x40b392
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b1b3
xor eax, eax
inc eax
jmp 0x40b391
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b1c9
cmp ecx, edx
jae 0x40b30e
cmp dword [eax + 4], 0
je 0x40b1d2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b1ba
cmp dword [ebp + 8], 0
je 0x40b1f4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b30e
cmp eax, esi
jae 0x40b30e
mov eax, dword [0x410998]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b219
cmp dword [esi*4 + 0x4109a0], edi
je 0x40b312
inc esi
cmp esi, eax
jl 0x40b207
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b38e
cmp dword [ebp - 8], 0x1000000
jne 0x40b38e
test byte [ebp - 0xc], 0xcc
je 0x40b297
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40b38e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b38e
cmp word [eax + 0x18], 0x10b
jne 0x40b38e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40b38e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b297
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b297
test byte [ecx + 0x27], 0x80
jne 0x40b30e
push 1
push 0x4109e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b1ab
mov ecx, dword [0x410998]
test ecx, ecx
mov edx, ecx
jle 0x40b2cb
lea eax, [ecx*4 + 0x41099c]
cmp dword [eax], edi
je 0x40b2cb
dec edx
sub eax, 4
test edx, edx
jg 0x40b2bf
test edx, edx
jne 0x40b2fc
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b2d8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b2f0
lea eax, [edx*4 + 0x4109a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b2de
cmp ecx, 0x10
jge 0x40b2fc
inc ecx
mov dword [0x410998], ecx
push 0
push 0x4109e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b1ab
xor eax, eax
jmp 0x40b391
test esi, esi
jle 0x40b1ab
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4109e0
call ebx
test eax, eax
jne 0x40b1ab
cmp dword [esi*4 + 0x4109a0], edi
je 0x40b368
mov eax, dword [0x410998]
lea esi, [eax - 1]
test esi, esi
jl 0x40b356
cmp dword [esi*4 + 0x4109a0], edi
je 0x40b352
dec esi
jns 0x40b346
test esi, esi
jge 0x40b366
cmp eax, 0x10
jge 0x40b361
inc eax
mov dword [0x410998], eax
lea esi, [eax - 1]
jmp 0x40b368
je 0x40b380
xor ecx, ecx
test esi, esi
jl 0x40b380
lea eax, [ecx*4 + 0x4109a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b36e
push 0
push 0x4109e0
call ebx
jmp 0x40b1ab
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b76c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004090d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b807
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x410810]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b807
cmp eax, 1
je 0x40b828
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b807
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b7d4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b803
xor eax, eax
inc eax
jmp 0x40b847
cmp edi, eax
jae 0x40b80b
xor eax, eax
jmp 0x40b847
cmp eax, esi
jae 0x40b812
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x410810]
jmp 0x40b82b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40be02
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004090d0
mov eax, dword [0x410124]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x411c88]
mov dword [ebp - 4], eax
jae 0x40bf45
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x411ca0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40bf45
push 1
push esi
push ebx
call fcn.0040bb7b
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40bf4f
push 2
push esi
push ebx
call fcn.0040bb7b
add esp, 0xc
cmp eax, 0xffffffff
je 0x40bf4f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40beef
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040b500
push 0x8000
push ebx
call fcn.0040c1a4
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40beae
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040a495
add esp, 0xc
cmp eax, 0xffffffff
je 0x40becc
sub edi, eax
test edi, edi
jg 0x40bea3
jmp 0x40bee2
cmp dword [0x410808], 5
jne 0x40bedf
mov dword [0x410804], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040c1a4
pop ecx
pop ecx
jmp 0x40bf2f
jge 0x40bf2f
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040bb7b
push ebx
call fcn.0040a459
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40bf2f
mov dword [0x410804], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x410808], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040bb7b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40bf52
mov dword [0x410804], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040a96a
leave
ret