joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448fd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x449003
push esi
call fcn.00457370
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x448ffc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x449089
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x449072
mov eax, dword [esi + 8]
test eax, eax
je 0x449027
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44906e
cmp eax, 2
je 0x449072
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44901a
cmp eax, 3
je 0x44904d
cmp eax, 1
jne 0x44901a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44901a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44901a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004490b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x449098
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004490b0
add esp, 4
pop esi
ret

Function at 0x449920
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x449941
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x449941
mov eax, dword [eax + 0x44]
test eax, eax
je 0x449941
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x464980
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4649c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x464e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4870d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004649f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00464a70
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00464a70
lea ecx, [esi + 0xc]
call fcn.004784e8
lea ecx, [esi + 0x10]
call fcn.004784e8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00466000
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00466000
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00466000
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047855d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047855d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4661f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x466256
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x466256
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x466237
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47a904
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47a93c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004789b8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00478990
jmp 0x47a948
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47bff6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47c038
call fcn.00481b6b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47c038
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47c02f
xor eax, eax
jmp 0x47c040
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047c046
pop edi
pop esi
pop ebx
ret 4

Function at 0x48209b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4820c9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4820e7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00482001
jmp 0x4820e7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4820e7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00482001
test edi, edi
mov eax, edi
jne 0x4820d1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4040d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x4560e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
lea eax, [esi + 0x1c]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x404108
lea ecx, [eax - 0x1c]
jmp 0x40410a
xor ecx, ecx
push eax
add ecx, 8
push 0x40
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 3
call fcn.0040d3b0
mov dword [esi + 0x88], edi
lea ecx, [esi + 0x8c]
mov byte [esp + 0x18], 5
call fcn.0040ed30
mov al, byte [esp + 0xb]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xd4], edi
mov byte [esi + 0xd8], al
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xec], edi
mov dword [esi], 0x45a5c0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404a40
Capabilities:
Get disk information

Disassembly:
sub esp, 0x808
push esi
mov esi, dword [esp + 0x810]
push edi
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, edx
cmp eax, edx
je 0x404a6b
mov di, word [eax]
add eax, 2
mov word [ecx], di
add ecx, 2
cmp eax, edx
jne 0x404a5b
mov eax, dword [esi + 8]
mov dword [esi + 8], ecx
mov dword [esp + 0xc], eax
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x404aa1
pop edi
pop esi
add esp, 0x808
ret 4
cmp word [esp + 0x10], 0
push ebx
lea ebx, [esp + 0x14]
mov dword [esp + 0xc], ebx
je 0x404c37
push ebp
jmp 0x404abd
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x404c1b
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov edi, eax
sar edx, 1
cmp edx, 1
jae 0x404b8b
mov edx, dword [esi + 4]
test edx, edx
je 0x404af4
mov ecx, eax
sub ecx, edx
sar ecx, 1
cmp ecx, 1
ja 0x404af9
mov ecx, 1
test edx, edx
jne 0x404b01
xor eax, eax
jmp 0x404b05
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
mov dword [esp + 0x14], eax
jge 0x404b11
xor eax, eax
add eax, eax
push eax
call fcn.00442bba
mov ecx, dword [esi + 4]
add esp, 4
mov ebx, eax
push ebx
push edi
push ecx
mov ecx, esi
call fcn.00406e20
mov edx, dword [esp + 0x10]
mov ebp, eax
push edx
push 1
push ebp
mov ecx, esi
call fcn.00406e50
mov eax, dword [esi + 8]
add ebp, 2
push ebp
push eax
push edi
mov ecx, esi
call fcn.00406e20
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00406790
mov eax, dword [esi + 4]
push eax
call fcn.0043733c
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [ebx + ecx*2]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.00406440
lea eax, [ebx + eax*2 + 2]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [esi + 8], eax
jmp 0x404c1b
mov ecx, eax
sub ecx, edi
sar ecx, 1
cmp ecx, 1
jae 0x404bd5
lea ecx, [edi + 2]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00406e20
mov eax, dword [esi + 8]
mov ecx, 1
mov edx, eax
push ebx
sub edx, edi
sar edx, 1
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00406e50
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x404c17
mov dx, word [ebx]
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x404bc6
jmp 0x404c17
lea ecx, [eax - 2]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, dword [esi + 8]
lea eax, [ecx - 2]
cmp edi, eax
je 0x404c01
mov dx, word [eax - 2]
sub eax, 2
sub ecx, 2
cmp eax, edi
mov word [ecx], dx
jne 0x404bf0
lea ecx, [edi + 2]
mov eax, edi
cmp edi, ecx
je 0x404c17
mov dx, word [ebx]
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x404c0a
add dword [esi + 8], 2
push ebx
call fcn.004438a5
lea eax, [ebx + eax*2 + 2]
add esp, 4
mov dword [esp + 0x10], eax
cmp word [eax], 0
jne 0x404ab9
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x808
ret 4
Function at 0x404fb0
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
mov edx, dword [eax]
mov eax, dword [edx - 8]
test eax, eax
jne 0x404fcc
add esp, 0x410
ret 4
cmp eax, 0x104
jle 0x404fde
xor eax, eax
add esp, 0x410
ret 4
push edi
mov ecx, 0x104
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push ecx
push 0x2710
push 0x46353c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [esp + 4], 0
pop edi
jne 0x405016
xor eax, eax
add esp, 0x410
ret 4
lea edx, [esp]
push 0x463538
push edx
call fcn.00443ac3
add esp, 8
test eax, eax
jne 0x405035
add esp, 0x410
ret 4
push eax
call fcn.00443a15
add esp, 4
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
add esp, 0x410
ret 4
Function at 0x405610
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x456220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.004073c0
mov eax, dword [esp + 0x24]
xor esi, esi
mov cx, word [eax]
test cx, cx
je 0x40567e
mov edi, dword [sym.imp.USER32.dll_CharNextW]
cmp cx, 0x5c
jne 0x40565f
test esi, esi
jne 0x405661
mov esi, eax
jmp 0x405661
xor esi, esi
push eax
call edi
mov cx, word [eax]
test cx, cx
jne 0x405651
test esi, esi
je 0x40567e
mov word [esi], cx
mov eax, dword [esp + 0x24]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
mov eax, 0x46354c
test eax, eax
je 0x405692
push 0x46354c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x46354c
push eax
lea ecx, [esp + 0x2c]
call fcn.00407290
mov eax, dword [esp + 0x24]
xor edi, edi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40576a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [eax + edi*2], 0x5c
jne 0x40575c
lea ecx, [esp + 0x10]
push edi
push ecx
lea ecx, [esp + 0x2c]
call fcn.004033c0
mov edx, dword [esp + 0x10]
mov byte [esp + 0x1c], 1
push edx
call ebx
test eax, eax
jne 0x405728
mov eax, dword [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, eax
test esi, esi
jne 0x4057ac
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ecx
push esi
mov ecx, ebp
call fcn.00406ac0
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x10]
mov dword [ecx], eax
add eax, 8
push edx
push eax
call fcn.00407810
mov eax, dword [ebp + 8]
add esp, 8
inc eax
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x10]
mov edx, dword [0x46305c]
mov byte [esp + 0x1c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40575c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40575c
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov eax, dword [esp + 0x24]
inc edi
cmp edi, dword [eax - 8]
jl 0x4056b8
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405795
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405795
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4057db
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4057db
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40580a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40580a
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov eax, esi
jmp 0x405797
Function at 0x405ba0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x10
mov eax, dword [0x4635a4]
mov ecx, dword [0x4635a8]
mov dx, word [esp + 0x14]
mov dword [esp], eax
lea eax, [esp]
mov dword [esp + 4], ecx
push eax
mov word [esp + 4], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x405bda
xor eax, eax
xor edx, edx
add esp, 0x10
ret 4
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 8], ecx
push edx
push ecx
lea eax, [esp + 8]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x405c02
xor edx, edx
add esp, 0x10
ret 4
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
add esp, 0x10
ret 4

Function at 0x405e40
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x28
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x20], eax
mov esi, ecx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x1c]
mov edx, dword [esi + 0x34]
push edi
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x34], eax
push 0x18
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov esi, dword [esi + 4]
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call esi
push ebp
mov ebx, eax
call esi
mov esi, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
sub eax, edx
mov edx, dword [esi]
push eax
sub ecx, edx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [edx + 0x34]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
push edi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
push 0xcc0020
push eax
sub edx, eax
mov eax, dword [esi + 8]
push ecx
push ebx
sub eax, ecx
push edx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x3c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebx
call esi
mov edx, dword [esp + 0x10]
push edx
push edi
call esi
push ebp
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
test ebp, ebp
mov esi, eax
je 0x405f2b
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x405f38
push edi
call ebp
test ebx, ebx
je 0x405f3f
push ebx
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x407f00
Capabilities:
Delete file

Disassembly:
mov eax, 0x2020
call fcn.00443b20
mov edx, dword [esp + 0x2024]
test edx, edx
jne 0x407f1e
xor eax, eax
add esp, 0x2020
ret
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x24]
push 0x1000
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x14], 3
call fcn.00443ad6
add esp, 0xc
lea edx, [esp + 4]
lea ecx, [esp + 0x24]
mov word [esp + 0x14], 0x614
push edx
mov dword [esp + 0x10], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x2020
ret

Function at 0x407f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x456363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
lea eax, [esi + 0x1c]
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x407fb6
lea ecx, [eax - 0x1c]
jmp 0x407fb8
xor ecx, ecx
push eax
add ecx, 8
push 0x40
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.004040d0
mov dword [esi + 0x92c], edi
mov dword [esi + 0x930], edi
mov ecx, 0x200
xor eax, eax
lea edi, [esi + 0x12c]
mov dword [esi], 0x45a5d8
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4082f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov dword [0x469710], eax
call fcn.004083e0
mov ecx, dword [esi + 4]
push ecx
mov ecx, esi
call fcn.00408700
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x92c]
lea edi, [esi + 0x3c]
push ecx
mov ecx, edi
call fcn.00405f60
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x14]
sub edx, 0x31
push edx
mov edx, dword [esp + 0x14]
sub eax, 2
add ecx, 0x169
push eax
add edx, 0xd3
push ecx
push edx
mov ecx, edi
call fcn.00404a20
mov ebp, dword [esi + 4]
lea ebx, [edi + 8]
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x469684
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4696b8]
push 0x469684
mov dword [ebx + 8], eax
mov dword [0x4696b8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x469658]
push 0
push 0x403190
push ebp
push 0x11b
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edx, dword [esi + 0x40]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
Function at 0x4085a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0x4563d8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
and eax, 0xffff
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x4085e2
xor eax, eax
jmp 0x4086e8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
jne 0x4085f7
xor eax, eax
jmp 0x4086e8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebp
jne 0x408613
xor eax, eax
jmp 0x4086e8
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
jne 0x40862f
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x4086e8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
jne 0x40864f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x4086e8
mov ecx, edi
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], ebp
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebp
je 0x408680
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push edx
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4086c9
mov edi, dword [esp + 0x20]
push 0x10
call fcn.004354c0
mov esi, eax
cmp esi, ebp
je 0x4086c7
lea eax, [esp + 0x28]
mov dword [esi], 0x45a5ec
push eax
push edi
mov dword [esp + 0x30], ebp
call fcn.004357c0
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x4086c9
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
cmp eax, ebp
je 0x4086e6
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x408f20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [esp + 8]
mov cx, ax
cmp cx, 0x61
jb 0x408f66
cmp cx, 0x7a
ja 0x408f66
add eax, 0xffffffe0
and eax, 0xffff
add esi, 0x12c
push eax
push 0x4636c8
push 0x400
push esi
call fcn.00408f90
add esp, 0x10
pop edi
pop esi
add esp, 0x208
ret
Function at 0x40c320
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
je 0x40c34c
mov esi, dword [esp + 8]
push 5
mov eax, dword [esi - 0x5c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi - 0x60]
call fcn.0040b8d0
mov eax, 1
pop esi
ret 8
mov esi, dword [esp + 8]
push 0
mov ecx, dword [esi - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x630]
test eax, eax
je 0x40c370
push 1
lea ecx, [esi - 0x60]
call fcn.0040b8d0
mov eax, 1
pop esi
ret 8