joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001670
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x43
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov edi, ebx
mov esi, dword [sym.imp.WS2_32.dll_htons]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ax, word [ebp + 0xc]
push 0x100
mov dword [esp + 0x1c], ebp
mov word [ebx], ax
call esi
push 1
mov word [ebx + 2], ax
call esi
mov ecx, dword [esp + 0x20]
mov word [ebx + 4], ax
xor eax, eax
push ecx
mov word [ebx + 6], ax
mov word [ebx + 8], ax
mov word [ebx + 0xa], ax
call esi
push 1
mov dword [esp + 0x24], eax
call esi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov edx, edi
and edx, 0xffff
add edx, 2
push edx
call fcn.10005317
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x14], esi
jne 0x10001707
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov eax, dword [esp + 0x34]
add edi, 2
push edi
push esi
push eax
mov ecx, ebp
call fcn.10001c60
test eax, eax
jne 0x10001726
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add ebx, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov ebp, ecx
inc ebp
mov eax, ebp
and eax, 0xffff
mov ecx, eax
add ebx, eax
mov edx, ecx
mov ax, word [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov cx, word [esp + 0x14]
mov word [ebx], ax
mov word [ebx + 2], cx
call fcn.1000522e
add esp, 4
lea eax, [esp + 0x24]
add bp, 0x10
push 0x10
push eax
mov eax, dword [esp + 0x20]
and ebp, 0xffff
push 0
push ebp
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
setne cl
pop ebp
mov eax, ecx
pop ebx
add esp, 0xc
ret 0x18
Function at 0x10001f20
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x10001f44
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10001f3d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret

Function at 0x10002740
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x10002720
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
ret
Function at 0x100030c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0xc
xor edx, edx
mov ecx, 0x10013220
push ebp
push esi
push edi
mov eax, edx
mov esi, 8
test al, 1
je 0x100030e1
shr eax, 1
xor eax, 0xedb88320
jmp 0x100030e3
shr eax, 1
dec esi
jne 0x100030d4
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x10013620
jl 0x100030cd
mov ebp, dword [esp + 0x1c]
or esi, 0xffffffff
push ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x10003126
mov ecx, esi
xor edx, edx
mov dl, byte [edi]
and ecx, 0xff
xor ecx, edx
shr esi, 8
mov ecx, dword [ecx*4 + 0x10013220]
xor esi, ecx
inc edi
dec eax
jne 0x10003108
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0xd], edx
push 0x10
not esi
mov dword [esp + 0x15], edx
push eax
push esi
mov byte [esp + 0x18], 0
mov byte [esp + 0x21], dl
call fcn.10005dbe
add esp, 0xc
xor esi, esi
movsx ecx, byte [esp + esi + 0xc]
push ecx
call fcn.10005c84
add esp, 4
mov byte [esp + esi + 0xc], al
test al, al
jne 0x10003168
mov byte [esp + esi + 0xc], 0x46
inc esi
cmp esi, 4
jl 0x1000314d
lea edx, [esp + 0xc]
mov byte [esp + 0x10], 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10004470
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0x100
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push 0
push 0x10
push edx
push eax
call fcn.10005550
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x10]
adc edx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
rdtsc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp ecx, eax
jg 0x10004528
jl 0x10004508
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp edx, eax
jae 0x10004528
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x10004508
jg 0x10004528
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp edx, eax
jb 0x10004508
rdtsc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub ecx, edx
mov edx, dword [ebp - 0x18]
push 0
sbb edx, eax
push LCMapStringW
push edx
push ecx
call fcn.10005550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004570
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
push 1
push 1
call fcn.10003f00
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 8
mov dword [esp + 0x10], 1
mov eax, dword [0x10010324]
test eax, eax
je 0x100045c9
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x10010328]
and eax, 0xffff
cmp eax, ecx
jl 0x100045d2
cmp eax, dword [0x1001032c]
jge 0x100045d2
call fcn.10003e40
mov dword [esp + 0x10], eax
mov eax, dword [0x10010310]
mov esi, dword [0x1001031c]
test eax, eax
je 0x100046aa
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [0x10010310], 0
push ecx
push 1
stosw word es:[edi], ax
push 0
push str.SoftwareODBC
push 0x80000002
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000466d
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0x10010050
push edx
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000466d
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1000466d
lea ecx, [esp + 0x30]
push 0x10013630
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100046aa
lea eax, [esp + 0x30]
push eax
call fcn.10005f91
mov esi, eax
add esp, 4
cmp esi, 0x5a0
jle 0x100046a4
mov esi, 0x5a0
mov dword [0x1001031c], esi
cmp esi, 0x5a0
jne 0x100046d2
call ebp
push eax
call fcn.10005a96
add esp, 4
call fcn.10005aa3
cdq
mov ecx, 0x348
idiv ecx
mov esi, edx
add esi, 0x258
mov eax, dword [0x10013a68]
cmp eax, 1
je 0x10004778
cmp eax, 2
je 0x10004778
cmp eax, 3
je 0x10004778
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000472f
call ebp
push eax
call fcn.10005a96
add esp, 4
call fcn.10005aa3
cdq
mov ecx, 0x3c
idiv ecx
lea eax, [esi + esi*2]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 3
push ecx
call ebx
jmp 0x1000459a
mov edx, dword [0x10010320]
add esi, edx
call ebp
push eax
call fcn.10005a96
add esp, 4
call fcn.10005aa3
cdq
mov ecx, 0x12c
idiv ecx
lea eax, [esi + esi*2]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 3
push ecx
call ebx
push 0
push 0
call fcn.10003f00
add esp, 8
jmp 0x1000459a
push 0x3e8
call ebx
jmp 0x1000459a
Function at 0x100047d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.blogs.bing.com
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x100047fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100047fe
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x10004820
Capabilities:
Create thread

Disassembly:
call fcn.100047d0
test eax, eax
je 0x1000482e
xor eax, eax
ret 0xc
mov eax, dword [esp + 8]
push esi
dec eax
jne 0x1000485c
push 0
push 0
push 0
push 0x10004790
push 0
push 0
call fcn.10005f9c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
push 0x2710
call esi
jmp 0x10004853
mov eax, 1
pop esi
ret 0xc
Function at 0x10004af0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x1c]
push 0
push eax
mov dword [esi], 0x1000e22c
call edi
mov ecx, dword [esi + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x18]
push 0
push edx
call edi
mov eax, dword [esi + 0x20]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x20]
push 0
push ecx
call edi
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x10004b43
push eax
call edi
mov eax, dword [esi + 8]
test eax, eax
je 0x10004b4d
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10004b57
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10004b61
push eax
call edi
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 8]
push eax
call edi
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov edx, dword [esi + 0x10]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov edx, dword [esi + 0x20]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
lea ecx, [esi + 0x24]
call fcn.10001030
pop edi
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5c892354
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x663b4069
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100023fd
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x1000240f
call dword [sym.imp.kernel32.dll_GetUserDefaultLCID]
jmp 0x10002415
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
call fcn.10012075
mov esi, eax
pop ecx
cmp esi, edi
je 0x1000243f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x29c]
push esi
mov edi, eax
call dword [sym.imp.msvcr100.dll_free]
pop ecx
jmp 0x1000244d
push str.memory_allocation_error
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x10006ed9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe0
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x20019
xor edi, edi
and dword [ebp - 0x5c], edi
push edi
push str.SystemCurrentControlSetControlTimeZoneInformation
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006f4f
and dword [ebp - 0x60], edi
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push str.ActiveTimeBias
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x10006f41
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x5c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
pop ebx
je 0x10006f61
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.kernel32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x10006f61
mov edi, dword [ebp - 0x58]
lea eax, [ebp + 0x54]
push eax
mov eax, edi
call fcn.100067f8
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.msvcr100.dll__strdup]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop edi
call fcn.100122d0
add ebp, 0x78
leave
ret

Function at 0x10007644
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextA]
push edi
xor ebx, ebx
push ebx
push 1
push ebx
mov edi, str.J2SE
push edi
lea eax, [ebp - 8]
push eax
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x1000767f
push 8
push 1
push ebx
push edi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x1000767f
xor al, al
jmp 0x100076d4
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2ac]
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2e0]
mov edi, eax
cmp edi, ebx
je 0x100076c7
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
test eax, eax
je 0x100076b9
mov byte [ebp - 1], 1
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x10]
push esi
call dword [eax + 0x300]
push ebx
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push esi
push dword [0x1001cf68]
push dword [esp + 0x14]
push dword [esp + 0x10]
call fcn.1000a207
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10007e43
xor al, al
jmp 0x10007e74
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
push esi
call fcn.10012075
push esi
mov ebx, eax
call dword [sym.imp.msvcr100.dll_free]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x10007e83
mov eax, dword [esp + 0x18]
dec eax
je 0x10007e71
dec eax
je 0x10007e78
dec eax
dec eax
jne 0x10007e83
mov al, 1
pop ebx
pop esi
ret 0x10
mov al, 1
test bl, 0x10
jne 0x10007e73
test al, bl
je 0x10007e73
xor al, al
jmp 0x10007e73
Function at 0x10007e87
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x14], 4
push edi
mov byte [ebp - 1], 0
je 0x10007f2d
cmp dword [ebp + 0x14], 1
je 0x10007f2d
push dword [0x1001cf68]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1000a207
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10007ec2
xor al, al
jmp 0x10007f30
push esi
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push edi
call esi
cmp eax, 0xffffffff
je 0x10007f1f
push ebx
test eax, 0x400
je 0x10007ef7
push edi
push dword [ebp + 8]
call fcn.1000773c
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10007f1e
push edi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
push ebx
mov edi, ebx
call esi
cmp eax, 0xffffffff
je 0x10007f1e
test al, 0x10
jne 0x10007f1e
cmp byte [ebp + 0x18], 0
je 0x10007f0b
and eax, 0xfffffffe
jmp 0x10007f0e
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x10007f1e
mov byte [ebp - 1], 1
pop ebx
push edi
call dword [sym.imp.msvcr100.dll_free]
mov al, byte [ebp - 1]
pop ecx
pop esi
jmp 0x10007f30
mov al, byte [ebp + 0x18]
pop edi
leave
ret 0x18

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

Disassembly:
push esi
push edi
xor edi, edi
push edi
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.10012075
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x100080a7
xor al, al
jmp 0x10008123
push esi
call fcn.10012075
pop ecx
test eax, eax
je 0x100080bc
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
jmp 0x100080a3
push edi
push 0x200080
push 1
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10008112
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x100080b2
cmp edi, 0xb7
je 0x100080b2
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100080b2
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
push str.Could_not_open_file
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowIOExceptionWithLastError_8
jmp 0x100080b2
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
ret 0xc

Function at 0x10008128
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push dword [0x1001cf68]
xor bl, bl
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.1000a207
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000814c
xor al, al
jmp 0x1000818c
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10008182
push esi
test al, 0x10
je 0x10008171
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x10008177
call dword [sym.imp.kernel32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x10008182
mov bl, 1
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov al, bl
pop esi
pop ebx
ret 0xc
Function at 0x1000af8b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x88], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x94]
push esi
push edi
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, 0x10014bfc
test eax, eax
je 0x1000aff5
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcr100.dll_strcat
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x1000b028
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b028
lea eax, [ebp - 0x7c]
push edi
push eax
call sub.msvcr100.dll_strcat
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.msvcr100.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call esi
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100122d0
add ebp, 0x8c
leave
ret

Function at 0x10012075
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10012084
pop dword [ebp - 0x48]
mov eax, 0xfc38e778
add eax, 0x13c8390c
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xcde67a82
add dword [ebp - 0x58], 0x806bcac9
mov dword [ebp - 0x54], 0x688e25eb
sub dword [ebp - 0x54], 0x365ad9a6
mov dword [ebp - 0x50], 0xa9cd2cf1
add dword [ebp - 0x50], 0xa27f173d
mov dword [ebp - 0x4c], 0x6604cb5c
add dword [ebp - 0x4c], 0x99fb34a4
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x72e68826
add dword [ebp - 0x58], 0x18be130
mov dword [ebp - 0x54], 0xf7e4f9dd
sub dword [ebp - 0x54], 0xb6789868
mov dword [ebp - 0x50], 0x95fb4beb
add dword [ebp - 0x50], 0xcd742081
mov dword [ebp - 0x4c], 0x7d9a890b
add dword [ebp - 0x4c], 0x826576f5
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xcc790934
add eax, 0x43882828
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x341f0
push 0
call eax
mov ecx, 0x73c242e0
add ecx, 0x8c3df690
mov ebx, eax
mov esi, 0x2d0d35a9
sub esi, 0x1d0b2fa9
add esi, dword [ebp - 0x48]
mov edx, 0x8734e1ed
add dword [ebp - 0x10], 0x253f8b19
mov edi, dword [esi]
add dword [ebp - 0x18], ebx
sub edi, edx
xor dword [ebp - 0x18], 0xae2e41af
mov dword [ebx], edi
mov dword [ebp - 0x2c], 0xb398723
add ebx, 4
add esi, 0x5829c74f
add esi, 0xa7d638b5
loop 0x1001219b
add eax, 0xd893
mov ebx, eax
add eax, 5
mov ecx, 0x7956f1e9
sub ecx, 0x6956f1e9
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x100122d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001cf10]
jne 0x100122da
repz ret
jmp fcn.100128eb
Function at 0x402ef0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x58a7d4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4030c0
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.00466850
jmp fcn.00402ef0