joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005c2cf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x2c]
mov ecx, dword [0x105d2308]
mov dword [ebp - 0x10], 0x5c495c59
mov dword [ebp - 0xc], 0x555e5c5e
mov dword [ebp - 8], 0x51591358
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x105d1d88]
mov word [ebp - 4], 0x3d51
cmp eax, dword [ecx + 4]
jg 0x1005c316
jmp 0x1005c30f
pop ebx
mov eax, 0x105d1d78
leave
ret
push ebx
mov ebx, 0x105d1d88
push ebx
call fcn.10066acf
cmp dword [0x105d1d88], 0xffffffff
pop ecx
jne 0x1005c30e
push esi
push edi
mov edi, 0x105d1d78
lea esi, [ebp - 0x10]
push 0x1006c77d
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.10066a3e
push ebx
call fcn.10066a7e
pop ecx
pop ecx
pop edi
pop esi
jmp 0x1005c30e

Function at 0x1005c351
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x105d2308]
mov dword [ebp - 0xc], 0x7e717970
mov dword [ebp - 8], 0x58555e5c
mov dword [ebp - 4], 0x3d090d0d
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x105d1d98]
cmp eax, dword [ecx + 4]
jg 0x1005c392
jmp 0x1005c38b
pop ebx
mov eax, 0x105d1d8c
leave
ret
push ebx
mov ebx, 0x105d1d98
push ebx
call fcn.10066acf
cmp dword [0x105d1d98], 0xffffffff
pop ecx
jne 0x1005c38a
push esi
push edi
mov edi, 0x105d1d8c
lea esi, [ebp - 0xc]
push 0x1006c78c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10066a3e
push ebx
call fcn.10066a7e
pop ecx
pop ecx
pop edi
pop esi
jmp 0x1005c38a

Function at 0x1005c44a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x2c]
mov ecx, dword [0x105d2308]
mov dword [ebp - 0x10], 0x44554d4b
mov dword [ebp - 0xc], 0x4e5e544e
mov dword [ebp - 8], 0x51515913
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x105d1dd8]
mov byte [ebp - 4], 0x3d
cmp eax, dword [ecx + 4]
jg 0x1005c48f
jmp 0x1005c488
pop ebx
mov eax, 0x105d1dc8
leave
ret
push ebx
mov ebx, 0x105d1dd8
push ebx
call fcn.10066acf
cmp dword [0x105d1dd8], 0xffffffff
pop ecx
jne 0x1005c487
push esi
push edi
mov edi, 0x105d1dc8
lea esi, [ebp - 0x10]
push 0x1006c7b9
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.10066a3e
push ebx
call fcn.10066a7e
pop ecx
pop ecx
pop edi
pop esi
jmp 0x1005c487
Function at 0x1005c947
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x105d2308]
mov dword [ebp - 0xc], 0x5948757e
mov dword [ebp - 8], 0x495c557e
mov byte [ebp - 4], 0x3d
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x105d1f90]
cmp eax, dword [ecx + 4]
jg 0x1005c985
jmp 0x1005c97e
pop ebx
mov eax, 0x105d1f84
leave
ret
push ebx
mov ebx, 0x105d1f90
push ebx
call fcn.10066acf
cmp dword [0x105d1f90], 0xffffffff
pop ecx
jne 0x1005c97d
push esi
push edi
mov edi, 0x105d1f84
lea esi, [ebp - 0xc]
push 0x1006c8f3
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.10066a3e
push ebx
call fcn.10066a7e
pop ecx
pop ecx
pop edi
pop esi
jmp 0x1005c97d

Function at 0x1005ca38
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x105d2308]
mov dword [ebp - 0xc], 0x59535c6f
mov dword [ebp - 8], 0x53745052
mov word [ebp - 4], 0x3d49
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x105d1fb0]
cmp eax, dword [ecx + 4]
jg 0x1005ca78
jmp 0x1005ca71
pop ebx
mov eax, 0x105d1fa4
leave
ret
push ebx
mov ebx, 0x105d1fb0
push ebx
call fcn.10066acf
cmp dword [0x105d1fb0], 0xffffffff
pop ecx
jne 0x1005ca70
push esi
push edi
mov edi, 0x105d1fa4
lea esi, [ebp - 0xc]
push 0x1006c90d
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.10066a3e
push ebx
call fcn.10066a7e
pop ecx
pop ecx
pop edi
pop esi
jmp 0x1005ca70

Function at 0x1005cb2c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x105d2308]
mov dword [ebp - 0xc], 0x59535c6f
mov dword [ebp - 8], 0x586e5052
mov word [ebp - 4], 0x5958
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x105d1fd0]
mov byte [ebp - 2], 0x3d
cmp eax, dword [ecx + 4]
jg 0x1005cb70
jmp 0x1005cb69
pop ebx
mov eax, 0x105d1fc4
leave
ret
push ebx
mov ebx, 0x105d1fd0
push ebx
call fcn.10066acf
cmp dword [0x105d1fd0], 0xffffffff
pop ecx
jne 0x1005cb68
push esi
push edi
mov edi, 0x105d1fc4
lea esi, [ebp - 0xc]
push 0x1006c928
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.10066a3e
push ebx
call fcn.10066a7e
pop ecx
pop ecx
pop edi
pop esi
jmp 0x1005cb68
Function at 0x1005cca4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x105d2308]
mov dword [ebp - 0xc], 0x59535c6f
mov dword [ebp - 8], 0x517b5052
mov dword [ebp - 4], 0x3d495c52
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x105d1ff0]
cmp eax, dword [ecx + 4]
jg 0x1005cce5
jmp 0x1005ccde
pop ebx
mov eax, 0x105d1fe4
leave
ret
push ebx
mov ebx, 0x105d1ff0
push ebx
call fcn.10066acf
cmp dword [0x105d1ff0], 0xffffffff
pop ecx
jne 0x1005ccdd
push esi
push edi
mov edi, 0x105d1fe4
lea esi, [ebp - 0xc]
push 0x1006c953
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10066a3e
push ebx
call fcn.10066a7e
pop ecx
pop ecx
pop edi
pop esi
jmp 0x1005ccdd

Function at 0x1005cd98
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x2c]
mov ecx, dword [0x105d2308]
mov dword [ebp - 0x10], 0x74687a6b
mov dword [ebp - 0xc], 0x535c6d62
mov dword [ebp - 8], 0xd0d5158
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x105d1b54]
mov word [ebp - 4], 0x3d04
cmp eax, dword [ecx + 4]
jg 0x1005cddf
jmp 0x1005cdd8
pop ebx
mov eax, 0x105d1b44
leave
ret
push ebx
mov ebx, 0x105d1b54
push ebx
call fcn.10066acf
cmp dword [0x105d1b54], 0xffffffff
pop ecx
jne 0x1005cdd7
push esi
push edi
mov edi, 0x105d1b44
lea esi, [ebp - 0x10]
push 0x1006c98d
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.10066a3e
push ebx
call fcn.10066a7e
pop ecx
pop ecx
pop edi
pop esi
jmp 0x1005cdd7
Function at 0x1005eb21
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x21], 0
je 0x1005eb33
xor eax, eax
xor byte [ecx + eax], 0x3d
inc eax
cmp eax, 0x22
jb 0x1005eb29
mov eax, ecx
ret

Function at 0x100630b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ae80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10082940]
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
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1007b950
lea esi, [edi + 0x408]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x10063118
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.1005f56d
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.1005f5a3
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call fcn.1006273d
pop ecx
test al, al
jne 0x10063131
push esi
call fcn.10062a73
push esi
call fcn.100624f6
pop ecx
pop ecx
push dword [ebp - 0x14]
lea eax, [edi + 0x420]
push eax
push ecx
push ecx
mov eax, esp
mov ecx, esp
push ecx
push ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov ecx, esp
push esi
call fcn.10060668
lea eax, [ebp - 0x18]
push eax
call fcn.1006024a
add esp, 0x1c
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.10066b33
leave
ret 4

Function at 0x1006370a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x10063716
pop esi
mov eax, edx
pop ebp
ret

Function at 0x10064a94
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x35], 0
je 0x10064aa6
xor eax, eax
xor byte [ecx + eax], 0x3d
inc eax
cmp eax, 0x36
jb 0x10064a9c
mov eax, ecx
ret

Function at 0x10065919
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
sub eax, ecx
je 0x10065952
sub eax, 1
jne 0x10065957
push ecx
push ecx
push dword [ebp + 8]
push 0x1006575c
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10065957
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10065957
call fcn.10065906
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x10065da5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10065dcc
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10065dcf
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10065d81
pop esi
leave
ret 8
Function at 0x401040
Capabilities:
Create directory
Get common file path

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x218]
push ebx
sub esp, 0x224
mov dword [ebp - 0x21c], eax
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
test eax, eax
je 0x40110c
mov dword [esp], 0xc
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
call edi
mov ebx, eax
test eax, eax
je 0x40110c
mov dword [esp], 0x230
call edi
mov dword [ebx + 8], eax
test eax, eax
je 0x401150
mov edi, dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x4010ce
mov eax, dword [ebx + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401120
mov eax, dword [ebx + 8]
mov ecx, dword [section..bss]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x40c000
lea edx, [ecx + 1]
mov dword [esp], esi
mov dword [section..bss], edx
mov dword [esp + 8], edx
call edi
sub esp, 0x10
test eax, eax
jne 0x4010b0
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call esi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov edi, dword [ebp - 0x21c]
mov eax, dword [edi + 0xc]
lea esi, [edi + 8]
movd xmm0, esi
movd xmm1, eax
punpckldq xmm0, xmm1
movq qword [ebx], xmm0
mov dword [eax], ebx
mov eax, dword [ebx + 8]
mov dword [edi + 0xc], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [ebp - 0x21c], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x21c]
jmp 0x40110e

Function at 0x4011a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
mov eax, 0
cmovne eax, dword [ebp - 4]
leave
ret

Function at 0x4011e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
mov eax, 0
cmovne eax, dword [ebp - 4]
leave
ret
Function at 0x4012b0
Capabilities:
Extract cabinet on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x18]
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], sym._cabinet_seek
mov dword [esp + 0x14], sym._cabinet_close
mov dword [esp + 0x10], sym._cabinet_write
mov dword [esp + 0xc], sym._cabinet_read
mov dword [esp + 8], sym._cabinet_open
mov dword [esp + 4], sym._cabinet_free
mov dword [esp], sym._cabinet_alloc
call sym._FDICreate
test eax, eax
je 0x401410
mov ebx, eax
test esi, esi
je 0x401420
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x24], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov dword [ebp - 0x20], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x401420
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], sym._cabinet_notify
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._FDICopy
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call sym._FDIDestroy
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x4013f6
Function at 0x401ba0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x254]
lea esi, [ebp - 0x258]
push ebx
mov edi, edx
lea ebx, [ebp - 0x214]
sub esp, 0x28c
mov dword [ebp - 0x270], 1
rep stosd dword es:[edi], eax
mov dword [esp], ebx
mov dword [ebp - 0x258], 0x44
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.wusa.exe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x268]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x401cf0
test byte [section..data], 8
jne 0x401d3a
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0x270]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x268]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
push edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x264]
push ecx
mov dword [esp], eax
call ebx
push ebx
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov eax, dword [ebp - 0x270]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
test byte [section..data], 2
je 0x401ccf
mov eax, dword fs:[0x18]
or edx, 0xffffffff
mov esi, dword [eax + 0x34]
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Failed_to_restart_64_bit__s__err__lu_n
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401ccf
or edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401c7d
Function at 0x401d80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x401db0
test al, 0x10
je 0x401db0
mov ebx, dword [ebp - 4]
mov eax, 1
leave
ret
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401d9e
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
mov ebx, dword [ebp - 4]
leave
sete al
movzx eax, al
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
test eax, eax
je 0x401e94
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
sub esp, 4
test eax, eax
jne 0x401e20
xor ebx, ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x401e3a
mov ebx, 1
test al, 0x10
jne 0x401e0d
movzx eax, word [esi]
test ax, ax
je 0x401e86
mov ebx, esi
jmp 0x401e5c
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401e86
cmp ax, 0x5c
jne 0x401e50
xor edx, edx
mov eax, esi
mov word [ebx], dx
call sym._create_directory
test eax, eax
je 0x401e0b
mov eax, 0x5c
add ebx, 2
mov word [ebx - 2], ax
movzx eax, word [ebx]
test ax, ax
jne 0x401e5c
mov eax, esi
call sym._create_directory
mov ebx, eax
jmp 0x401e0d
xor ebx, ebx
jmp 0x401e16
Function at 0x401fd0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov edx, 0x40c06e
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x260
call sym._path_combine
test eax, eax
je 0x4020b7
mov edi, eax
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebx, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], edi
mov dword [ebp - 0x260], eax
call eax
cmp ebx, 0xffffffff
je 0x4020ab
lea edi, [ebp - 0x230]
mov dword [esp + 4], 0x40c072
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x402085
mov dword [esp + 4], 0x40c076
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x402085
mov edx, edi
mov eax, esi
call sym._path_combine
test eax, eax
je 0x402085
test byte [ebp - 0x25c], 0x10
je 0x4020c0
mov dword [ebp - 0x264], eax
call sym._delete_directory.isra.0
mov edx, dword [ebp - 0x264]
mov dword [esp], edx
mov eax, dword [ebp - 0x260]
call eax
lea eax, [ebp - 0x25c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x402029
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [ebp - 0x264], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x264]
sub esp, 4
jmp 0x40207a
Function at 0x402700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
call sym._expand_expression.isra.0
mov ecx, dword [edi + 0x10]
mov ebx, eax
test ecx, ecx
je 0x402768
test eax, eax
je 0x402820
cmp word [ebx], 0
je 0x402830
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402738
sub eax, ebx
add eax, 2
mov edx, dword [ebp + 8]
test edx, edx
je 0x402775
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
test ebx, ebx
jne 0x402729
mov edx, dword [ebp + 8]
test edx, edx
jne 0x40274d
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
je 0x40274d
xor esi, esi
test byte [section..data], 2
je 0x402752
mov esi, dword [edi + 8]
test esi, esi
je 0x40284f
mov eax, esi
shr eax, 0x10
je 0x40283a
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40c015
test edx, edx
jne 0x4027eb
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], str.Failed_to_set_registry_key__s_n
mov dword [esp + 8], str.install_registry_string
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402752
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x402746
movzx esi, si
mov dword [esp], 0x40c008
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4027eb
mov eax, 0x40c00e
jmp 0x4027eb
Function at 0x408980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4089d8
cmp byte [esi + ebx - 1], 0xa
je 0x4089ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4100a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret