joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov bl, 0x41
lea eax, [ebp - 4]
push eax
mov byte [ebp - 4], bl
mov word [ebp - 3], 0x3a
call esi
cmp eax, 3
je 0x401029
cmp eax, 2
jne 0x401055
lea eax, [ebp - 8]
push 6
push eax
mov byte [ebp - 8], bl
mov word [ebp - 7], 0x5c3a
mov byte [ebp - 5], 0
call fcn.004016d5
add esp, 8
cmp eax, 0xffffffff
je 0x401055
lea eax, [ebp - 4]
push eax
call fcn.00401410
add esp, 4
inc bl
cmp bl, 0x5a
jle 0x401010
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401070
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x40e038]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
push 0x13c
lea eax, [esp + 0x18]
push 0
push eax
mov ebx, edx
mov dword [esp + 0x1c], 0
call fcn.004059c0
push 0x103
lea eax, [esp + 0x161]
push 0
push eax
mov byte [esp + 0x168], 0
call fcn.004059c0
push 0x103
lea eax, [esp + 0x275]
push 0
push eax
mov byte [esp + 0x27c], 0
call fcn.004059c0
lea edx, [esp + 0x27c]
add esp, 0x24
mov ecx, ebx
sub edx, ebx
mov edi, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4010f0
lea edi, [esp + 0x258]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x401104
mov ax, word [0x40c440]
mov word [edi], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
je 0x40119b
test byte [esp + 0x10], 0x10
je 0x40119b
lea edx, [esp + 0x150]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x401147
lea edx, [esp + 0x3c]
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x401160
lea edi, [esp + 0x150]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401171
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x150]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401310
mov esi, dword [esp + 0x10]
add esp, 4
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40121f
jmp 0x4011b0
test byte [esp + 0x10], 0x10
je 0x40120f
lea edx, [esp + 0x150]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x4011c2
lea edx, [esp + 0x3c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4011d4
lea edi, [esp + 0x150]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4011e5
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x150]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401310
mov esi, dword [esp + 0x10]
add esp, 4
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004016c6
mov esp, ebp
pop ebp
ret
Function at 0x401240
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40e038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004059c0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4012bc
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004016c6
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00401759
add esp, 4
mov esi, eax
push 0
lea eax, [ebp - 0x10c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [0x40fcc4], edi
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004016c6
mov esp, ebp
pop ebp
ret

Function at 0x401310
Capabilities:
Print debug messages
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40e038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004059c0
lea edx, [ebp - 0x108]
add esp, 0xc
mov ecx, esi
sub edx, esi
mov edi, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x401350
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401363
mov eax, dword [str..exe]
mov dword [ecx], eax
mov al, byte [0x40c450]
push 6
push esi
mov byte [ecx + 4], al
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004016d5
add esp, 8
cmp eax, 0xffffffff
jne 0x4013f1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0x80
push 4
push 0
push 0
push 0x10000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013f1
push 0
lea eax, [ebp - 0x10c]
push eax
push dword [0x40fcc4]
push dword [0x40fcc0]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004016c6
mov esp, ebp
pop ebp
ret
Function at 0x4015d0
Capabilities:
Create process on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x40e038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004059c0
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.004059c0
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x108]
call fcn.00401490
push 1
push 0x40c456
lea eax, [ebp - 0x20c]
push eax
push str.explorer.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push str.C:my.F
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401689
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401240
push 0
push 0
push 0
push 0x401550
push 0
push 0
mov dword [0x40fcc0], eax
mov byte [0x40fcc8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0x64
call esi
jmp 0x4016c0
Function at 0x404eb9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e038]
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.00403243
mov dword [ebp - 0x14], eax
cmp dword [0x40fc54], edi
jne 0x404faa
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x404f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40508a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40508a
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40508a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x40fc54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x40fc58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x40fc5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40fc64], eax
test eax, eax
je 0x404fa7
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40fc60], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404fcf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404fc2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x404fe4
push 4
pop eax
jmp 0x40508c
cmp dword [ebp - 0x14], edi
je 0x404fe4
push dword [0x40fc54]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x404fc9
mov eax, dword [0x40fc60]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x405042
cmp dword [0x40fc64], esi
je 0x405042
push eax
call ebx
push dword [0x40fc64]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405042
test eax, eax
je 0x405042
call ecx
test eax, eax
je 0x405037
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 0x405037
test byte [ebp - 8], 1
jne 0x405042
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x405072
mov eax, dword [0x40fc58]
cmp eax, esi
je 0x40506f
push eax
call ebx
test eax, eax
je 0x40506f
call eax
mov edi, eax
test edi, edi
je 0x40506f
mov eax, dword [0x40fc5c]
cmp eax, esi
je 0x40506f
push eax
call ebx
test eax, eax
je 0x40506f
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40fc54]
call ebx
test eax, eax
je 0x40508a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40508c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004016c6
leave
ret
Function at 0x40cb94
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ecx
mov eax, dword [0x4177f0]
push ebx
dec eax
push esi
neg eax
sbb eax, eax
push 0x12c
add eax, 0x75fa
movzx eax, ax
push eax
push dword [0x417bd4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40cc68
push esi
push dword [0x417bd4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov dword [esp + 0xc], eax
push dword [0x417bd4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40cc68
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40cc60
mov esi, dword [esp + 0x14]
push edi
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40cc24
push 0x4140ec
push esi
call edi
cmp dword [0x4177f0], 0
jne 0x40cc34
push str._MSSETUP.EXE
jmp 0x40cc39
push str._MSRSTRT.EXE
push esi
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
pop edi
cmp esi, 0xffffffff
je 0x40cc60
push dword [esp + 0xc]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x7a453c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7a4546
pushal
call 0x7a454c
pop ebp
sub ebp, 0x10
sub ebp, 0x3a453c
jmp 0x7a4562
mov eax, 0x3a453c
add eax, ebp
add eax, 0x4c
mov ecx, 0x61f
mov edx, 0xaa846e7b
xor byte [eax], dl
inc eax
dec ecx
jne 0x7a4579
jmp 0x7a458c
invalid
Function at 0x41ba80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x414015
lea edi, [esi - 0x13015]
lea eax, [edi + 0x13168]
push dword [eax]
mov dword [eax], 0x16b709e6
push eax
push edi
or ebp, 0xffffffff
jmp 0x41bab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41bab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41baa8
mov eax, 1
add ebx, ebx
jne 0x41bacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41bac0
jne 0x41badc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41bac0
xor ecx, ecx
sub eax, 3
jb 0x41baf0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41bb62
mov ebp, eax
add ebx, ebx
jne 0x41bafb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41bb08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41bb2c
inc ecx
add ebx, ebx
jne 0x41bb18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41bb0d
jne 0x41bb29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41bb0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41bb4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41bb3d
jmp 0x41baae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41bb4c
add edi, ecx
jmp 0x41baae
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x3ae
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41bb6e
cmp byte [edi], 5
jne 0x41bb6e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41bb73
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41bbe2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b4ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b528]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41bba0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b530]
or eax, eax
je 0x41bbdc
mov dword [ebx], eax
add ebx, 4
jmp 0x41bbbd
call dword [esi + 0x1b52c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41bc13
cmp al, 0xef
ja 0x41bc06
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41bbe8
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41bbf5
mov ebp, dword [esi + 0x1b534]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1bc6e]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41bc5f
sub esp, 0xffffff80
jmp 0x4013f0
Function at 0x424960
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x521b68]
xor edx, edx
cmp eax, edx
jne 0x424986
xor eax, eax
mov byte [eax + 0x521a68], al
inc eax
cmp eax, 0x100
jl 0x42496e
mov dword [0x521b68], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x521a68
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x424a17
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4249ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4249b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x424a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x424ae3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x424aca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439790
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x494548
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4397c9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4398dc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4397dd
mov eax, 0xffffffc7
jmp 0x4398de
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4397ee
cmp dword [esi + 8], eax
jne 0x4397dd
cmp dword [esi + 8], eax
jne 0x439807
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x439807
mov eax, 0xffffffc7
jmp 0x4398de
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43981b
push eax
mov ecx, ebx
call fcn.00438fc0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00406d90
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43984c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00406db0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00438730
test eax, eax
mov dword [esp + 0x38], eax
je 0x43987f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4eef80
call fcn.00406f90
mov eax, dword [esp + 0x38]
jmp 0x4398de
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004395f0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4398c3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00439610
mov esi, eax
test esi, esi
jne 0x4398f3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004395f0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x439895
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4eef80
call fcn.00406f90
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4eef80
call fcn.00406f90
mov eax, esi
jmp 0x4398de
Function at 0x458a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x495100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00458620
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004586a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004586a0
lea ecx, [esi + 0xc]
call fcn.004862b1
lea ecx, [esi + 0x10]
call fcn.004862b1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00459c30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00459c30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00459c30
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00486326
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00486326
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a2d84
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x55133c
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x4a2e48
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x4a2dbc
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x4a2e5f
dec edx
je 0x4a2ea0
jmp 0x4a2efd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x4a2efd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret