joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e1ef
Capabilities:
Terminate process

Disassembly:
jmp 0x438630
jmp fcn.004487c0
cmp ecx, dword [0x4a0da0]
jne 0x43863a
repz ret
jmp 0x42e70d

Function at 0x486e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea edi, [ebp - 0x114]
mov ecx, 0x45
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
movzx eax, byte [ebp + 0x14]
cmp eax, 1
jne 0x486e95
mov byte [ebp - 5], 0xf
mov byte [ebp - 0x11], 0xff
mov byte [ebp - 0x1d], 0xff
jmp 0x486ea1
mov byte [ebp - 5], 0
mov byte [ebp - 0x11], 0x10
mov byte [ebp - 0x1d], 1
mov al, byte [ebp - 5]
mov byte [ebp - 0x41], al
jmp 0x486eb6
movzx eax, byte [ebp - 0x1d]
movzx ecx, byte [ebp - 0x41]
add ecx, eax
mov byte [ebp - 0x41], cl
movzx eax, byte [ebp - 0x41]
movzx ecx, byte [ebp - 0x11]
cmp eax, ecx
je 0x486f36
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
movzx eax, byte [ebp + 0x14]
push eax
movzx ecx, byte [ebp - 0x41]
push ecx
call fcn.00486fe0
add esp, 8
mov byte [ebp - 0x4d], al
movzx eax, byte [ebp - 0x41]
and eax, 3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x38], edx
movzx eax, byte [ebp - 0x4d]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004870a0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 4]
xor edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
jmp 0x486ea9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x486f78]
call fcn.0042e695
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x114
cmp ebp, esp
call fcn.0042ef4b
mov esp, ebp
pop ebp
ret

Function at 0x486fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
lea edi, [ebp - 0xdc]
mov ecx, 0x37
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
movzx eax, byte [ebp + 8]
and eax, 0xc
sar eax, 2
movzx ecx, byte [ebp + 0xc]
and ecx, 0xe0
sar ecx, 3
mov dl, byte [eax + ecx + 0x49c1f8]
mov byte [ebp - 5], dl
movzx eax, byte [ebp + 8]
xor eax, 0xff
and eax, 3
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x11]
mov cl, byte [ebp - 0x11]
sub cl, 1
mov byte [ebp - 0x11], cl
test eax, eax
jle 0x48704b
mov dword [ebp - 0xdc], 1
jmp 0x487055
mov dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 0
je 0x487069
mov al, byte [ebp - 5]
shr al, 2
mov byte [ebp - 5], al
jmp 0x48702e
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4010c7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x457220]
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 0x40113a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00434f60
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40113a
lea eax, [ebp - 0x804]
push eax
call fcn.0043501f
pop ecx
add esi, 0x10
lea ecx, [ebp - 0x804]
call fcn.004011a5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004350b5
leave
ret

Function at 0x401582
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x457220]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
cmp dword [eax + 0x18], 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
jb 0x4015b5
mov eax, dword [eax + 4]
jmp 0x4015b8
add eax, 4
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x446ddc
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40164e
cmp dword [ebp - 0x74], ebx
je 0x40164e
mov eax, 0x208
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00434f60
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x401605
mov edi, dword [edi + 4]
jmp 0x401608
add edi, 4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x401637
lea eax, [ebp - 0x70]
push eax
call fcn.0043501f
pop ecx
lea ecx, [ebp - 0x70]
call fcn.004011a5
cmp dword [ebp - 0x74], ebx
je 0x401645
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
jmp 0x401650
xor al, al
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004350b5
add ebp, 0x19c
leave
ret 4

Function at 0x40166a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, ecx
jb 0x40167e
mov eax, dword [eax + 4]
jmp 0x401681
add eax, 4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x446ddc
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4016f6
cmp dword [ebp - 4], ebx
je 0x4016f6
mov eax, dword [esi + 0x14]
add eax, eax
cmp dword [esi + 0x18], 8
jb 0x4016bd
mov esi, dword [esi + 4]
jmp 0x4016c0
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x4016cb
mov ecx, dword [edi + 4]
jmp 0x4016ce
lea ecx, [edi + 4]
push eax
push esi
push 1
push ebx
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x4016ed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4016f8
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x402cdf
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.00434f60
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00434f60
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x402d25
mov esi, dword [esi + 4]
jmp 0x402d28
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x402d36
mov eax, dword [eax + 4]
jmp 0x402d39
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 0x402d5e
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
pop ebx
leave
ret 4
Function at 0x402dcd
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x44389e
call fcn.00437192
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
push 1
sub esp, 0x14
mov dword [ebp - 4], eax
mov esi, esp
mov dword [ebp - 0x68], esp
call fcn.00403dd1
push dword [ebp + 8]
lea ebx, [ebp - 0x7c]
call fcn.00403e54
add esp, 0x1c
mov eax, ebx
call fcn.004037fc
test eax, eax
je 0x402f4f
mov esi, dword [ebp - 0x78]
cmp esi, dword [ebp - 0x74]
jbe 0x402e26
call fcn.00435495
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], esi
mov esi, dword [ebp - 0x74]
cmp dword [ebp - 0x78], esi
jbe 0x402e3c
call fcn.00435495
cmp dword [ebp - 0x68], esi
je 0x402f4f
lea esi, [ebp - 0x6c]
call fcn.004037b5
xor ebx, ebx
cmp dword [eax + 0x14], ebx
je 0x402f39
call fcn.004037b5
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040c12e
pop ecx
pop ecx
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040c6ea
test al, al
je 0x402ec2
lea ecx, [ebp - 0x2c]
call fcn.00402d64
test al, al
je 0x402e95
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00402cdf
jmp 0x402f2b
cmp dword [edi + 0x18], 8
jb 0x402ea0
mov eax, dword [edi + 4]
jmp 0x402ea3
lea eax, [edi + 4]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x402eaf
lea ecx, [ebp - 0x28]
push 1
push eax
push ebx
push ecx
push 0x446e6c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x402f2b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x402ece
lea eax, [ebp - 0x28]
push eax
push 0x507d
lea ecx, [ebp - 0x48]
call fcn.00402c1d
lea eax, [ebp - 0x64]
push 0x507e
push eax
mov byte [ebp - 4], 2
call fcn.00402c00
mov ecx, dword [ebp - 0x60]
add esp, 0x10
cmp dword [ebp - 0x4c], 8
jae 0x402efd
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x402f09
lea eax, [ebp - 0x44]
push ebx
push ecx
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x64]
call fcn.0040115e
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.0040115e
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040115e
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x74]
jb 0x402f46
call fcn.00435495
add dword [ebp - 0x68], 0x1c
jmp 0x402e2f
lea esi, [ebp - 0x7c]
call fcn.004038b4
call fcn.00437215
ret 8

Function at 0x407a43
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x457220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x407a64
mov eax, dword [eax + 4]
jmp 0x407a67
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 0x407a8e
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004350b5
leave
ret 4
Function at 0x408460
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x244
lea ebp, [esp - 4]
mov eax, dword [0x457220]
xor eax, ebp
mov dword [ebp + 0x244], eax
push 0x28
mov eax, 0x44351f
call fcn.00437129
lea eax, [ebp]
mov edi, ecx
push 0x5087
push eax
mov dword [ebp - 0x18], edi
call fcn.00402c00
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x4084a9
lea eax, [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp + 0x38]
push 0
push eax
call fcn.00434f60
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 - 0x14], eax
je 0x408522
push eax
call ebx
test eax, eax
je 0x408522
push 0x104
lea eax, [ebp + 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x408522
and word [ebp + 0x240], 0
lea eax, [ebp + 0x38]
push eax
call fcn.0043501f
pop ecx
lea esi, [edi + 0x230]
lea ecx, [ebp + 0x38]
call fcn.004011a5
jmp 0x408545
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x408545
lea eax, [edi + 0x230]
cmp dword [eax + 0x18], 8
jb 0x40853c
mov eax, dword [eax + 4]
jmp 0x40853f
add eax, 4
push eax
push dword [ebp - 0x14]
call esi
add edi, 0x230
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], edi
call fcn.0042f99b
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401223
push ebx
push 1
lea esi, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.0040115e
mov esi, dword [ebp - 0x18]
cmp byte [esi + 0x98], bl
je 0x408618
cmp dword [esi + 0x90], ebx
je 0x408618
lea ecx, [esi + 0x7c]
mov eax, edi
call fcn.0040b91c
test eax, eax
je 0x408618
lea eax, [esi + 0x298]
lea esi, [ebp + 0x1c]
call fcn.00403705
mov byte [ebp - 4], 2
call fcn.0040bb97
push 0x3a
call fcn.0040ba44
push 0x5c
call fcn.0040ba44
pop ecx
pop ecx
mov edi, str.SoftwareHaoZip_SFX
push edi
lea eax, [ebp - 0x34]
call fcn.004036d9
lea eax, [ebp - 0x34]
call fcn.0040152f
push ebx
push 1
lea esi, [ebp - 0x34]
mov byte [ebp - 0xd], al
call fcn.0040115e
cmp byte [ebp - 0xd], bl
je 0x40860d
push edi
lea eax, [ebp - 0x34]
call fcn.004036d9
mov ecx, dword [ebp - 0x14]
lea edi, [ebp + 0x1c]
lea eax, [ebp - 0x34]
call fcn.0040166a
push ebx
push 1
lea esi, [ebp - 0x34]
call fcn.0040115e
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.0040115e
push ebx
push 1
lea esi, [ebp]
call fcn.0040115e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.004350b5
add ebp, 0x248
leave
ret
Function at 0x409e56
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
sub esp, 0x434
lea ebp, [esp - 4]
mov eax, dword [0x457220]
xor eax, ebp
mov dword [ebp + 0x434], eax
push 0x40
mov eax, 0x442044
call fcn.00437129
mov esi, 0x208
xor ebx, ebx
push esi
lea eax, [ebp + 0x22a]
push ebx
push eax
mov word [ebp + 0x228], bx
call fcn.00434f60
push esi
lea eax, [ebp + 0x1e]
push ebx
push eax
mov word [ebp + 0x1c], bx
call fcn.00434f60
add esp, 0x18
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
mov esi, 0x104
push esi
lea eax, [ebp + 0x228]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a011
push esi
lea eax, [ebp + 0x228]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40a011
push esi
lea eax, [ebp + 0x1c]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40a011
mov esi, str._c_del
push esi
mov word [ebp + 0x430], bx
mov word [ebp + 0x224], bx
call fcn.0043501f
pop ecx
mov ecx, esi
lea esi, [ebp]
call fcn.004011a5
mov esi, 0x446e78
push esi
lea eax, [ebp]
push eax
call fcn.00403724
lea eax, [ebp + 0x228]
push eax
lea eax, [ebp]
push eax
call fcn.00403724
push esi
lea eax, [ebp]
push eax
call fcn.00403724
push str.__nul
lea eax, [ebp]
push eax
call fcn.00403724
cmp dword [ebp + 0x18], 8
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], str.Open
jae 0x409f82
lea eax, [ebp + 4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], 0x8040
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a011
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push dword [ebp - 0x14]
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
lea eax, [ebp + 0x228]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov byte [ebp - 0xd], 1
push ebx
push 1
lea esi, [ebp]
call fcn.0040115e
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x434]
xor ecx, ebp
call fcn.004350b5
add ebp, 0x438
leave
ret
mov byte [ebp - 0xd], bl
jmp 0x409fe0
Function at 0x40c6c7
Capabilities:
Move file

Disassembly:
jmp 0x40e781
cmp dword [eax + 0x18], 8
jb 0x40e78c
mov eax, dword [eax + 4]
jmp 0x40e78f
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40e79a
mov ecx, dword [ecx + 4]
jmp 0x40e79d
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40c6cc
Capabilities:
Delete directory

Disassembly:
jmp 0x40e7ab
cmp dword [eax + 0x18], 8
jb 0x40e7b6
mov eax, dword [eax + 4]
jmp 0x40e7b9
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
ret

Function at 0x40c6d1
Capabilities:
Create directory

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

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

Disassembly:
push 0x20
mov eax, 0x441679
call fcn.00437192
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00403705
and dword [ebp - 4], 0
mov eax, esi
push 0x446e78
push eax
call fcn.0040bb3d
push 0x447660
mov eax, esi
call fcn.0040bace
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x40ca2d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ca53
test al, 0x10
je 0x40ca53
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.0040115e
mov al, bl
call fcn.00437215
ret
xor bl, bl
jmp 0x40ca3f
Function at 0x40e07e
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40e08b
xor al, al
pop ebx
ret
cmp dword [eax + 4], ebx
je 0x40e087
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x40dfc8
push ebx
push ebx
call fcn.004368b6
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40e0c2
or dword [eax + 0x10], 0xffffffff
mov esi, dword [edi]
call fcn.0040e00b
xor al, al
jmp 0x40e0e4
mov byte [eax + 8], 1
mov eax, dword [edi]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40e0e2
mov esi, dword [edi]
call fcn.0040e00b
mov eax, dword [edi]
mov byte [eax + 8], bl
mov al, 1
pop esi
pop ebx
ret

Function at 0x40e762
Capabilities:
Set file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40e76d
mov eax, dword [eax + 4]
jmp 0x40e770
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40e7e8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
jb 0x40e7ff
add edi, 4
mov eax, dword [edi]
jmp 0x40e804
add edi, 4
mov eax, edi
push ebx
push esi
push eax
lea eax, [ebp - 0x1c]
call fcn.004036d9
push 0
lea eax, [ebp - 0x1c]
call fcn.0040e762
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x1c]
inc bl
call fcn.0040115e
pop esi
test bl, bl
pop ebx
je 0x40e838
xor al, al
jmp 0x40e84f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40e843
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop edi
leave
ret

Function at 0x40e86c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x457220]
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.00434f60
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40e91d
and word [ebp - 6], 0
push edi
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 0x40e901
test eax, eax
je 0x40e901
and word [ebp + eax*2 - 0x624], 0
lea eax, [ebp - 0x624]
push eax
call fcn.0043501f
pop ecx
lea ecx, [ebp - 0x624]
jmp 0x40e914
lea eax, [ebp - 0x210]
push eax
call fcn.0043501f
pop ecx
lea ecx, [ebp - 0x210]
call fcn.004011a5
mov al, 1
jmp 0x40e91f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004350b5
leave
ret
Function at 0x40e92c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x457220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
push esi
mov esi, edx
jb 0x40e950
mov eax, dword [eax + 4]
jmp 0x40e953
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40e95e
mov ecx, dword [ecx + 4]
jmp 0x40e961
add ecx, 4
lea edx, [ebp - 0x210]
push edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40e997
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
push eax
call fcn.0043501f
pop ecx
lea ecx, [ebp - 0x210]
call fcn.004011a5
mov al, 1
jmp 0x40e999
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004350b5
leave
ret

Function at 0x40ea6d
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 0x40ea75
mov dword [ecx*4 + 0x45f340], eax
inc ecx
cmp ecx, 0x100
jb 0x40ea70
pop esi
ret

Function at 0x40ec9c
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 0x40ecc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ecc9
xor al, al
jmp 0x40ece4
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043f5c0
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 0x40ee95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40eeaa
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 0x40ef6e
jmp 0x40ef66
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40ef6e
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.0040ec9c
test al, al
jne 0x40ef0c
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0040eb11
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xc], esp
call fcn.00403705
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp eax, ebx
jne 0x40ef6e
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
add dword [ebp - 4], ecx
cmp eax, ebx
jne 0x40eede
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x421ba1
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x421bb8
add eax, eax
xor eax, 0x4c11db7
jmp 0x421bba
add eax, eax
dec edx
test edx, edx
jg 0x421bab
mov dword [ecx*4 + 0x45bb08], eax
inc ecx
cmp ecx, 0x100
jb 0x421ba3
ret