joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4ede
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x749a5c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x4b4f37
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b4f54
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x749a5c], eax
jmp 0x4b4f40
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4b4f54
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4b5091
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005d2eae
lea eax, [ebp - 0x14]
push eax
call fcn.005bb2fa
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.005ba6d5
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.005d2eae
lea eax, [ebp - 0x14]
push eax
call fcn.005bb2fa
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005ba6d5
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.005d2eae
lea eax, [ebp - 0x14]
push eax
call fcn.005bb2fa
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005ba6d5
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.005d2eae
lea eax, [ebp - 0x14]
push eax
call fcn.005bb2fa
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.005ba6d5
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.005d2eae
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.005bb2fa
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.005ba6d5
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7f8f
leave
ret
Function at 0x4dd29e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4dd2b6
call fcn.004a1d75
mov esi, dword [eax + 0xc]
push 0x5f81c4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4dd30c
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4dd30b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4dd2ec
xor esi, esi
jmp 0x4dd302
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004dd312
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5cddcd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x677000]
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.005c0802
mov dword [ebp - 0x14], eax
cmp dword [0x74e1b4], edi
jne 0x5cdebe
push 0x800
push edi
push 0x61df20
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x5cde4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5cdf9e
push 0x61df20
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5cdf9e
push 0x61df38
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5cdf9e
push eax
call ebx
push 0x61df44
push esi
mov dword [0x74e1b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x61df54
push esi
mov dword [0x74e1b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x74e1bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74e1c4], eax
test eax, eax
je 0x5cdebb
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x74e1c0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5cdee3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5cded6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x5cdef8
push 4
pop eax
jmp 0x5cdfa0
cmp dword [ebp - 0x14], edi
je 0x5cdef8
push dword [0x74e1b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5cdedd
mov eax, dword [0x74e1c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x5cdf56
cmp dword [0x74e1c4], esi
je 0x5cdf56
push eax
call ebx
push dword [0x74e1c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5cdf56
test eax, eax
je 0x5cdf56
call ecx
test eax, eax
je 0x5cdf4b
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 0x5cdf4b
test byte [ebp - 8], 1
jne 0x5cdf56
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x5cdf86
mov eax, dword [0x74e1b8]
cmp eax, esi
je 0x5cdf83
push eax
call ebx
test eax, eax
je 0x5cdf83
call eax
mov edi, eax
test edi, edi
je 0x5cdf83
mov eax, dword [0x74e1bc]
cmp eax, esi
je 0x5cdf83
push eax
call ebx
test eax, eax
je 0x5cdf83
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x74e1b4]
call ebx
test eax, eax
je 0x5cdf9e
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x5cdfa0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7f8f
leave
ret
Function at 0x6d2414d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
jne 0x6d241613
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x800c
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
jne 0x6d241616
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x6610
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call eax
sub esp, 4
jmp 0x6d241617
nop
jmp 0x6d241617
nop
leave
ret
Function at 0x6d241629
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x29a28
call fcn.6d2424d0
sub esp, eax
mov dword [ebp - 0x24], 0x1b8750ac
mov dword [ebp - 0x20], 0xcadf0e2e
mov dword [ebp - 0x1c], 0x615a6159
mov dword [ebp - 0x18], 0x63b33ec6
lea eax, [ebp - 0x29a04]
mov edx, 0x6d244044
mov ecx, 0x299e0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [ebp - 0xc], 0x299e0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x299e0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6d2416b7
mov eax, 0xffffffff
jmp 0x6d24179c
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x29a04]
mov dword [esp], eax
call fcn.6d2414d0
mov dword [esp + 8], 0x299e0
lea eax, [ebp - 0x29a04]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea eax, [ebp - 0x29a08]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0x299e0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x6d241732
mov eax, 0xfffffffe
jmp 0x6d24179c
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6d24177a
mov eax, 0xfffffffd
jmp 0x6d24179c
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [ebp - 0x10]
call eax
mov eax, 0
leave
ret

Function at 0x6d2419a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6d242510
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6d242510
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6d241a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6d26f050]
test esi, esi
jle 0x6d241b20
mov eax, dword [0x6d26f054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6d241a34
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6d241ab7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6d241a20
mov dword [esp], ebx
call fcn.6d2421f0
mov edi, eax
test eax, eax
je 0x6d241b47
mov eax, dword [0x6d26f054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6d242330
mov edx, dword [0x6d26f054]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6d241b27
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6d241ab0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x6d241ac0
add dword [0x6d26f050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6d26f054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6d241ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6d2419a0
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x6d241a3e
mov eax, dword [0x6d26f054]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6d2419a0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6d2419a0
lea esi, cs:[esi]
nop

Function at 0x6d241e60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6d26f060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6d26f058]
sub esp, 4
test ebx, ebx
je 0x6d241eb5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x6d241eae
test eax, eax
jne 0x6d241eae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6d241e90
mov dword [esp], 0x6d26f060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6d2421f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6d240000], 0x5a4d
jne 0x6d242215
mov ecx, dword [0x6d24003c]
cmp dword [ecx + 0x6d240000], 0x4550
lea edx, [ecx + 0x6d240000]
je 0x6d242220
ret
cmp word [ecx + 0x6d240018], 0x10b
jne 0x6d242215
push esi
movzx eax, word [ecx + 0x6d240014]
push ebx
movzx esi, word [ecx + 0x6d240006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6d240000
test si, si
je 0x6d242268
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6d24225e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6d24226a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x6d242250
xor eax, eax
pop ebx
pop esi
ret
Function at 0x48ee74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48ee7e
repz ret
jmp fcn.00493927

Function at 0x491ab1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048c052
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491b64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491c0c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491c0c
mov esi, dword [fcn.00488080]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491b64
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00488084]
cmp eax, ecx
je 0x491bbd
cmp dword [0x4acb1c], ecx
je 0x491bbd
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491bbd
test ebx, ebx
je 0x491bbd
call edi
test eax, eax
je 0x491bb4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491bb4
test byte [ebp - 8], 1
jne 0x491bbd
or dword [ebp + 0x10], 0x200000
jmp 0x491bf0
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491bf0
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491c0c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491c0e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ee74
leave
ret

Function at 0xf68000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xf6800a
jmp 0xf6a00f
jmp fcn.00ade0b0

Function at 0x402618
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x402618
lcall 0x5de5, 0x8b10c483
jmp loc.007b48b8
Function at 0x5d4e54
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x2bcb8c11]
fldcw word [ecx + 0x70]
mov dl, 0xff
invalid
mov bl, 0x13
imul esi, dword [eax - 0x4e], 0xbfa3bd11
adc dword [eax + edi + 0x3696ffd0], ecx
dec esi
inc edx
in eax, 0xae
xlatb
mov bh, byte gs:[eax - 0x5ec7fc4b]
adc dword [ecx + esi*8 + 0x7d8ce0e3], ecx
jge 0x5d4ebb
jle 0x5d4e66
jge 0x5d4ebb
jle 0x5d4e66
xor al, 0xad
lcall 0xb2bd, 0x52de3740
adc dword [ecx], 0x8c64388c
shl byte fs:[ebp - 0x5f07fc19], 0x8d
lcall 0xd46d, 0xc711a138
cdq
mov word [eax + eax*8 - 0x5b], fs
out 3, eax
clc
mov al, byte [0xa1389a8d]
adc edi, eax
insd dword es:[edi], dx
aam 0x99
lea ebp, [ebp + 0x5a00b5e0]
mov al, byte [0x4e2f8c11]
loopne 0x5d4e11
lodsd eax, dword [esi]
loopne 0x5d4e30
add byte [edx - 0x60], bl
adc dword [edi + ebp - 0x53721fb2], ecx
lodsb al, byte [esi]
in al, 0xa0
lea ebp, [eax + ebx*4 - 0x2fcb5c88]
add al, bh
fimul word fs:[eax - 0x734521ba]
cmp byte [ecx + 0x557cd92], ah
pop ebp
lea esi, [esi]
sar bl, 1
into
dec ebx
mov eax, dword [0x220dc7d8]
xchg esi, eax
cmp eax, 0x3911a13a
insd dword es:[edi], dx
cwde
invalid
add dl, byte [ecx - 0x5c418acb]
loopne 0x5d4e78
add dl, cl
mov al, byte [0xd9b18c11]
ret 0x368b

Function at 0x5dfe96
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5dfeb1
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124a50d6]
pop edx
test eax, eax
je 0x5dff83
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5dff72
test dword [ebp - 0x2a8], 1
jne 0x5dff72
and dword [ebp - 0x2a8], 0x100
jne 0x5dff72
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3b64]
pop edx
pop esi
test eax, eax
je 0x5dff15
jmp 0x5dff72
cmp word [esi], 0x5a4d
jne 0x5dff72
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5dff72
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d38b8]
pop edx
test eax, eax
je 0x5dff72
lea eax, [ebp - 0x28c]
push eax
call fcn.005dfdf2
test eax, eax
jne 0x5dff6b
jmp 0x5dff72
mov eax, esi
jmp 0x5dff83
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5dfeb1
pop esi
leave
ret 4
Function at 0x402a7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a2770]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402af7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405f94
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x7a2770]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x7a2770], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402af4
jmp 0x402af7
Function at 0x402f70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f9d
mov ecx, dword [0x7a2718]
push edi
add eax, ecx
push edi
push eax
mov dword [0x795878], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040309b
cmp eax, edi
jl 0x403094
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x403091
cmp dword [ebp - 4], esi
jne 0x403091
push dword [ebp + 8]
add dword [0x795878], esi
call fcn.0040309b
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403094
cmp dword [ebp + 0x10], edi
jne 0x403060
cmp dword [ebp + 8], edi
jle 0x40308c
mov esi, 0x791874
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403010
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x403091
cmp edi, dword [ebp - 4]
jne 0x403091
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40305c
cmp dword [ebp + 0x14], edi
jne 0x40305c
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x795878], eax
cmp dword [ebp + 8], 0
jg 0x403003
jmp 0x40308c
push 0xfffffffffffffffe
jmp 0x403093
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40306b
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x403091
mov eax, dword [ebp - 4]
add dword [0x795878], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403094
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10