joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000226c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10002294
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000229a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10002302
jg 0x100022b1
test esi, esi
je 0x10002302
test ecx, ecx
jl 0x100022fd
jg 0x100022bb
test eax, eax
je 0x100022fd
cmp edi, ecx
jg 0x100022cf
jl 0x100022c5
cmp esi, eax
jae 0x100022cf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10002305
mov ecx, dword [ebp + 8]
jmp 0x1000230f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10002329
jg 0x1000230f
test esi, esi
je 0x10002329
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10002329
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000236c
jl 0x10002360
test ecx, ecx
jne 0x1000236c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10002385
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x100023d3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x100023d9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x100023d9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10002446
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10002402
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10002434
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10002446
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10002410
test edi, edi
je 0x10002446
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100027b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10008004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100027e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037cd
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10002810
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10002810
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037cd
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100028e8
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10002839
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10002845
movsx eax, bl
jmp 0x1000287d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x100028a7
sub eax, 1
je 0x100028a7
sub eax, 2
jne 0x100028e8
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037cd
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100028c5
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100028e8
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037cd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100037cd
mov esp, ebp
pop ebp
ret 4
Function at 0x10002c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10008004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10002cfc
cmp byte [esi + 0x3d], 0
je 0x10002cfc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10002cea
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10002cb1
sub eax, 1
je 0x10002cb5
sub eax, 2
jne 0x10002cea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037cd
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002cd3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10002cea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037cd
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100037cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100037cd
mov esp, ebp
pop ebp
ret
Function at 0x10001070
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000115d
mov eax, 0x94
call fcn.10001fc0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100011d2
mov ecx, dword [esi + 0x10]
mov dword [0x10009378], ecx
mov eax, dword [esi + 4]
mov dword [0x10009384], eax
mov edx, dword [esi + 8]
mov dword [0x10009388], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000937c], esi
je 0x100010db
or esi, 0x8000
mov dword [0x1000937c], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10009380], eax
call fcn.10001ee3
test eax, eax
pop ecx
je 0x100011d2
call fcn.10001665
test eax, eax
jne 0x10001108
call fcn.10001f34
jmp 0x100011d2
call fcn.10001e41
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10009b34], eax
call fcn.10001d1f
mov dword [0x10009364], eax
call fcn.10001800
test eax, eax
jl 0x10001156
call fcn.10001c7d
test eax, eax
jl 0x10001151
call fcn.10001a4a
test eax, eax
jl 0x10001151
call fcn.10001300
test eax, eax
jne 0x10001151
inc dword [0x10009360]
jmp 0x100011e3
call fcn.100019fe
call fcn.10001458
jmp 0x100010fe
test eax, eax
jne 0x1000118d
cmp dword [0x10009360], eax
jle 0x100011d2
dec dword [0x10009360]
cmp dword [0x100093b4], eax
jne 0x1000117c
call fcn.10001449
call fcn.100019fe
call fcn.10001458
call fcn.10001f34
jmp 0x100011e3
cmp eax, 2
jne 0x100011d6
push 0x88
push 1
call fcn.10001745
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100011d2
push esi
push dword [0x10008a98]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x100011cc
call fcn.10001476
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100011e3
call fcn.100016d4
pop ecx
xor eax, eax
jmp 0x100011e6
cmp eax, 3
jne 0x100011e3
push 0
call fcn.100014fa
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10001365
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.100022e5
xor esi, esi
inc esi
cmp dword [0x100093b8], esi
pop ecx
jne 0x1000138d
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 [0x100093b4], esi
mov byte [0x100093b0], al
jne 0x100013f3
mov ecx, dword [0x10009b28]
test ecx, ecx
je 0x100013d4
mov eax, dword [0x10009b24]
sub eax, 4
cmp eax, ecx
jmp 0x100013cd
mov eax, dword [eax]
test eax, eax
je 0x100013bf
call eax
mov eax, dword [0x10009b24]
sub eax, 4
cmp eax, dword [0x10009b28]
mov dword [0x10009b24], eax
jae 0x100013b7
mov eax, 0x1000801c
mov esi, 0x10008020
cmp eax, esi
mov edi, eax
jae 0x100013f3
mov eax, dword [edi]
test eax, eax
je 0x100013ec
call eax
add edi, 4
cmp edi, esi
jb 0x100013e4
mov eax, 0x10008024
mov esi, 0x10008028
cmp eax, esi
mov edi, eax
jae 0x10001412
mov eax, dword [edi]
test eax, eax
je 0x1000140b
call eax
add edi, 4
cmp edi, esi
jb 0x10001403
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10001423
push 8
call fcn.10002251
jmp 0x10001435
push dword [ebp + 8]
mov dword [0x100093b8], 1
call fcn.100012be
pop ecx
pop ebp
ret
Function at 0x10002003
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10008fa0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10008ad0]
je 0x10002030
inc eax
cmp eax, 0x12
jb 0x10002021
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10008ad0]
jne 0x10002164
mov eax, dword [0x1000936c]
cmp eax, 1
je 0x1000213f
cmp eax, edx
jne 0x10002060
cmp dword [0x10009370], 1
je 0x1000213f
cmp ecx, 0xfc
je 0x10002164
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002099
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10003810
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10003910
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100020db
lea eax, [ebp - 0x10c]
push eax
call fcn.10003910
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10006900
push edi
call fcn.10003de0
add esp, 0x10
push edi
call fcn.10003910
push dword [esi + 0x10008ad4]
mov ebx, eax
call fcn.10003910
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10001fc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10003810
push edi
push ebx
call fcn.10003820
push 0x100068e0
push ebx
call fcn.10003820
push dword [esi + 0x10008ad4]
push ebx
call fcn.10003820
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10003cdd
add esp, 0x2c
jmp 0x10002164
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10008ad4]
push dword [esi]
call fcn.10003910
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10003f35
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003cdd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000963c], ebx
push esi
push edi
jne 0x10003d5d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10003d98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000963c], eax
je 0x10003d98
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10009640], eax
call esi
cmp dword [0x10009378], 2
mov dword [0x10009644], eax
jne 0x10003d5d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000964c], eax
je 0x10003d5d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10009648], eax
mov eax, dword [0x10009648]
test eax, eax
je 0x10003da2
call eax
test eax, eax
je 0x10003d89
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000964c]
test eax, eax
je 0x10003d89
test byte [ebp - 8], 1
jne 0x10003da2
cmp dword [0x10009384], 4
jb 0x10003d9c
or byte [ebp + 0x12], 0x20
jmp 0x10003dc1
xor eax, eax
jmp 0x10003dd1
or byte [ebp + 0x12], 4
jmp 0x10003dc1
mov eax, dword [0x10009640]
test eax, eax
je 0x10003dc1
call eax
mov ebx, eax
test ebx, ebx
je 0x10003dc1
mov eax, dword [0x10009644]
test eax, eax
je 0x10003dc1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000963c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100052de
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.10001fc0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005373
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10009378]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10005373
cmp eax, 1
je 0x1000538b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10005373
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10005348
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1000536f
xor eax, eax
inc eax
jmp 0x100053a7
cmp esi, ebx
jae 0x10005377
xor eax, eax
jmp 0x100053a7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10009378]
jmp 0x1000538d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 2
jne 0x401b19
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 8], edx
jmp 0x401bce
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call fcn.00510e78
add esp, 4
push eax
call fcn.00510be5
add esp, 8
test eax, eax
je 0x401b53
jmp 0x401c72
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
push ecx
call fcn.0050c859
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x401b7c
jmp 0x401c72
mov eax, dword [ebp - 0x3c]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0050c620
add esp, 0xc
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call fcn.00510e78
add esp, 4
push eax
call fcn.005109a7
add esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jle 0x401bce
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
jmp 0x401b91
cmp dword [ebp - 8], 0
je 0x401c11
lea edx, [ebp - 4]
push edx
mov eax, dword [0x53f65c]
mov ecx, dword [eax + 0xe8]
mov edx, dword [0x53f65c]
mov eax, dword [edx + 0xe4]
mov ecx, dword [eax + ecx*4]
push ecx
push 0x14
push 0x5213d0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.00420ef0
add esp, 0x1c
cmp dword [ebp - 0x38], 0
je 0x401c29
mov edx, dword [ebp - 8]
push edx
mov eax, dword [0x53f65c]
push eax
call fcn.0041263d
add esp, 8
cmp dword [ebp - 4], 0
je 0x401c5a
mov ecx, dword [ebp - 4]
push ecx
push str.ERRORS:__s_n
mov edx, dword [0x589ae4]
push edx
call fcn.0050c6ac
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.0041263d
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x401c72
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x53f65c]
push eax
call fcn.0041263d
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x408a9c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
push edi
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0
mov byte [ebp - 0x804], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x803]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0x400
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push 0x524d64
lea edx, [ebp - 0x404]
push edx
call fcn.0050cc03
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x20007
push 0
push 0x524d70
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408bbe
push str.Error:_unable_to_delete_local_borrow_info._n
mov ecx, dword [0x589ae4]
push ecx
call fcn.0050c6ac
add esp, 8
mov edx, dword [0x53f65c]
cmp dword [edx + 0x80], 0
je 0x408b72
xor eax, eax
test eax, eax
je 0x408b72
mov ecx, dword [0x53f65c]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x810], edx
jmp 0x408b7c
mov dword [ebp - 0x810], 0xffffff86
mov eax, dword [0x53f65c]
mov ecx, dword [ebp - 0x810]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x24f
push 0xffffffffffffff86
mov edx, dword [0x53f65c]
push edx
call fcn.00417d90
add esp, 0x1c
mov eax, dword [0x53f65c]
mov eax, dword [eax + 0x80]
jmp 0x408cd7
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x804]
push edx
mov eax, dword [ebp - 0x808]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
push ecx
mov edx, dword [ebp - 0x80c]
push edx
mov eax, dword [ebp - 0x808]
add eax, 1
mov dword [ebp - 0x808], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x408cc8
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x804], 0
lea edx, [ebp - 0x404]
push edx
call fcn.0050c510
add esp, 4
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x804]
push ecx
call fcn.0050da00
add esp, 0xc
test eax, eax
jne 0x408cbc
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
call fcn.0050c510
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
lea ecx, [ebp - 0x804]
push ecx
call fcn.0050c510
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
call fcn.0050c510
add esp, 4
sub esi, eax
lea eax, [ebp + esi - 0x804]
push eax
call fcn.0050da00
add esp, 0xc
test eax, eax
jne 0x408cbc
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x524dc4
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00408cdd
add esp, 4
mov dword [ebp - 4], 0x400
jmp 0x408bbe
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bf18
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
jmp 0x40bf37
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jge 0x40bf82
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 0x526834
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.0050c590
add esp, 8
test eax, eax
je 0x40bf80
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
push str.Unknown_argument:__s_n
mov eax, dword [0x589ae4]
push eax
call fcn.0050c6ac
add esp, 0xc
jmp 0x40bf2e
cmp dword [ebp - 8], 0
je 0x40bf94
call fcn.0040b2f3
push 1
call fcn.0050cf49
mov esp, ebp
pop ebp
ret