joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404968
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40490c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40492a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x404988
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
add byte [eax], al
add byte [eax - 0x77], al
jge 0x404967
add byte [eax], al
add byte [eax - 0x77], al
jge 0x404967
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40496f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x404978
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x404982
add ecx, eax
or byte [ecx], 4
inc eax
invalid

Function at 0x404b55
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [edx]
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
test dword [ebx - 4], ecx
invalid
dec dword [edx]
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
Function at 0x401c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401cb8
cmp byte [esi + ebx - 1], 0xa
je 0x401c8c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402e50
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402edb
cmp ax, 9
je 0x402ec8
cmp ax, 0x20
je 0x402ec8
mov dword [ebp - 0x6c], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x402f30
cmp ax, 0x22
je 0x402f40
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x402edb
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x402e80
test edi, 1
jne 0x402e80
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x402ec8
cmp ax, 0x20
je 0x402ec8
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x402f58
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x6c]
jmp 0x402e9b
and dword [ebp - 0x6c], 1
jne 0x402e94
xor edi, 1
jmp 0x402e9b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x402ef4

Function at 0x402f70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x100fdf70
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100fe134
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
jmp 0x100fdf9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100fdfa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100fdf90
mov eax, 1
add ebx, ebx
jne 0x100fdfb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100fdfa8
jne 0x100fdfc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100fdfa8
xor ecx, ecx
sub eax, 3
jb 0x100fdfd8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100fe04a
mov ebp, eax
add ebx, ebx
jne 0x100fdfe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100fdff0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100fe014
inc ecx
add ebx, ebx
jne 0x100fe000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100fdff5
jne 0x100fe011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100fdff5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100fe034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100fe025
jmp 0x100fdf96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100fe034
add edi, ecx
jmp 0x100fdf96
pop esi
mov edi, esi
mov ecx, 0x125
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100fe052
cmp byte [edi], 2
jne 0x100fe052
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100fe057
lea edi, [esi + 0xfb000]
mov eax, dword [edi]
or eax, eax
je 0x100fe0c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfe0f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfe180]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100fe084
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfe184]
or eax, eax
je 0x100fe0c0
mov dword [ebx], eax
add ebx, 4
jmp 0x100fe0a1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100fe0f7
cmp al, 0xef
ja 0x100fe0ea
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100fe0cc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100fe0d9
mov ebp, dword [esi + 0xfe188]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100fe12b
sub esp, 0xffffff80
jmp 0x100046f7
Function at 0x525060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xce000]
push edi
jmp 0x52507a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x525081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525070
mov eax, 1
add ebx, ebx
jne 0x525093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5250a4
jne 0x5250c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5250c3
dec eax
add ebx, ebx
jne 0x5250b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x525088
add ebx, ebx
jne 0x5250bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x525115
xor ecx, ecx
sub eax, 3
jb 0x5250db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52514a
sar eax, 1
mov ebp, eax
jmp 0x5250e6
add ebx, ebx
jne 0x5250e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5250b4
inc ecx
add ebx, ebx
jne 0x5250f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5250b4
add ebx, ebx
jne 0x525101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5250f6
jne 0x525112
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5250f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x525134
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x525126
jmp 0x525076
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x525134
add edi, ecx
jmp 0x525076
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x525152
cmp byte [edi], 0x11
jne 0x525152
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x525157
lea edi, [esi + 0x11e000]
mov eax, dword [edi]
or eax, eax
je 0x5251cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1714dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x171658]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x525184
mov ecx, edi
jns 0x5251b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17165c]
or eax, eax
je 0x5251c9
mov dword [ebx], eax
add ebx, 4
jmp 0x5251a1
call dword [esi + 0x17166c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x525200
cmp al, 0xef
ja 0x5251f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5251d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5251e2
mov ebp, dword [esi + 0x171660]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x525234
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4019f2
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x58ced85
jg 0x401a18
inc edi
cmp edi, 0x1f6502b1
jl 0x4019fe
cmp dword [0x2820b7c], 0x400
jne 0x401a58
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
call fcn.00401e51
push esi
call fcn.00401f93
push esi
call fcn.00401fa2
add esp, 0xc
xor edi, edi
cmp edi, 0xd036
jge 0x401a69
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x401a8f
inc edi
cmp edi, 0x263ff
jl 0x401a5a
mov eax, dword [0x432cbc]
mov dword [0x2820b7c], eax
call fcn.00401746
mov edi, 0x3078f
cmp dword [0x2820b7c], 0x51f
jne 0x401abb
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x401aa3
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10
Function at 0x40409b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403022
and dword [ebp - 0x14], 0
cmp dword [0x43d820], 0
mov dword [ebp - 0x18], eax
jne 0x40414e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4041f6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4041f6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43d820], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43d824], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43d828], eax
call edi
push eax
call esi
mov dword [0x43d830], eax
test eax, eax
je 0x40414e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43d82c], eax
mov eax, dword [0x43d82c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4041a7
cmp dword [0x43d830], ecx
je 0x4041a7
push eax
call esi
push dword [0x43d830]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4041a7
test ebx, ebx
je 0x4041a7
call edi
test eax, eax
je 0x40419e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40419e
test byte [ebp - 8], 1
jne 0x4041a7
or dword [ebp + 0x10], 0x200000
jmp 0x4041da
mov eax, dword [0x43d824]
cmp eax, dword [ebp - 0x18]
je 0x4041da
push eax
call esi
test eax, eax
je 0x4041da
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4041da
mov eax, dword [0x43d828]
cmp eax, dword [ebp - 0x18]
je 0x4041da
push eax
call esi
test eax, eax
je 0x4041da
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43d820]
call esi
test eax, eax
je 0x4041f6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4041f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404406
leave
ret

Function at 0x404406
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c310]
jne 0x404410
repz ret
jmp fcn.004052d9
Function at 0x402a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
xor eax, eax
mov dword [ebp - 0x60], 0x44
cmp dword [ecx + 0x14], 8
push ebx
mov bl, dl
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x2e], ax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x54], 0x4278ac
jb 0x402a59
mov ecx, dword [ecx]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402a82
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x402a8d
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402ab1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403570
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push esi
push 0
push 0x403520
call fcn.0040a3b4
add esp, 0xc
mov dword [esi + 4], eax
pop esi
ret

Function at 0x403990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4039a9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4039e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4039e0
lea ebx, [ebx]
cmp esi, edx
jae 0x4039e4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4039d0
cmp esi, edx
jb 0x4039eb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42b74c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push ecx
lea ecx, [ebp - 0x210]
call fcn.00403c30
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push dword [ebp - 0x210]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403b7a
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040bbd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x403b03
mov ecx, dword [str.__auto]
mov esi, dword [esi]
mov dword [eax], ecx
mov ecx, dword [0x427930]
mov dword [eax + 4], ecx
mov ecx, dword [0x427934]
mov dword [eax + 8], ecx
mov cx, word [0x427938]
mov word [eax + 0xc], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test esi, esi
sete bl
jmp 0x403b7c
xor ebx, ebx
mov esi, dword [ebp - 0x210]
or ecx, 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403b9c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040993b
mov esp, ebp
pop ebp
ret
Function at 0x403bb0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, ecx
push ecx
lea ecx, [ebp - 8]
call fcn.00403c30
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp - 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403bfb
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x403bfd
xor esi, esi
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403c1a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp byte [ecx + 0xc], 0
jne 0x404b50
call fcn.00404cd0
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x42b74c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], edi
lea esi, [edi + 0x58]
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00405e50
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.00405e30
mov ecx, dword [ebp - 0x38]
xor eax, eax
test ecx, ecx
je 0x404b9e
mov ecx, dword [ecx]
test ecx, ecx
je 0x404b9e
mov eax, dword [ecx]
mov edx, dword [ebp - 0x50]
xor ecx, ecx
test edx, edx
je 0x404baf
mov edx, dword [edx]
test edx, edx
je 0x404baf
mov ecx, dword [edx]
test eax, eax
je 0x404bbe
mov eax, dword [eax]
test eax, eax
je 0x404bbe
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x404bd2
mov eax, dword [ecx]
test eax, eax
je 0x404bd2
mov ecx, dword [eax]
test ecx, ecx
je 0x404bd2
mov ecx, dword [ecx]
jmp 0x404bd4
xor ecx, ecx
mov edx, dword [ebp - 0x48]
xor esi, esi
mov dword [ebp - 0x10], ecx
cmp edx, dword [ebp - 0x30]
je 0x404c11
mov ebx, dword [ecx + 8]
mov eax, dword [ecx + 4]
dec ebx
mov dword [ebp - 0xc], eax
jmp 0x404bf0
mov edi, dword [ebp - 0xc]
mov eax, edx
shr eax, 2
mov ecx, edx
and eax, ebx
and ecx, 3
inc edx
mov eax, dword [edi + eax*4]
add esi, dword [eax + ecx*4]
cmp edx, dword [ebp - 0x30]
jne 0x404bf0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x54]
test eax, eax
jle 0x404c2b
cmp esi, eax
jl 0x404c2b
push 0x64
call ebx
mov esi, dword [ebp - 0x24]
jmp 0x404b77
lea edx, [edi + 0x10]
lea ecx, [ebp - 0x20]
call fcn.00403810
xor ecx, ecx
mov dword [ebp - 0xa8], 0x44
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x74], 0
cmp dword [eax + 0x14], 8
mov word [ebp - 0x76], cx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x9c], 0x4278ac
jb 0x404c72
mov eax, dword [eax]
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404cb2
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404cb2
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xc], 8
jb 0x404cc3
push dword [ebp - 0x20]
call fcn.00409936
add esp, 4
push 0xa
call ebx
mov esi, dword [ebp - 0x24]
jmp 0x404b77
Function at 0x406680
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420192
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x42b74c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x427b38
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00407500
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00407e90
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x42dd4c]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
sub esp, 0xc
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00407940
test eax, eax
jne 0x4067e1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4067cf
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4067e1
push 0
call fcn.004046b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10