joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0xd2a7d20
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
test ebx, ebx
je 0xd2a7d3f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
jmp 0xd2a7d41
xor eax, eax
mov ecx, dword [ebp + 0x18]
and ecx, 4
cmp dword [ebp + 0x14], 0
jne 0xd2a7d53
lea edx, [ebp - 4]
mov dword [ebp + 0x14], edx
test ebx, ebx
je 0xd2a7dee
test eax, eax
je 0xd2a7dee
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0xd2a7d6d
mov eax, esi
push edi
mov edi, eax
test ecx, ecx
je 0xd2a7da6
lea esi, [eax + eax]
lea eax, [esi + 1]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0xd2a7db4
push 0xd273d38
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, esi
jl 0xd2a7dac
mov edi, esi
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0xd2a7dd5
mov ecx, dword [ecx]
push 0
push 0
push esi
push ecx
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
jg 0xd2a7de0
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], esi
jg 0xd2a7de0
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4019c0
Capabilities:
Create thread
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x41c040]
xor eax, esp
mov dword [esp + 0x48], eax
cmp dword [0x41d668], 0
push ebx
push esi
push edi
jne 0x401a1e
push 0
push 0
push 0
push 0x4013f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41d668], eax
test eax, eax
je 0x401b3f
cmp byte [0x41d678], 0
jne 0x401a1e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
cmp byte [0x41d678], 0
je 0x401a11
push 0xff
push 0
push 0x41d568
mov byte [0x41d66c], 0
call fcn.00403c50
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
xorps xmm0, xmm0
mov byte [0x41d679], 1
mov byte [0x41d67a], 0
movlpd qword [esp + 0x18], xmm0
push 0x65
push 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], str.CpsTestClass
mov dword [esp + 0x1c], 0x4014f0
call esi
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0xffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 3
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
call esi
push 0
push eax
push 0
push 0
push 0xc8
push 0x12c
push 0x80000000
push 0x80000000
push 0x10080000
push str.CPS_Test
push str.CpsTestClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0x64
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x38]
push 0
push 0
push edi
push eax
call ebx
test eax, eax
je 0x401b29
mov esi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x38]
push eax
call esi
push 0
push 0
push edi
lea eax, [esp + 0x44]
push eax
call ebx
test eax, eax
jne 0x401b12
mov ecx, dword [esp + 0x54]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004022f9
mov esp, ebp
pop ebp
ret 0x10
push ecx
call fcn.004014d0
add esp, 4
push 0
call fcn.0040564b
int3

Function at 0x402e08
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402e47
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402e47
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402e47
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402e47
cmp dword [ecx + 0x74], 0xe
jbe 0x402e47
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b08e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40b0d9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b2ab
test al, al
jne 0x40b0d3
sub edx, 2
cmp edx, edi
jne 0x40b0b9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40b0fb
lea eax, [edi + 2]
cmp edx, eax
je 0x40b0fb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040afda
add esp, 0x10
jmp 0x40b1f5
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b2ab
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b13e
push dword [ebp - 0x25c]
jmp 0x40b0eb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40b17b
cmp word [ebp - 0x226], 0
je 0x40b19c
cmp word [ebp - 0x226], ax
jne 0x40b17b
cmp word [ebp - 0x224], 0
je 0x40b19c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040afda
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40b1e8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40b155
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40b1d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b1f5
push 0x40ae0a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040f800
add esp, 0x10
jmp 0x40b1c5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004022f9
leave
ret

Function at 0x40c042
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415d9c
push 0x415d94
push str.FlsAlloc
push 0x1f
call fcn.0040bf7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c076
push dword [ebp + 8]
mov ecx, esi
call dword [0x414188]
call esi
jmp 0x40c07c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c0c0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415dac
push 0x415da4
push str.FlsGetValue
push 0x21
call fcn.0040bf7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c0f7
push dword [ebp + 8]
mov ecx, esi
call dword [0x414188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40c0ff
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415db4
push 0x415dac
push str.FlsSetValue
push 0x22
call fcn.0040bf7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c139
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6ce72b30
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6c2e454c
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x1da95647
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x35ea0603
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4019f8
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be795
jg 0x401a1e
inc edi
cmp edi, 0x323bbf1
jl 0x401a04
cmp dword [0x2087264], 0x400
jne 0x401a5f
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call fcn.00401f6f
push esi
call fcn.00402164
push esi
call fcn.00402173
add esp, 0xc
xor edi, edi
cmp edi, 0xd036
jge 0x401a70
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x401a96
inc edi
cmp edi, 0x263ff
jl 0x401a61
mov eax, dword [0x43a5e4]
mov dword [0x2087264], eax
call fcn.00401776
mov edi, 0x3078f
cmp dword [0x2087264], 0x51f
jne 0x401ac2
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401aaa
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10
Function at 0x40440c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040345a
and dword [ebp - 0x14], 0
cmp dword [0x4450d0], 0
mov dword [ebp - 0x18], eax
jne 0x4044bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404567
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404567
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4450d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4450d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4450d8], eax
call edi
push eax
call esi
mov dword [0x4450e0], eax
test eax, eax
je 0x4044bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4450dc], eax
mov eax, dword [0x4450dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404518
cmp dword [0x4450e0], ecx
je 0x404518
push eax
call esi
push dword [0x4450e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404518
test ebx, ebx
je 0x404518
call edi
test eax, eax
je 0x40450f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40450f
test byte [ebp - 8], 1
jne 0x404518
or dword [ebp + 0x10], 0x200000
jmp 0x40454b
mov eax, dword [0x4450d4]
cmp eax, dword [ebp - 0x18]
je 0x40454b
push eax
call esi
test eax, eax
je 0x40454b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40454b
mov eax, dword [0x4450d8]
cmp eax, dword [ebp - 0x18]
je 0x40454b
push eax
call esi
test eax, eax
je 0x40454b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4450d0]
call esi
test eax, eax
je 0x404567
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404569
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404777
leave
ret

Function at 0x404777
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420328]
jne 0x404781
repz ret
jmp fcn.004055e9
Function at 0x40233b
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
push 0x20
lea ecx, [ebx + 0x44]
call fcn.00406d88
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x64]
push 0xc
mov edx, edi
call fcn.00406d88
mov ecx, 0x4011e0
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x78], eax
mov ecx, 0x4011e4
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x7c], eax
mov ecx, 0x4011e8
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x80], eax
mov ecx, 0x4011ec
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x84], eax
mov ecx, esi
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x88], eax
lea ecx, [esi + 4]
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x8c], eax
lea ecx, [esi + 8]
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x90], eax
lea ecx, [esi + 0xc]
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x94], eax
lea ecx, [esi + 0x10]
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x98], eax
lea ecx, [esi + 0x14]
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0x9c], eax
lea ecx, [esi + 0x18]
call fcn.0040231c
mov ecx, ebx
mov dword [ecx + 0xa0], eax
lea ecx, [esi + 0x1c]
call fcn.0040231c
mov esi, ebx
mov ecx, edi
and dword [esi + 0xa8], 0
mov dword [esi + 0xa4], eax
call fcn.0040231c
lea ecx, [edi + 4]
mov dword [esi + 0xac], eax
call fcn.0040231c
lea ecx, [edi + 8]
mov dword [esi + 0xb0], eax
call fcn.0040231c
push 0xc
mov edx, edi
mov dword [esi + 0xb4], eax
lea ecx, [ebx + 0x64]
call fcn.00406d88
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ce3
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 5
jb 0x403ce5
mov byte [ecx + 5], 0
mov eax, ecx
ret

Function at 0x403cf6
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 9
jb 0x403cf8
mov byte [ecx + 9], 0
mov eax, ecx
ret

Function at 0x403d09
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x17
jb 0x403d0b
mov byte [ecx + 0x17], 0
mov eax, ecx
ret

Function at 0x403d1c
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x21
jb 0x403d1e
mov byte [ecx + 0x21], 0
mov eax, ecx
ret
Function at 0x404fef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [ebp + 0xc], 0xa
mov edi, ecx
neg ebx
sub edi, esi
mov eax, dword [edi + esi]
mov ecx, dword [esi]
xor ecx, eax
and ecx, ebx
xor eax, ecx
cdq
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
mov eax, dword [esi]
xor eax, ecx
sub dword [ebp + 0xc], 1
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x405007
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4055d8
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x24]
push 8
mov esi, edx
mov edx, dword [ebp + 8]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 5]
lea ecx, [ebp - 0xcc]
and byte [ebp - 0x24], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
call fcn.004047f5
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x16c]
call fcn.00405032
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x11c]
call fcn.0040528a
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x16c]
lea ecx, [ebp - 0x7c]
call fcn.0040440a
add esp, 0xc
lea edx, [ebp - 0x7c]
mov ecx, ebx
call fcn.00404b1b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x40565c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, edx
or esi, 0xffffffff
mov eax, edi
mov ebx, ecx
cdq
and edx, 3
add edx, eax
sar edx, 2
test edx, edx
jle 0x4056c8
movzx eax, byte [ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
movzx eax, byte [ebx + 3]
add ebx, 4
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
sub edx, 1
jne 0x405675
and edi, reloc.WS2_32.dll_closesocket
jns 0x4056d5
dec edi
or edi, 0xfffffffc
inc edi
xor ecx, ecx
test edi, edi
jle 0x4056f3
movzx eax, byte [ecx + ebx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x401218]
inc ecx
cmp ecx, edi
jl 0x4056db
not esi
pop edi
mov eax, esi
pop esi
pop ebx
ret