joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ced1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push esi
push edi
call fcn.1006b761
mov edi, dword [esp + 0x38]
push eax
push edi
call sub.glib_lite.dll_Ordinal_400
mov esi, eax
pop ecx
pop ecx
mov eax, dword [esi + 0x74]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1006cefc
xor eax, eax
jmp 0x1006d085
cmp eax, dword [esi + 0x1f0]
je 0x1006cef5
push ebx
push ebp
lea ebx, [esi + 0xc]
push ebx
call sub.glib_lite.dll_Ordinal_209
pop ecx
jmp 0x1006cf15
lea ebx, [esi + 0xc]
push dword [esp + 0x44]
push edi
call fcn.10029e9c
pop ecx
pop ecx
test eax, eax
jne 0x1006d076
push ebx
call sub.glib_lite.dll_Ordinal_208
mov eax, dword [esi + 0x1f8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
lea eax, [esi + 0xc]
push eax
call sub.glib_lite.dll_Ordinal_209
push edi
call fcn.1002ad4f
add esp, 0xc
cmp ebp, edx
jb 0x1006cf5c
ja 0x1006cf56
cmp ebx, eax
jbe 0x1006cf5c
sub ebx, eax
sbb ebp, edx
jmp 0x1006cf6d
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push edi
call fcn.1002c986
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, 4
je 0x1006cf9c
cmp dword [edi + 0x168], 0
jne 0x1006d076
cmp eax, 2
je 0x1006cf12
call fcn.1007f79f
push eax
push dword [esi + 0x1f0]
call sub.glib_lite.dll_Ordinal_400
push eax
call fcn.1007f76e
add esp, 0xc
push edx
push eax
call fcn.1007f79f
push eax
push dword [esi + 0x1f0]
call sub.glib_lite.dll_Ordinal_400
pop ecx
pop ecx
push eax
call fcn.1007f685
mov dword [esp + 0x24], eax
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x24], edx
call sub.glib_lite.dll_Ordinal_208
mov edi, dword [esi + 0x78]
add esp, 0x10
add edi, ebx
mov ebx, dword [esi + 0x7c]
adc ebx, ebp
cmp dword [esp + 0x10], 1
jne 0x1006cffe
add edi, dword [esp + 0x24]
adc ebx, dword [esp + 0x28]
push esi
call fcn.1006b2a4
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push ebp
push dword [esi + 0x1f0]
call fcn.1002f4b4
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x58]
push dword [esp + 0x58]
push ebx
push edi
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esi + 0x1f0]
call fcn.1004cc62
mov eax, dword [esi + 0x1f8]
add esp, 0x3c
cmp dword [eax + 8], ebp
jne 0x1006d061
push dword [esp + 0x20]
push dword [esi + 0x1f0]
call fcn.1002f914
pop ecx
pop ecx
push esi
call fcn.1006c697
push 3
push esi
call fcn.1006ad1b
add esp, 0xc
xor eax, eax
jmp 0x1006d083
lea eax, [esi + 0xc]
push eax
call sub.glib_lite.dll_Ordinal_208
pop ecx
push 0xfffffffffffffffe
pop eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x7003567
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x7003576
pop dword [ebp - 0x40]
mov eax, 0x7003576
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x36163b70
sub dword [ebp - 0x50], 0xe7c3f625
mov dword [ebp - 0x4c], 0x8c7f13a7
add dword [ebp - 0x4c], 0xa5b4389e
mov dword [ebp - 0x48], 0x533c4428
sub dword [ebp - 0x48], 0x6effffa
mov dword [ebp - 0x44], 0xd6d38360
sub dword [ebp - 0x44], 0xd6d38360
lea eax, [ebp - 0x50]
push eax
mov eax, 0x30795b6a
add eax, 0xd687d4c6
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xb12a6fba
sub dword [ebp - 0x50], 0x3cb80664
mov dword [ebp - 0x4c], 0x9daae649
add dword [ebp - 0x4c], 0xa3c17b2c
mov dword [ebp - 0x48], 0x1541519d
add dword [ebp - 0x48], 0x4e2e1acf
mov dword [ebp - 0x44], 0xd405558e
add dword [ebp - 0x44], 0x2bfaaa72
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3bb7b
push 0
call eax
mov ecx, 0x65dd846f
sub ecx, 0x65dd385a
mov ebx, eax
mov esi, 0xc91f243b
add esi, 0x3de2ddc5
add esi, dword [ebp - 0x40]
mov edx, 0x90c588c0
add dword [ebp - 0x2c], edi
mov edi, dword [esi]
xor dword [ebp - 0x38], 0xcf09b1e2
sub edi, edx
mov dword [ebp - 0x10], 0x7c3d9b3a
mov dword [ebx], edi
add dword [ebp - 4], 0x41e1ba09
add ebx, 0xac69ce92
add ebx, 0x53963172
add esi, 4
loop 0x7003688
add eax, 0x296f8c79
sub eax, 0x296e6952
mov ebx, eax
add eax, 5
mov ecx, 0x95fdc1fc
sub ecx, 0x8efdc1fc
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003567
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003567
int3
Function at 0x700de90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700def4
cmp byte [esi + 0x10], 0
je 0x700deb2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [esi + 0xc]
pop ecx
mov byte [esi + 0x10], 0
push edi
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700dee2
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
pop ecx
test eax, eax
je 0x700defb
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700def6
xor eax, eax
pop esi
pop ebp
ret 8
push str.stream_read_error
push 0
call fcn.07003567
int3

Function at 0x700e170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 8], 0
jne 0x700e1c3
cmp dword [esi + 0xc], 0
je 0x700e1be
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [esi + 0xc]
mov byte [esi + 0x10], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700e1b1
push str.stream_write_error
jmp 0x700e1c8
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8
push str.Attempt_to_write_read_only_stream
push 0
call fcn.07003567
int3

Function at 0x422377
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x422386
pop dword [ebp - 0x38]
mov eax, 0x87343170
add eax, 0x790df216
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3ea2a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x50f4
mov edi, eax
mov ebx, 0x432e00
add ebx, dword [ebp - 0x38]
mov edx, 0x82ddd7a2
add edx, 0xa1fb6964
xor dword [ebp - 0x2c], ecx
mov esi, dword [ebx]
add dword [ebp - 0x18], 0x3d155d25
sub esi, edx
mov dword [ebp - 0x20], 0x16bec7e4
mov dword [edi], esi
add edi, 0x226ebe0a
add edi, 0xdd9141fa
add ebx, 0xba2729d0
add ebx, 0x45d8d634
loop 0x4223d4
add eax, 0x91992df2
sub eax, 0x9197f74f
mov ebx, eax
add eax, 0xde26d75b
add eax, 0x21d928aa
mov ecx, 0x64e06098
add ecx, 0x9b5f9f68
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401206
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x4012c7
cmp word [eax], bx
je 0x4012c7
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, ebx
jne 0x401282
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x401255
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x401260
mov esi, 0x80004005
push esi
push 0x20f
push str.engine.cpp
call fcn.0042fdc3
push str.Failed_to_get_command_line.
push esi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x401324
xor esi, esi
cmp dword [ebp - 0x10], ebx
jle 0x4012c7
mov eax, dword [edi + esi*4]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x401299
cmp ecx, 0x2f
jne 0x4012b5
push 0xffffffffffffffff
push str.burn.runonce
push 0xffffffffffffffff
add eax, 2
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x4012c1
push dword [edi + esi*4]
lea eax, [ebp - 0xc]
push eax
call fcn.0042f230
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x401289
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0042f4fc
mov esi, eax
cmp esi, ebx
jge 0x4012e6
push str.Failed_to_get_current_process_path.
push esi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x401319
mov eax, dword [ebp - 0xc]
cmp eax, ebx
ja 0x4012f2
mov eax, 0x4385b4
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call fcn.0042dae0
mov esi, eax
cmp esi, ebx
jge 0x401319
push dword [ebp - 4]
push str.Failed_to_re_launch_bundle_process_after_RunOnce:__ls
push esi
call fcn.0042d996
add esp, 0xc
cmp edi, ebx
je 0x401324
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x401335
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x401342
push dword [ebp - 0xc]
call fcn.0042dd7e
cmp dword [ebp - 4], ebx
je 0x40134f
push dword [ebp - 4]
call fcn.0042dd7e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x4015fd
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp dword [esi + 0x460], 2
push ebx
push edi
jne 0x401661
lea ebx, [esi + 0x470]
lea eax, [esi + 0x46c]
push ebx
push eax
call fcn.0040293a
mov edi, eax
test edi, edi
jns 0x401638
push str.Failed_to_create_implicit_elevated_connection_name_and_secret.
jmp 0x4017a3
push dword [esi + 0x4a0]
push dword [ebx]
push dword [esi + 0x46c]
push dword [esi + 0x2c]
push dword [ebp + 0xc]
call fcn.00402a78
mov edi, eax
test edi, edi
jns 0x401661
push str.Failed_to_launch_unelevated_process.
jmp 0x4017a3
push 1
lea eax, [esi + 0x46c]
push eax
call fcn.004038e6
mov edi, eax
test edi, edi
jns 0x40167f
push str.Failed_to_connect_to_unelevated_process.
jmp 0x4017a3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x464], eax
cmp eax, 0xffffffff
jne 0x4016c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4016a4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4016af
mov edi, 0x80004005
push edi
push 0x1c2
push str.engine.cpp
call fcn.0042fdc3
push str.Failed_to_allocate_thread_local_storage_for_logging.
jmp 0x4017a3
push dword [esi + 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x401713
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4016ee
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4016f9
mov edi, 0x80004005
push edi
push 0x1c7
push str.engine.cpp
call fcn.0042fdc3
push str.Failed_to_set_elevated_pipe_into_thread_local_storage_for_logging.
jmp 0x4017a3
push esi
push dword [ebp + 8]
call fcn.0041082e
mov edi, eax
test edi, edi
jns 0x401729
push str.Failed_to_create_the_message_window.
jmp 0x4017a3
push 1
call fcn.00430a62
push esi
push 0x4013a0
call fcn.0042cff3
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0xf4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xf8]
push eax
lea eax, [esi + 0x88]
push eax
lea eax, [esi + 0x2a0]
push eax
lea eax, [esi + 0x2a8]
push eax
lea eax, [esi + 0x290]
push eax
push dword [esi + 0x480]
push dword [esi + 0x47c]
push dword [esi + 0x464]
call fcn.00410436
push 0
push 0
mov edi, eax
call fcn.0042cff3
test edi, edi
jns 0x4017ab
push str.Failed_to_pump_messages_from_parent_process.
push edi
call fcn.0042d996
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
call fcn.0042cff3
push esi
call fcn.00410559
cmp dword [ebp - 8], ebx
je 0x4017c4
call fcn.0040df00
cmp dword [ebp - 4], ebx
je 0x4017db
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x402fa1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.00402f05
mov ebx, eax
cmp ebx, edi
jge 0x402fdb
push str.Failed_to_allocate_message_to_write.
push ebx
call fcn.0042d996
pop ecx
pop ecx
jmp 0x403048
push esi
xor esi, esi
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x403047
push edi
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40300b
add esi, dword [ebp + 0x14]
cmp esi, dword [ebp - 4]
jb 0x402fe6
jmp 0x403047
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40301f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x40302a
mov ebx, 0x80004005
push ebx
push 0x2f8
push str.pipe.cpp
call fcn.0042fdc3
push str.Failed_to_write_message_type_to_pipe.
push ebx
call fcn.0042d996
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], edi
je 0x403055
push dword [ebp - 8]
call fcn.004300fa
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x40305d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
mov dword [ebp - 8], esi
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, esi
push eax
lea eax, [ebp + esi - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4030c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4030a8
and dword [ebp - 4], 0
jmp 0x4030c2
cmp eax, 0x6d
je 0x40310d
test eax, eax
jle 0x4030bb
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x40311d
add esi, dword [ebp - 8]
cmp esi, 8
jb 0x403077
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov dword [ebx + 4], eax
cmp eax, esi
je 0x403198
push esi
push eax
call fcn.0042ff6a
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x403136
mov esi, 0x8007000e
push esi
push 0x32b
push str.pipe.cpp
mov dword [ebp - 4], esi
call fcn.0042fdc3
push str.Failed_to_allocate_data_for_message.
push esi
jmp 0x403188
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 1
jmp 0x4030ca
push dword [ebp - 4]
push 0x320
push str.pipe.cpp
call fcn.0042fdc3
push str.Failed_to_read_message_from_pipe.
jmp 0x403185
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403191
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x403160
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40316e
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x32f
push str.pipe.cpp
call fcn.0042fdc3
push str.Failed_to_read_data_for_message.
push dword [ebp - 4]
call fcn.0042d996
pop ecx
pop ecx
jmp 0x403198
mov dword [ebx + 8], 1
cmp dword [ebx + 8], 0
jne 0x4031ab
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x4031ab
push ebx
call fcn.004300fa
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405abc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x405b15
push dword [ebp + 0xc]
push str.Resume
push dword [ebp + 8]
call fcn.0043108d
mov esi, eax
cmp esi, ebx
jge 0x405af0
push str.Failed_to_write_Resume_value.
jmp 0x405bf7
cmp dword [ebp + 0xc], 3
jne 0x405b15
push 1
push str.Installed
push dword [ebp + 8]
call fcn.0043108d
mov esi, eax
cmp esi, ebx
jge 0x405b1b
push str.Failed_to_write_Installed_value.
jmp 0x405bf7
cmp dword [ebp + 0xc], 1
je 0x405b95
cmp dword [ebp + 0x10], ebx
jne 0x405b95
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [edi + 0x4c]
call fcn.004311ee
mov esi, eax
cmp esi, 0x80070002
je 0x405b91
cmp esi, 0x80070003
je 0x405b91
push dword [edi + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x405b5b
xor eax, eax
cmp eax, ebx
je 0x405bff
jle 0x405b6f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x405b7a
mov esi, 0x80004005
push esi
push 0x488
push str.registration.cpp
call fcn.0042fdc3
push str.Failed_to_delete_run_key_value.
jmp 0x405bf7
xor esi, esi
jmp 0x405bff
push str.burn.runonce
push dword [edi + 0x58]
lea eax, [ebp - 8]
push str._ls___ls
push eax
call fcn.0042f202
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x405bbb
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x405bf7
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [edi + 0x4c]
call fcn.0043112e
mov esi, eax
cmp esi, ebx
jge 0x405bde
push str.Failed_to_create_run_key.
jmp 0x405bf7
push dword [ebp - 8]
push dword [edi + 0xc]
push dword [ebp - 4]
call fcn.00431565
mov esi, eax
cmp esi, ebx
jge 0x405bff
push str.Failed_to_write_run_key_value.
push esi
call fcn.0042d996
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x405c0c
push dword [ebp - 8]
call fcn.0042dd7e
cmp dword [ebp - 4], ebx
je 0x405c1a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406049
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
xor esi, esi
neg eax
sbb eax, eax
and eax, 7
add eax, 0x1c
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0042fa71
mov ebx, eax
cmp ebx, esi
jge 0x406099
mov eax, str.per_machine
cmp dword [ebp + 8], esi
jne 0x406088
mov eax, str.per_user
push eax
push str.Failed_to_find_local__hs_appdata_directory.
push ebx
call fcn.0042d996
add esp, 0xc
jmp 0x406103
mov dword [ebp - 0x10], esi
cmp dword [edi + 4], esi
jbe 0x406103
mov dword [ebp + 8], esi
mov esi, dword [edi]
add esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [ebp - 0xc]
call fcn.0042faa7
mov ebx, eax
test ebx, ebx
js 0x4060f4
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.0042faa7
mov ebx, eax
test ebx, ebx
js 0x4060f4
push dword [ebp - 8]
call fcn.004335a9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], 0xc
cmp eax, dword [edi + 4]
jb 0x4060a4
jmp 0x406101
push str.Failed_to_allocate_regid_folder_path.
push ebx
call fcn.0042d996
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x406110
push dword [ebp - 8]
call fcn.0042dd7e
cmp dword [ebp - 4], esi
je 0x40611d
push dword [ebp - 4]
call fcn.0042dd7e
cmp dword [ebp - 0xc], esi
je 0x40612a
push dword [ebp - 0xc]
call fcn.0042dd7e
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4071a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.0040874b
mov esi, eax
cmp esi, ebx
jge 0x4071d3
push str.Failed_to_format_variable_string.
jmp 0x40724c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40720b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4071f5
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x407207
cmp esi, 0x80070003
jne 0x407216
xor esi, esi
jmp 0x407216
test al, 0x10
je 0x407216
mov dword [ebp - 8], 1
cmp esi, ebx
jge 0x40722f
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0042d996
add esp, 0x10
jmp 0x407254
mov eax, dword [ebp - 8]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a133
mov esi, eax
cmp esi, ebx
jge 0x407254
push str.Failed_to_set_variable.
push esi
call fcn.0042d996
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x407261
push dword [ebp - 4]
call fcn.0042dd7e
mov eax, esi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 8]
call fcn.0040874b
mov esi, eax
test esi, esi
jns 0x407290
push str.Failed_to_format_variable_string.
jmp 0x4072d5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4072b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4072b2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4072e4
test al, 0x10
je 0x4072df
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a172
mov esi, eax
test esi, esi
jns 0x4072e4
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x407324
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x40730d
cmp esi, 0x80070003
je 0x40730d
test esi, esi
jns 0x407324
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0042d996
add esp, 0x10
jmp 0x407324
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.0042d5b2
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x407332
push dword [ebp - 4]
call fcn.0042dd7e
mov eax, esi
pop esi
leave
ret 4