joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026bc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4026e5
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4026dd
cmp al, 0x22
jne 0x4026d1
cmp byte [esi], 0x22
jne 0x4026ef
inc esi
jmp 0x4026ef
cmp al, 0x20
jle 0x4026ef
inc esi
cmp byte [esi], 0x20
jg 0x4026e9
mov al, byte [esi]
test al, al
je 0x4026fc
cmp al, 0x20
jg 0x4026fc
inc esi
jmp 0x4026ef
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x402716
movzx eax, word [ebp - 0x14]
jmp 0x402719
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402ec6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x43
xor esi, esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x402f16
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402f16
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x14]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f0d
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x402f1d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
push eax
xor esi, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x402f5d
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402f54
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x403197
Capabilities:
Delete registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
push 0x4013a4
push dword [0x406110]
call fcn.00402ec6
test eax, eax
je 0x4032d4
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_Win32DeleteFile]
lea eax, [ebp + 8]
mov edi, 0x401028
push eax
push edi
push dword [0x406110]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403205
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4031fc
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
push eax
call fcn.0040545e
test eax, eax
je 0x4032d4
mov esi, 0x400
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4032d4
lea eax, [ebp - 0x108]
push eax
push esi
push ebx
push 0x401044
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi - 5]
cmp eax, ecx
jb 0x403269
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0x400
xor ebx, ebx
cmp esi, 0x2000
mov dword [ebp - 4], ebx
jb 0x40321e
test ebx, ebx
je 0x4032d4
cmp byte [ebx], 0
mov esi, ebx
je 0x4032cd
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x401044
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4032bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x403274
jmp 0x4032cd
lea eax, [ebp - 0x108]
push eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4032f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 1
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push edi
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
test eax, eax
je 0x403388
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x101
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call esi
push 0
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403132
mov ebx, 0x104
lea eax, [ebp - 0x208]
push ebx
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00403164
push edi
call dword [sym.imp.SHELL32.dll_Ordinal_32]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, eax
mov dword [ebp + 0x10], eax
lea ecx, [ebp - 0x208]
push ebx
add eax, edi
push ecx
push eax
call esi
push 1
push dword [ebp + 0x10]
push edi
call fcn.00403132
jmp 0x40339f
push dword [ebp + 0x14]
call dword [sym.imp.SHELL32.dll_Ordinal_34]
push eax
push edi
call dword [sym.imp.SHELL32.dll_Ordinal_36]
push edi
call fcn.004032de
push edi
call dword [sym.imp.SHELL32.dll_Ordinal_45]
test eax, eax
jne 0x4033bb
push edi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
neg eax
sbb eax, eax
inc eax
jmp 0x4033be
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403b62
Capabilities:
Get common file path
Persist via run registry key
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp byte [section..data], 0
push ebx
push esi
push edi
mov esi, section..data
jne 0x403c1f
mov ebx, 0x104
push 0x4015b8
push ebx
push esi
mov edi, 0x4015c4
push 0x401044
push edi
push 0x401030
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [section..data], 0
jne 0x403bc0
push ebx
push esi
push 0xd7
push dword [0x40610c]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x403c16
push 0
lea eax, [ebp - 0x104]
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_32]
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push edi
push 0x401454
push 0x80000001
call fcn.00402f1d
cmp byte [section..data], 0
je 0x403c32
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403c32
push 1
pop eax
jmp 0x403c34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403d22
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x406108]
push edi
mov edi, dword [eax]
test edi, edi
je 0x403df4
and byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0x4013d4
push 0x4013c8
push 0x80000002
call fcn.00402ec6
push 0
push pe_nt_image_headers32
push 2
push 0
push 1
push 0x40000000
push 0x4013e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [ebp - 4], eax
je 0x403df4
push esi
xor esi, esi
test edi, edi
jle 0x403dea
push esi
push dword [0x406108]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x51c]
push 0x401498
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x51c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
cmp esi, edi
jl 0x403d8d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret
Function at 0x404140
Capabilities:
Create process on windows
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
call fcn.00402fd3
test eax, eax
je 0x4042f4
push edi
push esi
push ebx
push 0x40
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4042e9
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 0x68]
push 0x22
push eax
push ebx
call esi
push 1
cmp eax, 0x22
pop edi
jne 0x4042ce
movzx eax, word [ebp - 0x52]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
lea eax, [ebp - 0x270]
push 0x101
push eax
push ebx
call esi
lea eax, [ebp - 0x270]
push eax
call fcn.00403b62
test eax, eax
je 0x4041da
push edi
lea eax, [ebp - 0x16c]
push 7
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x4041fb
push dword [ebp + 0xc]
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 8]
call fcn.004032f3
test eax, eax
je 0x4042ce
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x62]
push dword [ebp - 0x48]
push ebx
call fcn.0040370d
test eax, eax
jne 0x404238
test byte [ebp + 0x10], 2
je 0x404238
xor esi, esi
push 0x30
push esi
push 0xcf
push 0xca
push dword [ebp + 8]
call fcn.00402c02
jmp 0x40423a
xor esi, esi
push dword [ebp - 0x62]
push ebx
call fcn.00403418
call fcn.00403541
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
test eax, eax
jne 0x40425e
call fcn.0040357f
call fcn.004035e0
lea eax, [ebp - 0x16c]
push eax
call fcn.00403c88
test byte [ebp + 0x10], 8
je 0x40427c
call fcn.0040402e
jmp 0x40428b
push dword [ebp - 8]
lea eax, [ebp - 0x16c]
push eax
call fcn.004038c6
test byte [ebp + 0x10], 4
je 0x4042cb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x34], eax
mov eax, dword [0x40610c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 4], edi
jne 0x4042e9
push dword [ebp + 0xc]
lea eax, [ebp - 0x270]
push eax
call fcn.00403197
call fcn.00402ff7
mov eax, dword [ebp - 4]
pop ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x40449d
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
and dword [esp], 0
push ebx
push ebp
push esi
lea eax, [esp + 0x114]
push edi
push eax
call fcn.0040545e
test eax, eax
je 0x404512
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x400
mov ebx, 0x401028
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x404512
lea eax, [esp + 0x118]
push eax
push esi
push edi
push 0x401044
push 0
push ebx
call ebp
lea ecx, [esi - 5]
cmp eax, ecx
jb 0x40450e
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0x400
xor edi, edi
cmp esi, 0x2000
jb 0x4044cd
test edi, edi
jne 0x404519
xor eax, eax
jmp 0x4045b2
cmp dword [esp + 0x224], 0
je 0x404528
call fcn.004027db
cmp byte [edi], 0
mov esi, edi
je 0x40458b
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x401044
push esi
push ebx
call ebp
cmp byte [esp + 0x14], 0
je 0x404579
cmp dword [esp + 0x228], 0
je 0x404569
lea eax, [esp + 0x14]
push eax
call fcn.00404452
test eax, eax
je 0x404579
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x224]
inc dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x40452f
lea eax, [esp + 0x118]
push eax
call fcn.004042f8
cmp dword [esp + 0x224], 0
je 0x4045a7
call fcn.004027e6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 0xc

Function at 0x4045ff
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
call fcn.004045bf
test eax, eax
je 0x4046e3
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x400
mov ebx, 0x401028
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4046e3
lea eax, [esp + 0x10]
push eax
push esi
push edi
push 0x401044
push 0
push ebx
call ebp
lea ecx, [esi - 5]
cmp eax, ecx
jb 0x40466d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0x400
xor edi, edi
cmp esi, 0x2000
jb 0x40462b
test edi, edi
je 0x4046e3
cmp dword [esp + 0x220], 0
je 0x404680
call fcn.004027db
cmp byte [edi], 0
mov esi, edi
je 0x4046cd
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push 0x104
push eax
push 0x401044
push esi
push ebx
call ebp
cmp byte [esp + 0x114], 0
je 0x4046bb
lea eax, [esp + 0x114]
push eax
call dword [esp + 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x404687
cmp dword [esp + 0x220], 0
je 0x4046dc
call fcn.004027e6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4049ed
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 8]
push edi
xor edi, edi
push eax
push 0xb
push edi
call esi
test eax, eax
je 0x404a3a
lea eax, [ebp - 4]
push eax
push 2
push edi
call esi
mov esi, dword [sym.imp.SHELL32.dll_ILFree]
test eax, eax
je 0x404a35
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ILIsParent]
test eax, eax
je 0x404a30
push 1
pop edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4053a5
Capabilities:
Create process on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.00405340
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
test eax, eax
mov ebx, 0x3e8
je 0x40542e
and dword [esi + 0xc], ebp
push ebx
call edi
mov eax, dword [0x40611c]
test eax, eax
je 0x4053d9
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
and dword [esi], 0
push 0
push 0x10
push 0x405261
push esi
call sub.USER32.dll_DdeInitializeA
mov ebx, 0x3ec
mov edi, 0x4015d8
push ebx
push edi
push dword [esi]
call sub.USER32.dll_DdeCreateStringHandleA
push ebx
push edi
push dword [esi]
mov ebp, eax
call sub.USER32.dll_DdeCreateStringHandleA
mov edi, eax
push edi
push ebp
push esi
call fcn.004052cd
push ebp
mov ebx, eax
push dword [esi]
call sub.USER32.dll_DdeFreeStringHandle
push edi
push dword [esi]
call sub.USER32.dll_DdeFreeStringHandle
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 4
push 0
push 0x4015cc
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.00405340
test eax, eax
jne 0x4053c6
cmp ebp, 0xa
jge 0x4053c6
push ebx
call edi
inc ebp
jmp 0x405442

Function at 0x405579
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, 0x5000
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405640
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4055bf
push dword [ebp + 8]
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x405638
push 0xd6
call fcn.004028a8
cmp byte [ebx], 0
mov esi, ebx
je 0x405638
mov edi, dword [sym.imp.SHELL32.dll_Ordinal_58]
mov eax, esi
sub eax, ebx
cmp dword [ebp - 4], eax
jl 0x405638
lea eax, [ebp - 0x104]
push 0x100
push eax
push 0
push esi
call edi
lea eax, [ebp - 0x30c]
push 0x208
push eax
push 1
push esi
call edi
push dword [ebp + 0x18]
lea eax, [ebp - 0x30c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00404ccb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4055dc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x405646
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, 0x104
push edi
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x208]
push 0x401510
push eax
call edi
lea eax, [ebp - 0x104]
push ebx
push eax
call esi
lea eax, [ebp - 0x104]
push 0x40151c
push eax
call edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4056f4
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
jne 0x4056f4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4056f4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4056f4
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
test eax, eax
jne 0x4056f4
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x108b1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x108b11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108b107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b106a
add dl, dl
jne 0x108b1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b10dc
xor eax, eax
add dl, dl
jne 0x108b1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b117d
add dl, dl
jne 0x108b10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108b10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108b1075
mov eax, 1
add dl, dl
jne 0x108b10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b10e1
sub eax, ebx
mov ebx, 1
jne 0x108b1128
mov ecx, 1
add dl, dl
jne 0x108b110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108b1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108b113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108b114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b1136
cmp eax, 0x7d00
jae 0x108b116d
cmp eax, 0x500
jb 0x108b1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b1075
cmp eax, 0x7f
ja 0x108b1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108b119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x108b1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
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
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401580
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [0x8be030]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
xor eax, eax
test ecx, ecx
jle 0x4015b4
lea esi, [edx + ebp]
mov ecx, dword [edi]
mov bl, byte [esi]
xor byte [ecx + eax], bl
add ecx, eax
mov ecx, dword [0x8be030]
inc eax
add esi, 4
cmp eax, ecx
jl 0x40159d
inc ebp
add edi, 4
cmp ebp, 4
jl 0x401594
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401630
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
sub ecx, eax
sub esi, eax
mov edi, 4
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x401648
pop edi
pop esi
pop ebx
ret

Function at 0x401840
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x40186b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x18]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x40185b
pop esi
pop ebx
pop edi
ret

Function at 0x4024d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea edi, [ebx + 0x44]
mov ecx, 8
mov esi, ebp
push str.expand_32_byte_k
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
lea edi, [ebx + 0x64]
mov eax, esi
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
call fcn.00402600
push 0x8be044
mov dword [ebx + 0x74], eax
call fcn.00402600
push 0x8be048
mov dword [ebx + 0x78], eax
call fcn.00402600
push 0x8be04c
mov dword [ebx + 0x7c], eax
call fcn.00402600
push ebp
mov dword [ebx + 0x80], eax
call fcn.00402600
lea ecx, [ebp + 4]
mov dword [ebx + 0x84], eax
push ecx
call fcn.00402600
lea edx, [ebp + 8]
mov dword [ebx + 0x88], eax
push edx
call fcn.00402600
mov dword [ebx + 0x8c], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00402600
lea ecx, [ebp + 0x10]
mov dword [ebx + 0x90], eax
push ecx
call fcn.00402600
lea edx, [ebp + 0x14]
mov dword [ebx + 0x94], eax
push edx
call fcn.00402600
mov dword [ebx + 0x98], eax
lea eax, [ebp + 0x18]
push eax
call fcn.00402600
add ebp, 0x1c
mov dword [ebx + 0x9c], eax
push ebp
call fcn.00402600
push esi
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], 0
call fcn.00402600
lea ecx, [esi + 4]
mov dword [ebx + 0xa8], eax
push ecx
call fcn.00402600
lea edx, [esi + 8]
mov dword [ebx + 0xac], eax
push edx
call fcn.00402600
mov dword [ebx + 0xb0], eax
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
add esp, 0x3c
mov dword [edi + 8], edx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x8243a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
call fcn.008207c0
call fcn.008238d0
call fcn.008208d0
call fcn.00821370
jmp fcn.00823b20
Function at 0x828de0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x828dfc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x828dfc
mov eax, dword [eax + 0x28]
ret
xor eax, eax
ret