joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410680
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9451
mov eax, dword fs:[0]
push eax
sub esp, 0xca4
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcb0], ecx
xor eax, eax
mov word [ebp - 0x88c], ax
push 0x3e
push 0
lea ecx, [ebp - 0x88a]
push ecx
call fcn.004a8470
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x4deae8
lea ecx, [ebp - 0x88c]
push ecx
call fcn.004a5552
add esp, 0xc
xor edx, edx
mov word [ebp - 0x814], dx
push 0x7fe
push 0
lea eax, [ebp - 0x812]
push eax
call fcn.004a8470
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x84c]
call fcn.00401840
mov dword [ebp - 4], 0
push str.System32_taskkill.exe__f__pid
lea ecx, [ebp - 0x84c]
call fcn.00401920
lea eax, [ebp - 0x88c]
push eax
lea ecx, [ebp - 0x84c]
call fcn.00401920
push 0x4deb30
lea ecx, [ebp - 0x84c]
call fcn.00401920
push str._c__
lea ecx, [ebp - 0xca8]
call fcn.00401840
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84c]
push ecx
lea ecx, [ebp - 0xca8]
call fcn.0040e650
push 0x4deb44
lea ecx, [ebp - 0xca8]
call fcn.00401920
xor edx, edx
mov word [ebp - 0xc8c], dx
push 0x3fe
push 0
lea eax, [ebp - 0xc8a]
push eax
call fcn.004a8470
add esp, 0xc
push 0x400
lea ecx, [ebp - 0xc8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0xc8c]
push edx
lea ecx, [ebp - 0x830]
call fcn.00401840
mov byte [ebp - 4], 2
push 0x4deb48
lea ecx, [ebp - 0x830]
call fcn.00401920
push 0
push 0x4deb5c
lea ecx, [ebp - 0xca8]
call fcn.00402c10
push eax
lea ecx, [ebp - 0x830]
call fcn.00402c10
push eax
push 0x4deb60
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xcac], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x830]
call fcn.004018c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xca8]
call fcn.004018c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84c]
call fcn.004018c0
mov eax, dword [ebp - 0xcac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret 4
Function at 0x4108c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9228
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x410905
mov eax, 1
jmp 0x4109dd
mov eax, dword [0x4e0288]
push eax
push 0x4ddbd0
mov ecx, dword [ebp + 8]
call fcn.00411790
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [0x4e0288]
je 0x4109d4
mov edx, dword [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e790
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402c10
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x410981
lea ecx, [ebp - 0x30]
push ecx
call fcn.004108c0
add esp, 4
test eax, eax
jne 0x410981
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004018c0
mov eax, dword [ebp - 0x38]
jmp 0x4109dd
push 0
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4109c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xb7
je 0x4109c3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004018c0
mov eax, dword [ebp - 0x3c]
jmp 0x4109dd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004018c0
jmp 0x4109d8
xor eax, eax
jmp 0x4109dd
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret
Function at 0x410a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5018
call fcn.004a9260
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
call fcn.0040e670
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402c10
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410acc
xor al, al
jmp 0x410c7d
xor edx, edx
mov word [ebp - 0x5010], dx
push 0x4ffe
push 0
lea eax, [ebp - 0x500e]
push eax
call fcn.004a8470
add esp, 0xc
mov dword [ebp - 0x5014], 0x2800
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x5018], edx
lea eax, [ebp - 0x5014]
push eax
lea ecx, [ebp - 0x5010]
push ecx
lea edx, [ebp - 0x5018]
push edx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402c10
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410ba3
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
jne 0x410b4c
lea edx, [ebp - 0x5010]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.00401900
jmp 0x410b8d
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
je 0x410b5c
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 3
jne 0x410b8d
mov edx, dword [ebp - 0x5010]
push edx
push 0x4ddc24
push 0xffffffffffffffff
push 0x2800
lea eax, [ebp - 0x5010]
push eax
call fcn.004a5608
add esp, 0x14
lea ecx, [ebp - 0x5010]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00401900
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x410c7d
cmp dword [ebp - 8], 2
jne 0x410c71
lea eax, [ebp - 4]
push eax
push 0x101
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402c10
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410bd6
xor al, al
jmp 0x410c7d
lea edx, [ebp - 0x5014]
push edx
lea eax, [ebp - 0x5010]
push eax
lea ecx, [ebp - 0x5018]
push ecx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402c10
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410c71
mov eax, dword [ebp + 0x14]
cmp dword [eax], 1
jne 0x410c22
lea ecx, [ebp - 0x5010]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00401900
jmp 0x410c63
mov edx, dword [ebp + 0x14]
cmp dword [edx], 4
je 0x410c32
mov eax, dword [ebp + 0x14]
cmp dword [eax], 3
jne 0x410c63
mov ecx, dword [ebp - 0x5010]
push ecx
push 0x4ddc2c
push 0xffffffffffffffff
push 0x2800
lea edx, [ebp - 0x5010]
push edx
call fcn.004a5608
add esp, 0x14
lea eax, [ebp - 0x5010]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.00401900
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x410c7d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret
Function at 0x410c90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402c10
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410cef
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402c10
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410d1b
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00402c10
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x410d2b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x410d35
mov al, 1
jmp 0x410d37
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x410ec0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410fb1
xor edx, edx
mov word [ebp - 0x410], dx
push 0x3fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.004a8470
add esp, 0xc
mov dword [ebp - 0x414], 0x200
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410fa7
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402c10
push eax
call fcn.004a617c
add esp, 8
test eax, eax
je 0x410f82
mov ecx, dword [ebp + 0xc]
call fcn.00407be0
movzx eax, al
test eax, eax
je 0x410fa7
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x410fa7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x410fb3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret
Function at 0x410fd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x410ffd
or eax, 0xffffffff
jmp 0x4110a6
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411099
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x411056
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b5e0
add esp, 8
movzx edx, al
test edx, edx
je 0x411054
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x4110a6
jmp 0x411084
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
call fcn.004a617c
add esp, 8
test eax, eax
jne 0x411084
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x4110a6
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 4], eax
jmp 0x41101a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret

Function at 0x4110c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
call fcn.004118a0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4110f2
jmp 0x4111b1
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4111a7
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x411158
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b5e0
add esp, 8
movzx edx, al
test edx, edx
je 0x411156
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0x244]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004117c0
jmp 0x41118f
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
call fcn.004a617c
add esp, 8
test eax, eax
jne 0x41118f
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004117c0
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 4], eax
jmp 0x41110f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret
Function at 0x411480
Capabilities:
Create process on windows
Schedule task via schtasks

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9188
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004a8470
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.00402c10
push eax
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
push str._create__tn__s__tr____s_____sc_ONLOGON___RL_HIGHEST__f
lea edx, [ebp - 0x42c]
push edx
call fcn.00411c00
add esp, 0x10
push 0x44
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.004a8470
add esp, 0xc
mov dword [ebp - 0x484], 0x44
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x458], 1
xor ecx, ecx
mov word [ebp - 0x454], cx
push 0x4de63c
lea ecx, [ebp - 0x2c]
call fcn.00401840
mov dword [ebp - 4], 0
push 0x4de650
lea ecx, [ebp - 0x2c]
call fcn.00401920
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401920
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x484]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402c10
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4115b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
mov byte [ebp - 0x489], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018c0
mov al, byte [ebp - 0x489]
jmp 0x4115eb
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x48a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018c0
mov al, byte [ebp - 0x48a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret
Function at 0x411610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9188
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004a8470
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
push 0x4de654
lea edx, [ebp - 0x42c]
push edx
call fcn.00411c00
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x484]
push eax
call fcn.004a8470
add esp, 0xc
mov dword [ebp - 0x484], 0x44
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x458], 1
xor ecx, ecx
mov word [ebp - 0x454], cx
push str.Schtasks
lea ecx, [ebp - 0x2c]
call fcn.00401840
mov dword [ebp - 4], 0
push 0x4de68c
lea ecx, [ebp - 0x2c]
call fcn.00401920
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401920
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x484]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402c10
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41173c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
mov byte [ebp - 0x489], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018c0
mov al, byte [ebp - 0x489]
jmp 0x411772
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x48a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018c0
mov al, byte [ebp - 0x48a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret

Function at 0x411e00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00411ea0
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 0xa
cmp dword [ebp - 4], ecx
jg 0x411e29
cmp dword [ebp - 4], 0
jne 0x411e38
mov ecx, dword [ebp + 8]
call fcn.00402c10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.004018e0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x24], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x412740
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov eax, 0x34
xor edx, edx
div ecx
add eax, 6
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x9e3779b9
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 1
jae 0x412790
jmp 0x412891
cmp dword [ebp - 0x14], 0
je 0x412891
mov eax, dword [ebp - 0x14]
shr eax, 2
and eax, 3
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x4127b7
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jbe 0x412826
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
shr eax, 5
mov ecx, dword [ebp - 8]
shl ecx, 2
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 3
mov ecx, dword [ebp - 0x18]
shl ecx, 4
xor edx, ecx
add eax, edx
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
and ecx, 3
xor ecx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + ecx*4]
xor ecx, dword [ebp - 0x18]
add edx, ecx
xor eax, edx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx*4]
sub edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 8], ecx
jmp 0x4127ae
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shr edx, 5
mov eax, dword [ebp - 8]
shl eax, 2
xor edx, eax
mov ecx, dword [ebp - 8]
shr ecx, 3
mov eax, dword [ebp - 0x18]
shl eax, 4
xor ecx, eax
add edx, ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and eax, 3
xor eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + eax*4]
xor eax, dword [ebp - 0x18]
add ecx, eax
xor edx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
sub eax, edx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x61c88647
mov dword [ebp - 0x14], ecx
jmp 0x412790
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
Function at 0x416390
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4163a0
xor eax, eax
jmp 0x41653d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4164fe
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dcfa0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dcfa0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4dcfa0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dcfa0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dcfa0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4dcfa0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dcfa0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dcfa0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x4163a9
cmp dword [ebp + 0x10], 0
je 0x416537
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4dcfa0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x416504
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret