joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd048
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4cd16e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d65fc], 0xc
jl 0x4cd088
mov edx, 0x4cd184
mov eax, esi
call fcn.004c3cb8
jmp 0x4cd14d
push 0
push 0
lea eax, [ebp - 0x109]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov ecx, esi
mov dl, 1
mov eax, dword [0x432708]
call fcn.00432e10
mov ebx, eax
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404510
mov edx, dword [ebp - 0x110]
mov eax, ebx
call fcn.004336c0
mov eax, dword [0x4cd1b4]
mov dword [ebx + 0x5c], eax
lea eax, [ebx + 0x60]
mov edx, 0x4cd1c0
call fcn.004042e4
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4cd10d
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00433658
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004cc970
mov eax, ebx
call fcn.00403440
cmp byte [0x4da4e6], 0
je 0x4cd14d
mov byte [0x4da4e6], 0
call fcn.004b8514
mov eax, esi
call fcn.004cc38c
call fcn.004bb46c
mov edx, 0x4cd1fc
mov eax, esi
call fcn.004c64c8
mov edx, 0x4cd20c
mov eax, esi
call fcn.004c64c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd175
lea eax, [ebp - 0x110]
call fcn.00404290
lea eax, [ebp - 4]
call fcn.00404290
ret
Function at 0x4d1214
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push ecx
mov esi, eax
mov byte [0x4da4f2], 1
mov dword [0x4da544], 0xffffffff
call fcn.004bc3c4
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, 0x4c2adc
xor edx, edx
xor eax, eax
call fcn.00404244
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, dword [0x4d6d94]
mov eax, dword [eax]
call fcn.0046ebb4
push 0xa
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3a98
jge 0x4d1277
cmp byte [0x4da4f2], 0
jne 0x4d124d
cmp dword [0x4da544], 0xfffffffe
je 0x4d1289
cmp dword [0x4da544], 0
jne 0x4d12b8
mov edx, 0x4d1474
mov eax, esi
call fcn.004c3cb8
mov byte [0x4da4de], 0
mov byte [0x4da4ed], 0
mov byte [0x4da4da], 0
xor edx, edx
mov eax, esi
call fcn.004c48a8
jmp 0x4d1465
cmp dword [0x4da544], 0xffffffff
jne 0x4d12f0
mov edx, 0x4d1498
mov eax, esi
call fcn.004c3cb8
mov byte [0x4da4de], 0
mov byte [0x4da4ed], 0
mov byte [0x4da4da], 0
xor edx, edx
mov eax, esi
call fcn.004c48a8
jmp 0x4d1465
mov eax, 0x4da2fc
mov edx, 0x4d14c0
call fcn.004042e4
mov eax, dword [0x4d7134]
mov eax, dword [eax]
mov edx, 0x4d14cc
call fcn.004046ac
jne 0x4d1323
mov eax, 0x4da2fc
mov edx, 0x4d14c0
call fcn.004042e4
jmp 0x4d1356
mov eax, dword [0x4d7134]
mov eax, dword [eax]
mov edx, 0x4d14dc
call fcn.004046ac
jne 0x4d1347
mov eax, 0x4da2fc
mov edx, 0x4d14ec
call fcn.004042e4
jmp 0x4d1356
mov eax, 0x4da2fc
mov edx, 0x4d14c0
call fcn.004042e4
mov eax, dword [0x4d7134]
mov eax, dword [eax + 0x10]
mov edx, 0x4d14f8
call fcn.004046ac
jne 0x4d1374
mov dword [0x4da548], 1
cmp dword [0x4da544], 2
jne 0x4d138c
mov dword [0x4da548], 1
jmp 0x4d144b
cmp dword [0x4da544], 1
jne 0x4d13b6
mov eax, 0x4da42c
mov edx, dword [0x4d7134]
mov edx, dword [edx]
call fcn.004042e4
mov eax, 0x4da430
call fcn.00404290
jmp 0x4d144b
cmp dword [0x4da544], 3
jne 0x4d13ee
mov eax, 0x4da2fc
mov edx, 0x4d1508
call fcn.004042e4
mov eax, 0x4da42c
mov edx, 0x4d1514
call fcn.004042e4
mov eax, 0x4da430
mov edx, 0x4d1524
call fcn.004042e4
jmp 0x4d144b
cmp dword [0x4da544], 4
jne 0x4d1426
mov eax, 0x4da2fc
mov edx, 0x4d1534
call fcn.004042e4
mov eax, 0x4da42c
mov edx, 0x4d1514
call fcn.004042e4
mov eax, 0x4da430
mov edx, 0x4d1540
call fcn.004042e4
jmp 0x4d144b
mov eax, 0x4da42c
mov edx, dword [0x4d7134]
mov edx, dword [edx]
call fcn.004042e4
mov eax, 0x4da430
mov edx, dword [0x4d7134]
mov edx, dword [edx + 4]
call fcn.004042e4
mov edx, 0x4d1550
mov eax, esi
call fcn.004c3cb8
mov byte [0x4da4de], 0
mov byte [0x4da4dd], 1
pop edx
pop esi
pop ebx
ret
Function at 0x4d18b8
Capabilities:
Copy file
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4d18c0
push ecx
push ebx
push esi
mov ebx, eax
mov esi, 0x4da378
xor eax, eax
push ebp
push 0x4d1ad3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4da4ec], 0
je 0x4d18ed
call fcn.004b8a80
mov byte [0x4da4ed], 0
mov byte [0x4da4ec], 0
mov eax, dword [0x4da4c8]
call fcn.00404560
cmp eax, 4
jge 0x4d1919
mov eax, 0x4da4c8
mov edx, 0x4d1ae8
call fcn.004042e4
lea edx, [ebp - 4]
mov eax, 0x4d1afc
call fcn.004b6ea8
mov ecx, dword [ebp - 4]
mov eax, esi
mov edx, dword [0x4da370]
call fcn.004045ac
mov eax, dword [esi]
call fcn.004b73a4
test al, al
je 0x4d194e
mov eax, esi
mov edx, dword [0x4da374]
call fcn.004042e4
lea eax, [ebp - 8]
mov ecx, dword [0x4da4c8]
mov edx, dword [esi]
call fcn.004045ac
mov eax, dword [ebp - 8]
call fcn.004b7b30
cmp eax, 0x13880
jl 0x4d19d9
lea eax, [ebp - 0x14]
mov ecx, 0x4d1b14
mov edx, dword [0x4da374]
call fcn.004045ac
mov eax, dword [ebp - 0x14]
call fcn.00404760
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404498
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004b8d4c
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
mov ecx, dword [0x4da4c8]
mov edx, dword [esi]
call fcn.004045ac
mov eax, dword [ebp - 0x20]
call fcn.00404760
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00404498
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004b8d4c
mov edx, dword [ebp - 0x18]
pop eax
call fcn.004046ac
jbe 0x4d1a38
push 0x80
lea eax, [ebp - 0x24]
mov ecx, dword [0x4da4c8]
mov edx, dword [esi]
call fcn.004045ac
mov eax, dword [ebp - 0x24]
call fcn.00404760
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [0x4da4c8]
mov edx, dword [esi]
call fcn.004045ac
mov eax, dword [ebp - 0x28]
call fcn.00404760
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x4d1b14
mov edx, dword [0x4da374]
call fcn.004045ac
mov eax, dword [ebp - 0x2c]
call fcn.00404760
push eax
call sub.kernel32.dll_CopyFileA
mov edx, 0x4d1b28
mov eax, ebx
call fcn.004c3cb8
push 0x4da304
push 2
call sub.shell32.dll_Shell_NotifyIconA
push 1
mov eax, dword [esi]
call fcn.00404760
push eax
push 0x4d1b44
push dword [0x4da3d0]
push 0x4d1b58
push dword [0x4da3cc]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404620
mov eax, dword [ebp - 0x30]
call fcn.00404760
push eax
lea eax, [ebp - 0x34]
mov ecx, dword [0x4da4c8]
mov edx, dword [esi]
call fcn.004045ac
mov eax, dword [ebp - 0x34]
call fcn.00404760
push eax
push 0x4d1b5c
mov eax, ebx
call fcn.00455338
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, ebx
call fcn.0046b620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1ada
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.004042b4
ret
Function at 0x4d1b64
Capabilities:
Copy file
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4d1b6c
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d1db7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4da4ec], 0
je 0x4d1b93
call fcn.004b8a80
mov byte [0x4da4ed], 0
mov byte [0x4da4ec], 0
mov eax, dword [0x4da4c4]
call fcn.00404560
cmp eax, 4
jge 0x4d1bbf
mov eax, 0x4da4c4
mov edx, 0x4d1dcc
call fcn.004042e4
lea edx, [ebp - 8]
mov eax, 0x4d1de0
call fcn.004b6ea8
mov ecx, dword [ebp - 8]
mov eax, 0x4da37c
mov edx, dword [0x4da370]
call fcn.004045ac
mov eax, dword [0x4da37c]
call fcn.004b73a4
test al, al
je 0x4d1bfd
mov eax, 0x4da37c
mov edx, dword [0x4da374]
call fcn.004042e4
lea eax, [ebp - 0xc]
mov ecx, dword [0x4da4c4]
mov edx, dword [0x4da374]
call fcn.004045ac
mov eax, dword [ebp - 0xc]
call fcn.004b7b30
cmp eax, 0x13880
jl 0x4d1c60
lea eax, [ebp - 0x18]
mov ecx, dword [0x4da4c4]
mov edx, dword [0x4da374]
call fcn.004045ac
mov eax, dword [ebp - 0x18]
call fcn.00404760
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404498
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004b8d4c
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4da4c0]
call fcn.004046ac
jbe 0x4d1cad
mov byte [0x4da4dc], 1
mov eax, 0x4da4a8
mov ecx, dword [0x4da4c0]
mov edx, 0x4d1df8
call fcn.004045ac
push 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4c1c48
xor edx, edx
xor eax, eax
call fcn.00404244
mov dword [0x4da520], 0x2710
mov edx, 0x4d1e14
mov eax, ebx
call fcn.004c3cb8
jmp 0x4d1d9c
mov edx, 0x4d1e34
mov eax, ebx
call fcn.004c3cb8
push 0x80
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4da4c4]
mov edx, dword [0x4da37c]
call fcn.004045ac
mov eax, dword [ebp - 0x1c]
call fcn.00404760
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
lea eax, [ebp - 0x20]
mov ecx, dword [0x4da4c4]
mov edx, dword [0x4da37c]
call fcn.004045ac
mov eax, dword [ebp - 0x20]
call fcn.00404760
push eax
lea eax, [ebp - 0x24]
mov ecx, dword [0x4da4c4]
mov edx, dword [0x4da374]
call fcn.004045ac
mov eax, dword [ebp - 0x24]
call fcn.00404760
push eax
call sub.kernel32.dll_CopyFileA
push 0x4da304
push 2
call sub.shell32.dll_Shell_NotifyIconA
push 1
mov eax, dword [0x4da37c]
call fcn.00404760
push eax
push 0x4d1e50
push dword [0x4da3d0]
push 0x4d1e64
push dword [0x4da3cc]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404620
mov eax, dword [ebp - 0x28]
call fcn.00404760
push eax
lea eax, [ebp - 0x2c]
mov ecx, dword [0x4da4c4]
mov edx, dword [0x4da37c]
call fcn.004045ac
mov eax, dword [ebp - 0x2c]
call fcn.00404760
push eax
push 0x4d1e68
mov eax, ebx
call fcn.00455338
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, ebx
call fcn.0046b620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1dbe
lea eax, [ebp - 0x2c]
mov edx, 0xa
call fcn.004042b4
ret
Function at 0x76b740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1ef000]
mov dword [edi + 0x23fe90], 0x4a3a6b60
push edi
or ebp, 0xffffffff
jmp 0x76b76a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x76b771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76b760
mov eax, 1
add ebx, ebx
jne 0x76b783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x76b794
jne 0x76b7b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76b7b3
dec eax
add ebx, ebx
jne 0x76b7a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x76b778
add ebx, ebx
jne 0x76b7af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x76b805
xor ecx, ecx
sub eax, 3
jb 0x76b7cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x76b83a
sar eax, 1
mov ebp, eax
jmp 0x76b7d6
add ebx, ebx
jne 0x76b7d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76b7a4
inc ecx
add ebx, ebx
jne 0x76b7e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x76b7a4
add ebx, ebx
jne 0x76b7f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x76b7e6
jne 0x76b802
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x76b7e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x76b824
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x76b816
jmp 0x76b766
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x76b824
add edi, ecx
jmp 0x76b766
pop esi
mov edi, esi
mov ecx, 0xe014
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x76b842
cmp byte [edi], 0x2a
jne 0x76b842
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x76b847
lea edi, [esi + 0x35a000]
mov eax, dword [edi]
or eax, eax
je 0x76b8bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3ba0d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3ba2e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x76b874
mov ecx, edi
jns 0x76b8a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3ba2ec]
or eax, eax
je 0x76b8b9
mov dword [ebx], eax
add ebx, 4
jmp 0x76b891
call dword [esi + 0x3ba2e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x76b8f0
cmp al, 0xef
ja 0x76b8e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x76b8c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x76b8d2
mov ebp, dword [esi + 0x3ba2f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x76b924
sub esp, 0xffffff80
jmp 0x4a423c
Function at 0x1000c130
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using chaskey
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x100138d8
and ecx, 1
cmp ecx, 0
xchg cl, cl
sete cl
test di, si
test ebp, 0xa1b71420
and cl, 1
cmp ax, cx
clc
mov byte [ebp - 0x23e], cl
cmp sp, 0x39a8
cmp ah, bl
cmp eax, 0xa
not al
setl al
cmp esi, 0x421c1310
test eax, esi
and al, 1
test ax, 0x8fa1
clc
mov byte [ebp - 0x23d], al
sar ax, cl
mov eax, 0x1cad81
btc eax, 0xbb
mov dword [ebp - 0x244], 0x122df0f2
sbb ah, 0xb9
push ebp
sar dl, 0x30
cbw
mov ebp, esp
push ebx
sbb edx, ecx
push edi
push esi
bt edx, 0x2e
cdq
lea esp, [esp - 0x23c]
sbb eax, 0x9e018f8e
sar ch, 0xa6
bts dx, dx
mov eax, dword [0x10085c80]
bsf edx, eax
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x10087164]
stc
shr dl, 0x1f
shld dx, sp, 0x84
mov eax, dword [0x10087160]
cmp dx, sp
mov edx, ecx
cmp dh, 0x17
sub edx, 0xfad85cd9
cmc
lea edx, [edx - 1]
jmp 0x10015df8
lea edx, [edx - 0x527a327]
test ecx, ebx
clc
cmp esi, edx
imul ecx, edx
jmp 0x1000c71d

Function at 0x10029dda
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10029e19
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029e19
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029e19
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10029e19
cmp dword [ecx + 0x74], 0xe
jbe 0x10029e19
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002c7a4
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 0x1002c841
push ebx
push esi
call fcn.1002c76d
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.1002c701
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002c7ee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c840
push edi
push eax
call fcn.1002b0a2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002c80e
call fcn.1002b0f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c83f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002c701
add esp, 0x20
test eax, eax
jne 0x1002c82d
push edi
call fcn.1002b0f0
jmp 0x1002c835
push ebx
call fcn.1002b0f0
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 0x1002caae
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035780
push 0x10035778
push str.FlsAlloc
push 0x1f
call fcn.1002c9ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cae2
push dword [ebp + 8]
mov ecx, esi
call dword [0x10033150]
call esi
jmp 0x1002cae8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002cb2c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035790
push 0x10035788
push str.FlsGetValue
push 0x21
call fcn.1002c9ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cb63
push dword [ebp + 8]
mov ecx, esi
call dword [0x10033150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002cb6b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10035798
push 0x10035790
push str.FlsSetValue
push 0x22
call fcn.1002c9ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cba5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10033150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100320b0
Capabilities:
Parse pe header

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

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x401032], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [0x401036], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [0x40103a], eax
push 0x401022
call dword [sym.imp.USER32.DLL_RegisterClassA]
cmp eax, 0
je 0x4020ab
push 0
push dword [0x401032]
push 0
push 0
push 0xc0
push 0x100
push pe_nt_image_headers32
push pe_nt_image_headers32
push 0x10080000
push 0x40100e
push str.Simple_Window
push 0
call dword [sym.imp.USER32.DLL_CreateWindowExA]
cmp eax, 0
je 0x4020ab
push 0
push 0
push 0
push 0x40104a
call dword [sym.imp.USER32.DLL_GetMessageA]
cmp eax, 0
je 0x4020bc
push 0x40104a
call dword [sym.imp.USER32.DLL_TranslateMessage]
push 0x40104a
call dword [sym.imp.USER32.DLL_DispatchMessageA]
jmp 0x40207d
push 0x10
push 0
push 0x40101b
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
push dword [0x401052]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x402a40
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x5f7a94]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x402c10
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.0046d060
jmp fcn.00402a40
Function at 0x40b170
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x5f7a94]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b33b
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40b199
mov eax, 0x7000000
jmp 0x40b1a1
test eax, eax
je 0x40b316
mov dword [esp + 0x34], eax
mov ecx, dword [0x5f7a94]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x448]
mov ebx, dword [ecx + 0x44c]
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 + 0x448], ebx
mov dword [ecx + 0x44c], ebp
mov dword [esp], edx
call fcn.0046e410
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, [0x5b1da0]
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 0x40b32e
cmp edx, 0x21
jae 0x40b322
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.00460b30
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.00460c00
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 [0x5204b8]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x520518]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40b2f1
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x520558]
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.0046e4f0
mov eax, edx
mov ecx, 0x21
call fcn.0046e5a0
nop
call fcn.0046d060
jmp fcn.0040b170