joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c70
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4233a0]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x403d4b
push edi
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call edi
cmp dword [ebp - 0x114], 5
jne 0x403ce1
cmp dword [ebp - 0x110], 1
jne 0x403ce1
push 0x41ed6c
jmp 0x403d12
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call edi
cmp dword [ebp - 0x114], 6
jne 0x403d0d
cmp dword [ebp - 0x110], 1
jne 0x403d0d
push 0x41ed84
jmp 0x403d12
push 0x41eda0
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x403d38
push 0x41e9e8
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi + 0x14]
push dword [esi + 4]
call edi
push 0x41ea00
push dword [esi + 4]
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 4]
xor ecx, ebp
pop esi
call fcn.0040d13e
mov esp, ebp
pop ebp
ret

Function at 0x403d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x4233a0]
push edi
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d73
sub ecx, edi
sar ecx, 1
je 0x403d8c
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x24
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x41edb4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41ef3c
mov esi, eax
push 0x12e
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x404043
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x404042
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40403b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.0040d219
push esi
mov ebx, eax
push edi
push ebx
call fcn.00412590
add esp, 0x10
mov byte [ebx + esi], 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
test ebx, ebx
je 0x40403b
push ebx
call fcn.0040d28f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x404ad0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x421280]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c0]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi]
cmp eax, 1
jne 0x404b6f
mov eax, dword [edi + 0x194]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax]
call ebx
mov esi, dword [edi + 0x198]
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x404b4a
mov edi, dword [eax + 0x1b4]
test edi, edi
je 0x404b4a
push 0x41ef5c
push dword [eax + 0x1b8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push edi
call ebx
mov eax, dword [esi]
test eax, eax
jne 0x404b65
mov ecx, esi
call fcn.00404160
push 5
mov ecx, esi
call fcn.004040b0
jmp 0x404cde
push 5
push eax
call ebx
jmp 0x404cde
cmp eax, 2
jne 0x404b94
mov eax, dword [edi + 0x198]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1a4]
call fcn.00401480
jmp 0x404cde
cmp eax, 3
jne 0x404bb9
mov eax, dword [edi + 0x1a4]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1ac]
call fcn.004037f0
jmp 0x404cde
cmp eax, 4
jne 0x404bde
mov eax, dword [edi + 0x1ac]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1b0]
call fcn.00401dc0
jmp 0x404cde
cmp eax, 5
jne 0x404cde
push 0xc
call fcn.0040d219
add esp, 4
test eax, eax
je 0x404c19
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
jmp 0x404c1b
xor eax, eax
mov dword [0x4233a8], eax
mov eax, dword [0x4233a0]
push 0x206
mov ebx, dword [eax + 0xb4]
xor eax, eax
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00411080
add esp, 0xc
call fcn.00403d60
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [esp + 0x14]
push eax
call esi
call fcn.00403dc0
push eax
lea eax, [esp + 0x14]
push eax
call esi
mov eax, dword [edi + 0x1b0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x404c98
push 0
push 0
push 0xf0
push eax
call esi
test eax, eax
je 0x404c98
mov eax, dword [0x4233a0]
cmp dword [eax + 0x28], 0
je 0x404c98
call fcn.00402980
mov eax, dword [edi + 0x1b0]
mov eax, dword [eax + 8]
test eax, eax
je 0x404cc3
push 0
push 0
push 0xf0
push eax
call esi
test eax, eax
je 0x404cc3
sub esp, 8
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00404ed0
test ebx, ebx
jle 0x404cd6
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00402e70
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x21c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
Function at 0x405390
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00411080
add esp, 0xc
call fcn.00403c70
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test edi, edi
je 0x405424
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x41ea00
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x41f060
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x41a340
push 1
push 0
push 0x41a350
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4054fc
mov eax, dword [ebp - 0x210]
mov esi, dword [ebp - 0x218]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0x41e848
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x41a360
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4054fc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4054e7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x40550f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x40551f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4059a0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], ebx
call fcn.00411080
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
push 0
push 0x41f098
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41ef3c
push 0x12f
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x405aaf
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405aaf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405aaf
push 0
push 0x80
push 2
push 0
push 2
push 0x40000004
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405aaf
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
Function at 0x4063a0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [esi], 0x1b58
call fcn.00411080
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.mshtml.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x214]
xor edi, edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4064a2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4064a2
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x214]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x406490
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], edi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], edi
push eax
push 0x41ea00
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406490
cmp dword [ebp - 0x210], edi
je 0x406490
mov eax, dword [ebp - 0x218]
movzx edi, word [eax + 0xa]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xb
jne 0x4064bb
mov dword [esi], 0x2af8
pop edi
mov dword [esi], 0x1b58
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xa
jne 0x4064d9
pop edi
mov dword [esi], 0x2710
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
cmp edi, 9
jne 0x4064f7
pop edi
mov dword [esi], 0x2328
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
cmp edi, 8
jne 0x406515
pop edi
mov dword [esi], 0x1f40
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
cmp edi, 7
je 0x4064a2
cmp edi, 6
jne 0x4064a2
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi], 0x1770
xor ecx, ebp
pop esi
pop ebx
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
Function at 0x406540
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov word [ebp - 0x28], 0x100
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 1
lea eax, [ebp - 0x2c]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x44], ebx
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40661a
mov eax, dword [ebp - 0x30]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esi
movdqu xmmword [ebp - 0x24], xmm0
push eax
push 1
mov dword [ebp - 0x24], 0x1f01ff
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0xc], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x40661a
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40661a
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40661a
push edi
push dword [ebp - 0x34]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40661a
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0xc
push eax
push ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x406628
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x406638
push eax
call ebx
test esi, esi
je 0x40663f
push esi
call ebx
test edi, edi
jne 0x40665e
push edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d13e
mov esp, ebp
pop ebp
ret

Function at 0x406680
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00411080
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x41f098
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x41f168
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
Function at 0x406700
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4233b0]
push ebx
mov dword [ebp - 0x420], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00411080
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00411080
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x41f170
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x41ef3c
push 0x12d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x4067ac
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4067cc
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000004
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40689c
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor edx, edx
mov dword [ebp - 0x41c], eax
add eax, 1
setb dl
neg edx
or edx, eax
push edx
call fcn.0040d4c1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40689c
push dword [ebp - 0x41c]
push edi
push ebx
call fcn.00412590
add esp, 0xc
lea eax, [ebp - 0x418]
push 0
push eax
push dword [ebp - 0x41c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040d553
mov edi, dword [ebp - 0x420]
add esp, 4
mov ecx, edi
call fcn.00406680
lea ecx, [ebp - 0x20c]
call fcn.004069a0
mov esi, eax
push edi
push esi
call sym.zt.exe__ExtractArchive_8
test esi, esi
je 0x406886
push esi
call fcn.0040d553
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
Function at 0x40b4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x40b500
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x40b529
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40b526
inc esi
cmp esi, edx
jb 0x40b517
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x40b631
cmp ecx, 3
jbe 0x40b542
xor eax, eax
jmp 0x40b580
dec ecx
shl eax, cl
and eax, 7
je 0x40b580
movzx ecx, byte [eax + 0x41ee8c]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x41ee84], 0
mov cl, byte [edx + 4]
je 0x40b56a
test cl, cl
je 0x40b56a
cmp cl, 0xff
jne 0x40b57d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x40b510
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x40b5a2
cmp cl, 0xff
je 0x40b5a2
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x40b510
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x40b5fe
movzx edx, byte [eax + 0x41ee8c]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40b5ea
cmp dl, 0xff
jne 0x40b5fe
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40b5c0
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x40b510
pop esi
pop ebx
cmp ecx, 3
jbe 0x40b646
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43da73
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ba876
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100f3710]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x100f82cc]
mov ecx, 0x100f82cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov esi, 0x100fa370
push esi
mov byte [esp + 0x34], 1
call fcn.0043b9f1
cmp eax, 0xffffffff
jne 0x43dae0
push esi
call fcn.0043bcc3
lea edi, [esp + 0x10]
call fcn.0043b4cd
lea eax, [esp + 0x14]
push eax
call fcn.0043b455
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 0xc], 0
je 0x43db09
mov eax, edi
push eax
lea edi, [esp + 0x18]
call fcn.00419eec
lea eax, [esp + 0x14]
push eax
push 0x100fa344
call fcn.0043ca73
push 0x100fa3a8
call fcn.004347eb
mov edi, 0x100fa2f0
push 1
xor esi, esi
mov eax, edi
call fcn.0043db65
call fcn.0043e346
push eax
mov ecx, edi
call fcn.0043eefe
lea esi, [esp + 0x14]
call fcn.0041a1f3
lea eax, [ebx - 0x10]
call fcn.00401ea9
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43f14f
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [edi + 0x20], ebx
push esi
jne 0x43f163
push 1
push ebx
lea esi, [edi + 0x1c]
call fcn.00417675
cmp dword [edi + 0x28], ebx
jne 0x43f173
push 1
push ebx
lea esi, [edi + 0x24]
call fcn.00417675
cmp dword [edi + 0x30], ebx
jne 0x43f183
push 1
push ebx
lea esi, [edi + 0x2c]
call fcn.00417675
lea esi, [edi + 0x34]
cmp dword [esi], ebx
je 0x43f196
push ebx
mov eax, esi
call fcn.0040ca78
test eax, eax
je 0x43f1ca
push 0xc
call fcn.0048fdf4
cmp eax, ebx
pop ecx
jne 0x43f1a6
xor eax, eax
jmp 0x43f1c4
push ebx
push ebx
push eax
push 0x10047e3b
push ebx
push ebx
mov dword [eax], edi
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x1003f611
call fcn.00490352
add esp, 0x18
push eax
call fcn.0040ca3b
pop esi
pop ebx
ret
Function at 0x44155e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b1ab6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100f3710]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x100f82cc]
mov ebx, 0x100f82cc
mov ecx, ebx
mov dword [esp + 0x20], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
and dword [esp + 0x38], 0
mov eax, dword [0x100f82cc]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
mov eax, dword [0x100f82cc]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x10], 0
add eax, 4
mov byte [esp + 0x38], 2
mov dword [esp + 0x28], eax
call fcn.0044593f
test eax, eax
jbe 0x441656
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
call fcn.00442efa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
add eax, edx
js 0x441623
mov ebx, dword [ebp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
call fcn.00442c44
mov ebx, 0x100f82cc
jmp 0x441625
xor eax, eax
test eax, eax
je 0x441651
mov esi, dword [esp + 0x10]
call fcn.00442efa
lea ecx, [esp + 0x1c]
call fcn.00442c80
test eax, eax
push dword [esp + 0x1c]
je 0x441693
lea eax, [esp + 0x18]
push eax
call fcn.00402488
test eax, eax
je 0x4416a2
and dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00401ea9
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401ea9
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00401ea9
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor ecx, ecx
lea esi, [esp + 0x1c]
call fcn.0040bb3a
test eax, eax
jl 0x441651
mov eax, dword [0x100f82cc]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x3c], 3
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0044544f
mov esi, dword [esp + 0x24]
cmp dword [esi - 0xc], 0
je 0x4416e3
mov edi, dword [ebp + 8]
lea eax, [esp + 0x24]
call fcn.00407d9c
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 2
call fcn.00401ea9
mov eax, dword [esp + 0x28]
inc dword [esp + 0x10]
call fcn.0044593f
cmp dword [esp + 0x10], eax
jb 0x4415f1
jmp 0x441656