joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446357
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call main
mov esi, eax
test esi, esi
js 0x4464ad
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x44647e
cmp dword [ebp - 4], 0
je 0x4464ac
xor ebx, ebx
and dword [ebp + 0x10], ebx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x446458
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x4463dc
cmp ebx, dword [ebp - 4]
jb 0x4463ab
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x446426
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call main
test eax, eax
js 0x446426
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x446426
cmp ebx, 8
jb 0x4463ff
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x44644c
cmp dword [eax], 0
je 0x44644c
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call main
mov esi, eax
test esi, esi
js 0x4464ac
cmp dword [ebp - 4], 0
jne 0x446381
jmp 0x4464ac
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44646f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x446476
mov esi, 0x80004005
push esi
push 0x1a6
jmp 0x4464a2
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x446495
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44649c
mov esi, 0x80004005
push esi
push 0x19a
push str.dlutil.cpp
call fcn.00403821
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x24

Function at 0x448a03
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x448a55
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x448a44
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x448a55
push esi
push 0x18
push str.inetutil.cpp
call fcn.00403821
jmp 0x448a61
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [edx + 4], 0
mov dword [edx], ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401e70
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401ee0
xor eax, eax
jmp 0x401fc1
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401ef8
xor eax, eax
jmp 0x401fc1
push ebp
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
call fcn.004018c0
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x404303
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41ae64
call fcn.0041a3e0
push ecx
push ebx
push esi
mov esi, ecx
push 4
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.0040407b
mov dword [ebx], 0x41e3c0
xor ebx, ebx
mov dword [esi + 0x28], 4
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], 0x41e3d8
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov byte [esi + 0x2c], 1
call fcn.00404407
lea ecx, [esi + 0x80]
mov byte [esi + 0x7c], bl
push 3
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x90]
mov byte [esi + 0x8c], bl
mov byte [esi + 0x8d], bl
push 3
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0xa0]
mov byte [esi + 0x9c], bl
mov byte [esi + 0x9d], bl
mov byte [esi + 0x9e], bl
push 3
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0xac]
push 3
mov byte [ebp - 4], 5
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xb8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 8
mov dword [eax], 0x41e3d0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404407
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41aea4
call fcn.0041a3e0
push ecx
push ebx
push esi
push edi
push 3
mov esi, ecx
pop edi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0xc]
push edi
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x18]
push edi
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x24]
push edi
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x34]
mov byte [esi + 0x30], bl
push edi
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040161e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408af4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41b6c4
call fcn.0041a3e0
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x426398], bl
push esi
mov esi, ecx
je 0x408b59
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x408b20
push edi
call fcn.0040161e
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x408b3d
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x408b35
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x408b55
cmp eax, 0x104
ja 0x408b55
push 1
pop eax
jmp 0x408ba8
xor eax, eax
jmp 0x408ba8
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401672
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00408ab7
test al, al
je 0x408b9d
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00408bb6
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00407103
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00407103
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408cae
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x408d37
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x41b6ec
call fcn.0041a3e0
sub esp, 0x18
cmp byte [0x426398], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x408d78
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.00408de3
mov eax, dword [eax]
mov edx, edi
mov ecx, eax
call fcn.00408cae
mov bl, al
push dword [ebp - 0x24]
call fcn.00407103
pop ecx
mov al, bl
jmp 0x408dd4
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push ebx
call esi
test eax, eax
je 0x408d8a
mov al, 1
jmp 0x408dd4
xor eax, eax
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.0040161e
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0040a96e
test al, al
je 0x408dc9
push edi
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407103
test esi, esi
pop ecx
setne al
jmp 0x408dd4
push dword [ebp - 0x18]
call fcn.00407103
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408e32
Capabilities:
Delete directory

Disassembly:
mov eax, 0x41b714
call fcn.0041a3e0
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x426398], bl
push esi
push edi
mov edi, ecx
jne 0x408e6e
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00408de3
mov ecx, dword [eax]
call fcn.00408cbc
mov bl, al
push dword [ebp - 0x24]
call fcn.00407103
pop ecx
mov al, bl
jmp 0x408ec2
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call esi
test eax, eax
je 0x408e7f
mov al, 1
jmp 0x408ec2
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040161e
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040a96e
test al, al
push dword [ebp - 0x18]
je 0x408eba
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407103
cmp esi, ebx
pop ecx
setne al
jmp 0x408ec2
call fcn.00407103
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408ed1
Capabilities:
Move file

Disassembly:
mov eax, 0x41b738
call fcn.0041a3e0
sub esp, 0x34
push ebx
xor ebx, ebx
cmp byte [0x426398], bl
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], ecx
jne 0x408f2e
lea ecx, [ebp - 0x40]
call fcn.00408de3
mov edx, dword [ebp - 0x10]
mov esi, dword [eax]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00408de3
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.00408d29
mov bl, al
push dword [ebp - 0x34]
call fcn.00407103
push dword [ebp - 0x40]
call fcn.00407103
pop ecx
mov al, bl
pop ecx
jmp 0x408fbb
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
push ecx
call esi
test eax, eax
je 0x408f40
mov al, 1
jmp 0x408fbb
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040161e
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040161e
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov edx, edi
mov byte [ebp - 4], 2
call fcn.00408cc9
test al, al
push dword [ebp - 0x1c]
je 0x408faa
push dword [ebp - 0x28]
call esi
mov esi, eax
push dword [ebp - 0x1c]
call fcn.00407103
push dword [ebp - 0x28]
call fcn.00407103
pop ecx
cmp esi, ebx
pop ecx
setne al
jmp 0x408fbb
call fcn.00407103
push dword [ebp - 0x28]
call fcn.00407103
pop ecx
xor al, al
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408fd9
Capabilities:
Create directory

Disassembly:
mov eax, 0x41b74c
call fcn.0041a3e0
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x426398], bl
push esi
push edi
mov edi, ecx
jne 0x409015
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00408de3
mov ecx, dword [eax]
call fcn.00408fca
mov bl, al
push dword [ebp - 0x24]
call fcn.00407103
pop ecx
mov al, bl
jmp 0x40907b
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push edi
call esi
test eax, eax
je 0x409027
mov al, 1
jmp 0x40907b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409079
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040161e
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040a96e
test al, al
je 0x409070
push ebx
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407103
cmp esi, ebx
pop ecx
setne al
jmp 0x40907b
push dword [ebp - 0x18]
call fcn.00407103
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4092a7
Capabilities:
Delete file

Disassembly:
mov eax, 0x41b794
call fcn.0041a3e0
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x426398], bl
push esi
push edi
mov edi, ecx
jne 0x4092e3
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00408de3
mov ecx, dword [eax]
call fcn.00409289
mov bl, al
push dword [ebp - 0x24]
call fcn.00407103
pop ecx
mov al, bl
jmp 0x409344
xor edx, edx
mov ecx, edi
call fcn.00408d37
test al, al
je 0x409342
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
test eax, eax
je 0x409301
mov al, 1
jmp 0x409344
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040161e
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040a96e
test al, al
push dword [ebp - 0x18]
je 0x40933c
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407103
cmp esi, ebx
pop ecx
setne al
jmp 0x409344
call fcn.00407103
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40980c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x426398], 0
je 0x40982a
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00408de3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
push dword [ebp - 0xc]
setne bl
call fcn.00407103
pop ecx
mov al, bl
pop ebx
leave
ret
Function at 0x409850
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41b860
call fcn.0041a3e0
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x426398], bl
push esi
mov esi, ecx
je 0x4098b4
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x40987c
push edi
call fcn.0040161e
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x409898
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x409890
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x4098b0
cmp eax, 0x104
ja 0x4098b0
push 1
pop eax
jmp 0x409903
xor eax, eax
jmp 0x409903
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401672
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.004097d0
test al, al
je 0x4098f8
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00408bb6
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00407103
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00407103
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409bc3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41b8fc
call fcn.0041a3e0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x426398], bl
je 0x409c2f
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x409bf7
push edi
call fcn.0040161e
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x409c13
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x409c0b
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x409c2b
cmp eax, 0x104
ja 0x409c2b
push 1
pop eax
jmp 0x409c7e
xor eax, eax
jmp 0x409c7e
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401672
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00409b87
test al, al
je 0x409c73
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00408bb6
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015a1
push dword [ebp - 0x24]
call fcn.00407103
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00407103
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409c8c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, 0x105
push edi
mov edi, edx
cmp dword [esi + 8], eax
mov ebx, ecx
jg 0x409ca9
push eax
mov ecx, esi
call fcn.00401672
push dword [esi]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, esi
mov edi, eax
call fcn.004078ea
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x409cc6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41b946
call fcn.0041a3e0
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [0x426398], bl
push esi
push edi
mov edi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
je 0x409d29
mov esi, dword [ebp + 8]
mov eax, 0x104
cmp dword [esi + 8], eax
jg 0x409cfd
push eax
mov ecx, esi
call fcn.0040161e
push dword [esi]
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x409d1d
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x409d15
mov word [ecx + edx*2], bx
mov dword [esi + 4], edx
jmp 0x409dda
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00401672
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x409d5c
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00408de3
mov dword [ebp - 0x10], 1
mov esi, dword [eax]
mov byte [ebp - 4], 1
jmp 0x409d5e
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, ebx
je 0x409d7a
lea ecx, [ebp - 0x2c]
call fcn.00408de3
push 2
pop ecx
or dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
jmp 0x409d7c
xor ecx, ecx
lea eax, [ebp - 0x20]
mov edx, esi
push eax
call fcn.00409c8c
test byte [ebp - 0x10], 2
mov esi, eax
je 0x409d9c
push dword [ebp - 0x2c]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00407103
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x409dae
push dword [ebp - 0x38]
call fcn.00407103
pop ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00408bb6
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.004015a1
push dword [ebp - 0x38]
call fcn.00407103
push dword [ebp - 0x20]
call fcn.00407103
pop ecx
mov eax, esi
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40a7f4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41ba90
call fcn.0041a3e0
sub esp, 0x38
mov eax, dword [edx]
push ebx
xor ebx, ebx
push esi
mov dword [edx + 4], ebx
mov word [eax], bx
mov si, word [ecx]
push edi
xor edi, edi
cmp si, bx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
je 0x40a828
mov eax, ecx
inc edi
inc eax
inc eax
cmp word [eax], bx
jne 0x40a820
cmp edi, 1
jl 0x40a95d
cmp si, 0x5c
je 0x40a95d
cmp si, 0x2e
jne 0x40a859
cmp edi, 1
je 0x40a95d
cmp edi, 2
jne 0x40a859
cmp word [ecx + 2], si
je 0x40a95d
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040161e
cmp edi, 3
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jle 0x40a89d
cmp word [edi + 2], 0x3a
jne 0x40a89d
cmp word [edi + 4], 0x5c
jne 0x40a89d
cmp si, 0x61
jb 0x40a891
cmp si, 0x7a
jbe 0x40a8f8
cmp si, 0x41
jb 0x40a89d
cmp si, 0x5a
jbe 0x40a8f8
mov esi, 0x105
cmp dword [ebp - 0x18], esi
jg 0x40a8b0
push esi
lea ecx, [ebp - 0x20]
call fcn.0040161e
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [ebp - 0x20]
xor ecx, ecx
cmp word [esi], bx
je 0x40a8ce
mov edx, esi
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x40a8c6
lea edx, [ecx + ecx]
cmp eax, ebx
mov word [edx + esi], bx
mov dword [ebp - 0x1c], ecx
je 0x40a950
cmp eax, 0x104
ja 0x40a950
mov eax, dword [ebp - 0x20]
cmp word [edx + eax - 2], 0x5c
je 0x40a8f8
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00404b92
push 0x42541c
lea ecx, [ebp - 0x44]
call fcn.00402aef
lea ecx, [ebp - 0x20]
mov edx, eax
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040a1f5
push edi
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040ad47
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.004015a1
push dword [ebp - 0x2c]
call fcn.00407103
push dword [ebp - 0x38]
call fcn.00407103
push dword [ebp - 0x44]
call fcn.00407103
add esp, 0xc
mov bl, 1
push dword [ebp - 0x20]
call fcn.00407103
pop ecx
mov al, bl
jmp 0x40a95f
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40aae4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ab0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ab0a
xor al, al
jmp 0x40ab2a
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0041a490
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4