joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e310
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
push edi
mov edi, ecx
cmp eax, 0x100
jb 0x40e388
cmp eax, 0x109
ja 0x40e388
cmp eax, 0x101
je 0x40e36e
mov eax, dword [esi + 8]
cmp eax, 0x43
je 0x40e34a
cmp eax, 0x56
je 0x40e34a
cmp eax, 0x58
je 0x40e34a
cmp eax, 0x5a
jne 0x40e35c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x40e36e
mov eax, dword [esi + 8]
cmp eax, 9
je 0x40e36e
cmp eax, 0xd
je 0x40e36e
cmp eax, 0x2e
jne 0x40e3e8
mov edx, dword [edi + 0x880]
mov eax, dword [edx + 0x10]
lea ecx, [edi + 0x880]
push esi
call eax
pop edi
pop esi
add esp, 8
ret 4
cmp eax, 0x200
jb 0x40e3e8
cmp eax, 0x20e
ja 0x40e3e8
cmp eax, 0x201
je 0x40e3a4
cmp eax, 0x204
jne 0x40e3e8
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
lea ecx, [esp + 8]
xor esi, esi
push ecx
mov ecx, edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
call eax
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [0x45b07c]
push 1
push esi
push esi
push ecx
push edx
mov edx, dword [eax + 0x48]
push esi
mov ecx, 0x45b07c
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4

Function at 0x40e400
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
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 + 0x48]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor eax, eax
cmp dword [0x45bd24], 1
jne 0x40e43d
or eax, 0xffffffff
push 0x41
push 0
push 0
push 0xfffff830
push 0xfffff830
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
ret
Function at 0x40e490
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
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, 0xfffbffff
or eax, 0x80
cmp dword [0x45bd24], 1
jne 0x40e4bd
or eax, 8
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
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 + 0x48]
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 + 0x884]
push 0
je 0x40e546
push 0x32
push 0x32
push 0xffffffffffffff9c
push 0xffffffffffffff9c
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x944]
mov eax, dword [edx + 0x28]
lea ecx, [esi + 0x944]
push 1
push 0x44ca20
call eax
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x95c], eax
call fcn.00413090
jmp 0x40e561
push 0x174
push 0x286
push 0xde
push 0x17d
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [esi + 0xa14], 0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 0x49
je 0x40e57c
mov edi, 0x4b
jmp 0x40e58a
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 0
mov ecx, esi
call eax
push eax
call ebx
xor ecx, ecx
cmp dword [0x45bd24], 1
jne 0x40e598
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 + 0x48]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 1
mov ecx, esi
call eax
push eax
call ebx
pop edi
pop ebx
add esp, 0x20
ret 4
Function at 0x40f770
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
sub esp, 0x14
push ebx
push edi
mov ecx, esi
call edx
test eax, eax
jne 0x40f78a
xor al, al
pop edi
pop ebx
add esp, 0x14
ret
push 0
lea eax, [esp + 0xc]
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 + 0x18]
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 + 0x20]
mov ecx, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call fcn.0040f810
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov al, 1
pop ebx
add esp, 0x14
ret
Function at 0x412970
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x446ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4571a0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x4571a0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
call fcn.00419be0
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.iconAnimate.exe
lea esi, [esp + 0x14]
mov dword [esp + 0x58], 0
call fcn.00415390
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 1
call fcn.00405510
mov esi, 8
cmp dword [esp + 0x24], esi
jb 0x4129f2
mov edx, dword [esp + 0x10]
push edx
call fcn.0042c65c
add esp, 4
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x412a00
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412a2a
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x412a19
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 0x412a3d
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042c65c
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.0042c667
add esp, 0x48
ret

Function at 0x412ac0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
mov eax, dword [0x4571a0]
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 0x412af2
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xc]
call fcn.00405600
push str._uninstallsucc
mov ebx, 0xe
xor eax, eax
mov edx, esi
call fcn.00405330
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x20], 8
jb 0x412b38
mov edx, dword [esp + 0xc]
push edx
call fcn.0042c65c
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0042c667
add esp, 0x20
ret

Function at 0x412b50
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
mov eax, dword [0x4571a0]
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 0x412b82
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xc]
call fcn.00405600
push str._setupsucc
mov ebx, 0xa
xor eax, eax
mov edx, esi
call fcn.00405330
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x20], 8
jb 0x412bc8
mov edx, dword [esp + 0xc]
push edx
call fcn.0042c65c
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0042c667
add esp, 0x20
ret
Function at 0x412e40
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
mov eax, dword [0x4571a0]
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 0x412e72
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xc]
call fcn.00405600
push str._ShowDeskTop
mov ebx, 0xc
xor eax, eax
mov edx, esi
call fcn.00405330
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x20], 8
jb 0x412eb8
mov edx, dword [esp + 0xc]
push edx
call fcn.0042c65c
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0042c667
add esp, 0x20
ret

Function at 0x413350
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 0x24]
push esi
mov esi, 8
cmp dword [esp + 0x3c], esi
jae 0x413364
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x20], esi
jae 0x413372
lea eax, [esp + 0xc]
push 1
push 0
push ecx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x20], esi
jb 0x413395
mov eax, dword [esp + 0xc]
push eax
call fcn.0042c65c
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], cx
pop esi
jb 0x4133be
mov edx, dword [esp + 0x24]
push edx
call fcn.0042c65c
pop ecx
ret 0x38
Function at 0x413420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x446fc3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
mov eax, dword [0x4571a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
push esi
mov ecx, edi
call fcn.00413810
xor ebx, ebx
mov dword [esp + 0x1c], ebx
movzx eax, byte [edi + 0x18]
mov byte [esi + 0x18], al
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
mov ebp, 7
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x1c]
push ebx
mov word [ecx + 4], dx
call fcn.00405510
mov byte [esp + 0x1c], 1
movzx eax, byte [edi + 0x38]
mov byte [esi + 0x38], al
mov cl, byte [edi + 0x39]
mov byte [esi + 0x39], cl
lea ecx, [esi + 0x3c]
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x3c]
push ebx
mov word [ecx + 4], dx
call fcn.00405510
lea ecx, [esi + 0x58]
mov byte [esp + 0x1c], 2
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x58]
push ebx
mov word [ecx + 4], dx
call fcn.00405510
mov byte [esp + 0x1c], 3
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov ecx, dword [edi + 0x78]
mov dword [esi + 0x78], ecx
mov dl, byte [edi + 0x7c]
mov byte [esi + 0x7c], dl
lea ecx, [esi + 0x80]
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x80]
push ebx
mov word [ecx + 4], dx
call fcn.00405510
lea ecx, [esi + 0x9c]
mov byte [esp + 0x1c], 4
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x9c]
push ebx
mov word [ecx + 4], dx
call fcn.00405510
lea ecx, [esi + 0xb8]
mov byte [esp + 0x1c], 5
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0xb8]
mov word [ecx + 4], dx
push 0xffffffffffffffff
push ebx
call fcn.00405510
lea ecx, [esi + 0xd4]
mov byte [esp + 0x1c], 6
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0xd4]
push ebx
mov word [ecx + 4], dx
call fcn.00405510
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x413590
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44832b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4571a0]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
lea esi, [esp + 0x3c]
mov dword [esp + 0x154], ebp
call fcn.004133d0
mov ecx, eax
mov byte [esp + 0x154], 1
mov eax, dword [ecx + 0x14]
mov ebx, 1
xor edi, edi
mov dword [esp + 0x18], ebx
call fcn.00415b70
test eax, eax
je 0x413624
lea esi, [esp + 0x20]
call fcn.004133d0
mov edi, 8
lea ebx, [ebp + 3]
cmp dword [eax + 0x18], edi
jb 0x41360f
mov eax, dword [eax + 4]
jmp 0x413612
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413629
mov byte [esp + 0x17], 1
jmp 0x41362e
mov edi, 8
mov byte [esp + 0x17], 0
mov esi, 7
test bl, 2
je 0x41365d
and ebx, 0xfffffffd
cmp dword [esp + 0x38], edi
jb 0x41364e
mov eax, dword [esp + 0x24]
push eax
call fcn.0042c65c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], cx
mov dword [esp + 0x154], ebp
test bl, 1
je 0x41367c
cmp dword [esp + 0x54], edi
jb 0x41367c
mov edx, dword [esp + 0x40]
push edx
call fcn.0042c65c
add esp, 4
cmp byte [esp + 0x17], 0
push 0xffffffffffffffff
lea eax, [esp + 0x160]
mov ecx, 0x45bd88
push ebp
je 0x413700
mov byte [0x45bd84], 1
call fcn.00405510
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebp
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebp
mov eax, 0x45bd88
call fcn.00405510
sub esp, 0x1c
mov esi, esp
mov byte [esp + 0x18c], 2
mov dword [esp + 0x54], esp
call fcn.004133d0
mov byte [esp + 0x18c], 0
call fcn.00413350
lea esi, [esp + 0x58]
call fcn.00413400
mov byte [esp + 0x154], 3
call fcn.004293c0
call fcn.004278e0
jmp 0x41376e
mov byte [0x45bd84], 0
call fcn.00405510
mov esi, dword [0x45bd8c]
cmp dword [0x45bda0], edi
jae 0x41371f
mov esi, 0x45bd8c
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 5
push ebp
push esi
push str.iexplore
push str.open
push ebp
call edi
cmp eax, 0x20
jg 0x41374e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
push ebp
push ebp
push esi
push str.open
push ebp
call edi
lea esi, [esp + 0x58]
call fcn.00413400
mov byte [esp + 0x154], 4
call fcn.00429670
call fcn.004278e0
mov edi, 8
cmp dword [esp + 0x174], edi
jb 0x413787
mov ecx, dword [esp + 0x160]
push ecx
call fcn.0042c65c
add esp, 4
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 0x1c
Function at 0x413930
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4475a2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4571a0]
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], 0x44d0dc
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.00414850
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.00415010
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 [0x45be00]
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.00414920
test eax, eax
jne 0x413a35
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 0x413a23
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x413a35
push 0
call fcn.00416a60
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 0x415010
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44566b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4571a0]
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.0042b341
push 4
mov dword [esp + 0x20], 0
call fcn.0042cac0
mov edi, eax
add esp, 4
test edi, edi
je 0x41508e
call fcn.0042b6ab
mov dword [edi], eax
call fcn.0042b4d9
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042b302
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x415083
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042b32a
jmp 0x415090
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 0x415390
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x446628
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4571a0]
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.00405510
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4153e6
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.00415850
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.00405510
cmp dword [esp + 0x24], 8
jb 0x41542e
mov edx, dword [esp + 0x10]
push edx
call fcn.0042c65c
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 0x4183d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4183e0
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 0x4183f0
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 0x4188c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4571a0]
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 0x41893a
xor eax, eax
cmp ecx, ebp
je 0x418922
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 0x418948
cmp ecx, ebp
je 0x4189db
push ecx
jmp 0x4189d5
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 0x4189aa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.004188c0
mov ebx, eax
cmp ebx, ebp
jne 0x4189f8
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 0x418970
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4189bd
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.00418a70
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4189db
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.0042c667
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x418a07
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4189dd