joyce8/EMBER2024-capa huggingface dataset:
Function at 0x557a70
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a5a58
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x557c48
je case.0x557abe.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x557abe.4
movzx eax, byte [eax + 0x557ce4]
jmp dword [eax*4 + 0x557ca8]
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.0053b810
push 0x627c4c
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.0053b5a0
push 0x627d24
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.0053b740
push 0x627c04
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.0053af30
push 0x627d6c
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.0053b1a0
push 0x627e8c
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.0053d3b0
push 0x627dfc
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.0053cac0
push 0x627e44
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.sharing_violation
lea ecx, [ebp - 0x24]
call fcn.0040e8f0
mov dword [ebp - 4], 0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.0053b610
push 0x627bc0
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.lock_violation
lea ecx, [ebp - 0x24]
call fcn.0040e8f0
mov dword [ebp - 4], 1
jmp 0x557b8f
push str.EOF_reached
lea ecx, [ebp - 0x24]
call fcn.0040e8f0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.0053ca60
push 0x627e44
jmp 0x557ba4
push str.disk_is_full
lea ecx, [ebp - 0x24]
call fcn.0040e8f0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.0053d350
push 0x627dfc
jmp 0x557ba4
push str.negative_seek
lea ecx, [ebp - 0x24]
call fcn.0040e8f0
mov dword [ebp - 4], 4
jmp 0x557b8f
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.0053c6b0
push 0x627af4
jmp 0x557ba4
cmp esi, 0x781
je case.0x557abe.3
cmp esi, 0x1779
je 0x557c77
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x90]
call fcn.0053b670
push 0x627bc0
lea eax, [ebp - 0x90]
jmp 0x557ba7
push 0x1779
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.0053b8e0
push 0x627cdc
jmp 0x557ba4
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.0053c5e0
push 0x627c94
jmp 0x557ba4
Function at 0x557ed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x557ef2
push 0
push 0x9f
push str.e:xhsundcode_remote_trunk_rhinopcinfrastructure_thirdpartypoco_src_foundation_src_file_win32u.cpp
push str.__path.empty__
call fcn.005406b0
add esp, 0x10
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x557efd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x557f10
shr eax, 4
and al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.00557a70
int3

Function at 0x557fb0
Capabilities:
Check if file exists

Disassembly:
jmp 0x557fc0
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x557fe2
push 0
push 0xaa
push str.e:xhsundcode_remote_trunk_rhinopcinfrastructure_thirdpartypoco_src_foundation_src_file_win32u.cpp
push str.__path.empty__
call fcn.005406b0
add esp, 0x10
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x557fed
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x558008
and eax, 0x410
cmp eax, 0x400
pop esi
sete al
ret
lea eax, [esi + 4]
push eax
call fcn.00557a70
int3

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

Disassembly:
jmp 0x557fc0
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x557fe2
push 0
push 0xaa
push str.e:xhsundcode_remote_trunk_rhinopcinfrastructure_thirdpartypoco_src_foundation_src_file_win32u.cpp
push str.__path.empty__
call fcn.005406b0
add esp, 0x10
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x557fed
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x558008
and eax, 0x410
cmp eax, 0x400
pop esi
sete al
ret
lea eax, [esi + 4]
push eax
call fcn.00557a70
int3
Function at 0x558660
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a5af8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
lea esi, [edi + 4]
jne 0x5586a1
push 0
push 0x133
push str.e:xhsundcode_remote_trunk_rhinopcinfrastructure_thirdpartypoco_src_foundation_src_file_win32u.cpp
push str.__path.empty__
call fcn.005406b0
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.005571c0
add esp, 8
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
lea eax, [edi + 0x1c]
cmovae ecx, dword [ebp - 0x24]
cmp dword [eax + 0x14], 8
jb 0x5586dd
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x558739
mov edx, dword [ebp - 0x10]
pop edi
pop esi
cmp edx, 8
jb 0x558729
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x55871f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x55871f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0052f594
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.00557a70
int3

Function at 0x558c50
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
push edi
cmp dword [esi + 0x14], 0x10
jb 0x558c63
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x558cd4
push ebx
push edi
call fcn.0052ffb8
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x558c88
mov esi, dword [esi]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [esp + 0x3c]
mov ecx, ebx
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x558cb0
sub ecx, edx
push ecx
push ebx
mov ecx, esi
call fcn.0040f090
push ebx
call fcn.0052fc78
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
add esp, 0x2c
ret
push 0
push esi
lea ecx, [esp + 0x10]
call fcn.0053c100
push 0x625070
lea eax, [esp + 0xc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x403135
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b4]
push ebx
push esi
push edi
push 0x4a7ca0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.004018f6
lea eax, [ebp - 0x7c]
push eax
call fcn.0040339f
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0046cbb0
mov eax, dword [ebp - 0x78]
add esp, 0x10
cmp dword [ebp - 0x64], 8
jae 0x403192
lea eax, [ebp - 0x78]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4a7b30
push eax
lea eax, [ebp - 0x60]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
je 0x403203
push 0x4a7b70
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.00401a34
mov ecx, dword [ebp - 0x80]
push 0x4a7b78
call fcn.0040197d
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a58
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cc2a
add ebp, 0x1ac
leave
ret
push ebx
push 0
push eax
call fcn.0046cbb0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x40321b
lea eax, [ebp - 0x78]
push 0x4a7b7c
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x403236
lea eax, [ebp - 0x60]
jmp 0x4031b7
lea eax, [ebp - 0x7c]
push eax
call fcn.00404069
mov ecx, eax
call fcn.00404094
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0046cbb0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x403261
lea eax, [ebp - 0x78]
push 0x4a7b30
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
jne 0x4031b7
push ebx
push 0
push eax
call fcn.0046cbb0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x403296
lea eax, [ebp - 0x78]
push 0x4a7b7c
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x4032ea
push 0x4a7b70
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.00401a34
mov ecx, dword [ebp - 0x80]
push 0x4a7b78
call fcn.0040197d
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a58
mov eax, esi
jmp 0x4031eb
xor esi, esi
jmp 0x4032d7
Function at 0x4032ee
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push esi
mov esi, ecx
push 0x4a7ca0
lea ecx, [ebp - 0x80]
call fcn.004018f6
lea eax, [ebp - 0x80]
push eax
call fcn.00403135
pop ecx
test eax, eax
je 0x40339b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
call fcn.0046cbb0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
cmp dword [ebp - 0x68], 8
jae 0x40334b
lea eax, [ebp - 0x7c]
push str.download_interface.dll
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40339b
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.00401a34
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00401a58
mov ecx, dword [ebp + 0x1a4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046cc2a
add ebp, 0x1a8
leave
ret
xor esi, esi
jmp 0x403377

Function at 0x40339f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0046cbb0
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.instdir
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40344d
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40340f
sub eax, edx
sar eax, 1
je 0x40344d
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.00401a34
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.00412486
cmp word [eax], 0x5c
je 0x403448
push 0x4a7b78
mov ecx, esi
call fcn.0040197d
xor eax, eax
inc eax
jmp 0x40344f
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0046cc2a
add ebp, 0x390
leave
ret
Function at 0x403465
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0046cbb0
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4034f5
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4034d5
sub eax, edx
sar eax, 1
je 0x4034f5
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.00401a34
xor eax, eax
inc eax
jmp 0x4034f7
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0046cc2a
add ebp, 0x390
leave
ret

Function at 0x40360d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, eax
cmp dword [ebp + 8], esi
je 0x403698
cmp dword [ebp + 0xc], esi
je 0x403698
cmp ebx, esi
jle 0x403698
push esi
push 0x80
push 2
push esi
push esi
push 7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x403649
mov eax, 0x80004005
jmp 0x40369d
push edi
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push ebx
add eax, edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403681
cmp dword [ebp + 8], esi
jle 0x403681
sub ebx, dword [ebp + 8]
add edi, dword [ebp + 8]
cmp ebx, esi
jg 0x403656
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40368a
mov dword [eax], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
jmp 0x40369d
mov eax, 0x86180008
pop esi
pop ebx
leave
ret

Function at 0x4036a1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
mov eax, 0x80
push eax
push 3
push edi
push edi
push eax
push dword [ebp + 8]
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4036d1
mov eax, 0x80004005
jmp 0x4036ea
lea eax, [ebp + 0xc]
push eax
push ebx
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403768
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jg 0x403785
mov eax, 0x80004005
jmp 0x403800
lea eax, [esi + 4]
push edi
push eax
call fcn.0046b9bf
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4037c1
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4a7b78
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4037c8
mov eax, 0x80004005
jmp 0x4037ff
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
movzx edx, word [eax + 0xe]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ecx], eax
call fcn.0046c8d6
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x403b71
Capabilities:
Copy file

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x403b89
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi]
sub esp, 0x14
push ebx
test ecx, ecx
je 0x403c07
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x403c07
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
mov eax, dword [esi]
push eax
push dword [eax + 0xc]
lea ecx, [ebp - 8]
call fcn.00403dfb
jmp 0x403be9
lea ecx, [ebp - 8]
call fcn.0040e19a
cmp dword [eax + 0x18], 8
jb 0x403bd2
mov eax, dword [eax + 4]
jmp 0x403bd5
add eax, 4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x403c28
lea ecx, [ebp - 8]
call fcn.00403d8e
mov eax, dword [esi]
push eax
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00403dfb
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00403dbd
test al, al
je 0x403bbf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x403c1d
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
push edi
call fcn.00403c6f
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x403c2b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00403ea6
add esp, 0xc
test esi, esi
pop esi
je 0x403c6b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x403c6b
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x403c6f
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 8], 0
je 0x403c9c
push dword [esp + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403c9c
push 4
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
ret
Function at 0x403ea6
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x4b7f10]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.004018f6
mov eax, dword [esp + 0x28]
dec eax
push eax
lea ecx, [esp + 0x18]
call fcn.00412486
cmp word [eax], 0x5c
je 0x403efd
push 0x4a7b78
lea ecx, [esp + 0x18]
call fcn.0040197d
push 0x4a7cbc
lea ecx, [esp + 0x18]
call fcn.0040197d
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x403f1a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403f55
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00401a58
mov ecx, dword [esp + 0x48c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0046cc2a
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x284]
push 0
push eax
call fcn.0046cbb0
add esp, 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4a7b20
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403fe3
push 0x4a7b70
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403fe3
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [esp + 0x30], 0x10
je 0x403fd7
push esi
lea eax, [esp + 0x284]
push ebx
push eax
call fcn.00403ea6
add esp, 0xc
cmp dword [ebx], 0
je 0x403fe3
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x403fe3
lea edi, [esp + 0x280]
call fcn.00403b89
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403f6c
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x403f31
Function at 0x406133
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x78c], eax
mov eax, dword [ebp + 0x798]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push edi
mov edi, ecx
push str.HKCT
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x400
call esi
test eax, eax
je 0x4061be
push str.HKEY_CLASSES_ROOT
push edi
call esi
test eax, eax
je 0x4061be
push str.HKCU
push edi
call esi
test eax, eax
je 0x4061b7
push str.HKEY_CURRENT_USER
push edi
call esi
test eax, eax
je 0x4061b7
push str.HKLM
push edi
call esi
test eax, eax
je 0x4061b0
push 0x4a8068
push edi
call esi
test eax, eax
jne 0x4061b7
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4061c3
mov eax, closesocket
jmp 0x4061c3
mov eax, closesocket
lea ecx, [ebp - 0x7c]
push ecx
push 1
xor esi, esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406207
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x406207
cmp dword [ebp - 0x78], esi
jbe 0x406207
xor eax, eax
inc eax
jmp 0x406209
xor eax, eax
mov ecx, dword [ebp + 0x78c]
pop edi
xor ecx, ebp
pop esi
call fcn.0046cc2a
add ebp, 0x790
leave
ret

Function at 0x4094c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp + 0x38c], eax
mov eax, dword [ebp + 0x3a4]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
mov esi, dword [ebp + 0x398]
push edi
mov edi, dword [ebp + 0x39c]
push 0x400
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0046cbb0
or dword [ebp - 0x80], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40954a
call fcn.00403c9f
mov eax, 0x80004005
jmp 0x409555
lea eax, [ebp - 0x74]
push eax
call fcn.00401a34
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.0046cc2a
add ebp, 0x390
leave
ret

Function at 0x40956a
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x40957c
mov eax, dword [eax + 4]
jmp 0x40957f
add eax, 4
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret
Function at 0x4095a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push 0x400
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0046cbb0
or dword [ebp - 0x408], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], 0x200
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x409625
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, 0x80004005
jmp 0x40962f
mov eax, dword [ebp - 0x404]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cc2a
leave
ret