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

Disassembly:
pop ebx
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00403c3e
sbb eax, 0x8da3c9e9
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x4053a7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x38c]
jae 0x4053e0
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
dec dword [edi]
mov esi, 0x4dbe0f00
clc
dec dword [edi]
mov esi, 0x4dbe0f00
clc
xor eax, ecx
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x405381
and dword [ebp - 0x700], 0
jmp 0x4053f6
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x688]
jae 0x405448
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x4053e9
and byte [ebp - 0x714], 0
and byte [ebp - 0x713], 0
mov byte [ebp - 0x712], 0x71
and byte [ebp - 0x711], 0
mov byte [ebp - 0x710], 0xc8
mov byte [ebp - 0x70f], 0xe2
mov byte [ebp - 0x70e], 0xe1
mov byte [ebp - 0x70d], 0xe1
mov byte [ebp - 0x70c], 0xea
mov byte [ebp - 0x70b], 0xc8
mov byte [ebp - 0x70a], 0xe7
mov byte [ebp - 0x709], 0xf6
mov byte [ebp - 0x708], 0xbc
mov byte [ebp - 0x707], 0x8e
call fcn.00403c3e
test ecx, eax
invalid

Function at 0x406d4d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406d00
add esp, 0x1c
leave
ret
Function at 0x41080b
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 0x410831
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410831
xor al, al
jmp 0x410846
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x4014e3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
test esi, esi
je 0x4014f6
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebx + 8]
test eax, eax
je 0x401503
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 8], esi
lea esi, [ebx + 0xc]
mov eax, esi
call fcn.00401698
push 0x5c
call fcn.00401726
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push 0x401606
push esi
push esi
mov dword [0x424eb8], ebx
mov dword [0x424ff0], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x425000], 2
mov dword [0x424ebc], eax
je 0x40154b
call fcn.004081ff
push 0xffffffffffffffff
push dword [0x424ebc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x424ff0]
cmp eax, esi
mov dword [0x425018], esi
je 0x40159a
cmp eax, 1
je 0x40158e
cmp eax, 2
je 0x40158a
cmp eax, 3
je 0x401586
cmp eax, 0x67
jle 0x401581
cmp eax, 0x6a
jle 0x4015fe
push eax
push 0x14
jmp 0x4015d1
push 0x12
jmp 0x401590
push 0x13
jmp 0x401590
push 0x11
push esi
call fcn.0040810a
pop ecx
pop ecx
jmp 0x4015fe
cmp dword [0x425020], esi
jne 0x4015fe
lea eax, [ebp - 4]
push eax
push dword [0x424ebc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp - 4]
je 0x4015c1
cmp ecx, esi
jne 0x4015c1
xor eax, eax
jmp 0x401603
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4015d4
push ecx
push 0x21
push esi
jmp 0x4015f6
and ecx, 0xffff
cmp ecx, 0xe
jne 0x4015e8
cmp dword [0x425004], 0xffffffff
je 0x4015fe
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
push 0x22
push 1
call fcn.0040810a
add esp, 0xc
mov eax, 0x80004005
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4019d1
xor eax, eax
jmp 0x401a24
test al, 0x10
je 0x4019e2
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x401a24
mov eax, dword [0x425008]
test eax, eax
jne 0x4019f2
call fcn.00401986
jmp 0x401a24
cmp eax, 2
jne 0x401a21
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4019eb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x4019eb
xor eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401a54
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a6a
test al, 0x10
jne 0x401a6a
push esi
jmp 0x401a4a
xor eax, eax
inc eax
pop esi
ret
Function at 0x4022b8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
call fcn.0040360f
xor ecx, ecx
lea eax, [ebp - 0x1c]
call fcn.00403662
mov esi, eax
mov eax, edi
movzx eax, word [eax + ebx*2 - 2]
cmp ax, 0x5c
je 0x4022f7
cmp ax, 0x2f
jne 0x402301
and word [esi + ebx*2 - 2], 0
dec ebx
mov dword [ebp - 8], ebx
mov edi, ebx
jmp 0x402327
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x40231a
cmp ax, 0x5c
je 0x40231a
dec edi
test edi, edi
jg 0x402305
test edi, edi
je 0x4023d8
and word [esi + edi*2], 0
push esi
call fcn.00401a29
test eax, eax
pop ecx
je 0x402316
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40235e
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.004019b2
test eax, eax
pop ecx
je 0x40235e
xor esi, esi
jmp 0x4023fd
push esi
call fcn.00401a29
test eax, eax
pop ecx
jne 0x402378
push esi
push 0xc
push 1
call fcn.0040810a
add esp, 0xc
jmp 0x402357
cmp edi, ebx
jge 0x4023ca
mov eax, dword [ebp - 8]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
lea ebx, [esi + edi*2]
push ebx
call fcn.00413db0
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4023b0
jmp 0x4023af
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x4023b6
cmp ax, 0x2f
je 0x4023b6
inc edi
cmp word [esi + edi*2], cx
jne 0x40239f
push esi
mov word [esi + edi*2], cx
call fcn.00401a29
test eax, eax
pop ecx
je 0x402369
cmp edi, dword [ebp - 8]
jl 0x40237c
push dword [ebp - 0x1c]
call fcn.0041383a
xor eax, eax
pop ecx
inc eax
jmp 0x402421
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x40240a
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x40240a
cmp ax, 0x7a
ja 0x40240a
cmp word [ecx + 2], 0x3a
jne 0x40240a
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call fcn.0041383a
pop ecx
mov eax, esi
jmp 0x402421
push ecx
push 0xc
push 1
call fcn.0040810a
push dword [ebp - 0x1c]
call fcn.0041383a
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402426
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
call fcn.0040360f
mov eax, 0x41ecf4
lea esi, [esp + 0x14]
call fcn.0040369d
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
je 0x402501
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
call fcn.00401698
push 0x5c
lea esi, [esp + 0x18]
call fcn.00401726
lea eax, [esp + 0x4c]
call fcn.0040369d
test byte [esp + 0x20], 0x10
mov edi, dword [esp + 0x14]
je 0x4024cc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x41ecfc
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x4024e0
push 0x41ed00
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x4024e0
push edi
call fcn.00402426
pop ecx
jmp 0x4024dc
push 0
push edi
call ebx
test eax, eax
je 0x402524
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402524
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402472
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call ebx
test eax, eax
je 0x402524
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402524
push edi
call fcn.0041383a
xor eax, eax
inc eax
jmp 0x40252c
push edi
call fcn.0041383a
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402534
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x425028], 0
je 0x402541
xor eax, eax
inc eax
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40253d
test al, 0x10
jne 0x402569
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402566
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
xor eax, eax
ret
push esi
call fcn.00402426
pop ecx
ret
Function at 0x402bc5
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp dword [ebp + 8], 0
jne 0x402bd5
xor eax, eax
leave
ret
test byte [0x425004], 2
mov dword [ebp - 0x44], 0x40
jne 0x402c2a
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402c2a
mov ecx, dword [ebp - 0x30]
xor eax, eax
cmp ecx, eax
ja 0x402c2a
jb 0x402c06
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 8]
jae 0x402c2a
push 0x2b
call fcn.00403364
push eax
call fcn.004080aa
cmp eax, 1
pop ecx
pop ecx
je 0x402c23
or dword [0x425004], 0xffffffff
jmp 0x402bd1
or dword [0x425004], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402f4b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
mov edi, eax
mov eax, ebx
call fcn.004018b5
lea ecx, [edi + 2]
mov eax, ebx
mov dword [ebp - 4], ecx
call fcn.00403662
mov ecx, dword [ebp - 4]
inc edi
push edi
mov eax, ebx
call fcn.00403662
push eax
push dword [ebp + 8]
call esi
mov edx, ebx
call fcn.0040367e
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x402f98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x424ff4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x402fdc
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x403002
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x402fed
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403002
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x40307c
cmp dword [0x42509c], 0
jne 0x40307a
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x42509c], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x424ff4]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x40306f
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x40307a
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403364
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x423fa0], ebx
je 0x403397
mov eax, 0x423fa0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x403397
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x423fa0]
cmp dword [eax], ebx
jne 0x403380
shl esi, 4
cmp dword [esi + 0x423fa0], ebx
jne 0x4033ac
mov eax, 0x41ed7c
jmp 0x40351c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40345c
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004137d0
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x403453
call edi
test eax, eax
jne 0x403453
mov eax, dword [esi + 0x423fac]
test eax, eax
je 0x403448
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403445
push dword [esi + 0x423fac]
call fcn.0041383a
mov dword [esi + 0x423fac], edi
jmp 0x40345b
push edi
jmp 0x403456
mov eax, dword [ebp - 8]
mov dword [esi + 0x423fac], eax
jmp 0x40345c
push dword [ebp - 8]
call fcn.0041383a
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x423fac]
test eax, eax
jne 0x40351b
mov ebx, dword [esi + 0x423fa4]
lea edi, [esi + 0x423fa8]
cmp dword [edi], eax
je 0x403491
call fcn.00403312
cmp eax, 0x419
jne 0x403491
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004137d0
cmp dword [0x424288], 0xffffffff
pop ecx
mov dword [esi + 0x423fac], eax
jne 0x4034fb
and dword [0x424288], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x424ff4]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4034fb
lea eax, [ebp - 0xa8]
push eax
call fcn.00413c63
pop ecx
mov dword [0x424288], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x423fac]
push edi
push ebx
push 0
push dword [0x424288]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x423fac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403aa4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push ebx
push esi
push edi
call fcn.00403312
push 3
call fcn.00403364
push 0x28
mov dword [0x424ee4], eax
call fcn.00403364
push 2
mov dword [0x424ee0], eax
call fcn.00403364
push 5
mov dword [0x424edc], eax
call fcn.00403364
push 0x15
mov dword [0x424ed8], eax
call fcn.00403364
push 0x16
mov dword [0x424ed4], eax
call fcn.00403364
push 0x17
mov dword [0x424ed0], eax
call fcn.00403364
add esp, 0x1c
xor esi, esi
mov dword [0x424ecc], eax
mov dword [0x424ec4], esi
mov dword [0x424ec8], esi
mov dword [ebp - 4], esi
mov ebx, 0x424274
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x2b0]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403bd5
push dword [ebp - 4]
lea eax, [ebp - 0xa0]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x1c]
call fcn.004018b5
lea eax, [ebp - 0x10]
call fcn.004018b5
lea edi, [ebp - 0xa0]
lea eax, [ebp - 0x1c]
call fcn.00401698
lea edi, [ebp - 0x2b0]
lea eax, [ebp - 0x10]
call fcn.00401698
push ebx
lea eax, [ebp - 0x1c]
call fcn.004037c5
mov eax, dword [ebp - 4]
cmp dword [esi + 0x423f78], eax
jne 0x403bb9
mov edi, dword [esi + 0x423f7c]
lea eax, [ebp - 0x1c]
call fcn.00401698
lea edi, [ebp - 0x2b0]
lea eax, [ebp - 0x10]
call fcn.00401698
push ebx
lea eax, [ebp - 0x1c]
call fcn.004037c5
add esi, 8
cmp esi, 0x28
jb 0x403b89
push dword [ebp - 0x10]
call fcn.0041383a
push dword [ebp - 0x1c]
call fcn.0041383a
pop ecx
pop ecx
xor esi, esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x40
jl 0x403b22
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403bed
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
push ebp
push edi
mov eax, esi
call fcn.004018b5
push 2
pop ecx
mov eax, esi
call fcn.00403662
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
xor ebp, ebp
cmp eax, ebp
mov word [ecx], bp
mov dword [esi + 4], ebp
jbe 0x403c31
lea ebx, [eax + 1]
mov ecx, ebx
mov eax, esi
call fcn.00403662
push eax
push ebx
call edi
mov edx, esi
call fcn.0040367e
mov eax, dword [esi + 4]
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
mov ecx, ebx
mov eax, esi
call fcn.00403662
push ebp
push dword [esp + 0x14]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, esi
call fcn.0040367e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403c71
inc ebp
cmp ebp, 0xfff
jl 0x403c3a
pop edi
pop ebp
mov eax, esi
pop ebx
ret
Function at 0x403cab
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x42427c], esi
jle 0x403cfe
push edi
mov eax, dword [0x424280]
mov edi, dword [eax + esi*4]
add edi, 0xc
lea eax, [ebp - 0xc]
call fcn.00401661
lea eax, [ebp - 0xc]
call fcn.00403c94
mov eax, dword [0x424280]
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.0041383a
inc esi
cmp esi, dword [0x42427c]
pop ecx
jl 0x403cbd
pop edi
pop esi
leave
ret
Function at 0x40607a
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
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi + 2], 0x3a
jne 0x4061dd
movzx eax, word [edi + 4]
cmp ax, 0x5c
je 0x4060a5
cmp ax, 0x2f
jne 0x4061dd
mov ax, word [edi]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov word [ebp - 0x12], 0x3a
mov word [ebp - 0x10], 0x5c
mov word [ebp - 0xe], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4061dd
push str.7ZSfx_03x.cmd
lea esi, [ebp - 0x2c]
call fcn.00403bed
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4061d4
lea eax, [ebp - 0x20]
call fcn.004018b5
mov edi, str.:Repeat_r_n
lea eax, [ebp - 0x20]
call fcn.00401698
mov eax, str.del__
lea esi, [ebp - 0x20]
call fcn.0040369d
lea edi, [ebp + 8]
call fcn.004017b9
mov ebx, 0x41ff70
mov eax, ebx
call fcn.0040369d
mov eax, str.if_exist__
call fcn.0040369d
call fcn.004017b9
mov eax, str.__goto_Repeat_r_n
call fcn.0040369d
mov eax, str.del__
call fcn.0040369d
lea edi, [ebp - 0x2c]
call fcn.004017b9
mov eax, ebx
call fcn.0040369d
push 1
mov eax, esi
lea ecx, [ebp - 0x38]
call fcn.00401929
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax]
pop ecx
xor esi, esi
push esi
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x38]
mov edi, eax
call fcn.0041383a
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x4061e9
cmp dword [ebp - 0xc], ebx
jne 0x4061e9
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push esi
push esi
push dword [ebp - 0x2c]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x20]
call fcn.0041383a
mov edi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x2c]
call fcn.0041383a
pop ecx
push edi
call fcn.0041383a
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 0x2c]
call fcn.00402534
push dword [ebp - 0x20]
call fcn.0041383a
pop ecx
push esi
call fcn.0041383a
pop ecx
push dword [ebp + 8]
jmp 0x4061de

Function at 0x4064c5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push 0x40f2c6
push eax
push eax
call fcn.00414694
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040648e
add esp, 0x1c
leave
ret
Function at 0x4085f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4085f8
mov dword [ecx*4 + 0x425220], eax
inc ecx
cmp ecx, 0x100
jb 0x4085f3
mov edx, 0x800
jmp 0x408645
mov eax, dword [ecx*4 + 0x424e20]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x425220]
inc ecx
mov dword [ecx*4 + 0x42521c], eax
cmp ecx, edx
jb 0x408624
mov dword [0x424eec], 0x41bf30
call fcn.0040dab5
test eax, eax
jne 0x408666
mov dword [0x424eec], 0x41be50
pop esi
ret