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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.0042c170
push dword [edi + 0x40]
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.0042e4f2
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0x436d4c
push esi
push eax
mov dword [edi + 0x40], 0
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ebx, dword [ebp - 4]
add esp, 0x10
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x42cd5b
test eax, eax
jne 0x42cd5b
mov ecx, edi
call fcn.0042c170
push dword [edi + 0x40]
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.0042e4f2
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push ebx
mov dword [edi + 0x40], 0
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov ebx, eax
call esi
add esp, 0x20
test ebx, ebx
je 0x42cd43
lea ecx, [ebx + 1]
push ecx
call fcn.0042e56d
push dword [ebp + 8]
mov dword [edi + 0x40], eax
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
cmp eax, ebx
je 0x42ccd3
mov dword [edi + 0x30], 5
jmp 0x42cd35
mov eax, dword [edi + 0x40]
mov byte [ebx + eax], 0
push dword [edi + 0x40]
call fcn.0042de40
mov ecx, eax
mov byte [edi + 0x2c], 0
add esp, 4
cmp byte [ecx], 0xef
jne 0x42cd03
cmp byte [ecx + 1], 0xbb
jne 0x42cd03
cmp byte [ecx + 2], 0xbf
jne 0x42cd03
mov byte [edi + 0x2c], 1
add ecx, 3
test ecx, ecx
je 0x42cd2e
cmp byte [ecx], 0
je 0x42cd2e
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x3c]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [edi + 0x30]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [edi + 0x30]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x38], esi
mov eax, 3
mov dword [edi + 0x30], 3
mov dword [edi + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42ed8d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42edcc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42edcc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42edcc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42edcc
cmp dword [ecx + 0x74], 0xe
jbe 0x42edcc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401b98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
lea ecx, [ebp - 0xc]
call fcn.0040e457
lea ecx, [ebp - 0x18]
call fcn.0040e457
push 0x3c
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00416e30
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, 0x740
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], 0xa
test bl, 1
je 0x401bf0
mov ecx, 0x8740
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], ecx
test bl, 2
mov eax, str.runas
cmove eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
and ebx, 0x10000
jne 0x401c10
or ecx, 0x100
mov dword [ebp - 0x50], ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00403800
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e589
cmp dword [ebp - 8], esi
je 0x401c5e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401c61
test ebx, ebx
jne 0x401c55
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.0041a3c0
push dword [ebp - 0xc]
call fcn.0041a3c0
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x401d61
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040239c
xor edi, edi
mov dword [0x421508], esi
lea eax, [ebp - 4]
mov dword [0x421510], edi
push eax
push edi
push esi
push 0x401ecf
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, eax
mov dword [0x42150c], edx
test edx, edx
je 0x401dc1
cmp dword [0x421538], 2
je 0x401db2
call fcn.00405f27
mov edx, dword [0x42150c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x42150c]
mov eax, dword [0x421510]
mov dword [0x4215f4], edi
test eax, eax
je 0x401e03
cmp eax, 1
je 0x401df7
cmp eax, 2
je 0x401df3
cmp eax, 3
je 0x401def
cmp eax, 0x67
jle 0x401de9
cmp eax, 0x6a
jle 0x401e67
push eax
push 0x14
push edi
jmp 0x401e5f
push 0x12
jmp 0x401df9
push 0x13
jmp 0x401df9
push 0x11
push edi
call fcn.00407280
pop ecx
pop ecx
jmp 0x401e67
mov ecx, edi
mov dword [ebp + 8], ecx
cmp dword [0x4215f8], ecx
jne 0x401e67
test edx, edx
je 0x401e2e
lea eax, [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x401e2e
test ecx, ecx
jne 0x401e2e
xor eax, eax
jmp 0x401e6c
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x401e40
push ecx
push 0x21
jmp 0x401dec
movzx eax, cx
cmp eax, 0xe
jne 0x401e51
cmp dword [0x42153c], 0xffffffff
je 0x401e67
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00407280
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4
Function at 0x402648
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
mov edi, eax
call fcn.0040e420
xor esi, esi
lea ecx, [ebp - 0x18]
push esi
call fcn.00402f39
push 0x2f
mov ebx, eax
mov eax, dword [ebp + 8]
pop ecx
push 0x5c
pop edx
movzx eax, word [eax + edi*2 - 2]
cmp ax, dx
je 0x40268e
cmp ax, cx
jne 0x4026c2
xor eax, eax
mov word [ebx + edi*2 - 2], ax
dec edi
mov dword [ebp - 4], edi
jmp 0x4026c2
test edi, edi
jle 0x4026ba
push 0x2f
pop ecx
push 0x5c
pop edx
movzx eax, word [ebx + edi*2]
cmp ax, cx
je 0x4026b8
cmp ax, dx
je 0x4026b8
dec edi
test edi, edi
jg 0x4026a5
test edi, edi
je 0x402717
xor eax, eax
mov word [ebx + edi*2], ax
push ebx
call fcn.004040b7
pop ecx
test eax, eax
je 0x40269b
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4026f6
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0040325a
pop ecx
pop ecx
test eax, eax
jne 0x40279b
push ebx
call fcn.004040b7
pop ecx
test eax, eax
jne 0x402791
push ebx
push 0xc
push 1
call fcn.00407280
add esp, 0xc
jmp 0x40279b
cmp dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
jne 0x402738
mov ax, word [ecx]
or ax, 0x20
sub ax, 0x61
cmp ax, 0x19
ja 0x402738
cmp word [ecx + 2], 0x3a
je 0x402798
push ecx
jmp 0x402706
sub eax, edi
lea esi, [ebx + edi*2]
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
push esi
call fcn.00416fc0
xor ecx, ecx
lea eax, [edi + 1]
add esp, 0xc
cmp word [esi], cx
cmove eax, edi
mov edi, eax
jmp 0x402775
movzx eax, cx
push 0x5c
pop ecx
cmp ax, cx
je 0x402780
push 0x2f
pop ecx
cmp ax, cx
je 0x402780
inc edi
movzx eax, word [ebx + edi*2]
mov ecx, eax
test ax, ax
jne 0x402761
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call fcn.004040b7
pop ecx
test eax, eax
je 0x4027ab
mov eax, dword [ebp - 4]
cmp edi, eax
jl 0x40273b
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.0041a3c0
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push ebx
push 0xc
push 1
call fcn.00407280
add esp, 0xc
xor esi, esi
jmp 0x40279b
Function at 0x402ac3
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0040e457
push 2
mov ecx, edi
call fcn.00402f39
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
xor ebx, ebx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], ebx
mov word [eax], cx
test esi, esi
je 0x402b1a
inc esi
mov ecx, edi
push esi
call fcn.00402f39
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [edi]
push esi
call fcn.004039dd
pop ecx
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov esi, dword [edi + 4]
mov dword [ebp + 8], esi
lea eax, [esi + 0xf]
push eax
mov ecx, edi
call fcn.00402f39
push ebx
push dword [ebp + 0xc]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [edi]
push esi
call fcn.004039dd
add esp, 0x10
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402b69
mov esi, dword [ebp + 8]
inc ebx
lea eax, [esi + 0xf]
cmp ebx, 0xfff
jl 0x402b23
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402b9f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040e420
push 0x41c878
lea ecx, [ebp - 0xc]
call fcn.0040e6f7
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x402c7b
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040e589
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004013e1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e6f7
test byte [ebp - 0x25c], 0x10
je 0x402c43
push 0x41c880
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c5e
push 0x41c884
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c5e
push dword [ebp - 0xc]
call fcn.00402b9f
pop ecx
jmp 0x402c5a
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402ca5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402ca5
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402bdf
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x42155c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402ca5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402ca5
xor esi, esi
inc esi
push dword [ebp - 0xc]
call fcn.0041a3c0
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402cb4
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402cd7
xor eax, eax
inc eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x402d05
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402d01
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret
xor eax, eax
leave
ret
push dword [ebp + 8]
call fcn.00402b9f
pop ecx
leave
ret
Function at 0x4030a0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x421090]
sub esp, 0xa0
push esi
push edi
xor edi, edi
mov esi, edi
jmp 0x4030c7
cmp eax, dword [ebp + 8]
je 0x4030cb
inc esi
mov eax, esi
shl eax, 4
mov eax, dword [eax + 0x421090]
test eax, eax
jne 0x4030b6
shl esi, 4
cmp dword [esi + 0x421090], edi
jne 0x4030e0
mov eax, 0x41c7c4
jmp 0x403256
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x60]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x60]
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
mov dword [ebp - 4], edi
call ebx
push 2
pop edx
test eax, eax
jne 0x40318a
xor ecx, ecx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a3c5
pop ecx
mov ecx, dword [ebp - 4]
mov edi, eax
inc ecx
lea eax, [ebp - 0x60]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
ja 0x403183
call ebx
test eax, eax
jne 0x403183
mov eax, dword [esi + 0x42109c]
test eax, eax
je 0x40317b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403183
push 2
pop eax
push eax
push dword [esi + 0x42109c]
call fcn.0041a3b2
pop ecx
mov dword [esi + 0x42109c], edi
jmp 0x403189
mov dword [esi + 0x42109c], edi
jmp 0x40318a
push edi
call fcn.0041a3c0
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x42109c]
test eax, eax
jne 0x403255
mov ebx, dword [esi + 0x421094]
cmp dword [esi + 0x421098], eax
je 0x4031c2
call fcn.004035df
cmp eax, dword [0x41c980]
jne 0x4031c2
mov ebx, dword [esi + 0x421098]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
push 2
pop edx
lea edi, [eax + 1]
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a3c5
pop ecx
mov ecx, dword [0x42108c]
mov dword [esi + 0x42109c], eax
cmp ecx, 0xffffffff
jne 0x40323a
and dword [0x42108c], 0
lea eax, [ebp - 0xa0]
push 0x1f
push eax
movzx eax, word [0x421514]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403234
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
pop ecx
mov ecx, eax
mov dword [0x42108c], ecx
jmp 0x40323a
mov ecx, dword [0x42108c]
lea eax, [edi + 1]
push eax
push dword [esi + 0x42109c]
push edi
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x42109c]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4035df
Capabilities:
Identify system language via api

Disassembly:
mov dx, word [0x421514]
test dx, dx
jne 0x403649
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, ax
mov word [0x421514], ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
je 0x40360c
movzx eax, ax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x403642
push esi
mov esi, dword [0x41c980]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edx, word [0x421514]
cmp eax, esi
movzx ecx, si
cmove edx, ecx
mov word [0x421514], dx
pop esi
jmp 0x403649
mov dx, word [0x421514]
movzx eax, dx
ret

Function at 0x4038f5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.0040e457
mov ecx, dword [ebp + 8]
lea esi, [edi + 2]
push esi
call fcn.00402f39
lea eax, [edi + 1]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.00402f39
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [edi]
push esi
call fcn.004039dd
pop ecx
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, edi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4040f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4040e4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4040fc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4040f9
test al, 0x10
jne 0x4040f9
push esi
jmp 0x4040da
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x4042ae
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
push ebx
push edi
push 0x3a
pop edx
cmp word [eax + 2], dx
jne 0x404430
movzx ecx, word [eax + 4]
push esi
push 0x5c
pop esi
cmp cx, si
je 0x4042dc
cmp ecx, 0x2f
jne 0x40442f
mov ax, word [eax]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], dx
mov word [ebp - 8], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40442c
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00402ac3
pop ecx
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404423
lea ecx, [ebp - 0x18]
call fcn.0040e457
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0040e589
mov ebx, str.del__
lea ecx, [ebp - 0x18]
push ebx
call fcn.0040e6f7
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e6b9
mov esi, 0x41d530
lea ecx, [ebp - 0x18]
push esi
call fcn.0040e6f7
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.0040e6f7
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e6b9
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0040e6f7
push ebx
lea ecx, [ebp - 0x18]
call fcn.0040e6f7
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e6b9
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e6f7
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404147
add esp, 0xc
lea ecx, [ebp - 4]
xor ebx, ebx
push ebx
push ecx
push esi
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call fcn.0041a3c0
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40443b
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x40443b
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call fcn.0041a3c0
pop ecx
push dword [ebp - 0x24]
call fcn.0041a3c0
pop ecx
mov eax, dword [ebp + 8]
pop esi
push eax
call fcn.0041a3c0
pop ecx
pop edi
pop ebx
leave
ret
push dword [ebp - 0x24]
call fcn.00402cb4
push dword [ebp - 0x18]
call fcn.0041a3c0
push dword [ebp - 0x24]
call fcn.0041a3c0
add esp, 0xc
jmp 0x40442c
Function at 0x404ae8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x4215d4], esi
jle 0x404b3c
mov eax, dword [0x4215d0]
lea ecx, [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.0040e3ef
lea eax, [ebp - 0xc]
push eax
call fcn.0040478e
mov eax, dword [0x4215d0]
pop ecx
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call fcn.0041a3c0
inc esi
pop ecx
cmp esi, dword [0x4215d4]
jl 0x404af9
pop esi
leave
ret

Function at 0x404b55
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 0x41d3fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42154c], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040768f
push 3
call fcn.004030a0
push 2
mov dword [0x42151c], eax
call fcn.004030a0
push 5
mov dword [0x421518], eax
call fcn.004030a0
push 0x15
mov dword [0x421524], eax
call fcn.004030a0
push 0x16
mov dword [0x421528], eax
call fcn.004030a0
push 0x17
mov dword [0x42152c], eax
call fcn.004030a0
add esp, 0x18
mov dword [0x421534], eax
xor ebx, ebx
mov dword [0x421530], ebx
mov esi, ebx
mov dword [0x421520], ebx
push ebx
push esi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404c38
push esi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00404033
add esp, 0x18
mov edi, ebx
cmp dword [edi + 0x41d2f8], esi
jne 0x404c30
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [edi + 0x41d2fc]
call fcn.00404033
add esp, 0xc
add edi, 8
cmp edi, 0x28
jb 0x404c12
inc esi
cmp esi, 0x40
jl 0x404bd7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406661
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov esi, 0x4b6
push eax
push esi
mov edi, ecx
call fcn.00405f99
mov eax, dword [ebp - 4]
mov ecx, edi
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push esi
mov dword [edi + 0x58], eax
call fcn.0040744d
push 1
lea ebx, [esi + 1]
mov ecx, edi
push ebx
call fcn.0040744d
mov esi, 0x2b4
lea eax, [ebp - 0x2c4]
push esi
push 0
push eax
call fcn.00416e30
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push esi
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push ebx
push dword [edi + 4]
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x405953
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.004061cd
mov ecx, edi
mov esi, eax
call fcn.00406fa9
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40768f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x407697
mov dword [edx*4 + 0x421d20], ecx
inc edx
cmp edx, 0x100
jb 0x407692
mov esi, 0x800
jmp 0x4076df
mov ecx, dword [edx*4 + 0x421920]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x421d20]
mov dword [edx*4 + 0x421d20], ecx
inc edx
cmp edx, esi
jb 0x4076c3
mov eax, 0x41b5c0
mov esi, 0x41b4e0
mov dword [0x421d04], eax
mov dword [0x421cfc], eax
mov dword [0x421d00], esi
call fcn.0040ceb3
mov ecx, dword [0x421cfc]
test eax, eax
cmove ecx, esi
mov dword [0x421cfc], ecx
pop esi
ret
Function at 0x40d1d7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d1fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d1fd
xor al, al
jmp 0x40d211
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40f42f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x40f45c
call fcn.0040f3d2
mov esi, eax
mov eax, esi
pop esi
leave
ret

Function at 0x40f49f
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x40f4b6
push ebx
call fcn.0040f319
pop ecx
test eax, eax
jne 0x40f4f8
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x40f4ca
push edi
call fcn.0040f319
pop ecx
test eax, eax
jne 0x40f4f7
push ebx
call fcn.0040f39a
push edi
call fcn.0040f39a
lea eax, [esi + 0xc]
mov byte [esi + 0x10], 0
cmp dword [eax], 0
pop ecx
pop ecx
je 0x40f4e8
xor eax, eax
jmp 0x40f4f7
push esi
push 0x40f461
push eax
call fcn.0040f42f
add esp, 0xc
pop edi
pop esi
pop ebx
ret