joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x40120d
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401104
sub edx, ecx
sar edx, 1
je 0x40120d
cmp word [ebx + 2], 0x3a
jne 0x40120d
cmp word [ebx + 4], 0x5c
jne 0x40120d
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401136
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430a66
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x401186
push 2
push 0x4510a4
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.00431254
mov esi, eax
add esp, 8
test esi, esi
je 0x4011fa
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011bc
test al, 0x10
jne 0x4011c5
push 0
push edi
call ebx
test eax, eax
je 0x4011f3
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.00431254
mov esi, eax
add esp, 8
test esi, esi
jne 0x4011a7
push edi
call fcn.00431302
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call fcn.00431302
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402f19
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402f54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402f50
lea ebx, [ebx]
cmp esi, edx
jae 0x402f54
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402f40
cmp esi, edx
jb 0x402f5b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449b20
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x4042d0
cmp word [esi], 0
je 0x4042d0
xorps xmm0, xmm0
push 0
movq qword [ebp - 0x18], xmm0
push 0
mov dword [ebp - 0x14], 0
call fcn.0040d6b0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.0040d420
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040d640
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
cmp edi, 8
mov dword [ebp - 0x40], 0x740073
mov dword [ebp - 0x3c], 0x720061
mov dword [ebp - 0x38], 0x74
cmovae eax, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x404256
test dx, dx
je 0x404252
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x404256
add ecx, 4
add eax, 4
test dx, dx
jne 0x404230
xor eax, eax
jmp 0x40425b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40429b
cmp edi, 8
jb 0x40426d
push esi
call fcn.00430ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.00404420
push dword [ebp - 0x18]
call fcn.00430ba0
add esp, 4
mov eax, 1
jmp 0x4042d2
cmp edi, 8
jb 0x4042a9
push esi
call fcn.00430ba0
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.00404420
push dword [ebp - 0x18]
call fcn.00430ba0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret
Function at 0x404710
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449b72
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
push 0x1fe
mov dword [ebp - 0x214], 0
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x218], esi
call fcn.00435c90
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x210], ax
jne 0x4047a7
xor ecx, ecx
jmp 0x4047bf
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4047b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00403870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
mov edx, esi
mov dword [ebp - 0x214], 1
call fcn.00404640
mov edi, eax
cmp esi, edi
je 0x40481d
cmp dword [esi + 0x14], 8
jb 0x404802
push dword [esi]
call fcn.00430ba0
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004032a0
cmp dword [ebp - 0x21c], 8
jb 0x404834
push dword [ebp - 0x230]
call fcn.00430ba0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404876
test al, 0x10
jne 0x404876
mov eax, 1
ret
xor eax, eax
ret
Function at 0x404880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45eb64]
mov dword [ebp - 0x214], 0
push esi
mov esi, ecx
push edi
test al, 1
jne 0x4048db
or eax, 1
mov dword [0x45eb7c], 7
mov dword [0x45eb64], eax
xor eax, eax
push 0x44a1a0
mov dword [0x45eb78], 0
mov word [0x45eb68], ax
call fcn.00431673
add esp, 4
cmp dword [0x45eb78], 0
jne 0x4049c0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00435c90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x210], 0
jne 0x404926
xor ecx, ecx
jmp 0x40493f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404930
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, 0x45eb68
push eax
call fcn.00403870
mov edx, 0x45eb68
lea ecx, [ebp - 0x22c]
call fcn.00404640
mov edi, eax
cmp edi, 0x45eb68
je 0x4049a9
cmp dword [0x45eb7c], 8
jb 0x404982
push dword [0x45eb68]
call fcn.00430ba0
add esp, 4
xor eax, eax
mov dword [0x45eb7c], 7
push edi
mov ecx, 0x45eb68
mov dword [0x45eb78], 0
mov word [0x45eb68], ax
call fcn.004032a0
cmp dword [ebp - 0x218], 8
jb 0x4049c0
push dword [ebp - 0x22c]
call fcn.00430ba0
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x45eb68
mov word [esi], ax
call fcn.004034b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00430ba5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404a36
test al, 0x10
jne 0x404a36
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404a38
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x404b10
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449bc2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x224], esi
mov word [esi], ax
mov dword [ebp - 4], eax
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x220], 1
call fcn.00435c90
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp word [ebp - 0x21c], 0
jne 0x404bb8
xor ecx, ecx
jmp 0x404bd0
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404bc1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00403870
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret

Function at 0x404c00
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449bc2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x224], esi
mov word [esi], ax
mov dword [ebp - 4], eax
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x220], 1
call fcn.00435c90
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp word [ebp - 0x21c], 0
jne 0x404ca8
xor ecx, ecx
jmp 0x404cc0
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404cb1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00403870
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret
Function at 0x405480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x40
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.00435c90
add esp, 0xc
mov dword [ebp - 0x64], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0x181
movdqu xmmword [ebp - 0x74], xmm0
call fcn.004031a0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4054f0
push 0x80004005
call fcn.00403280
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push edi
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push str.__s___s
push eax
call fcn.00404fe0
mov esi, dword [ebp - 0x18]
add esp, 0x10
mov eax, 0xa
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x40555f
push 0xbb8
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405580
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret
Function at 0x405780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449cdb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x40595c
cmp dword [esi + 0x28], 0
je 0x40595c
push 0x224
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00435c90
add esp, 0xc
mov dword [ebp - method.QMTShortCut.virtual_0], vtable.QMTShortCut.0
mov dword [ebp - method.CQMTInitializeCOMThread.virtual_0], vtable.CQMTInitializeCOMThread.0
mov dword [ebp - 0x230], 0
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, dword [ebp - 0x230]
mov edx, 1
test eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
cmove ecx, edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x405843
mov edi, dword [esi]
jmp 0x405845
mov edi, esi
lea ecx, [ebp - 0x238]
call fcn.0040d8a0
test eax, eax
js 0x405915
push edi
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 2
push 0x104
push eax
call fcn.00432a63
add esp, 0xc
cmp dword [esi + 0x28], 0
jbe 0x405898
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x405888
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040dae0
test eax, eax
js 0x405915
cmp dword [esi + 0x40], 0
jbe 0x4058b9
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x4058a9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040d910
test eax, eax
js 0x405915
cmp dword [esi + 0x70], 0
jbe 0x4058da
cmp dword [esi + 0x74], 8
lea eax, [esi + 0x60]
jb 0x4058ca
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040dbc0
test eax, eax
js 0x405915
cmp dword [esi + 0x58], 0
jbe 0x405926
cmp dword [esi + 0x5c], 8
lea edi, [esi + 0x48]
jb 0x4058ed
mov eax, dword [edi]
jmp 0x4058ef
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405926
cmp dword [edi + 0x14], 8
jb 0x405902
mov edi, dword [edi]
push dword [esi + 0x78]
lea ecx, [ebp - 0x238]
push edi
call fcn.0040d9f0
test eax, eax
jns 0x405939
lea ecx, [ebp - 0x238]
xor esi, esi
call fcn.0040d840
mov eax, esi
jmp 0x40595e
push 0
push 0
lea ecx, [ebp - 0x238]
call fcn.0040d9f0
test eax, eax
js 0x405915
lea ecx, [ebp - 0x238]
call fcn.0040dca0
test eax, eax
js 0x405915
lea ecx, [ebp - 0x238]
mov esi, 1
call fcn.0040d840
mov eax, esi
jmp 0x40595e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret 4
Function at 0x405980
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449d31
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], ecx
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x405bad
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00435c90
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00431f5a
add esp, 0x18
test eax, eax
jne 0x4059fa
xor eax, eax
jmp 0x405bad
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4059f3
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov dword [ebp - 0x22c], ebx
test ebx, ebx
jne 0x405bab
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
call fcn.00402460
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x228]
call fcn.00404d50
mov ecx, eax
call fcn.00404e30
lea ecx, [ebp - 0x224]
mov bl, al
call fcn.00402520
test bl, bl
je 0x405b8d
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
call fcn.00404cf0
push ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x224], 0
call fcn.00404d20
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.00404dc0
mov byte [ebp - 4], 2
mov ecx, 1
mov esi, dword [ebp - 0x220]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x405ae8
push 0x104
lea ecx, [ebp - 0x220]
call fcn.00402e90
mov esi, dword [ebp - 0x220]
push esi
push 0
push 0x4510a0
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.00405080
test edi, edi
jne 0x405b31
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push str._s.tmp
push eax
call fcn.00404fe0
mov esi, dword [ebp - 0x220]
add esp, 0xc
jmp 0x405b3f
mov ecx, dword [ebp - 0x230]
push 1
push esi
call fcn.00405980
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00432071
add esp, 8
push 4
push 0
test eax, eax
jne 0x405b66
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x22c]
jmp 0x405b75
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
lea ecx, [ebp - 0x224]
call fcn.00402520
lea ecx, [ebp - 0x220]
call fcn.00402520
jmp 0x405ba0
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
lea ecx, [ebp - 0x228]
call fcn.00402520
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret 8
Function at 0x405bd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x45a770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x94], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405c23
push ecx
push esi
mov ecx, ebx
call fcn.00405980
lea ecx, [ebp - 0x90]
call fcn.00405e10
mov dword [ebp - 4], 0
cmp word [esi], 0
mov dword [ebp - 0x18], 0
jne 0x405c46
xor ecx, ecx
jmp 0x405c5f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x405c50
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405c50
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x90]
call fcn.00403870
cmp word [edi], 0
jne 0x405c76
xor ecx, ecx
jmp 0x405c8f
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x405c80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405c80
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x78]
call fcn.00403870
push 0
push 0x4510a0
lea ecx, [ebp - 0x60]
call fcn.00403870
mov ebx, dword [ebp - 0x94]
cmp word [ebx], 0
jne 0x405cb8
xor ecx, ecx
jmp 0x405ccf
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405cc0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x30]
call fcn.00403870
cmp word [edi], 0
jne 0x405ce3
xor ecx, ecx
jmp 0x405cff
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x405cf0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405cf0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
call fcn.00403870
lea eax, [ebp - 0x90]
push eax
call fcn.00405780
lea ecx, [ebp - 0x90]
mov esi, eax
call fcn.00405d50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430ba5
mov esp, ebp
pop ebp
ret 0x18

Function at 0x405ef0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405f74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x405f74
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x405f74
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405f38
mov ecx, esi
call fcn.00404a00
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x45120c
push esi
call fcn.00432900
mov edi, eax
add esp, 8
test edi, edi
je 0x405f74
push edi
push ebx
push 1
push dword [ebp - 4]
call fcn.00432498
add esp, 0x10
push edi
cmp eax, ebx
je 0x405f7d
call fcn.00432586
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00432586
add esp, 4
mov ecx, esi
call fcn.00404860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4069b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
jmp 0x4069c0
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x45cb10], ecx
inc eax
cmp eax, 0x100
jb 0x4069c0
cmp eax, 0x800
jae 0x406a93
lea esp, [esp]
mov edx, dword [eax*4 + 0x45c710]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45cb10]
mov dword [eax*4 + 0x45cb10], edx
inc eax
cmp eax, 0x800
jb 0x406a70
lea ecx, [ebp - 0x20]
mov dword [0x45eb40], 0x407390
call fcn.00406900
test eax, eax
je 0x406b48
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov esi, edi
mov eax, 0x45b608
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
lea ecx, [ecx]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x406ae7
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x406ae7
cmp dword [eax], ebx
je 0x406af6
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x406ad0
or ecx, 0xffffffff
sub ecx, 0
je 0x406b2f
dec ecx
je 0x406b1e
dec ecx
jne 0x406b48
cmp esi, 6
jb 0x406b48
jne 0x406b3e
cmp edi, 0xf
jb 0x406b48
mov dword [0x45eb40], 0x407430
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x406b48
jne 0x406b3e
cmp edi, 6
jb 0x406b48
cmp edi, 0xa
jmp 0x406b3c
cmp esi, 6
jb 0x406b48
jne 0x406b3e
cmp edi, 0x100c
je 0x406b48
mov dword [0x45eb40], 0x407430
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret