joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x218
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 0x11c]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404f97
pop edi
xor al, al
pop esi
add esp, 0x218
ret
mov edi, str.WkbpsevaXImgvkwkbpXSmj_kswXGqvvajpRavwmkjXVqj
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404fed
mov cl, byte [esp + edx + 0x18]
lea edi, [esp + 0x18]
xor cl, 4
xor eax, eax
mov byte [esp + edx + 0x18], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x404fcf
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405018
pop edi
xor al, al
pop esi
add esp, 0x218
ret
xor eax, eax
mov byte [esp + 0xc], 0x30
mov dword [esp + 0xd], eax
push eax
mov dword [esp + 0x15], eax
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov edi, dword [sym.imp.MSVCRT.dll_rand]
add esp, 8
xor esi, esi
call edi
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 8
jl 0x405040
lea edx, [esp + 0xc]
mov byte [esp + 0x14], 0
push edx
call fcn.004050d0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x120]
push eax
push ecx
call fcn.00404de0
add esp, 0xc
test al, al
jne 0x4050c5
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4050ba
pop edi
xor al, al
pop esi
add esp, 0x218
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
add esp, 0x218
ret
Function at 0x406550
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x60]
xor edx, edx
test eax, eax
push ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jbe 0x4065e3
mov eax, dword [ecx + 0x5c]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4065e3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
mov eax, dword [ebx + 8]
cmp byte [eax + 0x20], 0
je 0x4065c5
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x40658c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x4065ca
mov esi, 0x2000
mov ebx, dword [ebx]
mov eax, dword [ecx + 0x5c]
add edx, esi
cmp ebx, eax
mov dword [esp + 0x10], edx
jne 0x406577
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 8
ret
mov eax, edx
pop ebx
add esp, 8
ret
Function at 0x406df0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ecx + 0xc]
push ebx
push esi
xor edx, edx
push edi
cmp eax, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
jne 0x406e38
lea eax, [ebp - 0x1c]
push 0x40f5f0
push eax
mov dword [ebp - 0x1c], str.connection_failed...
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x406ef7
lea edx, [ebp - 0x20]
push 0x40f5f0
push edx
mov dword [ebp - 0x20], str.response_failed...
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edx, edx
mov dword [esi + 0xc], edx
mov eax, dword [esi + 0x44]
cmp eax, edx
jne 0x406e86
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jne 0x406e93
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [ebp - 0x24]
push edx
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x54]
push eax
push edx
push ecx
call fcn.00407020
add esp, 0x14
mov eax, 0x406ef7
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4087b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x4087cb
cmp ebx, 8
jg 0x4087cb
mov eax, 1
jmp 0x4087cd
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.00407000
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x408804
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x40ec42]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x40ec40]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x40ec44]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x40ec46]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x408865
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x408871
cmp ebx, 8
jl 0x408871
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x4088ea
cmp eax, 0xffffffff
je 0x4088ea
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x4088b5
push esi
call fcn.00408b00
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x4088bd
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x409b80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x409b8b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x409c8e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x40ec90]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40ec90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40ec90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40ec90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40ec90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40ec90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40ec90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40ec90]
xor eax, edx
inc ecx
dec edi
jne 0x409ba6
pop edi
test esi, esi
je 0x409cb0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40ec90]
xor eax, edx
inc ecx
dec esi
jne 0x409c92
pop esi
pop ebx
not eax
ret

Function at 0x409cc0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x40ec90]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x40ec90]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x409ef0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x409f12
mov eax, 0x200
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x14]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x409f25
mov ebp, 1
test al, 2
je 0x409f2c
or ebp, 2
test al, 4
je 0x409f33
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x409f3d
or ebp, 0x10
test al, 0x20
je 0x409f44
or ebp, 0x20
test ecx, ecx
je 0x409f50
or ebp, 0x40000000
jmp 0x409f56
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x409f66
or ebp, 0x800000
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x40a015
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x60]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x58], 0x54ad
jne 0x40a015
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x40a015
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x40a00f
cmp eax, 0x454e
je 0x40a00f
cmp eax, 0x454c
je 0x40a00f
cmp eax, 0x4550
jne 0x40a015
or ebp, 0x400000
mov eax, dword [esp + 0x5c]
pop edi
test eax, eax
pop ebx
je 0x40a021
mov dword [eax], ebp
mov eax, dword [esp + 0x58]
pop ebp
test eax, eax
je 0x40a030
mov edx, dword [esp + 8]
mov dword [eax], edx
mov esi, dword [esp + 0x58]
test esi, esi
je 0x40a079
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00409e50
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x34]
push edx
push eax
call fcn.00409e50
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.00409e50
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x40a0b8
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00409e80
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [esi], ecx
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x40a270
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x10]
mov al, byte [ebx + 0x2d]
push esi
mov esi, dword [esp + 0x10]
push edi
test al, al
je 0x40a2f5
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40a2a1
cmp dword [ebx + 0x40], ebp
jae 0x40a2a1
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x40a2bb
lea eax, [ebp + ebp]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ebp
mov edi, dword [ebx + 0x3c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test ebp, ebp
jbe 0x40a2f2
lea edi, [ebx + 0x30]
mov eax, dword [ebx + 0x3c]
mov cl, byte [esi + eax]
push ecx
push edi
call fcn.00409d40
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, ebp
jb 0x40a2d7
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x40a33d
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
lea ecx, [eax + ebp]
cmp ecx, edi
jb 0x40a319
pop edi
pop esi
mov dword [ebx + 0x14], 0x30000
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, ebp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
pop edi
add eax, ebp
pop esi
mov dword [ebx + 0x24], eax
mov eax, ebp
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x40a35f
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
mov dword [ebx + 0x14], 0x1000000
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x40a7f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x40a869
mov eax, dword [ebx + 0x8c]
mov ebp, dword [ebx + 0x88]
cmp eax, ebp
jae 0x40a8ba
mov ecx, dword [esp + 0x14]
sub ebp, eax
cmp ebp, ecx
jbe 0x40a81f
mov ebp, ecx
mov ecx, ebp
lea esi, [eax + edx]
mov eax, dword [esp + 0x10]
mov edx, ecx
push edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x8c], edx
mov dword [ebx + 0x74], ecx
call fcn.00409b80
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x40a8b3
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a8ba
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x74]
add ecx, eax
push eax
mov eax, dword [ebx + 0x78]
push esi
push eax
mov dword [ebx + 0x74], ecx
call fcn.00409b80
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0x14], 0x1000000
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x40b7a1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f0b8
push 0x40b8e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x416838], 0xffffffff
or dword [0x41683c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x416828]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x416824]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x416834], eax
call fcn.0040b8df
cmp dword [0x412420], 0
jne 0x40b824
push 0x40b8dc
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040b8ca
push 0x41101c
push 0x411018
call sub.MSVCRT.dll__initterm
mov eax, dword [0x416820]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41681c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x411014
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401440
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x40bbe0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
xor eax, eax
test ebp, ebp
jle 0x40bca4
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc edi
cmp edi, ebp
mov dl, byte [edi + ecx - 1]
mov byte [esp + 0x1c], dl
je 0x40bcb0
mov dl, byte [edi + ecx]
inc edi
cmp edi, ebp
mov byte [esp + 0x20], dl
je 0x40bcf5
mov cl, byte [edi + ecx]
mov ebx, dword [0x416830]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
inc edi
mov edx, ecx
and ecx, 3
shr edx, 2
shl ecx, 4
mov dl, byte [edx + ebx]
mov byte [eax + esi], dl
mov edx, dword [esp + 0x20]
and edx, 0xff
inc eax
mov ebx, edx
and edx, 0xf
shr ebx, 4
or ebx, ecx
mov ecx, dword [0x416830]
shl edx, 2
mov cl, byte [ebx + ecx]
mov byte [eax + esi], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
inc eax
mov ebx, ecx
and ecx, 0x3f
shr ebx, 6
or ebx, edx
mov edx, dword [0x416830]
inc eax
mov dl, byte [ebx + edx]
mov byte [eax + esi - 1], dl
mov edx, dword [0x416830]
inc eax
cmp edi, ebp
mov cl, byte [ecx + edx]
mov byte [eax + esi - 1], cl
jl 0x40bbf9
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [edx], eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
mov edi, dword [0x416830]
and ecx, 0xff
mov edx, ecx
and ecx, 3
shr edx, 2
shl ecx, 4
mov dl, byte [edx + edi]
pop edi
mov byte [eax + esi], dl
mov edx, dword [0x416830]
inc eax
mov cl, byte [ecx + edx]
mov edx, dword [esp + 0x20]
mov byte [eax + esi], cl
inc eax
mov byte [eax + esi], 0x3d
inc eax
mov byte [eax + esi], 0x3d
inc eax
pop esi
pop ebp
mov dword [edx], eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
mov edi, dword [0x416830]
and ecx, 0xff
mov edx, ecx
and ecx, 3
shr edx, 2
shl ecx, 4
mov dl, byte [edx + edi]
mov byte [eax + esi], dl
mov edx, dword [esp + 0x20]
and edx, 0xff
inc eax
mov edi, edx
and edx, 0xf
shr edi, 4
or edi, ecx
mov ecx, dword [0x416830]
inc eax
mov cl, byte [edi + ecx]
pop edi
mov byte [eax + esi - 1], cl
mov ecx, dword [0x416830]
inc eax
mov dl, byte [ecx + edx*4]
mov ecx, dword [esp + 0x20]
mov byte [eax + esi - 1], dl
mov byte [eax + esi], 0x3d
inc eax
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
Function at 0x40bd60
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
xor ebp, ebp
test esi, esi
push edi
jle 0x40be4e
mov edi, dword [esp + 0x14]
movsx ecx, byte [eax + edi]
inc eax
mov cl, byte [ecx + 0x40f0cc]
cmp eax, esi
jge 0x40bd8e
cmp cl, 0xff
je 0x40bd78
jmp 0x40bd97
cmp cl, 0xff
je 0x40be4e
movsx edx, byte [eax + edi]
inc eax
mov dl, byte [edx + 0x40f0cc]
cmp eax, esi
jge 0x40bdad
cmp dl, 0xff
je 0x40bd97
jmp 0x40bdb6
cmp dl, 0xff
je 0x40be38
mov bl, dl
sar bl, 4
and bl, 3
shl cl, 2
or bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [ecx + ebp], bl
inc ebp
mov cl, byte [eax + edi]
inc eax
cmp cl, 0x3d
je 0x40be43
movsx ecx, cl
cmp eax, esi
mov cl, byte [ecx + 0x40f0cc]
jge 0x40bde8
cmp cl, 0xff
jne 0x40bded
jmp 0x40bdcb
cmp cl, 0xff
je 0x40be4e
mov bl, cl
sar bl, 2
and bl, 0xf
shl dl, 4
or bl, dl
inc ebp
mov dl, bl
mov ebx, dword [esp + 0x1c]
mov byte [ebx + ebp - 1], dl
mov dl, byte [eax + edi]
inc eax
cmp dl, 0x3d
je 0x40be38
movsx edx, dl
cmp eax, esi
mov dl, byte [edx + 0x40f0cc]
jge 0x40be22
cmp dl, 0xff
jne 0x40be27
jmp 0x40be05
cmp dl, 0xff
je 0x40be43
shl cl, 6
or cl, dl
mov byte [ebx + ebp], cl
inc ebp
cmp eax, esi
jl 0x40bd78
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x20]
pop edi
pop esi
mov dword [edx], ebp
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [ecx], ebp
pop ebp
pop ebx
ret
Function at 0x8d3290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x5c600d
lea edi, [esi - 0x1c500d]
push edi
or ebp, 0xffffffff
jmp 0x8d32b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8d32b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d32a8
mov eax, 1
add ebx, ebx
jne 0x8d32cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8d32c0
jne 0x8d32dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8d32c0
xor ecx, ecx
sub eax, 3
jb 0x8d32f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8d3362
mov ebp, eax
add ebx, ebx
jne 0x8d32fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x8d3308
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x8d332c
inc ecx
add ebx, ebx
jne 0x8d3318
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8d330d
jne 0x8d3329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8d330d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8d334c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8d333d
jmp 0x8d32ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8d334c
add edi, ecx
jmp 0x8d32ae
pop esi
mov edi, esi
mov ecx, 0x1519
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8d336a
cmp byte [edi], 0x11
jne 0x8d336a
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 0x8d336f
lea edi, [esi + 0x4cf000]
mov eax, dword [edi]
or eax, eax
je 0x8d33de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d6024]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d607c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8d339c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4d6084]
or eax, eax
je 0x8d33d8
mov dword [ebx], eax
add ebx, 4
jmp 0x8d33b9
call dword [esi + 0x4d6080]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8d340f
cmp al, 0xef
ja 0x8d3402
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8d33e4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x8d33f1
mov ebp, dword [esi + 0x4d6088]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x8d3443
sub esp, 0xffffff80
jmp 0x41b0de