joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4412de
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45c054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ecx - 4], eax
mov eax, dword [ecx]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, ecx
mov ecx, ebx
call fcn.00403720
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov dword [ebp - 4], 2
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x446280]
mov ecx, edi
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 2
push eax
call fcn.00407510
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x446280]
mov ecx, edi
call esi
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov eax, 2
mov dword [ebp - 0x10], eax
and eax, 0xfffffffd
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4038f7
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x446280]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4038f7
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x446280]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov word [ebx + 0x40], ax
jne 0x403914
mov eax, dword [ebx + 0xc]
mov ecx, ebx
push 0
or eax, 4
push eax
call fcn.004088a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403a30
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44135d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45c054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
lea eax, [edi + 0x68]
mov dword [edi], 0x4527f8
lea esi, [edi + 0x10]
mov dword [esi], 0x452800
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
sub esp, 8
lea ebx, [edi + 0x18]
mov dword [ebp - 0x14], 1
push ebx
call fcn.004037f0
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov dword [ebp - 4], 7
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov dword [ebp - 4], 8
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.004039a0
mov byte [ebp - 4], 9
mov esi, dword [ebp + 8]
mov dword [ebx], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x10], esi
cmp dword [esi + 0x14], 8
jb 0x403b47
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov esi, dword [esi + 0x10]
xor eax, eax
cmp esi, 0x7fffffff
ja 0x403bcc
test esi, esi
je 0x403ba9
push esi
lea ecx, [ebx + 0x40]
call fcn.00409df0
add esi, esi
mov edi, eax
push esi
push dword [ebp - 0x10]
push edi
call fcn.00424090
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0xc]
sar esi, 1
mov dword [eax], edi
mov eax, dword [ebx + 0x1c]
mov dword [eax], edi
mov eax, dword [ebx + 0x2c]
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, edi
sar ecx, 1
mov dword [eax], edi
mov eax, dword [ebx + 0x20]
mov dword [eax], edi
mov eax, dword [ebx + 0x30]
mov edi, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, 1
jmp 0x403bac
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0042090d
int3
Function at 0x407120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441a7f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45c054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.00420ef7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x4071d1
push eax
push esi
call fcn.00420db4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00420987
int3

Function at 0x408a70
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov edx, str.setting_envirionment_var__
mov ecx, 0x45daa0
call fcn.00406790
mov edx, esi
mov ecx, eax
call fcn.00406640
mov edx, 0x4528a4
mov ecx, eax
call fcn.00406790
mov edx, edi
mov ecx, eax
call fcn.00406640
mov edx, 0x4528a0
mov ecx, eax
call fcn.00406790
push eax
call fcn.00408a30
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x408ac8
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x408ad0
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
test eax, eax
jne 0x408af9
mov edx, str._t_tERROR:_set_environment
mov ecx, 0x45daa0
call fcn.00406790
push eax
call fcn.00408a30
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4160f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443edd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x2c], 0
jb 0x416129
mov ecx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], esi
je 0x416231
mov edx, dword [eax + esi*4]
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416173
sub eax, edi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.004099b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4161ca
movups xmm0, xmmword [ebp - 0x28]
xor edx, edx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
mov eax, 7
mov dword [ebp - 0x14], eax
add dword [ecx + 4], 0x18
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], dx
jmp 0x4161d7
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.004051f0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x416211
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416207
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416256
push edx
push ecx
call fcn.00422558
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
inc esi
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
jmp 0x41613c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042254a
mov esp, ebp
pop ebp
ret
call fcn.0042702f
int3

Function at 0x417f50
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443edd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x417f85
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x417faa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042254a
mov esp, ebp
pop ebp
ret
push 0x45332c
lea ecx, [ebp - 0x28]
call fcn.00409b10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push esi
lea ecx, [ebp - 0x34]
call fcn.0040a7a0
add esp, 4
lea eax, [ebp - 0x34]
push 0x45a18c
push eax
call fcn.0042400c
int3
Function at 0x418210
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444456
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push esi
call fcn.00416a90
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00416a90
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00416a90
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [edi], 0
cmovae edx, dword [ebp - 0x28]
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4182c3
sub eax, esi
mov ecx, edi
sar eax, 1
push eax
push edx
call fcn.004099b0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41831f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418315
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418352
push edx
push ecx
call fcn.00422558
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042254a
mov esp, ebp
pop ebp
ret 4
call fcn.0042702f
int3
Function at 0x41a480
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444c9d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45c054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebx + 0x68]
mov dword [ebx], 0x4527f8
lea esi, [ebx + 0x10]
mov dword [esi], 0x452800
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
sub esp, 8
lea edi, [ebx + 0x18]
mov dword [ebp - 0x10], 1
push edi
call fcn.004037f0
mov dword [ebp - 4], 4
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov dword [ebp - 4], 7
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 8
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], edi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov ecx, edi
call fcn.004039a0
mov byte [ebp - 4], 9
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41ccd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44512c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45c054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp + 8]
push str._messages
call fcn.00409f20
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
mov dword [ebp - 0x18], ecx
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41cd7d
cmp eax, ebx
jne 0x41cd73
mov eax, dword [eax]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x446280]
mov ecx, dword [ebp - 0x10]
call esi
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41cd7d
mov edx, dword [eax]
cmp eax, ebx
setne al
movzx eax, al
mov esi, dword [edx + 0x10]
mov ecx, esi
push eax
call dword [0x446280]
mov ecx, dword [ebp - 0x10]
call esi
jmp 0x41cd76
mov dword [ecx + 0x24], eax
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push 2
push eax
mov dword [ebp - 0x14], eax
call fcn.00421b44
mov byte [ebp - 4], 4
lea eax, [edi + 0x70]
push eax
call fcn.00421d0e
add esp, 0xc
mov byte [ebp - 4], 5
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [edi + 0x98], 0
mov dword [ebp - 0x10], edi
call fcn.0041d3a0
mov byte [ebp - 4], 6
mov ebx, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41cde0
push 4
push eax
call fcn.00422558
add esp, 8
lea esi, [edi + 0xa0]
push esi
push 0
push ebx
push 0x41d420
push 0
push 0
call fcn.0042bbcc
add esp, 0x18
mov dword [edi + 0x9c], eax
test eax, eax
je 0x41ce29
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [esi], 0
call fcn.004217c4
int3
Function at 0x41d550
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x45c054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
push ebx
push esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41d72c
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41d5d1
cmp eax, 2
jne 0x41d5b1
push str.Key_not_found._n
call fcn.0041d7f0
add esp, 4
jmp 0x41d72c
push str.Error_opening_key._n
call fcn.0041d7f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042254a
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
mov dword [ebp - 0x21c], edi
je 0x41d5ff
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov dword [ebp - 0x21c], edi
mov word [edi], ax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41d70a
nop word [eax + eax]
xor eax, eax
mov ecx, 0x208
mov word [edi], ax
mov eax, ebx
nop dword [eax]
cmp word [eax], 0
je 0x41d65e
add eax, 2
sub ecx, 1
jne 0x41d650
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x41d6bc
mov edx, 0x208
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x41d6af
lea edi, [ebp - 0x210]
mov eax, 0x7ffffffe
sub edi, ecx
nop word [eax + eax]
test eax, eax
je 0x41d6a9
movzx esi, word [edi + ecx]
test si, si
je 0x41d6a9
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x41d690
mov edi, dword [ebp - 0x21c]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x220]
mov edx, ebx
mov ecx, esi
call fcn.0041d550
test eax, eax
je 0x41d70a
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41d640
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x41d5be
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042254a
mov esp, ebp
pop ebp
ret
Function at 0x41e9f0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4456d8
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x45c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41ea2b
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041fd10
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
sub eax, edx
sar eax, 1
cmp dword [esi + 0x14], 8
jb 0x41ea5b
mov ecx, dword [esi]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea eax, [edx + eax*2]
mov dword [ebp - 0x14], 0
cmp eax, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
cmovb ecx, eax
xor eax, eax
mov word [ebp - 0x28], ax
cmp edx, ecx
je 0x41eaad
sub ecx, edx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004099b0
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0xfc]
call fcn.0041a480
mov byte [ebp - 4], 2
mov edx, edi
lea ecx, [ebp - 0xec]
call fcn.00406640
mov edx, 0x453688
mov ecx, eax
call fcn.00406790
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.00406640
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041a380
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x41eaff
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x41eb07
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0040a9e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xfc]
call fcn.004048a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41eb64
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41eb5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41eba2
push edx
push ecx
call fcn.00422558
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041fdd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042254a
mov esp, ebp
pop ebp
ret
call fcn.0042702f
int3
Function at 0x41ebb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], 0x5c
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x41ec10
cmp word [ebx + edi*2 - 2], 0x5c
lea ebx, [ebx + edi*2]
je 0x41ec07
sub esi, edi
cmp esi, 1
jb 0x41ec10
mov eax, 2
lea edx, [ebp - 4]
cmp esi, eax
lea ecx, [ebp - 4]
push ebx
cmova esi, eax
lea edx, [edx + esi*2]
call fcn.00413100
sub eax, ebx
dec edi
sar eax, 1
add esp, 4
add edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.insufficient_buffer_length
lea ecx, [ebp - 0x10]
call fcn.00420050
push 0x45a18c
lea eax, [ebp - 0x10]
push eax
call fcn.0042400c
int3