joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4370ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4689d2
mov eax, dword fs:[0]
push eax
mov eax, 0x2888
call fcn.00445ce0
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2888], edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x288c], esi
call fcn.0044942f
push 0x27ff
lea eax, [ebp - 0x280f]
mov byte [ebp - 0x2810], bl
push ebx
push eax
call fcn.00447ae0
add esp, 0xc
lea ecx, [ebp - 0x2840]
push str.open__
call fcn.00401720
push esi
push eax
lea eax, [ebp - 0x2828]
mov dword [ebp - 4], ebx
push eax
call fcn.00402989
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x2840]
mov byte [ebp - 4], 2
call fcn.00401833
cmp dword [ebp - 0x2814], 8
lea eax, [ebp - 0x2828]
lea ecx, [ebp - 0x2880]
cmovae eax, dword [ebp - 0x2828]
push eax
push str.CGPCWarmUpImpl::DoWarmup_by_ReadAllFileData
call fcn.004075be
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x2880]
mov esi, eax
call fcn.004076a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2828]
push ebx
push 1
call fcn.00401833
test esi, esi
je 0x437276
cmp esi, 0xffffffff
je 0x437276
mov ecx, edi
call fcn.0043789a
cmp dword [edi + 0x40], ebx
jne 0x437278
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x2884], ebx
mov ecx, ebx
test edi, edi
je 0x437271
mov edx, 0x2800
cmp edi, edx
cmova eax, edx
mov dword [ebp - 0x2890], eax
add ecx, eax
mov dword [ebp - 0x2884], eax
mov dword [ebp - 0x2894], ecx
mov ecx, dword [ebp - 0x2888]
call fcn.0043789a
mov eax, dword [ebp - 0x2888]
cmp dword [eax + 0x40], ebx
jne 0x437271
push ebx
lea eax, [ebp - 0x2884]
push eax
push dword [ebp - 0x2884]
lea eax, [ebp - 0x2810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x2894]
mov eax, dword [ebp - 0x2890]
cmp ecx, edi
jb 0x437221
xor ebx, ebx
inc ebx
jmp 0x437278
mov esi, ebx
test esi, esi
je 0x437283
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x43728e
call fcn.0044942f
jmp 0x4372a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x288c]
push str.quickLaunch__warmup__file_s_failed_err_d
call fcn.0042ae1b
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441f6f
mov esp, ebp
pop ebp
ret 4
Function at 0x43753d
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x44], esi
je 0x43754d
xor eax, eax
inc eax
jmp 0x437580
push str.E8D14C33_2869_4DFF_8D49_AFBC828DE737
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
jne 0x437578
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43757e
push eax
push str.quickLaunch__warmUp__acquireIO_failed_error_d
call fcn.0042ada2
pop ecx
pop ecx
jmp 0x43757e
xor esi, esi
mov dword [edi + 0x44], eax
inc esi
mov eax, esi
pop edi
pop esi
ret

Function at 0x437583
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [eax + 0x48], ebx
je 0x4375a1
cmp dword [eax + 0x4c], ebx
je 0x4375a1
xor eax, eax
inc eax
jmp 0x43768d
push esi
push edi
push str.2DCF4CF1_5526_4088_9560_ED5AB9BEC4E6
push ebx
push 0xf001f
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x4375e9
push ebx
push ebx
push ebx
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x437639
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.quickLaunch__warmUp__init_shared_memory_failed_err_d
call fcn.0042ada2
pop ecx
pop ecx
jmp 0x43767e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x437666
push str.2DCF4CF1_5526_4088_9560_ED5AB9BEC4E6
push 0x408
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
mov edi, eax
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4375d1
mov edx, 0x408
mov dword [esi + 4], ebx
mov dword [esi], edx
lea eax, [esi + 8]
lea ecx, [edx - 8]
mov byte [eax], bl
inc eax
dec ecx
jne 0x437631
jmp 0x43763e
mov edx, 0x408
test edi, edi
je 0x437673
cmp dword [esi], edx
jb 0x437654
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
mov dword [eax + 0x4c], esi
mov dword [eax + 0x48], edi
jmp 0x437689
push dword [esi]
push edx
push str.quickLaunch__warmUp__init_shared_memory_incompatible_expected_d_but_d
call fcn.0042ada2
add esp, 0xc
jmp 0x437673
push eax
push str.quickLaunch__warmUp__init_shared_memory_failed_err_d
call fcn.0042ada2
pop ecx
pop ecx
test esi, esi
je 0x43767e
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
je 0x437689
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43769b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2c8
mov eax, 0x468aab
call fcn.0044584f
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0x472390
push esi
push eax
call fcn.00404d93
add esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4376eb
push eax
jmp 0x437802
cmp word [ebp - 0x27c], 0x2e
je 0x4377eb
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp - 0x27c]
push eax
push esi
je 0x4377bb
lea eax, [ebp - 0x40]
push eax
call fcn.00404d93
add esp, 0xc
mov ecx, dword [esi + 0x1c]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x43772e
lea eax, [ebp - 0x40]
push eax
call fcn.0040478a
xor ecx, ecx
cmp dword [esi + 0x20], ecx
je 0x4377b2
xor eax, eax
mov dword [ebp - 0x2c0], 7
mov dword [ebp - 0x2c4], ecx
mov word [ebp - 0x2d4], ax
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00401bb1
mov eax, dword [esi + 0x18]
mov ecx, ebx
mov dword [ebp - 0x2bc], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x2b8], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x2ac], eax
mov eax, dword [esi + 0x24]
inc eax
mov dword [ebp - 0x2b4], 1
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.0043769b
push 0
push 1
lea ecx, [ebp - 0x2d4]
call fcn.00401833
xor ecx, ecx
mov byte [ebp - 4], cl
push ecx
lea ecx, [ebp - 0x40]
jmp 0x4377e4
lea eax, [ebp - 0x58]
push eax
call fcn.00404d93
add esp, 0xc
mov ecx, dword [esi + 0x18]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4377db
lea eax, [ebp - 0x58]
push eax
call fcn.0040478a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.00401833
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4376eb
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401833
call fcn.004457fe
ret 4

Function at 0x437d2d
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x437d47
push str.quickLaunch__warmUp__failed_to_start__already_running
call fcn.0042ade0
pop ecx
xor eax, eax
jmp 0x437d8c
push edi
xor edi, edi
inc edi
call fcn.0043753d
mov ecx, esi
call fcn.00437583
lea eax, [esi + 0x3c]
mov dword [esi + 0x54], ebx
push eax
push ebx
push esi
push 0x437f5b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
test eax, eax
jne 0x437d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.quickLaunch__warmUp__failed_to_create_thread_err_d
call fcn.0042ada2
pop ecx
pop ecx
mov edi, ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x439f52
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x3c], 0xffffffff
je 0x439fc1
cmp dword [ebp + 8], 0
je 0x439fc1
cmp dword [esi + 0x44], 0x20019
je 0x439f73
cmp dword [esi + 0x3c], 0
jne 0x439f78
call fcn.00439fc8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x439fc1
cmp eax, 0xffffffff
je 0x439fc1
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x439fb9
cmp eax, 2
je 0x439fb9
add esi, 8
xor bl, bl
cmp dword [esi + 0x14], 8
jb 0x439fa5
mov esi, dword [esi]
push eax
push dword [ebp + 8]
push esi
push str.configuration__registry__delete_s__key_s_failed__error:_d
call fcn.0042ada2
add esp, 0x10
jmp 0x439fbb
mov bl, 1
movzx eax, bl
pop ebx
jmp 0x439fc3
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x43a007
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x3c]
sub esp, 0xc
test eax, eax
je 0x43a062
cmp eax, 0xffffffff
je 0x43a062
cmp dword [ebp + 8], 0
je 0x43a062
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push ecx
lea ecx, [ebp - 8]
xor edx, edx
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], edx
push ecx
push edx
push dword [ebp + 8]
mov dword [ebp - 4], edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43a062
cmp dword [ebp - 4], 4
je 0x43a06b
push dword [ebp - 4]
push dword [ebp + 8]
push str.configuration__registry__key_s_exist_but_type_mismatch__d_
call fcn.0042ae1b
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
jmp 0x43a065
Function at 0x43a070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x43a0ee
cmp ecx, 0xffffffff
je 0x43a0ee
mov edi, dword [ebp + 8]
test edi, edi
je 0x43a0ee
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push edx
lea eax, [ebp - 4]
mov dword [ebp + 8], edx
push eax
push edx
push edi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x47bb10
mov dword [ebp - 0xc], eax
lea esi, [ebx + 0x20]
call fcn.004012f1
pop ecx
push eax
push 0x47bb10
mov ecx, esi
call fcn.00401a41
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x43a0fa
add ebx, 8
cmp dword [ebx + 0x14], 8
jb 0x43a0de
mov ebx, dword [ebx]
push eax
push edi
push ebx
push str.configuration__registry__pas_s__key_s_RegQueryValueEx_return:_u
call fcn.0042ada2
add esp, 0x10
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 4], 1
je 0x43a128
cmp dword [ebp - 4], 7
je 0x43a128
cmp dword [ebp - 4], 2
je 0x43a128
add ebx, 8
cmp dword [ebx + 0x14], 8
jb 0x43a117
mov ebx, dword [ebx]
push edi
push ebx
push str.configuration__registry__pas_s__key_s_is_not_string_value
call fcn.0042ada2
add esp, 0xc
jmp 0x43a0ee
cmp dword [ebp + 8], 0
jne 0x43a14f
mov ebx, 0x47bb10
push ebx
call fcn.004012f1
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00401a41
cmp dword [esi + 0x14], 8
jb 0x43a14b
mov esi, dword [esi]
mov eax, esi
jmp 0x43a0f1
push dword [ebp + 8]
call fcn.004413a2
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x43a1cc
mov edx, dword [ebp + 8]
mov ecx, eax
test edx, edx
je 0x43a16f
mov byte [ecx], 0
inc ecx
dec edx
jne 0x43a168
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
push dword [ebx + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
call fcn.004012f1
pop ecx
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00401a41
push dword [ebp + 0xc]
call fcn.004427e1
mov eax, esi
mov dword [ebp - 8], esi
pop ecx
cmp dword [eax + 0x14], 8
jb 0x43a1b1
mov eax, dword [eax]
mov dword [ebp - 8], eax
add ebx, 8
cmp dword [ebx + 0x14], 8
jb 0x43a1bc
mov ebx, dword [ebx]
push 0
push edi
push ebx
push str.configuration__registry__pas_s__key_s_RegQueryValueEx_return:_u
call fcn.0042ade0
jmp 0x43a1e6
add ebx, 8
cmp dword [ebx + 0x14], 8
jb 0x43a1d7
mov ebx, dword [ebx]
push dword [ebp + 8]
push edi
push ebx
push str.configuration__registry__pas_s__key_s_failed_to_allocate_buffer_size_d
call fcn.0042ada2
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x43a0f1
Function at 0x43a450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x3c], 0xffffffff
je 0x43a4c7
cmp dword [ebp + 8], 0
je 0x43a4c7
cmp dword [esi + 0x44], 0x20019
je 0x43a472
cmp dword [esi + 0x3c], 0
jne 0x43a477
call fcn.00439fc8
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x43a4c7
cmp ecx, 0xffffffff
je 0x43a4c7
mov eax, dword [ebp + 0xc]
push edi
push 4
mov dword [ebp - 4], eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push 4
push edi
push dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43a4a6
inc edi
jmp 0x43a4c2
add esi, 8
cmp dword [esi + 0x14], 8
jb 0x43a4b1
mov esi, dword [esi]
push dword [ebp + 8]
push esi
push str.configuration__registry__pas_s__key_s_failed__error
call fcn.0042ada2
add esp, 0xc
mov eax, edi
pop edi
jmp 0x43a4c9
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x43a4d0
Capabilities:
Set registry value

Disassembly:
push 0x1c
mov eax, 0x46792c
call fcn.0044584f
mov esi, ecx
cmp dword [esi + 0x3c], 0xffffffff
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
je 0x43a578
test edi, edi
je 0x43a578
cmp dword [esi + 0x44], 0x20019
je 0x43a505
cmp dword [esi + 0x3c], 0
jne 0x43a510
call fcn.00439fc8
cmp dword [esi + 0x3c], 0
je 0x43a578
cmp dword [esi + 0x3c], 0xffffffff
je 0x43a578
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401720
mov eax, dword [ebp - 0x18]
xor ebx, ebx
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], ebx
lea ecx, [eax + eax]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push ebx
push edi
push dword [esi + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43a54d
xor esi, esi
inc esi
jmp 0x43a569
add esi, 8
cmp dword [esi + 0x14], 8
jb 0x43a558
mov esi, dword [esi]
push edi
push esi
push str.configuration__registry__pas_s__key_s_failed__error
call fcn.0042ada2
add esp, 0xc
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401833
mov eax, esi
jmp 0x43a57a
xor eax, eax
call fcn.004457fe
ret 8

Function at 0x43f096
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.004432bb
xor eax, eax
add esp, 0x10
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441f6f
mov esp, ebp
pop ebp
ret
Function at 0x43f173
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x49400c], 0
push esi
mov esi, dword [ebp + 8]
je 0x43f2f9
test esi, esi
je 0x43f2f9
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x43f2f8
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x43f2f8
push ebx
push str.GetMappedFileNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x43f2f7
lea ecx, [edi - 1]
push ecx
push esi
push dword [0x49400c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x43f2f7
xor eax, eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81c]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x43f2f7
mov eax, dword [0x4747dc]
lea edi, [ebp - 0x81c]
mov dword [ebp - 0xc], eax
mov ax, word [0x4747e0]
mov word [ebp - 8], ax
xor eax, eax
mov ebx, eax
mov ax, word [edi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x43f2dd
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x820], eax
cmp eax, 0x104
jae 0x43f2dd
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.00443cf5
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x820]
jne 0x43f296
cmp word [esi + eax*2], 0x5c
jne 0x43f296
xor ebx, ebx
inc ebx
jmp 0x43f298
xor ebx, ebx
test ebx, ebx
je 0x43f2dd
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00405b88
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x105
push esi
call fcn.0043f39a
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x43f2dd
test ebx, ebx
jne 0x43f2f7
xor eax, eax
cmp word [edi], ax
jne 0x43f230
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00441f6f
mov esp, ebp
pop ebp
ret

Function at 0x43f308
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push 6
pop eax
mov dword [ebp - 4], eax
je 0x43f396
cmp dword [ebp + 0xc], 0
je 0x43f396
cmp dword [ebp + 0x10], 0
je 0x43f396
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
jmp loc.004aea40
mov esp, ebp
pop ebp
ret
Function at 0x43f9d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43fb15
cmp dword [0x493f00], 2
je 0x43fa0c
xor eax, eax
inc eax
jmp 0x43fb15
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
push ecx
push ecx
push 0x17
push edi
mov dword [ebp - 0x2c], ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x43fa35
xor eax, eax
jmp 0x43fb14
push esi
push dword [ebp - 0x2c]
call fcn.00442985
mov esi, eax
pop ecx
test esi, esi
je 0x43fb13
push dword [ebp - 0x2c]
and dword [ebp - 0x30], 0
push 0
push esi
call fcn.00447ae0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push esi
push 0x17
push edi
call ebx
test eax, eax
je 0x43fb09
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x43fb09
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
jmp 0x4a8708
push esi
call fcn.0044294d
mov eax, dword [ebp - 0x30]
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00441f6f
mov esp, ebp
pop ebp
ret
Function at 0x43fdeb
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043fbdd
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.wbxtra_.wbt
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x45c]
xor edi, edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x464], edi
push eax
mov esi, edi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x46c], eax
cmp eax, 0xffffffff
je 0x43ffbc
mov edx, dword [ebp - 0x464]
cmp ebx, edx
jb 0x43feac
push 8
lea eax, [edx + edx]
test edx, edx
pop ecx
cmovne ecx, eax
mov eax, ecx
mov dword [ebp - 0x464], eax
imul eax, eax, 0xc
push eax
call fcn.00442985
mov dword [ebp - 0x460], eax
pop ecx
test eax, eax
je 0x43ff26
test esi, esi
je 0x43feaa
push edi
push esi
push edi
push eax
call fcn.00444103
push esi
call fcn.0044294d
mov eax, dword [ebp - 0x460]
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x460], eax
lea ecx, [eax + eax]
push ecx
call fcn.00442985
mov dword [ebp - 0x468], eax
pop ecx
test eax, eax
je 0x43ff26
lea ecx, [ebp - 0x430]
push ecx
push dword [ebp - 0x460]
push eax
call fcn.0043fbdd
mov eax, dword [ebp - 0x468]
add esp, 0xc
mov dword [edi + esi + 8], eax
inc ebx
mov eax, dword [ebp - 0x448]
mov dword [edi + esi], eax
mov eax, dword [ebp - 0x444]
mov dword [edi + esi + 4], eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x46c]
add edi, 0xc
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43fe59
push dword [ebp - 0x46c]
mov dword [ebp - 0x464], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
pop edi
test esi, esi
je 0x43ffbc
lea eax, [ebx + 1]
cmp eax, 5
jbe 0x43ff58
push 0x43fcf0
push 0xc
push ebx
push esi
call fcn.00449780
add esp, 0x10
test ebx, ebx
je 0x43ffb5
lea eax, [esi + 8]
mov dword [ebp - 0x468], eax
mov esi, eax
inc edi
cmp edi, 5
jb 0x43ffa0
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0043fbdd
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call fcn.0044294d
add esi, 0xc
pop ecx
cmp edi, ebx
jb 0x43ff67
mov esi, dword [ebp - 0x464]
push esi
call fcn.0044294d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441f6f
mov esp, ebp
pop ebp
ret
Function at 0x4402f2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
imul edi, dword [ebp + 8], 0xc
add edi, 0x493ea0
cmp dword [edi + 4], 0xffffffff
je 0x440313
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 4], 0xffffffff
cmp dword [edi + 8], 0
je 0x440353
cmp dword [ebp + 0xc], 0
je 0x440346
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [edi + 8]
push str.delete_dumpfile___s___ret___d__err___d_r_n
push 2
call fcn.004403a5
add esp, 0x14
pop esi
push dword [edi + 8]
call fcn.0044294d
and dword [edi + 8], 0
pop ecx
and dword [edi], 0
pop edi
pop ebp
ret

Function at 0x4403a5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.004432bb
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push dword [ebp + 8]
call fcn.0043f5de
add esp, 0x20
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
jmp loc.004a9c20

Function at 0x440571
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call fcn.0043f9d8
pop ecx
test eax, eax
je 0x4405a5
xor eax, eax
inc eax
jmp 0x440675
cmp dword [0x493f00], 2
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x4405d9
cmp dword [0x493ef4], 6
jb 0x4405d9
push 0x4747f0
push esi
call ebx
push esi
call fcn.0043f9d8
pop ecx
test eax, eax
je 0x4405d9
xor eax, eax
inc eax
jmp 0x440674
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.shell32.dll
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x440674
push edi
push str.SHGetSpecialFolderPathW
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x440665
push edi
push 0x20
push esi
push edi
call eax
test eax, eax
je 0x440665
push esi
call fcn.0043f9d8
pop ecx
test eax, eax
je 0x44063c
inc edi
jmp 0x440665
cmp dword [0x493f00], 2
jne 0x440665
cmp dword [0x493ef4], 6
jb 0x440665
push 0x4747f0
push esi
call ebx
push esi
call fcn.0043f9d8
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
cmovne edi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00441f6f
mov esp, ebp
pop ebp
ret