joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53be80
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x7aa008]
mov edi, eax
add esp, 8
test edi, edi
je 0x53bed7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x53beef
cmp esi, ebx
je 0x53beef
cmp esi, 0x8000
ja 0x53beef
cmp esi, ebx
jb 0x53bee8
push esi
push edi
call dword [0x7aa008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x53bea0
push ebp
call dword [0x7aa004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x7aa004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x53d2e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x128]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x53d32c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.005223c0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.0053cf00
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x53d480
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x134]
mov dword [esp + 8], eax
jne 0x53d5cf
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x53d4cd
mov byte [eax], 0xff
inc eax
mov dword [edi], eax
cmp eax, edi
jae 0x53d4cd
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x53d4cd
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WSOCK32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x53d537
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x53d537
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x53d537
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x53d537
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x53d537
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x53d537
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.0053d000
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WSOCK32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x128]
call edi
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jns 0x53d58f
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.005223c0
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.0053d350
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x128]
call edi
test eax, eax
jns 0x53d5cd
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.005223c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x53e9e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x7adbc4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x3d0]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x53ea66
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.0066c9a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x53eaa1
push str.Received_too_short_packet
push ebx
call fcn.005223c0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00669a8a
add esp, 0x88
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x53eac2
jmp dword [ecx*4 + 0x53ebcc]
cmp esi, 4
jle case.0x53eac2.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x53eac2.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.00522320
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53eb1d
push 5
push edi
call fcn.0053f4e0
add esp, 8
mov eax, esi
jmp 0x53ea88
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.0052f590
jmp 0x53eba3
movzx ecx, byte [edx + 2]
lea ebp, [edx + 4]
movzx eax, byte [edx + 3]
add esi, 0xfffffffc
shl ecx, 8
or ecx, eax
push esi
push ebp
mov dword [edi + 8], ecx
call fcn.0053f550
add esp, 8
cmp eax, esi
jae case.0x53eac2.4
push ebp
push str.TFTP_error:__s
push ebx
call fcn.00522490
jmp 0x53eba3
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0053e790
add esp, 0xc
test eax, eax
je case.0x53eac2.4
jmp 0x53ea88
push str.Internal_error:_Unexpected_packet
push 0x771868
push ebx
call fcn.005223c0
add esp, 0xc
push ebx
call fcn.0052f990
add esp, 4
test eax, eax
je 0x53ea86
push 5
push edi
call fcn.0053f4e0
add esp, 8
mov eax, 0x2a
jmp 0x53ea88
Function at 0x557b30
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x7adbc4]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.0068a060
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x557baf
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005317e0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.005223c0
push esi
call dword [0x7aa004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x557d0f
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x557c09
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005317e0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.005223c0
push 0
mov esi, 0x4d
call dword [0x7aa004]
add esp, 0x20
jmp 0x557d01
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x557c49
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005317e0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.005223c0
add esp, 0x1c
mov esi, 0x4d
jmp 0x557ced
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x557c77
jg 0x557c5d
cmp edi, 0x100000
jbe 0x557c77
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.005223c0
add esp, 0xc
mov esi, 0x4d
jmp 0x557ced
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x557c8f
lea esi, [eax + 0x1b]
jmp 0x557ced
test edi, edi
je 0x557cd4
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x557d2c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x557d28
add esi, eax
cmp esi, edi
jb 0x557ca0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00557930
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x7aa004]
add esp, 4
push dword [esp + 0x20]
call fcn.0067bcf9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00669a8a
add esp, 0x120
ret
mov edi, esi
jmp 0x557cd4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005317e0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.005223c0
add esp, 0x1c
mov esi, 0x4d
jmp 0x557ced
Function at 0x5961a0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.005cb100
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0066bd00
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x59623b
push edi
push 0x770592
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.005a4dc0
push 0x704af0
push esi
push 0x70ef60
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.005a4420
add esp, 0x2c
call fcn.0067aa15
cmp dword [eax], 2
je 0x59621c
call fcn.0067aa15
cmp dword [eax], 6
lea eax, [edi + 2]
jne 0x596221
mov eax, 0x80
push 0
push 0x770592
push eax
push 0x6d
push 0x20
call fcn.005a4dc0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x70ef20
call fcn.005955e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x59625d
push edi
call fcn.006837e5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00594f90
push edi
push ebx
push 0x6a
push esi
call fcn.00594fc0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x65c8b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x69316f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00692e20

Function at 0x69317a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00692faa

Function at 0x697e59
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006979ac
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x61390d29
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x56676f82
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401080
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x220]
push ebx
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
test eax, eax
je 0x40114a
mov dword [esp], 0xc
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
call edi
mov ebx, eax
test eax, eax
je 0x40114a
mov dword [esp], 0x230
call edi
mov dword [ebx + 8], eax
mov edx, eax
test eax, eax
je 0x401183
mov edi, dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x40110e
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 0x401160
mov edx, dword [ebx + 8]
mov eax, dword [section..bss]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x40b000
add eax, 1
mov dword [esp], esi
mov dword [section..bss], eax
mov dword [esp + 8], eax
call edi
sub esp, 0x10
test eax, eax
jne 0x4010f0
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 edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x22c]
lea eax, [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov edx, dword [ebx + 8]
mov dword [ecx + 0xc], ebx
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x22c], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x22c]
jmp 0x40114c
Function at 0x401340
Capabilities:
Extract cabinet on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x24]
push ebx
sub esp, 0x5c
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x4011a0
mov dword [esp + 0x14], 0x401000
mov dword [esp + 0x10], 0x4011e0
mov dword [esp + 0xc], 0x401240
mov dword [esp + 8], 0x4012a0
mov dword [esp + 4], 0x401040
mov dword [esp], 0x401060
call sub.cabinet.dll_FDICreate
test eax, eax
je 0x4014a0
mov ebx, eax
test esi, esi
je 0x4014b0
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x34], 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 - 0x30], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x4014b0
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
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 - 0x2c]
sub esp, 0x20
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x402180
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 0x401486
Function at 0x401c40
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 - 0x260]
lea esi, [ebp - 0x264]
push ebx
mov edi, edx
lea ebx, [ebp - 0x220]
sub esp, 0x2ac
mov dword [ebp - 0x27c], 1
rep stosd dword es:[edi], eax
mov dword [esp], ebx
mov dword [ebp - 0x264], 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 - 0x278]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x274]
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 0x401d90
test byte [section..data], 8
jne 0x401dda
mov eax, dword [ebp - 0x274]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0x27c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x274]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
push edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x270]
push ecx
mov dword [esp], eax
call ebx
push ebx
mov eax, dword [ebp - 0x278]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov eax, dword [ebp - 0x27c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
test byte [section..data], 2
je 0x401d6f
mov eax, dword fs:[0x18]
or edx, 0xffffffff
mov esi, dword [eax + 0x34]
mov eax, ebx
call fcn.00401a30
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 fcn.00401bf0
jmp 0x401d6f
or edx, 0xffffffff
mov eax, ebx
call fcn.00401a30
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 fcn.00401bf0
jmp 0x401d1d

Function at 0x401e20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x401e50
test al, 0x10
je 0x401e50
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 0x401e3e
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
mov ebx, dword [ebp - 4]
leave
sete al
movzx eax, al
ret
Function at 0x401e80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
xor ebx, ebx
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
test eax, eax
je 0x401eb4
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
sub esp, 4
test eax, eax
jne 0x401ec0
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 0x401eda
mov ebx, 1
test al, 0x10
jne 0x401eab
movzx eax, word [esi]
mov ebx, esi
test ax, ax
jne 0x401efc
jmp 0x401f26
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401f26
cmp ax, 0x5c
jne 0x401ef0
xor edx, edx
mov eax, esi
mov word [ebx], dx
call fcn.00401e20
test eax, eax
je 0x401ea9
mov eax, 0x5c
add ebx, 2
mov word [ebx - 2], ax
movzx eax, word [ebx]
test ax, ax
jne 0x401efc
mov eax, esi
call fcn.00401e20
mov ebx, eax
jmp 0x401eab

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

Disassembly:
test eax, eax
je 0x402170
push ebp
mov edx, 0x40b06e
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x27c
call fcn.00401f40
mov edi, eax
test eax, eax
je 0x40213f
lea eax, [ebp - 0x268]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], edi
mov dword [ebp - 0x26c], eax
call eax
cmp esi, 0xffffffff
je 0x402133
lea edi, [ebp - 0x23c]
mov dword [esp + 4], 0x40b072
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x40210d
mov dword [esp + 4], 0x40b076
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x40210d
mov edx, edi
mov eax, ebx
call fcn.00401f40
test eax, eax
je 0x40210d
test byte [ebp - 0x268], 0x10
je 0x402150
mov dword [ebp - 0x270], eax
call fcn.00402050
mov edx, dword [ebp - 0x270]
mov dword [esp], edx
mov eax, dword [ebp - 0x26c]
call eax
lea eax, [ebp - 0x268]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x4020b1
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov dword [esp], ebx
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 - 0x270], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x270]
sub esp, 4
jmp 0x402102
ret
Function at 0x402a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c], ecx
call fcn.004028b0
mov ecx, dword [edi + 0x10]
mov ebx, eax
test ecx, ecx
je 0x402af8
test eax, eax
je 0x402bb0
cmp word [ebx], 0
mov eax, ebx
je 0x402bc0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402ac8
sub eax, ebx
add eax, 2
mov edx, dword [ebp + 8]
test edx, edx
je 0x402b05
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
test eax, eax
jne 0x402ab9
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
jne 0x402add
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
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 0x402add
xor esi, esi
test byte [section..data], 2
je 0x402ae2
mov esi, dword [edi + 8]
test esi, esi
je 0x402bdf
mov eax, esi
shr eax, 0x10
je 0x402bca
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40b015
test edx, edx
jne 0x402b7b
mov edx, 0xffffffff
mov eax, esi
call fcn.00401550
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 fcn.00401bf0
jmp 0x402ae2
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x402ad6
movzx esi, si
mov dword [esp], 0x40b008
mov dword [esp + 4], esi
call fcn.00401760
jmp 0x402b7b
mov eax, 0x40b00e
jmp 0x402b7b
Function at 0x4094a0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x409510
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00406400
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]