joyce8/EMBER2024-capa huggingface dataset:
Function at 0x872cc6
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf085ff04
jmp 0x872c9e
pushfd
jmp 0x872595
mov bx, word [esp]
mov cl, ah
inc bx
jle 0x872cd4
or di, 0x11d7
jmp 0x872cd9
mov word [esp], ax
mov dword [esp + 0x28], edi
lea esp, [esp + 0x28]
jmp 0x872c98
call fcn.00872d3f
mov esi, dword [esp + 0x2c]
rdtsc
bsf ax, cx
jg 0x872d4e
jle 0x872d72
fisubr word [ecx]
dec eax
jmp 0x872cf2
and al, 0x24
call fcn.00872c93
lea eax, [eax + 0xb0]
mov cl, 0xf7
mov cl, 0x7e
bswap ebp
setne bl
jmp 0x872d24
xchg dword [esp], eax
call fcn.00872d64
or edx, dword [edx + reloc.SHLWAPI.dll_SHDeleteValueA]
invalid
rdtsc
jmp 0x872dd2
rdtsc
jmp 0x872dd2
rdtsc
setg bl
jmp 0x872dae
rdtsc
setg bl
sub esp, 0xc0
jmp 0x872df5
xchg ch, cl
lea ebx, reloc.SHLWAPI.dll_SHDeleteValueA
mov cx, bp
lea edi, [esp]
mov bx, word [esp]
inc bx
jl 0x872da9
jge 0x872d93
lea ebx, reloc.SHLWAPI.dll_SHDeleteValueA
mov cx, bp
jmp fcn.00872dc1
mov ebp, esp
btc cx, si
js 0x872db6
xchg ch, cl
jmp 0x872ddf

Function at 0x89f764
Capabilities:
Encode data using base64

Disassembly:
lea esp, [esp + 2]
lea esp, [esp + 0x20]
push 0x3f
lea edx, [eax + edi]
jmp 0x89fa16
mov esi, eax

Function at 0x8b720d
Capabilities:
Execute anti-debugging instructions

Disassembly:
setg cl
adc dl, ch
cld
mov edi, dword [ebp + 8]
jmp 0x8b7067
mov bh, byte [esp]
bsf ebx, ecx
jmp 0x8b709d
pushal
rdtsc
mov ch, byte [esp]
pushfd
jmp 0x8b7058
pushal
cpuid
jmp 0x8b70c1
mov eax, 0x25ff
mov dx, bx
stosw word es:[edi], ax
rdtsc
jmp 0x8b7087
add esp, 4
lea esp, [esp + 0x1c]
popal
jmp 0x8b70c9
push edi
pushal
mov dword [esp], ebp
pushal
jmp 0x8b70ab
add edi, 0xfffffff8
mov eax, dword [edi]
pop edi
mov si, word [esp]
dec dx
jmp 0x8b7114
add esp, 4
lea esp, [esp + 2]
test eax, eax
je 0x863847
jne 0x8b707e
rcr ah, cl
cpuid
lea ebx, [ecx*4]
jmp 0x8b7191
lea esp, [esp + 0x20]
stosd dword es:[edi], eax
rol ebp, cl
popfd
jmp 0x8b70f4
push dword [ebp + 8]
jmp 0x8b7141
mov eax, dword [esp]
mov eax, dword [0x86e4a8]
push 6
stc
jmp 0x8b711e
call dword [eax + 0x18]
jmp 0x863847
neg ax
push dword [ebp - 4]
lea eax, [edx*4]
lea eax, [esp + eax]
bswap eax
jmp 0x8b7134
popal
lea eax, [ebp - 4]
push eax
jmp 0x8b715d
push word [esp + 3]
jmp 0x8b70e3

Function at 0x8b733d
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, bx
or si, bp
jmp 0x8b737e
inc si
jmp 0x8b74ec
shr ah, 3
mov eax, dword [ebp - 8]
bswap esi
bswap esi
or si, cx
jmp 0x8b7368
neg si
bswap esi
mov dword [ebp - 8], eax
jmp 0x8b7217
add esp, 0
lea esp, [esp + 4]
push edi
mov edi, dword [ebp + 0x10]
jmp 0x8b73a5

Function at 0x8b7541
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [ebp + 0x10], eax
test eax, eax
call fcn.008b7670
lea esp, [esp + 4]
push ebx
push esi
jmp 0x8b7688
call eax
jmp 0x8b71f0
lea esp, [esp + 4]
push dword [esi + 4]
push ecx
jmp 0x8b7632
Function at 0x8b79a1
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor ecx, dword [ebx + reloc.SHLWAPI.dll_SHDeleteValueA]
and al, 0xc
jbe 0x8b7962
cmp dword [esi - 0x41], reloc.SHLWAPI.dll_SHDeleteValueA
push cs
cdq
mov esp, edi
popfd
popal
ret
pushfd
add eax, ecx
call fcn.008b79c3
cld
jp 0x8b797c
invalid
mov dword [esp], eax
jmp 0x8b7989

Function at 0x96e0d9
Capabilities:
Parse pe header

Disassembly:
push word [esp + 9]
push dword [esp + 8]
mov dword [esp + 6], edx
mov byte [esp], cl
mov dword [esp + 0x2c], esi
call fcn.0096e0b6
Function at 0x40236c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4023d2
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00432b90
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4023d2
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401338
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004327eb
leave
ret
Function at 0x402f7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push 0x443dd8
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x403017
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
call edi
push str.RegQueryValueW
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push str.RegSetValueW
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push str.RegQueryValueExW
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push str.RegSetValueExW
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push str.RegCloseKey
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x14], eax
pop edi
je 0x403017
cmp dword [esi + 4], ebx
je 0x403017
cmp dword [esi + 8], ebx
je 0x403017
cmp dword [esi + 0xc], ebx
je 0x403017
cmp dword [esi + 0x10], ebx
je 0x403017
cmp eax, ebx
je 0x403017
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x404103
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00432b90
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00432b90
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x404149
mov esi, dword [esi + 4]
jmp 0x40414c
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40415a
mov eax, dword [eax + 4]
jmp 0x40415d
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404189
cmp dword [ebp - 0x14], ebx
je 0x404185
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40418b
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x404fd1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
jb 0x404ffa
mov eax, dword [eax + 4]
jmp 0x404ffd
add eax, 4
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
jne 0x405012
xor al, al
jmp 0x40505a
cmp dword [ebp - 0x24], edi
jle 0x405046
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.0040118b
cmp dword [ebp - 0xc], 0
je 0x405034
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011dd
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x405017
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.004011c7
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327eb
leave
ret 4
Function at 0x407638
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x407659
mov eax, dword [eax + 4]
jmp 0x40765c
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x407683
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004327eb
leave
ret 4
Function at 0x409cba
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x27f4
mov dword [ebp - 0x25c], edi
call fcn.004050bb
lea ecx, [ebp - 0x250]
call fcn.0041006f
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409d02
lea eax, [ebp - 0x24c]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00432b90
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x258], eax
je 0x409d7d
push eax
call ebx
test eax, eax
je 0x409d7d
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409d7d
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.00401338
jmp 0x409da6
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409da6
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409d9a
mov eax, dword [eax + 4]
jmp 0x409d9d
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c0df
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.004016e9
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401452
push 0x444184
push edi
call fcn.0040c8b0
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409ed5
cmp dword [ebx + 0x88], 0
je 0x409ed5
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c711
test al, al
jne 0x409ed5
lea esi, [ebp - 0x298]
call fcn.00402f7b
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401aa6
call fcn.0040c953
push 0x25
push 0x3a
call fcn.0040c835
push 0x25
push 0x5c
call fcn.0040c835
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.0040302a
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401452
cmp byte [ebp - 0x251], 0
je 0x409ebb
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403160
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401452
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401452
lea eax, [ebp - 0x298]
call fcn.0040301b
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327eb
leave
ret
Function at 0x40c03c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.00432b90
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40c08f
xor al, al
jmp 0x40c0c8
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c0b0
cmp dword [ebp - 0x80], edi
je 0x40c08b
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40c08b
lea eax, [ebp - 0x7c]
call fcn.00401338
cmp dword [ebp - 0x80], edi
je 0x40c0c6
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.004327eb
add ebp, 0x398
leave
ret

Function at 0x40c0df
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x25
call fcn.004013a6
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c11e
call fcn.00401aa6
mov eax, esi
jmp 0x40c1ba
lea esi, [ebp - 0x20]
call fcn.00401aa6
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c134
mov eax, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40c14c
mov eax, edi
jmp 0x40c1a2
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432651
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c172
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c196
cmp eax, esi
ja 0x40c196
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.00401338
push dword [ebp - 0x24]
call fcn.004326dd
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401aa6
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004327eb
leave
ret
Function at 0x40d3d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d09e
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d40d
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d437
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327eb
leave
ret
xor bl, bl
jmp 0x40d41b

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d09e
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d470
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d49e
test al, 0x10
jne 0x40d49e
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327eb
leave
ret
xor bl, bl
jmp 0x40d482

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d09e
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d4d7
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d505
test al, 0x10
je 0x40d505
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327eb
leave
ret
xor bl, bl
jmp 0x40d4e9
Function at 0x40dba4
Capabilities:
Move file

Disassembly:
jmp 0x40f510
cmp dword [eax + 0x18], 8
jb 0x40f51b
mov eax, dword [eax + 4]
jmp 0x40f51e
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40f529
mov ecx, dword [ecx + 4]
jmp 0x40f52c
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40dba9
Capabilities:
Create directory

Disassembly:
jmp 0x40f53a
cmp dword [eax + 0x18], 8
jb 0x40f545
mov eax, dword [eax + 4]
jmp 0x40f548
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x4446fc
mov esi, ecx
call fcn.004326c2
pop ecx
push eax
mov eax, esi
call fcn.0040de93
cmp eax, 0xffffffff
jne 0x40dc0f
cmp dword [esi + 0x18], 8
jb 0x40dbf9
mov esi, dword [esi + 4]
jmp 0x40dbfc
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40dc2c
lea eax, [ebp - 0x50]
call fcn.0040d29c
push eax
push esi
call fcn.0040dae2
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x50]
call fcn.0040d2ca
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004327eb
leave
ret

Function at 0x40e722
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x100000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40e737
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40e805
cmp eax, ebx
je 0x40e805
jmp 0x40e772
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40e805
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040fb75
test al, al
jne 0x40e7a0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x20]
mov ebx, dword [eax]
push 0
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
add ebx, 0x18
push dword [ebp - 0x18]
call fcn.0040e1ed
sub esp, 0x1c
mov esi, esp
call fcn.00401aa6
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x40e805
and dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
add dword [ebp - 4], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
test eax, eax
jne 0x40e770
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x40f41a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.00432b90
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40f47c
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.00401338
mov al, 1
jmp 0x40f47e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004327eb
leave
ret

Function at 0x40f4df
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40f4e9
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40f4fc
mov eax, dword [eax + 4]
jmp 0x40f4ff
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40f55c
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40f574
mov eax, dword [edi]
jmp 0x40f576
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f588
mov al, 1
jmp 0x40f624
cmp dword [esi + 0x18], 8
jb 0x40f592
mov eax, dword [edi]
jmp 0x40f594
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40f622
cmp dword [esi + 0x18], 8
jb 0x40f5ad
mov eax, dword [edi]
jmp 0x40f5af
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040118b
push 0
lea eax, [ebp - 0x20]
call fcn.0040f4df
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00401452
test bl, bl
pop ebx
jne 0x40f622
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40f5e9
mov eax, dword [edi]
jmp 0x40f5eb
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f581
cmp dword [esi + 0x18], 8
jb 0x40f600
mov eax, dword [edi]
jmp 0x40f602
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0040118b
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040f4df
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40f642
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x45093c], ebx
push esi
mov esi, ecx
je 0x40f677
push 0xffffffffffffffff
push esi
mov eax, 0x450928
call fcn.004016e9
mov al, 1
jmp 0x40f713
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00432b90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40f711
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.00432b90
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x40f701
cmp eax, ebx
je 0x40f701
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40f707
lea eax, [ebp - 0x210]
call fcn.00401338
jmp 0x40f670
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004327eb
leave
ret

Function at 0x40f721
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.00432b90
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40f76f
mov edi, dword [edi + 4]
jmp 0x40f772
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40f77d
mov ebx, dword [ebx + 4]
jmp 0x40f780
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40f7a7
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00401338
mov al, 1
jmp 0x40f7a9
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327eb
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f8a2
mov eax, dword [eax + 4]
jmp 0x40f8a5
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x40fb75
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fba2
xor al, al
jmp 0x40fbbd
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043d3b0
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x40fc4c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40fc54
mov dword [ecx*4 + 0x4573e0], eax
inc ecx
cmp ecx, 0x100
jb 0x40fc4f
mov edx, 0x800
jmp 0x40fca1
mov eax, dword [ecx*4 + 0x456fe0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4573e0]
inc ecx
mov dword [ecx*4 + 0x4573dc], eax
cmp ecx, edx
jb 0x40fc80
mov dword [0x453bd4], 0x440ea0
call fcn.0040fe55
test eax, eax
pop esi
jne 0x40fcc3
mov dword [0x453bd4], 0x440dc0
ret
Function at 0x41d213
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41d22a
add eax, eax
xor eax, 0x4c11db7
jmp 0x41d22c
add eax, eax
dec edx
test edx, edx
jg 0x41d21d
mov dword [ecx*4 + 0x453bd8], eax
inc ecx
cmp ecx, 0x100
jb 0x41d215
ret