joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f3ce4
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.001f1b0b
xor esi, esi
lea ecx, [ebp - 0x18]
push esi
call fcn.001f4678
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 0x1f3d2a
cmp ax, cx
jne 0x1f3d5e
xor eax, eax
mov word [ebx + edi*2 - 2], ax
dec edi
mov dword [ebp - 4], edi
jmp 0x1f3d5e
test edi, edi
jle 0x1f3d56
push 0x2f
pop ecx
push 0x5c
pop edx
movzx eax, word [ebx + edi*2]
cmp ax, cx
je 0x1f3d54
cmp ax, dx
je 0x1f3d54
dec edi
test edi, edi
jg 0x1f3d41
test edi, edi
je 0x1f3db3
xor eax, eax
mov word [ebx + edi*2], ax
push ebx
call fcn.001f5f2b
pop ecx
test eax, eax
je 0x1f3d37
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 0x1f3d92
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.001f49f6
pop ecx
pop ecx
test eax, eax
jne 0x1f3e37
push ebx
call fcn.001f5f2b
pop ecx
test eax, eax
jne 0x1f3e2d
push ebx
push 0xc
push 1
call fcn.001fa588
add esp, 0xc
jmp 0x1f3e37
cmp dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
jne 0x1f3dd4
mov ax, word [ecx]
or ax, 0x20
sub ax, 0x61
cmp ax, 0x19
ja 0x1f3dd4
cmp word [ecx + 2], 0x3a
je 0x1f3e34
push ecx
jmp 0x1f3da2
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.00207800
xor ecx, ecx
lea eax, [edi + 1]
add esp, 0xc
cmp word [esi], cx
cmove eax, edi
mov edi, eax
jmp 0x1f3e11
movzx eax, cx
push 0x5c
pop ecx
cmp ax, cx
je 0x1f3e1c
push 0x2f
pop ecx
cmp ax, cx
je 0x1f3e1c
inc edi
movzx eax, word [ebx + edi*2]
mov ecx, eax
test ax, ax
jne 0x1f3dfd
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call fcn.001f5f2b
pop ecx
test eax, eax
je 0x1f3e46
mov eax, dword [ebp - 4]
cmp edi, eax
jl 0x1f3dd7
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.001f13e3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push ebx
push 0xc
push 1
call fcn.001fa588
add esp, 0xc
xor esi, esi
jmp 0x1f3e37
Function at 0x1f41c3
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.001f1374
push 2
mov ecx, edi
call fcn.001f4678
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebx, ebx
mov ecx, edi
push ebx
mov esi, eax
call fcn.001f2112
test esi, esi
je 0x1f420d
inc esi
mov ecx, edi
push esi
call fcn.001f4678
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
call fcn.001f5897
mov ecx, edi
call fcn.001f15ba
mov esi, eax
lea eax, [esi + 0xf]
push eax
mov ecx, edi
call fcn.001f4678
push ebx
push dword [ebp + 0xc]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, edi
call fcn.001f5897
mov ecx, edi
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1f4258
inc ebx
lea eax, [esi + 0xf]
cmp ebx, 0xfff
jl 0x1f4219
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1f425f
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
lea ecx, [ebp - 0xc]
push ebx
push esi
push dword [ebp + 8]
call fcn.001f1b0b
push 0x217c04
lea ecx, [ebp - 0xc]
call fcn.0020312f
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc]
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x1f4353
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.001f141b
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.001f1b20
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0020312f
test byte [ebp - 0x25c], 0x10
je 0x1f430f
push 0x217c0c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1f4336
push 0x217c10
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1f4336
lea ecx, [ebp - 0xc]
call fcn.001f1430
push eax
call fcn.001f425f
pop ecx
jmp 0x1f4332
push esi
lea ecx, [ebp - 0xc]
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1f4382
lea ecx, [ebp - 0xc]
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1f4382
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1f42a5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x221ed8
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1f4382
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1f4382
xor esi, esi
inc esi
lea ecx, [ebp - 0xc]
call fcn.001f13e3
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1f4390
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x222010], 0
jne 0x1f43f0
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1f43f0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x1f43e5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1f43e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret
xor eax, eax
leave
ret
push dword [ebp + 8]
call fcn.001f425f
pop ecx
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x1f483d
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2210c0]
sub esp, 0xa0
push esi
push edi
xor edi, edi
mov esi, edi
jmp 0x1f4864
cmp eax, dword [ebp + 8]
je 0x1f4868
inc esi
mov eax, esi
shl eax, 4
mov eax, dword [eax + 0x2210c0]
test eax, eax
jne 0x1f4853
shl esi, 4
cmp dword [esi + 0x2210c0], edi
jne 0x1f487d
mov eax, 0x217a4c
jmp 0x1f49f2
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 0x1f4927
xor ecx, ecx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0020b610
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 0x1f4920
call ebx
test eax, eax
jne 0x1f4920
mov eax, dword [esi + 0x2210cc]
test eax, eax
je 0x1f4918
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1f4920
push 2
pop eax
push eax
push dword [esi + 0x2210cc]
call fcn.0020b602
pop ecx
mov dword [esi + 0x2210cc], edi
jmp 0x1f4926
mov dword [esi + 0x2210cc], edi
jmp 0x1f4927
push edi
call fcn.0020b619
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x2210cc]
test eax, eax
jne 0x1f49f1
mov ebx, dword [esi + 0x2210c4]
cmp dword [esi + 0x2210c8], eax
je 0x1f495f
call fcn.001f4e3e
cmp eax, dword [0x217e0c]
jne 0x1f495f
mov ebx, dword [esi + 0x2210c8]
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.0020b610
pop ecx
mov ecx, dword [0x2210bc]
mov dword [esi + 0x2210cc], eax
cmp ecx, 0xffffffff
jne 0x1f49d6
and dword [0x2210bc], 0
lea eax, [ebp - 0xa0]
push 0x1f
push eax
movzx eax, word [0x221e68]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x1f49d0
lea eax, [ebp - 0xa0]
push eax
call fcn.0020cdfd
pop ecx
mov ecx, eax
mov dword [0x2210bc], ecx
jmp 0x1f49d6
mov ecx, dword [0x2210bc]
lea eax, [edi + 1]
push eax
push dword [esi + 0x2210cc]
push edi
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x2210cc]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1f4e3e
Capabilities:
Identify system language via api

Disassembly:
mov dx, word [0x221e68]
test dx, dx
jne 0x1f4ea8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, ax
mov word [0x221e68], ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
je 0x1f4e6b
movzx eax, ax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x1f4ea1
push esi
mov esi, dword [0x217e0c]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edx, word [0x221e68]
cmp eax, esi
movzx ecx, si
cmove edx, ecx
mov word [0x221e68], dx
pop esi
jmp 0x1f4ea8
mov dx, word [0x221e68]
movzx eax, dx
ret

Function at 0x1f4ff5
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1f5048
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x1f5322
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x221e68]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x1f5366
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x1f538c
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1f5377
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1f538c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x1f53f9
cmp dword [0x221e74], 0
jne 0x1f53f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x221eb8]
mov dword [0x221e74], 1
call edi
movzx ecx, word [0x221e68]
xor ebx, ebx
push ebx
push 0x409
push ebx
push ecx
mov esi, eax
lea eax, [ebp - 0x40]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x1f53ee
push str.SetThreadPreferredUILanguages
push dword [0x221eb8]
call edi
mov esi, eax
test esi, esi
je 0x1f53f7
push ebx
lea eax, [ebp - 0x40]
push eax
push 4
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1f54cb
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.001f1374
mov ecx, dword [ebp + 8]
lea esi, [edi + 2]
push esi
call fcn.001f4678
lea ecx, [edi + 1]
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.001f4678
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp + 8]
call fcn.001f5897
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x1f5f2b
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 0x1f5f6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x1f5f58
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1f5f70
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1f5f6d
test al, 0x10
jne 0x1f5f6d
push esi
jmp 0x1f5f4e
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x1f629f
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, 0x30
lea ecx, [ebp + 8]
push esi
call fcn.001f1430
push 0x3a
pop esi
cmp word [eax + 2], si
jne 0x1f6454
movzx ecx, word [eax + 4]
push 0x5c
pop edx
cmp cx, dx
je 0x1f62d0
cmp ecx, 0x2f
jne 0x1f6454
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], si
mov word [ebp - 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1f6454
push ebx
push edi
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.001f41c3
pop ecx
pop ecx
xor eax, eax
lea ecx, [ebp - 0x24]
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1f644a
lea ecx, [ebp - 0x18]
call fcn.001f1374
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.001f141b
mov ebx, str.del__
lea ecx, [ebp - 0x18]
push ebx
call fcn.0020312f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.002030f7
mov esi, 0x218d24
lea ecx, [ebp - 0x18]
push esi
call fcn.0020312f
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.0020312f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.002030f7
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0020312f
push ebx
lea ecx, [ebp - 0x18]
call fcn.0020312f
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.002030f7
push esi
lea ecx, [ebp - 0x18]
call fcn.0020312f
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.001f15ba
push eax
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.001f5fd1
add esp, 0xc
mov ecx, eax
call fcn.001f390a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.001f13e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1f6433
lea ecx, [ebp - 0x18]
call fcn.001f15ba
cmp dword [ebp - 4], eax
jne 0x1f6433
push ebx
lea ecx, [ebp + 8]
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x24]
call fcn.001f1430
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1f6442
lea ecx, [ebp - 0x24]
call fcn.001f1430
push eax
call fcn.001f4390
pop ecx
lea ecx, [ebp - 0x18]
call fcn.001f13e3
lea ecx, [ebp - 0x24]
call fcn.001f13e3
pop edi
pop ebx
lea ecx, [ebp + 8]
call fcn.001f13e3
pop esi
leave
ret
Function at 0x1f6bf2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, 0x221fd4
xor esi, esi
mov ecx, edi
call fcn.001f6031
test eax, eax
jle 0x1f6c5d
push esi
mov ecx, edi
call fcn.001f2be9
add eax, 0xc
lea ecx, [ebp - 0xc]
push eax
call fcn.001f2b2d
lea eax, [ebp - 0xc]
push eax
call fcn.001f681b
pop ecx
lea ecx, [ebp - 0xc]
call fcn.001f1430
push eax
push esi
mov ecx, edi
call fcn.001f2be9
mov ecx, eax
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0xc]
call fcn.001f13e3
mov ecx, edi
inc esi
call fcn.001f6031
cmp esi, eax
jl 0x1f6c0c
pop edi
pop esi
leave
ret

Function at 0x1f6c7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 0x218a74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x221eb8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.001fadf3
call fcn.001f4e3e
push 3
call fcn.001f483d
push 0x28
mov dword [0x221e7c], eax
call fcn.001f483d
push 2
mov dword [0x221ebc], eax
call fcn.001f483d
push 5
mov dword [0x221e78], eax
call fcn.001f483d
push 0x15
mov dword [0x221e84], eax
call fcn.001f483d
push 0x16
mov dword [0x221e88], eax
call fcn.001f483d
push 0x17
mov dword [0x221e8c], eax
call fcn.001f483d
add esp, 0x1c
mov dword [0x221e94], eax
xor ebx, ebx
mov dword [0x221e90], ebx
mov esi, ebx
mov dword [0x221e80], ebx
push ebx
push esi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1f6d70
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.001f5eb3
add esp, 0x18
mov edi, ebx
cmp dword [edi + 0x2213c4], esi
jne 0x1f6d68
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [edi + 0x2213c8]
call fcn.001f5eb3
add esp, 0xc
add edi, 8
cmp edi, 0x28
jb 0x1f6d4a
inc esi
cmp esi, 0x40
jl 0x1f6d0f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1f8091
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 fcn.0020d476
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.001f7fbc
add esp, 0x1c
leave
ret

Function at 0x1f829f
Capabilities:
Set current directory

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, 0x221ed8
mov ecx, edi
call fcn.001f1430
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esi, 4
mov ecx, esi
call fcn.001f4f15
test al, al
jne 0x1f82df
push edi
push esi
call fcn.001f8111
pop ecx
pop ecx
test al, al
je 0x1f82df
mov ecx, esi
call fcn.001f1430
push eax
call fcn.001f4390
pop ecx
mov ecx, esi
call fcn.001f2213
pop edi
mov al, 1
pop esi
ret

Function at 0x1f8623
Capabilities:
Create thread

Disassembly:
add ecx, 0x38
jmp 0x1fa747
push esi
mov esi, ecx
call fcn.001f8fda
test eax, eax
jne 0x1fa765
push eax
push eax
push esi
push 0x1fa96b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x221e78]
mov ecx, esi
call fcn.001f15ba
push eax
mov ecx, esi
call fcn.001fa490
push 0x2d
call fcn.001f483d
pop ecx
push eax
push 0x4b2
mov ecx, esi
call fcn.001fa286
pop esi
ret
Function at 0x1f9766
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.001f8ee9
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.001fa791
push 1
lea ebx, [esi + 1]
mov ecx, edi
push ebx
call fcn.001fa791
mov esi, 0x2b4
lea eax, [ebp - 0x2c4]
push esi
push 0
push eax
call fcn.002076a0
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]
mov ecx, edi
push 0x1f8811
push 0xfffffffffffffffc
push ebx
mov dword [edi + 0x50], eax
call fcn.001f8ed6
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.001f9232
mov ecx, edi
mov esi, eax
call fcn.001fa2a4
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1fadf3
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 0x1fadfb
mov dword [edx*4 + 0x224ce0], ecx
inc edx
cmp edx, 0x100
jb 0x1fadf6
mov esi, 0x800
jmp 0x1fae43
mov ecx, dword [edx*4 + 0x2248e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x224ce0]
mov dword [edx*4 + 0x224ce0], ecx
inc edx
cmp edx, esi
jb 0x1fae27
mov eax, 0x216720
mov esi, 0x216640
mov dword [0x224cd0], eax
mov dword [0x224cc8], eax
mov dword [0x224ccc], esi
call fcn.00201584
mov ecx, dword [0x224cc8]
test eax, eax
cmove ecx, esi
mov dword [0x224cc8], ecx
pop esi
ret

Function at 0x201904
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 0x20192a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x20192a
xor al, al
jmp 0x20193e
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 0x205040
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x205076
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x205069
cmp esi, ecx
jae 0x205159
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x2050ef
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x219410]
xor ecx, eax
or ecx, edx
jmp 0x20513f
cmp edi, 6
jbe 0x20513f
cmp edx, 4
jne 0x20513f
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x205088
pop edi
pop esi
pop ebx
leave
ret 4