joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e780
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ab52
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2b4], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00431310
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov edx, edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2b0], 1
call fcn.0042e1e0
push esi
mov edx, eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.00409ac0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x42e818
mov eax, dword [eax]
lea ecx, [ebp - 0x2ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x30], 8
mov esi, eax
jb 0x42e839
push dword [ebp - 0x44]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x42e861
push dword [ebp - 0x5c]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp esi, 0xffffffff
je 0x42e925
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x42e890
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [ebp - 0x280], ax
je 0x42e8c5
lea eax, [ebp - 0x280]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e8b6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a100
mov dword [ebp - 4], 2
movzx eax, byte [0x4acd9e]
push eax
lea eax, [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x2bc]
push eax
mov ecx, ebx
call fcn.00431460
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x42e90c
push dword [ebp - 0x2c]
call fcn.0044d5f9
add esp, 4
lea eax, [ebp - 0x2ac]
push eax
push esi
call edi
test eax, eax
jne 0x42e890
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x42edf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
jg 0x42ee4c
test eax, eax
je 0x42ee4c
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040a200
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x42fd40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42fdfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x42fdd4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00450d00
push 0x5c
push esi
call fcn.004502de
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00450384
add esp, 0x20
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.0042fd40
test al, al
je 0x42fdec
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
test al, al
jne 0x42fe00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x430620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a97f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a5590]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x47ee20
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004018e0
lea eax, [ebp - 0x14]
lea ebx, [edi + 0x10]
push eax
mov ecx, esi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
call fcn.004018c0
push eax
mov dword [ebp - 4], 2
call fcn.00408490
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4306ea
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4306ea
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x43070f
mov eax, dword [esi + 0xc]
or eax, 4
push 0
push eax
mov ecx, esi
call fcn.00401810
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.00408110
lea eax, [ebx + 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x4c], 0
mov byte [ebx + 0x45], 0
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea ecx, [ebx + 8]
mov dword [ebx + 0x10], ecx
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x4a87d8]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
xor bl, bl
call fcn.00450d00
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43319f
mov eax, dword [ebp - 0x114]
cmp eax, 6
jne 0x43318c
cmp dword [ebp - 0x110], 2
jb 0x43318e
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
ja 0x43317b
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x445230
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b188
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
push 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x59
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x445329
cmp word [ebp - 0x30], 0
jne 0x4452a5
xor ecx, ecx
jmp 0x4452bf
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
jmp 0x4452b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4452b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040a100
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x5a
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x445329
push 1
push str._0_:
lea ecx, [ebp - 0x48]
call fcn.004092b0
cmp word [ebp - 0x30], 0
jne 0x4452f9
xor ecx, ecx
jmp 0x44530f
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445300
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.004092b0
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.00409c70
jmp 0x445349
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x47ac50
mov ecx, esi
mov word [esi], ax
call fcn.0040a100
cmp dword [ebp - 0x34], 8
jb 0x44535a
push dword [ebp - 0x48]
call fcn.0044d5f9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x446170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0x2b
push str.http:__www.tune_up.com_link__targetprivacy
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004092b0
push 9
push str.tu_lang
lea ecx, [ebp - 0x28]
call fcn.004092b0
push 5
push 0x47e9b4
lea ecx, [ebp - 0x28]
call fcn.004092b0
push 0xc
push str.tu_product
lea ecx, [ebp - 0x28]
call fcn.004092b0
push 7
push str.AWL2015
lea ecx, [ebp - 0x28]
call fcn.004092b0
push 0xc
push str.tu_version
lea ecx, [ebp - 0x28]
call fcn.004092b0
push 0xd
push 0x47be48
lea ecx, [ebp - 0x28]
call fcn.004092b0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x446224
lea eax, [ebp - 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x14], 8
jb 0x446249
push dword [ebp - 0x28]
call fcn.0044d5f9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret

Function at 0x446270
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowDC]
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044bd80
add esp, 4
mov ebx, eax
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x420
lea eax, [ebp - 0x14]
push eax
lea eax, [esi - 1]
mov esi, dword [ebp - 0x18]
push eax
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x3e7
mov dword [ebp - 8], 0x3e7
call dword [sym.imp.USER32.dll_DrawTextW]
test ebx, ebx
je 0x446300
push ebx
call fcn.0044d5f9
add esp, 4
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 6
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x448320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x44832c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00448340
Function at 0x4619c4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00452ce2
mov dword [ebp - 0x14], eax
cmp dword [0x4a877c], edi
jne 0x461ab5
push 0x800
push edi
push 0x4793a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x461a42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x461b95
push 0x4793a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x461b95
push 0x4793bc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x461b95
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4a877c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4a8780], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4a8784], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a878c], eax
test eax, eax
je 0x461ab2
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a8788], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x461ada
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x461acd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x461aef
push 4
pop eax
jmp 0x461b97
cmp dword [ebp - 0x14], edi
je 0x461aef
push dword [0x4a877c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x461ad4
mov eax, dword [0x4a8788]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x461b4d
cmp dword [0x4a878c], esi
je 0x461b4d
push eax
call ebx
push dword [0x4a878c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x461b4d
test eax, eax
je 0x461b4d
call ecx
test eax, eax
je 0x461b42
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x461b42
test byte [ebp - 8], 1
jne 0x461b4d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x461b7d
mov eax, dword [0x4a8780]
cmp eax, esi
je 0x461b7a
push eax
call ebx
test eax, eax
je 0x461b7a
call eax
mov edi, eax
test edi, edi
je 0x461b7a
mov eax, dword [0x4a8784]
cmp eax, esi
je 0x461b7a
push eax
call ebx
test eax, eax
je 0x461b7a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4a877c]
call ebx
test eax, eax
je 0x461b95
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x461b97
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c2ed
leave
ret
Function at 0x462da9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0045773b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x462de1
xor eax, eax
jmp 0x462e0d
cmp esi, dword [ebp - 4]
je 0x462e0a
cmp dword [ebp + 0xc], 0
je 0x462e0a
push dword [edi + 0x9c]
call fcn.004629b7
push dword [edi + 0x9c]
mov esi, eax
call fcn.00452f98
pop ecx
pop ecx
cmp esi, eax
je 0x462ddd
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x4815c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406114
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4824f0], eax
push 0x27
push 0x481018
push 0x547
mov esi, 0x481040
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x4824f0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403f40
call fcn.00403de5
xor eax, eax
pop ecx
ret 0x10
Function at 0x17c4284
Capabilities:
Encode data using xor

Disassembly:
jmp 0x17c428e
pushal
call 0x17c4294
pop ebp
sub ebp, 0x10
sub ebp, 0x13c4284
jmp 0x17c42aa
mov eax, 0x13c4284
add eax, ebp
add eax, 0x4c
mov ecx, 0x60f
mov edx, 0xc7e58ae5
xor byte [eax], dl
inc eax
dec ecx
jne 0x17c42c1
jmp 0x17c42d4
outsb dx, byte [esi]
sub byte [esi + 0x6c], ch
fxam
in eax, 0xe5
and al, 0x1d
in eax, 0xe5
in eax, 0xe6
sub byte [ebp - 0x11], bl
in eax, 0xe5
in eax, 0x5f
int 0xe5
in eax, 0xe5
adc al, byte [edi]
out 0x2d, al
outsb dx, byte [esi]
jmp 0xe86228de

Function at 0x83b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x83b1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x83b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x83b06a
add dl, dl
jne 0x83b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x83b0dc
xor eax, eax
add dl, dl
jne 0x83b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x83b17d
add dl, dl
jne 0x83b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x83b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x83b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x83b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x83b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x83b075
mov eax, 1
add dl, dl
jne 0x83b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x83b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x83b0e1
sub eax, ebx
mov ebx, 1
jne 0x83b128
mov ecx, 1
add dl, dl
jne 0x83b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x83b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x83b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x83b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x83b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x83b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x83b136
cmp eax, 0x7d00
jae 0x83b16d
cmp eax, 0x500
jb 0x83b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x83b075
cmp eax, 0x7f
ja 0x83b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x83b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x83b19e
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 0x83b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4028a0
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x500244]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x402a70
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.00461880
jmp fcn.004028a0