joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63bb79
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0063b99d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x63bce8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x63bce8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x63bc9d
jg 0x63bbd5
test eax, eax
je 0x63bc93
push 1
push 0x1000
call fcn.0062bc47
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x63bbf8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x63bc8a
push 0x8000
push ebx
call fcn.0062068c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x63bc21
jg 0x63bc1c
cmp ecx, 0x1000
jb 0x63bc21
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00624f8c
add esp, 0x10
cmp eax, 0xffffffff
je 0x63bc66
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x63bc1c
jl 0x63bc4d
test ecx, ecx
jne 0x63bc0e
push dword [ebp - 0xc]
push ebx
call fcn.0062068c
push esi
call fcn.00626131
add esp, 0xc
xor ebx, ebx
jmp 0x63bcf6
cmp byte [edi + 0x24], 0
je 0x63bc7d
cmp dword [edi + 0x20], 5
jne 0x63bc7d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x63bc88
mov ebx, dword [edi + 0x18]
jmp 0x63bc8a
xor ebx, ebx
push esi
call fcn.00626131
pop ecx
jmp 0x63bcf6
test ecx, ecx
jg 0x63bc5f
jl 0x63bc9d
test eax, eax
jae 0x63bc5f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006245f5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x63bcbd
cmp byte [edi + 0x1c], 0
je 0x63bc5f
jmp 0x63bcee
push ebx
call fcn.00638413
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x63bc5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x63bcf6
cmp byte [edi + 0x1c], 0
je 0x63bcf3
mov ebx, dword [edi + 0x18]
jmp 0x63bcf6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006245f5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6418e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6f36d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x64196b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x64192d
cmp eax, 2
jne 0x641949
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x641965
test ecx, ecx
je 0x641960
test cl, 1
jne 0x641949
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x641965
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401700
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x14
add eax, 0xffffff9b
cmp eax, 0x64
ja case.0x40171b.113
xor ecx, ecx
mov cl, byte [eax + 0x4019dc]
jmp dword [ecx*4 + 0x4019a8]
mov edx, dword [0x40ca68]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
add esp, 0x14
ret
push 5
push str.rundll32.exe_shell32.dll_Control_RunDLL_alsndmgr.cpl__
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [0x40ca6c]
test eax, eax
je case.0x40171b.113
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0x14
ret
push 1
call fcn.00402300
add esp, 4
add esp, 0x14
ret
mov eax, dword [0x40caac]
mov ecx, dword [0x40caa8]
push eax
push ecx
push 0
call fcn.00403580
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [0x40cabc]
mov eax, dword [0x40cab8]
push edx
push eax
push 1
call fcn.00403580
add esp, 0xc
add esp, 0x14
ret
call fcn.004033a0
test eax, eax
je case.0x40171b.113
lea ecx, [esp]
push ecx
push 7
call fcn.00403710
add esp, 8
cmp word [esp], 0
je 0x401806
mov eax, dword [0x40cb2c]
test eax, eax
jne 0x40180f
push 7
call fcn.00403820
add esp, 4
test eax, eax
je 0x401806
mov edx, dword [0x40ca68]
push 0
push 0x6a
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x40cb2c], 1
call fcn.004033e0
add esp, 0x14
ret
mov eax, dword [0x40cb2c]
test eax, eax
je 0x401836
cmp word [esp], 0
jne 0x401836
mov eax, dword [0x40ca68]
push 0
push 0x6b
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x40cb2c], 0
call fcn.004033e0
add esp, 0x14
ret
call fcn.004033a0
test eax, eax
je case.0x40171b.113
lea ecx, [esp]
push ecx
push 5
call fcn.00403710
add esp, 8
cmp word [esp], 0
je 0x4018a3
mov eax, dword [0x40cb30]
test eax, eax
jne 0x4018ac
push 5
call fcn.00403820
add esp, 4
test eax, eax
je 0x4018a3
mov edx, dword [0x40ca68]
push 0
push 0x6a
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x40cb30], 1
call fcn.004033e0
add esp, 0x14
ret
mov eax, dword [0x40cb30]
test eax, eax
je 0x4018d3
cmp word [esp], 0
jne 0x4018d3
mov eax, dword [0x40ca68]
push 0
push 0x6b
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x40cb30], 0
call fcn.004033e0
add esp, 0x14
ret
push 0x40ce04
call fcn.00402930
push 1
call fcn.00403a20
mov eax, dword [0x40ce04]
push eax
mov dword [0x40a088], eax
call fcn.00402770
push 1
call fcn.00402970
add esp, 0x10
call fcn.00403a80
add esp, 0x14
ret
mov ecx, dword [0x40a088]
push ecx
call fcn.00403a20
mov edx, dword [0x40a088]
push edx
call fcn.00402970
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403a80
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40195e
push 0x40ce04
call fcn.00402930
add esp, 4
mov dword [0x40ca78], 0
mov eax, dword [0x40ce04]
cmp eax, 1
je 0x401976
push eax
mov dword [0x40a088], eax
call fcn.00402770
add esp, 4
mov dword [0x40a084], 1
add esp, 0x14
ret
push 0x40ce04
call fcn.00402930
add esp, 4
add esp, 0x14
ret
mov dword [0x40cb1c], 0
call fcn.00402720
add esp, 0x14
ret
Function at 0x401bb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 0x202
push esi
jne 0x401be7
push 5
push str.rundll32.exe_shell32.dll_Control_RunDLL_alsndmgr.cpl__
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [0x40ca6c]
test eax, eax
je 0x401c68
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop esi
add esp, 8
ret
cmp eax, 0x205
jne 0x401c68
call fcn.00401c70
mov esi, eax
test esi, esi
je 0x401c68
mov eax, dword [0x40ca68]
push 0
push 1
push 0x212
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x40ca68]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x40ca68]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push 0
push ecx
push edx
push 0x28
push esi
mov dword [0x40cb24], 1
mov dword [0x40ce00], 0
mov dword [0x40ce08], 0
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x402770
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x40cb34
push 0
push str.SoftwareRealtekAlcMonitor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4027c6
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
push str.PrevSpeakerConfig
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret

Function at 0x4027d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x40cb34
push 0
push str.SoftwareRealtekAlcMonitor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402854
mov eax, 4
lea edx, [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.PrevSpeakerConfig
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40283b
mov dword [esp + 4], 0x140004
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
mov dword [ecx], edx
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
mov eax, 0x140004
mov dword [ecx], eax
add esp, 0x14
ret
Function at 0x403ab0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 6
mov esi, str.SoftwareRealtekInitAp_
lea edi, [esp + 0x18]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x2001f
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x20], 0xffffffff
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x403b44
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x418]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b39
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x410
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x410
ret
Function at 0x40d6b8
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
cmp dword [edi], 0
je 0x40d717
push ebx
lea ebx, [esi + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 0x1f6
je 0x40d716
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.0040d3b8
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
ret

Function at 0x40d833
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x428d2f
call int.00417869
mov edi, ecx
lea esi, [edi + 0x34]
push 0x1f5
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffff
call fcn.00412718
mov ebx, eax
mov eax, 0xffff
push eax
mov dword [edi + 0x10], eax
call fcn.00412718
pop ecx
pop ecx
push 0
mov dword [edi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d947
cmp dword [ebp - 0x10], 0
jbe 0x40d944
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, ecx
cmp dword [edi + 0x10], eax
jae 0x40d903
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x10]
mov esi, dword [edi + 8]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
jns 0x40d8ce
fadd qword [0x4379d8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4379b8]
call fcn.004280b6
push eax
mov dword [edi + 0x10], eax
call fcn.00412718
push dword [edi + 0xc]
mov dword [edi + 8], eax
push esi
push dword [edi + 8]
call fcn.00412770
push esi
call fcn.00412769
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
push ecx
push ebx
push eax
call fcn.00412770
mov eax, dword [ebp - 0x10]
add esp, 0xc
add dword [edi + 0xc], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d88f
mov esi, dword [ebp - 0x18]
push ebx
call fcn.00412769
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, edi
call fcn.00417846
ret
Function at 0x40e388
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x40e3a8
and dword [esi + 8], 0
and dword [esi + 0xc], 0
call fcn.0040e367
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x40e3f9
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jne 0x40e3e3
push 0
lea eax, [ebp + 8]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e3f8
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e3f8
and dword [esi + 0xc], 0
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov al, byte [ecx + eax]
mov byte [edi + ebx], al
inc edi
inc dword [esi + 0xc]
cmp edi, dword [ebp + 0xc]
jb 0x40e3b3
pop ebx
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebp
ret 8

Function at 0x40e408
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0040e439
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e5f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x428da0
call int.00417869
mov ecx, dword [ebp + 0xc]
call fcn.00401715
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareAutoIt_v3AutoIt
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e629
xor al, al
jmp 0x40e6bc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6b1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412718
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040290b
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e69c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
push esi
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
call fcn.0040182f
mov bl, 1
mov eax, dword [ebp - 0x18]
dec dword [eax]
jne 0x40e6b1
push eax
call fcn.00412769
push esi
call fcn.00412769
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.00417846
ret
Function at 0x40e9b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x43b034]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ea02
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e9f7
or eax, eax
jmp 0x40ea02
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x25c]
pop esi
xor ecx, esp
call fcn.004126e7
mov esp, ebp
pop ebp
ret

Function at 0x40ebf1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x24
mov eax, 0x428e41
call int.00417869
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403a7b
xor ebx, ebx
lea ecx, [ebp - 0x30]
push 0x433988
mov dword [ebp - 4], ebx
call fcn.00408e53
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40eca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40ec40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ec45
jmp 0x40eca6
cmp eax, 3
jne 0x40eca8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], eax
inc dword [eax]
push 0x433988
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040ed80
cmp eax, 0xffffffff
je 0x40ec98
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x20]
call fcn.0040191a
lea ecx, [ebp - 0x20]
call fcn.0040ebf1
test al, al
je 0x40ec96
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.004015bf
jmp 0x40eca8
test al, 0x10
je 0x40eca8
mov bl, 1
lea ecx, [ebp - 0x30]
call fcn.004015bf
mov al, bl
call fcn.00417846
ret

Function at 0x410168
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410193
xor eax, eax
jmp 0x4101a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x1d6c760b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x285d700b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x39697c8e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x68d23a46
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x53dd9c
push eax
push dword fs:[0]
push ebx
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
push ebp
mov cs, edx
mov bl, byte [edx + 0x3812e7a7]
adc eax, 0x31bdc80d
movsd dword es:[edi], dword [esi]
fild qword [eax]
add ch, al
cmpsd dword [esi], dword es:[edi]
dec eax
ret
Function at 0x4035d0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x69e340]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4037a0
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 sym.runtime.morestack_noctxt
jmp sym.internal_chacha8rand.setup