joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7a3f06c6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x381e5e83
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5a5d59ab
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x900e34b5
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403ffd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push edi
mov ebx, ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4040b4
push esi
push 1
push edi
call fcn.005f0058
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4040b1
push esi
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4040aa
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 4]
push eax
push 0x693b5c
push esi
call ebx
test eax, eax
je 0x4040aa
cmp dword [ebp - 4], 0
je 0x4040aa
push 0x14
call fcn.00430c2b
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
test edi, edi
je 0x4040a4
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x10]
and dword [eax], 0
push eax
push 0x693b58
push esi
mov dword [edi], vtable.cf::FileVersionInfo.0
mov dword [edi + 4], esi
call ebx
jmp 0x4040a6
xor edi, edi
mov eax, edi
jmp 0x4040b3
push esi
call fcn.005f0063
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4042b4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov ax, word [edi + 8]
mov word [ebp - 0x18], ax
mov ax, word [edi + 0xc]
mov word [ebp - 0x16], ax
call esi
mov word [ebp - 0x14], ax
mov ebx, 0x4e4
mov ax, word [edi + 0xc]
mov word [ebp - 0x12], ax
mov ax, word [edi + 8]
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
call esi
mov word [ebp - 0xa], bx
xor esi, esi
mov word [ebp - 0xc], ax
mov ebx, 0x104
push dword [ebp + 8]
movzx eax, word [ebp + esi*2 - 0x16]
movzx ecx, word [ebp + esi*2 - 0x18]
add esi, 2
push eax
push ecx
push 0x693d68
push ebx
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00403e80
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
add esp, 0x1c
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x404356
cmp dword [ebp - 4], 0
jne 0x404366
cmp esi, 8
jb 0x404308
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
call fcn.00404417
mov al, 1
jmp 0x40435d
Function at 0x4051a1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40523c
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp dword [ebp - 8], ebx
jne 0x40522a
cmp eax, 0x200000
ja 0x40522a
add eax, 2
push eax
call fcn.004998d3
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40522a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jne 0x40522a
mov byte [eax + esi], bl
mov eax, dword [ebp - 4]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov esi, ebx
mov eax, dword [ebp + 0x10]
inc ebx
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40523c
push esi
call fcn.004998ce
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a9d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x40aa5f
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push str.ProgramPath
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x40aa0f
cmp dword [ebp - 8], 2
jne 0x40aa5f
mov ecx, dword [ebp + 0xc]
call fcn.00406271
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.0040682a
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.ProgramPath
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aa55
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00408f1c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40aa7d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ecx], edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [edx], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40ab09
push esi
push ebx
call fcn.004998d3
pop ecx
mov esi, eax
push esi
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40aafd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x693b58
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40aafd
cmp dword [ebp - 8], edi
je 0x40aafd
mov ecx, dword [ebp - 0xc]
inc edi
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test esi, esi
je 0x40ab08
push esi
call fcn.004998ce
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40abe3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60cc5d
call fcn.0060bcd8
sub esp, 0x210
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
mov ecx, esi
call fcn.004065d8
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.005e1720
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004060f8
mov ecx, esi
call fcn.0040ab52
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ad3b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x11c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.005e1720
add esp, 0xc
mov dword [ebp - 0x11c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x11c]
push eax
call esi
test eax, eax
jne 0x40ad92
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x114
push eax
call esi
test eax, eax
je 0x40ae42
mov eax, dword [ebp - 0x10c]
sub eax, 1
je 0x40ae2d
sub eax, 1
jne 0x40ae42
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
push 6
pop edx
cmp eax, edx
jne 0x40ade2
cmp ecx, 1
jne 0x40adcf
xor ebx, ebx
cmp byte [ebp - 2], cl
setne bl
add ebx, 8
jmp 0x40ae42
test ecx, ecx
jne 0x40ae15
cmp byte [ebp - 2], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x40ae42
cmp eax, 5
jne 0x40ae07
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x40adf6
push 5
jmp 0x40ae0e
cmp eax, 1
jne 0x40adff
mov ebx, edx
jmp 0x40ae42
test eax, eax
jne 0x40ae42
push 3
jmp 0x40ae0e
cmp eax, 4
ja 0x40ae11
push 4
pop ebx
jmp 0x40ae42
cmp eax, edx
jb 0x40ae42
cmp ecx, 2
jae 0x40ae1e
cmp eax, edx
jbe 0x40ae42
cmp byte [ebp - 2], 1
jne 0x40ae42
call fcn.0040ac67
mov ebx, eax
jmp 0x40ae42
mov eax, dword [ebp - 0x110]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb ebx, ebx
add ebx, 2
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b542
test al, 0x10
jne 0x40b542
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x41298e
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
mov dword [ecx], 0x67452301
push 0x40
lea esi, [ecx + 0x58]
mov dword [ecx + 0x14], eax
push eax
push esi
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
call fcn.005e1720
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x413262
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x58], 0
jne 0x41329a
push 0x98
call fcn.00430c2b
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x41328d
mov ecx, esi
call fcn.0041298e
jmp 0x41328f
xor esi, esi
mov dword [edi + 0x58], esi
test esi, esi
jne 0x41329a
xor eax, eax
jmp 0x4132fd
push 0x695a84
push dword [ebp + 8]
call fcn.005e877e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413296
cmp dword [edi + 0x5c], 0
jne 0x4132d1
push 0xff
call fcn.004998d3
pop ecx
mov dword [edi + 0x5c], eax
jmp 0x4132d1
mov ecx, dword [edi + 0x58]
push eax
push dword [edi + 0x5c]
call fcn.004129c6
push esi
push 0xff
push 1
push dword [edi + 0x5c]
call fcn.005edd57
add esp, 0x10
test eax, eax
jne 0x4132c5
push esi
call fcn.005e4e6d
pop ecx
mov ecx, dword [edi + 0x58]
lea esi, [edi + 4]
push esi
call fcn.00412a63
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413305
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push 0x58
lea eax, [esp + 0xc]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.005e1720
push dword [ebp + 8]
and dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
and dword [esp + 0x28], 0
mov edx, esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.0041336e
add esp, 0x10
lea ecx, [esp + 8]
mov edx, edi
call fcn.0041340f
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414b66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], 4
cmp dword [ecx], esi
je 0x414ba5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414ba5
cmp dword [ebp - 8], 4
jne 0x414ba5
mov ecx, dword [ebp + 0xc]
inc esi
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x414bae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x414c34
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x414be4
cmp dword [ebp - 8], 2
jne 0x414c34
mov ecx, dword [ebp + 0xc]
call fcn.00406271
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.0040682a
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.KAV7NEEDREBOOT
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414c2a
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00408f1c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x415a37
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x60d4ac
call fcn.0060bcd8
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x415a75
push dword [ebp + 8]
call fcn.005f0068
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x415a79
mov eax, edi
jmp 0x415a8f
lea esi, [eax + eax]
mov eax, esi
call fcn.0060b1b0
mov edx, dword [ebp + 8]
mov ecx, esp
push ecx
push esi
call fcn.00404a71
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d0b
mov esi, dword [ebp - 0x14]
movzx eax, word [esi - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x415aaf
xor byte [edi + esi], 0x88
inc edi
cmp edi, eax
jl 0x415aa6
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [edi + 4]
call fcn.0041587b
movzx eax, word [ebp - 0x10]
lea ecx, [edi + 4]
push eax
push esi
call fcn.0041587b
lea ecx, [esi - 0x10]
call fcn.00404ea9
lea esp, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415be7
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x60d4d1
call fcn.0060bcd8
sub esp, 0x90
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00406173
mov byte [ebp - 4], 1
lea eax, [ebp - 0x98]
push 0xfde9
push dword [ebp - 0x18]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], eax
call fcn.00408f48
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push dword [ebp - 0x9c]
call fcn.00405d0b
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x9c], eax
je 0x415c70
push dword [ebp - 0x9c]
call fcn.005f0063
pop ecx
mov esi, dword [ebp - 0x14]
movzx eax, word [esi - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x415c87
xor byte [edi + esi], 0x88
inc edi
cmp edi, eax
jl 0x415c7e
push 2
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.0041587b
movzx eax, word [ebp - 0x10]
lea ecx, [ebx + 4]
push eax
push esi
call fcn.0041587b
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x416c62
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x60d5c4
call fcn.0060bcd8
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov edi, ecx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x20]
call fcn.004065d8
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
mov byte [ebp - 4], 1
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
mov byte [ebp - 4], 2
call fcn.00416bda
test eax, eax
je 0x416d21
lea ecx, [ebp - 0x14]
call fcn.00416c37
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
je 0x416d24
push str.binTimwp.exe
lea ecx, [ebp - 0x10]
call fcn.004062d3
mov esi, dword [ebp - 0x10]
push ebx
push esi
call fcn.005f18e0
pop ecx
pop ecx
test eax, eax
jne 0x416d24
test edi, edi
je 0x416d24
push 1
push ebx
push edi
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg bl
test ebx, ebx
jne 0x416d3f
jmp 0x416d24
mov esi, dword [ebp - 0x10]
push 1
push ebx
push ebx
push dword [ebp - 0x18]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x416ee1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0x104
jb 0x416f02
xor al, al
jmp 0x416f83
push 0x20a
xor ebx, ebx
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.005e1720
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x416f1f
mov esi, dword [esi]
push esi
lea eax, [esp + 0x34]
push 0x105
push eax
call fcn.005f187c
add esp, 0xc
mov dword [esp + 0x10], ebx
xor eax, eax
lea edi, [esp + 0x14]
push 6
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, 0x414
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x22], ebx
jne 0x416efb
test eax, eax
je 0x416f7e
cmp eax, 2
je 0x416f7e
cmp eax, 0x402
jne 0x416f81
xor ebx, ebx
inc ebx
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417483
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x60d5e8
call fcn.0060bcd8
sub esp, 0x30
push ebx
push esi
mov esi, ecx
or ebx, 0xffffffff
mov ecx, dword [ebp + 8]
cmp ecx, ebx
mov dword [ebp - 0x14], esi
sete al
test al, al
je 0x4174a4
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x417607
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4174d3
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4174d3
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x417606
cmp dword [esi + 0x4c], 0
je 0x417604
mov ecx, esi
call fcn.00417729
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x417503
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.00416ea7
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x417604
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x3c], cl
lea ecx, [ebp - 0x3c]
push 8
mov byte [ebp - 0x10], al
mov dword [ebp - 0x28], 0xf
call fcn.0040984f
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x28]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmp edi, 0x10
lea edx, [ebp - 0x3c]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x3c]
cmovae edx, dword [ebp - 0x3c]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call dword [edi + 0x1c]
test eax, eax
js 0x4175f8
cmp eax, 1
jg 0x4175dd
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
cmp edi, 0x10
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x20], edx
je 0x4175ae
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x3c]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.005f2439
mov edx, dword [ebp - 0x20]
add esp, 0x10
cmp edx, eax
jne 0x4175f8
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x24], eax
jne 0x4175d8
test edx, edx
jne 0x41752e
cmp dword [ebp - 0x2c], 0x20
jae 0x4175f8
push edx
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040a72d
jmp 0x41752b
mov ebx, dword [ebp + 8]
jmp 0x4175f8
cmp eax, 3
jne 0x4175f8
mov eax, dword [ebp - 0x14]
push dword [eax + 0x4c]
push dword [ebp - 0x10]
call fcn.00416ea7
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004097fa
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x417777
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x60d5fa
call fcn.0060bcd8
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41787b
cmp byte [ebx + 0x3d], 0
je 0x41787b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4177b5
xor al, al
jmp 0x41787d
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0040984f
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x417813
sub eax, 1
je 0x417817
dec eax
sub eax, 1
je 0x417869
xor bl, bl
jmp 0x41786b
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x14]
cmovae eax, edx
sub esi, eax
je 0x41784f
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005f2439
add esp, 0x10
cmp esi, eax
jne 0x41780f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3d], 0
je 0x417869
test esi, esi
jne 0x4177d9
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a72d
jmp 0x4177d3
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004097fa
mov al, bl
jmp 0x41787d
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret