joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66761db0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66789b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [ebp], method.streambuf.virtual_28
lea esi, [ebp + 4]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], esi
mov dword [esi], method.streambuf.virtual_28
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x13]
push 0x18
mov byte [esp + 0x30], 1
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov byte [esi + 0xc], bl
call fcn.66766ab2
mov edi, eax
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [edi + 4], ebx
mov dword [edi + 0x14], 1
call fcn.66772db2
cmp dword [0x667bd660], ebx
jne 0x66761e42
mov dword [0x667bd660], edi
mov dword [edi], ebx
mov edx, dword [0x667bd660]
mov dword [esp + 0x14], ebx
mov dword [edx + 8], ebx
mov edx, dword [0x667bd664]
lea ecx, [esp + 0x18]
inc edx
mov dword [0x667bd664], edx
call fcn.66772e4e
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x66761e69
push eax
call fcn.667661a3
add esp, 4
mov edi, dword [0x667bd660]
push 0x18
call fcn.66766ab2
mov dword [eax + 4], edi
mov dword [eax + 0x14], ebx
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [eax], eax
mov eax, dword [esi + 8]
add esp, 4
mov dword [eax + 8], eax
mov dword [esi], 0x66795890
pop edi
mov dword [ebp], 0x66795884
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x66761eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66789ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [ebp], method.streambuf.virtual_28
lea esi, [ebp + 4]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], esi
mov dword [esi], method.streambuf.virtual_28
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x13]
push 0x18
mov byte [esp + 0x30], 1
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov byte [esi + 0xc], bl
call fcn.66766ab2
mov edi, eax
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [edi + 4], ebx
mov dword [edi + 0x14], 1
call fcn.66772db2
cmp dword [0x667bd660], ebx
jne 0x66761f42
mov dword [0x667bd660], edi
mov dword [edi], ebx
mov edx, dword [0x667bd660]
mov dword [esp + 0x14], ebx
mov dword [edx + 8], ebx
mov edx, dword [0x667bd664]
lea ecx, [esp + 0x18]
inc edx
mov dword [0x667bd664], edx
call fcn.66772e4e
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x66761f69
push eax
call fcn.667661a3
add esp, 4
mov edi, dword [0x667bd660]
push 0x18
call fcn.66766ab2
mov dword [eax + 4], edi
mov dword [eax + 0x14], ebx
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [eax], eax
mov eax, dword [esi + 8]
add esp, 4
mov dword [eax + 8], eax
mov dword [esi], 0x66796b44
pop edi
mov dword [ebp], 0x66796b38
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x667625f0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
push 0xd77155c9
push 0x28781410
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
push 0xa06f1472
call dword [eax]
mov ecx, eax
not ecx
xor ecx, eax
and ecx, 0x6e60ca67
xor ecx, eax
xor ecx, 0xae694b4
mov edx, ecx
not edx
xor edx, ecx
and edx, 0x3bec014c
xor edx, ecx
jne 0x66762632
xor eax, eax
pop edi
ret
mov eax, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [edi + 0x30]
xor ebx, ebx
cmp esi, eax
je 0x6676266d
mov eax, dword [esi]
push 0xd358a0cc
add eax, 0x2c
push 0x2c51e115
push 0xa446e177
lea ecx, [eax + 8]
mov eax, dword [eax + 8]
call dword [eax]
xor eax, 0xecf61b1
add esi, 4
add ebx, eax
mov eax, dword [edi + 0x34]
cmp esi, eax
jne 0x66762640
mov eax, ebx
pop esi
pop ebx
pop edi
ret
Function at 0x66763000
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x66789d66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0xc], esi
call fcn.66757340
lea eax, [esp + 0xc]
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x94], esi
mov dword [esp + 0x30], 0x66795ff8
call fcn.66722c8a
mov edi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
cmp edi, eax
mov dword [esp + 0x90], 1
je 0x6676318d
push ebp
mov edx, dword [esp + 0x38]
push 0x9b75fb6c
push 0x647cbab5
push 0xec6bbad7
lea ecx, [esp + 0x44]
call dword [edx]
mov esi, 0xd77d0f89
mov ebp, 0x136ef13a
mov ecx, eax
mov edx, eax
xor ecx, esi
xor edx, ebp
cmp ecx, edx
jne 0x66763096
mov esi, ecx
mov ebp, edx
push 0x82f1c4a2
push ebp
push esi
push eax
lea ecx, [esp + 0x64]
call fcn.66764680
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0xa0]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov eax, dword [edi]
push 0xc
add eax, 0x54
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x66796b34
call dword [0x66796b34]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esp + 0x24]
sbb edx, ecx
add eax, 0x23
adc edx, 0
mov ecx, 1
call fcn.66767620
lea ecx, [esp + 0x5c]
mov esi, eax
mov dword [esp + 0x58], 0x66796d64
call fcn.667074c0
lea ecx, [esp + 0x74]
mov byte [esp + 0x94], 2
call fcn.667074c0
mov dword [esp + 0x58], 0x66796d60
lea ecx, [esp + 0x58]
lea edx, [esp + 0x30]
mov dword [esp + 0x50], ecx
push esi
push edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 3
call dword [0x66796d60]
mov eax, dword [esp + 0x50]
mov ebp, eax
lea ecx, [eax + 0x1c]
call fcn.66707530
lea ecx, [ebp + 4]
mov esi, eax
call fcn.66707530
add esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.66722c8a
lea ecx, [esp + 0x58]
mov byte [esp + 0x94], 1
call fcn.667641c0
mov eax, dword [ebx + 0x34]
add edi, 4
cmp edi, eax
jne 0x66763063
pop ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0x66796030
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x90], 4
mov dword [esp + 0xc], edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x90], 5
call fcn.6672b793
mov ecx, dword [esp + 0x88]
pop edi
pop esi
mov eax, 0x410a02bc
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 4
Function at 0x66763900
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x66789e96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
lea eax, [esp + 0x10]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], 0x66796d64
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x667957e4
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], 0
call fcn.66707a50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 1
call fcn.66707a60
mov dword [esp + 0x18], 0x667957e0
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], 2
call fcn.667074c0
mov dword [esp + 0x14], 0x66796d60
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x14]
push edx
mov dword [esi], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 3
call dword [0x66796d60]
mov esi, dword [esi]
push 0x8ffdc32
push 0xf7f69deb
push 0x7fe19d89
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0xc]
call dword [edx]
mov ebx, 0x44f728d7
mov ebp, 0x80e4d664
mov edx, eax
mov edi, eax
xor edx, ebx
xor edi, ebp
cmp edx, edi
lea ecx, [esi + 0x18]
jne 0x667639ce
mov ebx, edx
mov ebp, edi
mov edx, dword [ecx]
push 0x117be3fc
push ebp
push ebx
push eax
call dword [edx + 4]
lea ecx, [esi + 0x24]
mov edi, eax
push 0x8ffdc32
push 0xf7f69deb
mov eax, dword [ecx]
push 0x7fe19d89
call dword [eax]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], eax
push ecx
lea ecx, [esi + 0x30]
call fcn.66708780
mov edx, dword [esp + 0x58]
sub edi, eax
mov eax, dword [edx + 8]
lea ecx, [edx + 8]
mov edx, edi
xor edx, 0x46e23a11
push edx
call dword [eax + 4]
mov ecx, dword [esp + 0x48]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x66763a40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x66789ec6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
lea eax, [esp + 0xc]
push esi
push edi
mov dword [esp + 0x10], 0x66796d70
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0x667957e4
mov dword [esp + 0x4c], 0
mov dword [esp + 0x1c], 0x66795864
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 1
call fcn.66707a60
mov dword [esp + 0x14], 0x667957e0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 2
call fcn.667074c0
mov dword [esp + 0x10], 0x66796d6c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 3
call dword [0x66796d6c]
mov eax, dword [esp + 0x1c]
push 0x8ffdc32
push 0xf7f69deb
push 0x7fe19d89
lea ecx, [esp + 0x28]
call dword [eax]
mov esi, 0x44f728d7
mov edi, 0x80e4d664
mov ecx, eax
mov edx, eax
xor ecx, esi
xor edx, edi
cmp ecx, edx
jne 0x66763b01
mov esi, ecx
mov edi, edx
mov edx, dword [esp + 0x28]
push 0x117be3fc
push edi
push esi
push eax
lea ecx, [esp + 0x38]
call dword [edx + 4]
mov ebx, eax
mov eax, dword [esp + 0x34]
push 0x8ffdc32
push 0xf7f69deb
push 0x7fe19d89
lea ecx, [esp + 0x40]
call dword [eax]
mov esi, 0x44f728d7
mov edi, 0x80e4d664
mov ecx, eax
mov edx, eax
xor ecx, esi
xor edx, edi
cmp ecx, edx
jne 0x66763b49
mov esi, ecx
mov edi, edx
mov edx, dword [esp + 0x40]
push 0x117be3fc
push edi
push esi
push eax
lea ecx, [esp + 0x50]
call dword [edx + 4]
mov ecx, eax
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x6676c64d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x667b7528
cmp edx, dword [eax]
je 0x6676c66f
add eax, 8
inc ecx
cmp eax, 0x667b75b8
jl 0x6676c660
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x667b7528]
jne 0x6676c79d
mov eax, dword [0x6682aca0]
cmp eax, 1
je 0x6676c777
test eax, eax
jne 0x6676c6a0
cmp dword [0x6682aca4], 1
je 0x6676c777
cmp edx, 0xfc
je 0x6676c79d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6676c6d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.66765370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.66765460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6676c71a
lea eax, [ebp - 0x1a4]
push eax
call fcn.66765460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x66797304
push edi
call fcn.66766ee0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.66765370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.66765380
lea eax, [ebp - 0xa0]
push 0x667972e4
push eax
call fcn.66765380
push dword [esi + 0x667b752c]
lea eax, [ebp - 0xa0]
push eax
call fcn.66765380
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.6676e346
add esp, 0x2c
pop edi
jmp 0x6676c79d
lea eax, [ebp + 8]
lea esi, [esi + 0x667b752c]
push 0
push eax
push dword [esi]
call fcn.66765460
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
Function at 0x6678fda2
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
push 0x15
pop ecx
lea edi, [ebp - 0x54]
lea esi, [eax + 0xc]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x48]
cmp edx, 0x70000000
jbe 0x6678fdf4
mov ecx, dword [ebx + 8]
cmp dword [ecx + 4], edx
je 0x6678fdda
mov dword [ecx + 4], edx
mov dword [ebx + 0xc], 0x10002
jmp 0x6678fdfb
push dword [eax + 8]
call fcn.6678e5e8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 0xc], 0x40010003
jmp 0x6678fdfb
mov dword [ebx + 0xc], 0x80010001
pop edi
pop esi
mov ax, 1
pop ebx
leave
ret
Function at 0x66790ad3
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x66784e50
call fcn.66766184
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
and dword [ebp - 4], 0
and dword [ebp - 0x2c], 0
lea ecx, [ebp + 0x10]
call fcn.6672d629
cmp eax, 2
jne 0x66790c6c
lea ecx, [ebp - 0x60]
call fcn.667340e0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.66735e74
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ebx, 0x6a9c77b6
push 0xfb03422e
mov edi, 0xae8f8905
push ebx
push edi
lea ecx, [eax + 0x10]
push eax
push 0
mov dword [ebp - 0x24], ecx
call fcn.66735e04
movzx ax, al
cmp ax, si
jne 0x66790c60
mov esi, dword [ebp + 0x38]
lea ecx, [esi + 0xa4]
mov dword [ebp - 0x34], ecx
call fcn.667298cb
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], ecx
call fcn.66722e2d
lea ecx, [esi + 0x7c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], ecx
call fcn.66729858
lea ecx, [esi + 0x54]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], ecx
call fcn.667297dc
lea ecx, [esi + 0xcc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ecx
call fcn.66722fa1
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x38]
push eax
push 0xfb03422e
push ebx
push edi
push dword [ebp + 0xc]
push 1
call fcn.66735e04
mov ecx, dword [ebp - 0x30]
push eax
call fcn.66790563
cmp ax, 1
mov dword [ebp - 0x2c], eax
jne 0x66790c60
mov eax, dword [ebp - 0x20]
and byte [ebp + 0xf], 0
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x38]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
pushal
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
xor ecx, eax
mov eax, 0
lahf
mov byte [ebp + 0xf], ah
mov dword [ebp - 0x24], ecx
popal
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 0x24]
push 0x938a275e
mov dword [eax], ecx
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 8]
mov dword [eax], 0xf514827b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x28]
push 0xfffff700
call fcn.66733cee
movzx eax, byte [ebp + 0xf]
mov ecx, dword [ebp - 0x28]
push eax
call fcn.66733d4e
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
call fcn.6672c4c6
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
call fcn.6672c3a6
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
call fcn.6672c466
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
call fcn.6672c406
and byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.66734142
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.6672c172
mov ecx, dword [ebp - 0xc]
mov ax, word [ebp - 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x38
Function at 0x66792054
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x200
push eax
push 0
push 0
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x314]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x667920df
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [ebp + 8]
call fcn.66792149
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x667920d4
mov eax, dword [ebp - 4]
and byte [ebp + eax - 0x114], 0
lea eax, [ebp - 0x114]
push eax
call fcn.667920e5
test ax, ax
pop ecx
jne 0x667920d7
inc edi
jmp 0x66792061
mov eax, dword [ebp + 0xc]
mov word [eax], 1
mov eax, esi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0x5c
push ebx
call fcn.66765b7d
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x66792100
mov esi, ebx
jmp 0x66792101
inc esi
push 0x667abf5c
call fcn.66719feb
mov edi, eax
pop ecx
test edi, edi
jne 0x66792117
xor ax, ax
jmp 0x66792145
push esi
push edi
call fcn.66769920
pop ecx
pop ecx
test eax, eax
push edi
je 0x6679212d
call fcn.66765278
pop ecx
jmp 0x66792112
call fcn.66765278
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov ax, cx
pop edi
pop esi
pop ebx
ret

Function at 0x66792149
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push edi
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x667921a4
push esi
push 0x667abf3c
call fcn.66719feb
mov esi, eax
pop ecx
test esi, esi
je 0x6679219a
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call fcn.66765278
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebp
ret
Function at 0x40b982
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c2e0
push 0x40bb90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40ea74], 0xffffffff
or dword [0x40ea78], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40e8a8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40e8a4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ea7c], eax
call fcn.0040bb3d
cmp dword [0x40e880], 0
jne 0x40ba05
push 0x40bb3a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040bb22
push 0x40d00c
push 0x40d008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40e8a0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40e89c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40d004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401000
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x408710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], esp
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0x40aa00
mov edx, dword [ebp + 8]
lea eax, [esi + 0x40]
mov ecx, dword fs:[0]
mov dword [esi + 0x40], ecx
mov dword fs:[0], eax
cmp dword [edx + 0x10], 0
jne 0x4087c2
lea edi, [edx + 0x14]
lea eax, [esi + 0x28]
push dword [edx + 0xc]
push dword [edx + 8]
push eax
call fcn.004334a0
add esp, 0xc
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov dword [esi + 0x48], 0
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edx
mov dword [esi + 0x14], ecx
mov ecx, edi
mov dword [esi + 0x10], eax
call fcn.00408ed0
lea edi, [esi + 8]
mov dword [esi + 0x48], 0xffffffff
push edi
call fcn.00433500
add esp, 4
mov dword [esi + 8], 2
push edi
push dword [ebp + 8]
call fcn.00408ce0
add esp, 8
mov eax, dword [esi + 0x40]
mov dword fs:[0], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 4]
mov dword [esi + 8], 0x520b60
mov dword [esi + 0xc], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
lea eax, [esi + 8]
push 0x520bd0
push eax
call fcn.0051ed60
add esp, 8
ud2
Function at 0x408950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0x40aa20
mov edx, dword [ebp + 8]
lea eax, [esi + 0x38]
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov byte [esi + 3], 1
mov dword [esi + 0x40], 0
lea edx, [esi + 0x20]
push ecx
push eax
push edx
call fcn.004334a0
add esp, 0xc
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], ecx
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov eax, 2
mov edx, ecx
mov dword [esi + 4], edi
add edx, 0xfffffffe
adc edi, 0xffffffff
xor ebx, ebx
cmp eax, edx
mov eax, dword [ebp + 8]
sbb ebx, edi
lea edi, [eax + 0x10]
jb 0x4089eb
cmp edx, 1
jne 0x408a2d
or ecx, dword [esi + 4]
je 0x408a2d
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x408a2d
mov eax, dword [eax + 0x1c]
mov dword [esi + 4], edi
mov dword [esi + 0x40], 1
mov dword [esi + 0xc], ecx
push ecx
mov dword [esi + 8], eax
call dword [eax]
add esp, 4
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov eax, dword [edx + 4]
test eax, eax
je 0x408a2d
push dword [edx + 8]
push eax
push ecx
call fcn.00421c20
add esp, 0xc
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax + 0x10]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
lea eax, [esi + 0x10]
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
mov byte [esi + 3], 0
mov dword [esi + 0x40], 0
push eax
call fcn.00433500
add esp, 4
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0x40aa30
mov edx, dword [ebp + 8]
lea eax, [esi + 0x38]
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov byte [esi + 3], 1
mov dword [esi + 0x40], 0
lea edx, [esi + 0x20]
push ecx
push eax
push edx
call fcn.004334a0
add esp, 0xc
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
xor ecx, ecx
movzx eax, byte [ebx + 0x34]
mov edx, eax
add dl, 0xfc
movzx edi, dl
inc edi
cmp dl, 2
lea edx, [ebx + 0x10]
cmovb ecx, edi
mov dword [esi + 4], edx
cmp ecx, 1
je 0x408b9b
test ecx, ecx
jne 0x408bdb
cmp al, 3
jne 0x408bdb
mov ecx, dword [esi + 4]
mov dword [esi + 0x40], 1
call fcn.00407130
jmp 0x408bdb
mov eax, dword [edx]
or eax, dword [edx + 4]
je 0x408bdb
mov eax, dword [ebx + 0x18]
mov edi, ebx
test eax, eax
je 0x408bdb
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x40], 2
mov dword [esi + 0xc], eax
push eax
mov dword [esi + 8], ecx
call dword [ecx]
add esp, 4
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [edx + 4]
test eax, eax
je 0x408bdb
push dword [edx + 8]
push eax
push ecx
call fcn.00421c20
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
movsd xmm0, qword [eax + 0x20]
movsd qword [ecx + 0x20], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [ecx + 0x18], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
lea eax, [esi + 0x10]
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
mov byte [esi + 3], 0
mov dword [esi + 0x40], 0
push eax
call fcn.00433500
add esp, 4
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret