joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405500
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x427330]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00411070
add esp, 0xc
mov dword [ebp - 0x214], 0
mov edx, dword [ebp + 8]
push edx
push 0x4227bc
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00411a1b
add esp, 0x10
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x405585
cmp dword [ebp - 0x218], 0xffffffff
jne 0x40558c
xor eax, eax
jmp 0x4056cd
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 2]
test edx, edx
jne 0x4055b2
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x2e
jne 0x4055b2
jmp 0x40566f
mov edx, dword [ebp - 4]
movzx eax, word [edx + 4]
test eax, eax
jne 0x4055d9
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x2e
jne 0x4055d9
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
cmp ecx, 0x2e
jne 0x4055d9
jmp 0x40566f
lea edx, [ebp - 0x43c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x4227cc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00411a1b
add esp, 0x14
mov edx, dword [ebp - 0x468]
and edx, 1
je 0x40561f
mov eax, dword [ebp - 0x468]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x468]
and edx, 0x10
je 0x405641
lea eax, [ebp - 0x210]
push eax
call fcn.00405500
add esp, 4
mov dword [ebp - 0x214], eax
jmp 0x405654
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push str.DeleteFile__s____d
call fcn.00408a40
add esp, 0xc
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40558c
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x468]
and ecx, 1
je 0x4056b7
mov edx, dword [ebp - 0x468]
and edx, 0xfffffffe
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00411054
mov esp, ebp
pop ebp
ret
Function at 0x406070
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
ja 0x4060c3
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4060c1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40607f
mov esp, ebp
pop ebp
ret

Function at 0x4063e0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp + 8], eax
jne 0x406404
mov dword [ebp - 4], 1
jmp 0x40649b
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
je 0x406466
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
jmp 0x406473
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40648f
push 9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40649b
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4064b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x427330]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00411070
add esp, 0xc
push 0x11c
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.00411070
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406533
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406533
xor eax, eax
jmp 0x40656f
cmp dword [ebp - 0x124], 6
jb 0x406559
mov ecx, dword [ebp - 0x124]
push ecx
push str.IsVistaOrMore____TRUE__MajorVersion_d_
call fcn.00408e70
add esp, 8
mov eax, 1
jmp 0x40656f
mov edx, dword [ebp - 0x124]
push edx
push str.IsVistaOrMore____FALSE__MajorVersion_d_
call fcn.00408e70
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411054
mov esp, ebp
pop ebp
ret

Function at 0x406890
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x427330]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00411070
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4068fa
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4068fa
xor eax, eax
jmp 0x406972
mov eax, dword [ebp + 0x10]
and eax, 0x80000
je 0x40691f
cmp dword [ebp - 0x124], 5
jb 0x406916
cmp dword [ebp - 0x120], 1
jae 0x40691f
cmp dword [ebp - 0x124], 6
jbe 0x40696f
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x40696f
push str.AnimateWindow
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x40696f
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x130]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00411054
mov esp, ebp
pop ebp
ret
Function at 0x406980
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406a7e
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x406a24
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x406a22
cmp dword [ebp + 0x10], 0
jbe 0x406a00
cmp dword [ebp + 0x10], 0
je 0x4069c6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x4069cd
mov dword [ebp - 4], 0xc8
push 0xa0000
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406890
add esp, 0xc
test eax, eax
jne 0x4069f2
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp + 8]
push ecx
call fcn.004063e0
add esp, 4
jmp 0x406a7e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x406a7e
cmp dword [ebp + 0x10], 0
jbe 0x406a72
cmp dword [ebp + 0x10], 0
je 0x406a46
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x406a4d
mov dword [ebp - 8], 0xc8
push 0x90000
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406890
add esp, 0xc
test eax, eax
jne 0x406a72
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x409230
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4092aa
mov edx, dword [ebp - 4]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4092aa
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4092a5
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4092aa
mov eax, dword [ebp - 0xc]
jmp 0x4092ac
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4092b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x4092c7
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
push 0x10
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40931f
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x409313
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409313
mov eax, dword [ebp - 8]
jmp 0x409321
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40b14f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x40b190
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x40b169
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40b1ae
dec esi
je 0x40b1a5
dec esi
jne 0x40b1b3
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x411054
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427330]
jne 0x41105e
repz ret
jmp fcn.0041759c
Function at 0x4170ee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41711f
call fcn.00410b62
mov dword [eax], esi
call fcn.00410b4f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00415a26
add esp, 0x14
push 0x16
pop eax
jmp 0x417174
test dword [ebp + 0xc], 0xfffffff9
jne 0x4170fb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41714c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410b75
pop ecx
call fcn.00410b4f
mov eax, dword [eax]
jmp 0x417174
test al, 0x10
jne 0x417172
test al, 1
je 0x417172
test byte [ebp + 0xc], 2
je 0x417172
call fcn.00410b62
mov dword [eax], 5
call fcn.00410b4f
mov dword [eax], 0xd
jmp 0x417143
xor eax, eax
pop esi
pop ebp
ret

Function at 0x41bd4e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004168ac
and dword [ebp - 4], 0
cmp dword [0x4340d4], 0
mov ebx, eax
jne 0x41bdff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41beb0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41beb0
push eax
call fcn.0041683a
mov dword [esp], 0x4239d4
push edi
mov dword [0x4340d4], eax
call esi
push eax
call fcn.0041683a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4340d8], eax
call esi
push eax
call fcn.0041683a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4340dc], eax
call esi
push eax
call fcn.0041683a
pop ecx
mov dword [0x4340e4], eax
test eax, eax
je 0x41bdff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041683a
pop ecx
mov dword [0x4340e0], eax
mov eax, dword [0x4340e0]
cmp eax, ebx
je 0x41be57
cmp dword [0x4340e4], ebx
je 0x41be57
push eax
call fcn.004168b5
push dword [0x4340e4]
mov esi, eax
call fcn.004168b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41be57
test edi, edi
je 0x41be57
call esi
test eax, eax
je 0x41be4e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41be4e
test byte [ebp - 0xc], 1
jne 0x41be57
or dword [ebp + 0x10], 0x200000
jmp 0x41be90
mov eax, dword [0x4340d8]
cmp eax, ebx
je 0x41be90
push eax
call fcn.004168b5
pop ecx
test eax, eax
je 0x41be90
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41be90
mov eax, dword [0x4340dc]
cmp eax, ebx
je 0x41be90
push eax
call fcn.004168b5
pop ecx
test eax, eax
je 0x41be90
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4340d4]
call fcn.004168b5
pop ecx
test eax, eax
je 0x41beb0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41beb2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42fa3b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42fa7a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42fa7a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42fa7a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42fa7a
cmp dword [ecx + 0x74], 0xe
jbe 0x42fa7a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4355f8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x435695
push ebx
push esi
call fcn.004355c1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00435555
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x435642
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x435694
push edi
push eax
call fcn.00433f5b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x435662
call fcn.00433fa9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x435693
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00435555
add esp, 0x20
test eax, eax
jne 0x435681
push edi
call fcn.00433fa9
jmp 0x435689
push ebx
call fcn.00433fa9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4368a4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f0d8
push 0x43f0d0
push str.FlsAlloc
push 0x1f
call fcn.00436763
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4368d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d134]
call esi
jmp 0x4368de
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x436922
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f0e8
push 0x43f0e0
push str.FlsGetValue
push 0x21
call fcn.00436763
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436959
push dword [ebp + 8]
mov ecx, esi
call dword [0x43d134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x436961
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f0f0
push 0x43f0e8
push str.FlsSetValue
push 0x22
call fcn.00436763
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43699b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43d134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43bd60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43bd8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43bd8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4034c0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x5bcccc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x403690
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.00466080
jmp fcn.004034c0
Function at 0x40d010
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x5bcccc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40d1db
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40d039
mov eax, 0x7000000
jmp 0x40d041
test eax, eax
je 0x40d1b6
mov dword [esp + 0x34], eax
mov ecx, dword [0x5bcccc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x4a4]
mov ebx, dword [ecx + 0x4a8]
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x4a4], ebx
mov dword [ecx + 0x4a8], ebp
mov dword [esp], edx
call fcn.00467430
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x24]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x571e00]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40d1ce
cmp edx, 0x21
jae 0x40d1c2
movsd qword [esp + 0x14], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x1c], xmm0
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.00460000
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x2c], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004600d0
movsd xmm0, qword [esp + 0x2c]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x4f5748]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x4f57b8]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40d191
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x4f5800]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, edx
mov ecx, 0x21
call fcn.00467510
mov eax, edx
mov ecx, 0x21
call fcn.004675a0
nop
call fcn.00466080
jmp fcn.0040d010