joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101fc044
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10237518], 0
mov dword [0x1023751c], 0
mov dword [0x10237528], 0
mov ebx, dword [0x10237514]
mov dword [ebp - 0x10], eax
mov eax, ebx
add eax, 0xffffed33
mov dword [0x10237510], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x101fc1d9
jmp 0x101fc0d7
mov eax, dword [0x1023751c]
mov ecx, dword [0x10237518]
mov edx, dword [0x10237514]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, pe_nt_image_headers32
add edx, 1
mov dword [ebp - 0x34], eax
mov eax, edx
cdq
idiv edi
mov dword [0x10237518], edx
add ecx, 0xfffffeba
mov dword [0x10237510], ecx
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x1023751c], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10237520], cl
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10237520]
mov edx, dword [0x1023751c]
mov byte [edi + edx], cl
mov dword [0x10237514], 0xac5
mov edx, dword [0x10237518]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1023751c]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov edx, dword [0x10237510]
and ebx, 0xff
mov dword [0x10237528], ebx
mov dword [0x10237514], 0x8a5
add edx, 0xffffe3a1
mov dword [0x10237510], edx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
mov ch, byte [edx + ebx]
mov dword [0x10237514], 0xfffff828
mov byte [0x1023752d], ch
mov byte [0x1023752e], cl
xor ch, cl
mov byte [0x1023752c], ch
mov dword [0x10237510], 0x137c
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x30], ebx
jne 0x101fc0b7
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101fc1e1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa8
call fcn.1000107d
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
jne 0x101fc34b
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call fcn.101faef1
mov ecx, 0xd39
lea edx, [0x101fb773]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x80], esi
mov dword [esp + 0x90], 0x136c00
mov esi, dword [0x102374fc]
mov dword [esp + 0x58], esi
mov esi, dword [0x10237500]
mov dword [esp + 0x74], esi
mov esi, dword [0x10237504]
mov dword [esp + 0x40], esi
mov esi, dword [0x10237508]
mov dword [esp + 0x70], esi
mov esi, dword [0x1023750c]
mov dword [esp + 0x50], esi
mov dword [0x10237514], 0x1b67
mov dword [0x10237510], 0x23bf
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jne 0x101fc2b6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x101fc2d5
mov eax, 0x1a08
mov ecx, dword [esp + 0x18]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x101fc28b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x14]
mov dword [0x10237514], edx
call fcn.101fbb7b
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x101fc343
lea eax, [esp + 0x40]
mov dword [0x10237514], 0x470
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101fb635
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x10237510], 0x1c65
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x401665
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x3c
mov ebx, ecx
call dbg.__main
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
cmp dword [ebx], 1
jg 0x4016ca
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x12
mov dword [esp + 4], 1
mov dword [esp], str.no_key_specified._n
call sym._fwrite
mov eax, 0xffffffff
jmp 0x401860
mov eax, dword [ebx + 4]
add eax, 4
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0x60
jle 0x4016ee
cmp byte [ebp - 0x19], 0x7a
jg 0x4016ee
movzx eax, byte [ebp - 0x19]
sub eax, 0x20
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0x40
jle 0x4016fa
cmp byte [ebp - 0x19], 0x5a
jle 0x401732
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.only_support__a_zA_Z_._n
call sym._fwrite
mov eax, 0xffffffff
jmp 0x401860
cmp dword [ebx], 2
jle 0x401760
mov eax, dword [ebx + 4]
add eax, 8
mov eax, dword [eax]
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
js 0x401756
cmp dword [ebp - 0x20], 7
jle 0x401760
mov eax, 0xffffffff
jmp 0x401860
movsx eax, byte [ebp - 0x19]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._init_key_down
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x1c
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x4053e0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendInput]
call eax
sub esp, 0xc
mov ebx, eax
movsx ecx, byte [ebp - 0x19]
mov edx, dword [ebp - 0x20]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
add eax, 0x403030
mov eax, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], str.key_down:___s_c____d___d_n
call sym._printf
mov dword [esp], 0xa
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._init_key_up
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x1c
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x4053e0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendInput]
call eax
sub esp, 0xc
mov ebx, eax
movsx ecx, byte [ebp - 0x19]
mov edx, dword [ebp - 0x20]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
add eax, 0x403030
mov eax, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], str.key_up:___s_c____d___d_n
call sym._printf
mov eax, 0
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x401c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4053a0]
test esi, esi
jle 0x401d90
mov edi, dword [0x4053a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401cb4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401d35
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401ca0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401db7
mov eax, dword [0x4053a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4053a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401d97
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401d2e
sub eax, 4
and eax, 0xfffffffb
jne 0x401d40
add dword [0x4053a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4053a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x401cbe
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x4021f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x402245
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40223e
test esi, esi
je 0x40223e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402220
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4028f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop

Function at 0x401020
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x40104e
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401046
cmp al, 0x22
je 0x401046
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40103a
cmp byte [esi], 0x22
jne 0x40105a
inc esi
jmp 0x40105a
cmp al, 0x20
jbe 0x40105a
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
ja 0x401052
mov al, byte [esi]
test al, al
je 0x40106c
cmp al, 0x20
ja 0x40106c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401060
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x401091
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x401096
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
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 0x401109
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0xc
call edi
mov ebx, eax
test eax, eax
je 0x401109
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 0x4010cb
mov dword [esp + 4], 0
mov dword [esp], edx
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]
lea edx, [ecx + 1]
mov dword [section..bss], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x40a000
mov dword [esp], esi
call edi
mov edx, dword [ebx + 8]
sub esp, 0x10
test eax, eax
jne 0x4010b0
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edx
call esi
mov dword [esp], ebx
call esi
lea esp, [ebp - 0xc]
xor eax, eax
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 [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x401109
Function at 0x4012a0
Capabilities:
Extract cabinet on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
lea eax, [ebp - 0x18]
sub esp, 0x3c
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x401160
mov dword [esp + 0x14], 0x401000
mov dword [esp + 0x10], 0x401190
mov dword [esp + 0xc], 0x4011d0
mov dword [esp + 8], 0x401210
mov dword [esp + 4], 0x401020
mov dword [esp], 0x401030
call sub.cabinet.dll_FDICreate
test eax, eax
je 0x4013f0
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov ebx, eax
mov dword [esp + 0x18], 0
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
mov dword [ebp - 0x24], ecx
call ecx
sub esp, 0x20
mov dword [esp], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x4013fc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, dword [ebp - 0x24]
call ecx
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x402670
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.cabinet.dll_FDICopy
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call sub.cabinet.dll_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 0x4013de
Function at 0x401b30
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
lea edx, [ebp - 0x254]
push esi
push ebx
lea ebx, [ebp - 0x214]
mov edi, edx
lea esi, [ebp - 0x258]
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]
mov edx, eax
sub esp, 0x28
movzx eax, byte [section..data]
test edx, edx
je 0x401c80
test al, 8
jne 0x401cc5
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]
push edx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
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 al, 2
je 0x401c5f
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
or edx, 0xffffffff
mov eax, ebx
call fcn.00401910
mov dword [esp + 0xc], str.Failed_to_restart_64_bit__s__err__lu_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 0x14], esi
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call fcn.00401ad0
jmp 0x401c5f
or edx, 0xffffffff
mov eax, ebx
call fcn.00401910
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], 0x408000
mov dword [esp], 3
call fcn.00401ad0
jmp 0x401c0d

Function at 0x401d00
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 0x401d30
test al, 0x10
je 0x401d30
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 0x401d1e
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
mov ebx, dword [ebp - 4]
leave
sete al
movzx eax, al
ret
Function at 0x401d60
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 0x401e14
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
sub esp, 4
test eax, eax
jne 0x401da0
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 0x401dba
mov ebx, 1
test al, 0x10
jne 0x401d8d
movzx eax, word [esi]
test ax, ax
je 0x401e06
mov ebx, esi
jmp 0x401ddc
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401e06
cmp ax, 0x5c
jne 0x401dd0
xor edx, edx
mov eax, esi
mov word [ebx], dx
call fcn.00401d00
test eax, eax
je 0x401d8b
mov eax, 0x5c
add ebx, 2
mov word [ebx - 2], ax
movzx eax, word [ebx]
test ax, ax
jne 0x401ddc
mov eax, esi
call fcn.00401d00
mov ebx, eax
jmp 0x401d8d
xor ebx, ebx
jmp 0x401d96

Function at 0x401f60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov edx, 0x40a06e
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x264
mov dword [ebp - 0x260], eax
call fcn.00401e20
test eax, eax
je 0x40204f
lea edi, [ebp - 0x25c]
mov esi, eax
mov dword [esp], eax
mov dword [esp + 4], 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], esi
mov dword [ebp - 0x264], eax
call eax
cmp ebx, 0xffffffff
je 0x40203d
lea esi, [ebp - 0x230]
mov dword [esp + 4], 0x40a072
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x40201d
mov dword [esp + 4], 0x40a076
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x40201d
mov eax, dword [ebp - 0x260]
mov edx, esi
call fcn.00401e20
test eax, eax
je 0x40201d
test byte [ebp - 0x25c], 0x10
je 0x402060
mov dword [ebp - 0x268], eax
call fcn.00401f60
mov edx, dword [ebp - 0x268]
mov dword [esp], edx
mov eax, dword [ebp - 0x264]
call eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401fbd
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x260]
mov dword [esp], eax
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 - 0x268], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x268]
sub esp, 4
jmp 0x402012
Function at 0x402080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x21c
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], 0x40a07c
mov dword [esp], eax
call esi
test eax, eax
jne 0x402150
mov eax, 0x25
lea edi, [ebp - 0x214]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
sub esp, 0x10
test eax, eax
je 0x4021a0
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
jne 0x402110
mov dword [esp + 4], str.inf
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsdup]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.runtime.drivers
mov dword [esp], ebx
call esi
test eax, eax
je 0x4021b8
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
jne 0x4020fe
mov dword [esp + 4], str.wbem
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x4020fe
mov dword [esp + 4], str.runtime.drivers
mov dword [esp], ebx
call esi
test eax, eax
je 0x4020a9
mov dword [esp + 4], str.runtime.wbem
mov dword [esp], ebx
call esi
test eax, eax
je 0x4020a9
mov dword [esp + 4], str.runtime.windows
mov dword [esp], ebx
call esi
test eax, eax
jne 0x402250
mov eax, 0x24
jmp 0x4020ae
test byte [section..data], 2
jne 0x4021d0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.drivers
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x4020fe
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x402238
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40a015
test edx, edx
jne 0x402204
mov edx, 0xffffffff
mov eax, ebx
call fcn.00401490
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_folder_path_for__s_n
mov dword [esp + 8], str.lookup_expression
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call fcn.00401ad0
xor eax, eax
jmp 0x4021ab
mov dword [esp + 4], ebx
mov dword [esp], 0x40a008
call fcn.004016b0
jmp 0x402204
mov dword [esp + 4], str.runtime.inf
mov dword [esp], ebx
call esi
test eax, eax
je 0x40218f
mov dword [esp + 4], str.runtime.programfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x26
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.commonfiles
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x2b
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.programdata
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x23
test edx, edx
je 0x4020ae
mov dword [esp + 4], str.runtime.fonts
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x14
test edx, edx
je 0x4020ae
test byte [section..data], 1
je 0x4021a9
or edx, 0xffffffff
mov eax, ebx
call fcn.00401910
mov dword [esp + 0xc], str.Unknown_expression__s_n
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], str.lookup_expression
mov dword [esp + 4], 0x408000
mov dword [esp], eax
call fcn.00401ad0
xor eax, eax
jmp 0x4021ab