joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411ef6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], ecx
and word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004031e0
add esp, 0xc
cmp dword [ebp - 0x218], 0
jne 0x411f39
xor eax, eax
jmp 0x411ff2
mov ecx, dword [ebp - 0x214]
call fcn.004131f4
movzx eax, al
test eax, eax
je 0x411f62
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov dword [ebp - 4], eax
jmp 0x411f77
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411f88
cmp dword [ebp - 4], 0x104
jae 0x411f88
jmp 0x411f9a
push 0x42724c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [ebp + eax*2 - 0x212]
cmp eax, 0x5c
je 0x411fcc
push 0x426f7c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea edx, [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
call fcn.00413434
leave
ret

Function at 0x411ff4
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x290], ecx
cmp dword [ebp - 0x294], 0
jne 0x412019
xor al, al
jmp 0x4120d8
push 0x20
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x28c], eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jne 0x4120ce
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4120ce
push 0x104
push dword [ebp - 0x294]
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
and word [ebp - 0x80], 0
push 7
lea edx, [ebp - 0x80]
mov ecx, dword [ebp - 0x290]
call fcn.00413c8f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4120bb
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
setne al
leave
ret 4
Function at 0x412449
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4238d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x23c], ecx
lea ecx, [ebp - 0x1c]
call fcn.00401068
and dword [ebp - 4], 0
push 1
push 0x104
lea edx, [ebp - 0x234]
mov ecx, dword [ebp - 0x23c]
call fcn.00415b6c
movzx eax, al
test eax, eax
je 0x4125f2
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x23c]
call fcn.00415aba
mov dword [ebp - 0x28], eax
push 1
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
call fcn.004105e1
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040100f
mov edx, eax
mov ecx, dword [ebp - 0x23c]
call fcn.00415ad6
movzx eax, al
test eax, eax
jne 0x412507
mov byte [ebp - 0x235], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004010a3
mov al, byte [ebp - 0x235]
jmp 0x41260b
push 2
lea edx, [ebp - 0x234]
mov ecx, dword [ebp - 0x23c]
call fcn.00411abb
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4125f2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.0040100f
push eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x23c]
call fcn.004119b9
test eax, eax
je 0x412553
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x28]
je 0x41257f
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x23c]
call fcn.00411aa5
mov byte [ebp - 0x236], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004010a3
mov al, byte [ebp - 0x236]
jmp 0x41260b
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x23c]
call fcn.00411aa5
mov edx, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x23c]
call fcn.00411bcd
movzx eax, al
test eax, eax
je 0x4125c0
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4125c0
push 1
mov edx, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x23c]
call fcn.00411ff4
push dword [ebp - 0x240]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4125f2
mov byte [ebp - 0x237], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004010a3
mov al, byte [ebp - 0x237]
jmp 0x41260b
mov byte [ebp - 0x238], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004010a3
mov al, byte [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x412a07
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x412a42
xor al, al
jmp 0x412ab3
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x412aa5
push dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
call dword [ebp - 0x23c]
pop ecx
pop ecx
movzx eax, al
cmp eax, 1
jne 0x412aa5
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x412aa5
push dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
call dword [ebp - 0x23c]
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x412aa3
jmp 0x412aa5
jmp 0x412a72
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret 4

Function at 0x4130bb
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
cmp dword [0x434ea4], 0
jne 0x413111
push 0xf0000040
push 1
push 0x4270e8
push 0
push 0x434ea4
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x413111
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x413111
mov dword [ebp - 4], str.MyKeyContainer
push 8
push 1
push 0
push dword [ebp - 4]
push 0x434ea4
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [0x434ea4]
leave
ret

Function at 0x413247
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x14], 0
jne 0x413260
xor al, al
jmp 0x413312
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41327f
xor al, al
jmp 0x413312
push 0xf01ff
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4132a6
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x413312
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4132f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x4132f0
and dword [ebp - 0x18], 0
jmp 0x4132f7
mov dword [ebp - 0x18], 1
mov al, byte [ebp - 0x18]
mov byte [ebp - 5], al
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 5]
leave
ret
Function at 0x413729
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], 0x20
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x3c]
call fcn.004130bb
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x413776
mov eax, dword [ebp - 0x24]
xor edx, edx
div dword [ebp - 0x40]
mov dword [0x434eb0], edx
jmp 0x4137b6
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx esi, word [ebp - 0x2a]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
shl eax, 0xd
xor esi, eax
xor esi, dword [0x434eb0]
mov dword [0x434eb0], esi
mov eax, dword [0x434eb0]
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
xor edx, edx
div dword [ebp - 0x40]
mov dword [0x434eb0], edx
mov eax, dword [0x434eb0]
pop edi
pop esi
leave
ret

Function at 0x4137e7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ecx
push 0x44
lea eax, [ebp - 0x58]
push eax
call fcn.0040103d
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.0040103d
pop ecx
pop ecx
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 0x81
and word [ebp - 0x28], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x413859
cmp dword [ebp + 0xc], 0
je 0x413855
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov al, 1
jmp 0x41385b
xor al, al
leave
ret 8
Function at 0x4142f6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x78c], 0
jg 0x414312
xor al, al
jmp 0x4143fa
and dword [ebp - 0xc], 0
jmp 0x41431f
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x78c]
jge 0x4143f8
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x431920], ecx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x431924], ecx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xc
and dword [eax + 0x431928], 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xc
add eax, 0x431920
push eax
push 0x413935
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], 0xffffffff
jne 0x414393
jmp 0x4143e8
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ecx + eax + 0x518]
test eax, eax
jne 0x4143b3
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + eax + 0x51c]
add eax, dword [ecx + 0x431928]
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx + 0x51c], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414318
mov al, 1
leave
ret

Function at 0x4143fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
and dword [ebp - 0x1c], 0
jmp 0x414412
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x2b78]
jge 0x4144ac
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0x4139b4
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], 0xffffffff
jne 0x41445f
jmp 0x41449c
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax + 0x988]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx + 0x988], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41440b
mov al, 1
leave
ret
Function at 0x4144b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
and dword [ebp - 0xc], 0
jmp 0x4144c6
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x4e7c]
jge 0x414594
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + eax + 0x2b7c]
mov dword [ecx + 0x431aa0], eax
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x431aa4], ecx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 0x2c8c]
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov dword [ecx + 0x431aa8], eax
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov edx, dword [ebp - 0x10]
mov al, byte [edx + eax + 0x2c90]
mov byte [ecx + 0x431aac], al
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0xc]
shl eax, 4
add eax, 0x431aa0
push eax
push 0x413a96
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], 0xffffffff
jne 0x41457b
jmp 0x414584
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4144bf
mov al, 1
leave
ret
Function at 0x41578c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x280], 0
jne 0x4157ab
xor al, al
jmp 0x4158b0
cmp dword [ebp - 0xc], 0
je 0x4157b7
cmp dword [ebp + 8], 0
jg 0x4157be
xor al, al
jmp 0x4158b0
push dword [ebp + 0x18]
mov ecx, 0x433824
call fcn.00401164
cmp eax, 0x12c
jle 0x4157d9
xor al, al
jmp 0x4158b0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x5768], 0
jne 0x4157f3
call fcn.004137bf
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x5768], eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
mov ecx, 0x433824
call fcn.00410ba8
movzx eax, al
test eax, eax
jne 0x415823
xor al, al
jmp 0x4158b0
cmp dword [0x433788], 0
jne 0x415836
call fcn.0041539e
mov dword [0x433788], eax
cmp dword [0x433788], 0
jne 0x415843
xor al, al
jmp 0x4158b0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x5764]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x5764], 0xffffffff
je 0x41586f
cmp dword [ebp - 4], 0x103
je 0x4158ae
mov eax, dword [ebp - 8]
cmp dword [eax + 0x5764], 0xffffffff
je 0x41588a
mov eax, dword [ebp - 8]
push dword [eax + 0x5764]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp - 8]
push 0x4153fb
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x5764], eax
mov al, 1
leave
ret 0x1c

Function at 0x4158b4
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
and dword [ebp - 8], 0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4158d4
cmp dword [ebp + 8], 0
ja 0x4158d8
xor eax, eax
jmp 0x415913
and dword [ebp - 8], 0
jmp 0x4158e5
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jae 0x415910
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
movzx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4306a8]
mov dword [ebp - 4], ecx
jmp 0x4158de
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x415b6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x224], ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x415c2c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x415c12
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x415c12
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x415c12
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, word [ebp + eax*2 - 0x222]
cmp eax, 0x5c
je 0x415bf8
push 0x426f7c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 4]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov al, 1
jmp 0x415c2e
xor al, al
leave
ret 8
Function at 0x415cc9
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 3
jl 0x415d76
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
shl eax, 0x10
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx + 1]
shl ecx, 8
or eax, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx + 2]
or eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0x12
and eax, 0x3f
mov ecx, dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
mov eax, dword [ebp - 8]
shr eax, 0xc
and eax, 0x3f
mov ecx, dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 1], al
mov eax, dword [ebp - 8]
shr eax, 6
and eax, 0x3f
mov ecx, dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 2], al
mov eax, dword [ebp - 8]
and eax, 0x3f
mov ecx, dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 3], al
mov eax, dword [ebp + 8]
sub eax, 3
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
add eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
jmp 0x415cdb
cmp dword [ebp + 8], 0
jne 0x415d87
mov eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x415e0e
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
shl eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
mov eax, dword [ebp - 4]
mov byte [eax + 3], 0x3d
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
je 0x415dde
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
shl eax, 8
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
shr eax, 6
and eax, 0x3f
mov ecx, dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 2], al
jmp 0x415de5
mov eax, dword [ebp - 4]
mov byte [eax + 2], 0x3d
mov eax, dword [ebp - 0xc]
shr eax, 0xc
and eax, 0x3f
mov ecx, dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 1], al
mov eax, dword [ebp - 0xc]
shr eax, 0x12
and eax, 0x3f
mov ecx, dword [ebp - 4]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
mov al, 1
leave
ret 8
Function at 0x417318
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp dword [ebp - 0xc], 0
jl 0x417333
cmp dword [ebp - 0xc], 0x6400000
jle 0x417337
xor eax, eax
jmp 0x417398
cmp dword [ebp - 0xc], 0
jne 0x417344
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
cmp dword [0x4337a4], 0
jne 0x41736b
mov ecx, 0x43384c
call fcn.00401525
movzx eax, al
test eax, eax
jne 0x41736b
xor eax, eax
jmp 0x417398
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0xc]
push 8
push dword [0x4337a4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x417395
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x418bce
Capabilities:
Enumerate browser history

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, 0x434d80
call fcn.00401ca3
mov eax, dword [0x433820]
mov eax, dword [eax*4 + 0x42dd18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x418c0b
mov edx, dword [ebp - 0x10]
mov ecx, 0x434d80
call fcn.00401cb4
mov eax, dword [0x433820]
inc eax
mov dword [0x433820], eax
cmp dword [ebp - 0x10], 0
jne 0x418bde
lea eax, [ebp - 4]
push eax
push 0x425580
push 1
push 0
push str._J7_
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x418cd4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x418cc9
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x418cbe
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 0xc]
test eax, eax
jne 0x418cbe
cmp dword [ebp - 0x38], 0
je 0x418cad
push 0
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call fcn.00413434
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x418ca4
mov edx, dword [ebp - 0x10]
mov ecx, 0x434d80
call fcn.00401cb4
push dword [ebp - 0x38]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x34], 0
je 0x418cbc
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x418c62
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [ebp - 8]
call dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 8]
leave
ret