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

Disassembly:
or edx, 0x10
jmp 0x519c35
je 0x5769df
test eax, 0x80000000
je 0x42a8a7
or edx, 4
jmp 0x468842
or edx, 2
jmp 0x555e76
pop ebp
ret 4
jmp 0x519c35
jmp 0x519c35
je 0x423357
or edx, 0x80
jmp 0x4a27bd
jmp 0x519c35
or edx, 0x20
jmp 0x4e5530
test eax, 0x40000000
jmp 0x4279da
jmp 0x519c35
jmp 0x519c35
push ebp
dec ebp
shl ah, cl
bsf ebp, ebp
mov ebp, esp
shl ah, cl
mov eax, dword [ebp + 8]
xor edx, edx
cmp di, 0x53e2
test eax, 0x4000000
je 0x4efb05
or edx, 0x200
test eax, 0x20000000
je 0x4d65f6
test eax, 0x40000000
jmp 0x543c92
je 0x519c32
or edx, 8
jmp 0x4e7670
or edx, 1
mov eax, edx
xchg ebp, ebp
jmp 0x433d01
je 0x59378d
test eax, 0x80000000
je 0x4d0b2c
or edx, 0x40
jmp 0x4b90b9
jmp 0x519c35
test eax, 0x80000000
jmp 0x505d8f
test eax, 0x80000000
jmp 0x4ad12d

Function at 0x51e25d
Capabilities:
Parse pe header

Disassembly:
call fcn.00413a8c
mov edx, eax
bswap cx
xchg cx, cx
lea eax, [ebp - 0x14c]
bswap cx
mov ecx, 0xf8
jmp loc.00414ada
lea eax, [ebp - 0x54]
mov ecx, 0x40
movsx dx, ch
jmp 0x444617
mov dword fs:[eax], edx
jmp 0x4947b9
mov edx, edi
call fcn.0040676c
cmp word [ebp - 0x54], 0x5a4d
jmp 0x52ce06
push edx
jmp 0x555648
jmp fcn.004143ea
push ebp
xor ebp, 0x5ea81f69
stc
rol bp, 0xe0
mov ebp, esp
lea esp, [esp - 0x14c]
push ebx
mov bx, 0x6984
push esi
sub bx, bp
ror bh, cl
push edi
mov ebx, ecx
cmovb cx, dx
movzx cx, ah
mov esi, edx
mov edi, eax
cmovp ecx, edi
cmc
sub eax, eax
inc cx
mov dword [ebp - 8], eax
shrd ecx, edi, 0x15
sub eax, eax
mov ch, 0x86
mov dword [esi], eax
rol cl, 0x6a
sub eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov al, 0x9e
push ebp
cbw
movzx eax, di
push 0x47c2eb
not ah
xchg al, cl
lahf
push dword fs:[edx]
mov ax, cx
cmova eax, edx
setg al
mov dword fs:[edx], esp
xchg cl, dh
lahf
jmp 0x42d265
je 0x5891b9
mov eax, 0x418884
jmp 0x571f52
push eax
bswap eax
mov eax, edi
jmp 0x41da32
call fcn.004043cc
xor eax, eax
bswap dx
movzx cx, ch
pop edx
pop ecx
xchg cl, cl
pop ecx
jmp 0x436852
mov eax, dword [ebp - 0x18]
sete dh
cdq
jmp 0x48b543

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4a412f2e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x29d60517
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x718f1bae
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2506186d
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402980
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
mov ecx, esi
call edx
test eax, eax
jne 0x40299e
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 4]
push 0x40
mov edx, ecx
sub edx, eax
sub eax, ecx
add eax, dword [esp + 0x20]
push edx
mov edx, edi
sub edx, ebx
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
sub eax, edi
add eax, dword [esp + 0x28]
mov ecx, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.00402ac0
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov byte [esi + 0x300], 0
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret

Function at 0x402a30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push esi
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
test eax, eax
jne 0x402a4a
xor al, al
pop esi
add esp, 0x18
ret
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push 0x40
push ecx
push edx
mov edx, dword [eax + 0x34]
push 0
push 0
push 0
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.00402ac0
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov byte [esi + 0x300], 1
mov al, 1
pop esi
add esp, 0x18
ret

Function at 0x4031e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403208
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push esi
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push str.37wan
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x4032b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x440950
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4501a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea esi, [esp + 0x18]
call fcn.0040bbc0
lea eax, [esp + 0x10]
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x18]
push eax
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x403344
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0xc]
cmp edx, 0x452564
je 0x40332d
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40332d
push esi
call fcn.004267c7
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
mov eax, dword [0x452574]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x2c]
push str._autorun
push ecx
push str.__s___s
lea edx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.0040b860
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 8]
add esp, 0xc
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push esi
push 1
push 0
push str.37wan
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
push ecx
test eax, eax
je 0x4033d9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, 0x452564
je 0x4033c0
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x4033c0
push esi
call fcn.004267c7
add esp, 4
lea eax, [edi - 0xc]
cmp eax, 0x452564
je 0x40332d
lea esi, [edi - 0xc]
push esi
call ebx
jmp 0x403320
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, 0x452564
je 0x403403
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x403403
push esi
call fcn.004267c7
add esp, 4
lea eax, [edi - 0xc]
cmp eax, 0x452564
je 0x403420
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x403420
push esi
call fcn.004267c7
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x403440
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
push esi
lea esi, [esp + 8]
call fcn.0040bbc0
mov esi, dword [esp + 8]
lea eax, [esp + 4]
push eax
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40349a
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0xc]
cmp edx, 0x452564
je 0x403493
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403493
push esi
call fcn.004267c7
add esp, 4
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 4]
push str.37wan
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4034b9
lea ecx, [esi - 0xc]
cmp ecx, 0x452564
jmp 0x40347a
lea edx, [esi - 0xc]
cmp edx, 0x452564
je 0x4034db
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4034db
push esi
call fcn.004267c7
add esp, 4
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x40cf30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor eax, eax
cmp dword [0x4543c8], 1
jne 0x40cf6d
or eax, 0xffffffff
push 0x41
push 0
push 0
push 0xfffff830
push 0xfffff830
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
ret

Function at 0x40cfc0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
sub esp, 0x20
push ebx
push edi
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffffff7f
or eax, 0x40000
cmp dword [0x4543c8], 1
jne 0x40cfed
or eax, 8
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esp + 0x2c], 0
mov ecx, dword [esi + 0x170]
push 0
je 0x40d071
push 0x32
push 0x32
push 0xffffffffffffff9c
push 0xffffffffffffff9c
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x214]
mov eax, dword [edx + 0x24]
lea ecx, [esi + 0x214]
push 1
push 0x446740
call eax
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x22c], eax
jmp 0x40d089
push 0x1c9
push 0x2e4
push 0x61
push 0x8e
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [esi + 0x27c], 0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 0x49
je 0x40d0a4
mov edi, 0x4b
jmp 0x40d0b2
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
push 0
mov ecx, esi
call eax
push eax
call ebx
xor ecx, ecx
cmp dword [0x4543c8], 1
jne 0x40d0c0
or ecx, 0xffffffff
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x14]
push edi
add eax, dword [esp + 0x28]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x20]
add eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
push eax
mov eax, dword [edx + 0x34]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
push 1
mov ecx, esi
call eax
push eax
call ebx
pop edi
pop ebx
add esp, 0x20
ret 4
Function at 0x40fce0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x441040
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4501a0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x4501a0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
call fcn.00416990
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.iconAnimate.exe
lea esi, [esp + 0x14]
mov dword [esp + 0x58], 0
call fcn.00411ec0
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 1
call fcn.00403ea0
mov esi, 8
cmp dword [esp + 0x24], esi
jb 0x40fd62
mov edx, dword [esp + 0x10]
push edx
call fcn.004266b0
add esp, 4
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x40fd70
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fd9a
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x40fd89
lea eax, [esp + 0x2c]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x40], esi
jb 0x40fdad
mov eax, dword [esp + 0x2c]
push eax
call fcn.004266b0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004266bb
add esp, 0x48
ret

Function at 0x40fe30
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
mov eax, dword [0x4501a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [esp + 0xc], cx
mov ecx, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fe62
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xc]
call fcn.00403f90
push str._uninstallsucc
mov ebx, 0xe
xor eax, eax
mov edx, esi
call fcn.00403cc0
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x20], 8
jb 0x40fea8
mov edx, dword [esp + 0xc]
push edx
call fcn.004266b0
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004266bb
add esp, 0x20
ret

Function at 0x40fec0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
mov eax, dword [0x4501a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [esp + 0xc], cx
mov ecx, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fef2
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xc]
call fcn.00403f90
push str._setupsucc
mov ebx, 0xa
xor eax, eax
mov edx, esi
call fcn.00403cc0
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x20], 8
jb 0x40ff38
mov edx, dword [esp + 0xc]
push edx
call fcn.004266b0
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004266bb
add esp, 0x20
ret
Function at 0x4102e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4419f2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4501a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x446cc0
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00411220
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00411a80
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x453ce0]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov ebx, esi
mov byte [esp + 0x24], 2
call fcn.00411390
test eax, eax
jne 0x4103e5
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x4103d3
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4103e5
push 0
call fcn.00413710
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x411a80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43fd2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4501a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004253f9
push 4
mov dword [esp + 0x20], 0
call fcn.00426762
mov edi, eax
add esp, 4
test edi, edi
je 0x411afe
call fcn.00425763
mov dword [edi], eax
call fcn.00425591
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004253ba
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411af3
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004253e2
jmp 0x411b00
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x411ec0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4406c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4501a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00403ea0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411f16
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.004123d0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00403ea0
cmp dword [esp + 0x24], 8
jb 0x411f5e
mov edx, dword [esp + 0x10]
push edx
call fcn.004266b0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x4130e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4130f7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x413128
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x413124
cmp esi, eax
jae 0x413128
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x413114
cmp esi, eax
jb 0x41312e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x415180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x415190
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4151a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x415670
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4501a0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4156ea
xor eax, eax
cmp ecx, ebp
je 0x4156d2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4156f8
cmp ecx, ebp
je 0x41578b
push ecx
jmp 0x415785
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x41575a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00415670
mov ebx, eax
cmp ebx, ebp
jne 0x4157a8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x415720
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41576d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00415820
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41578b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004266bb
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4157b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x41578d