joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422b67
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43ca98]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422baa
cmp word [esi], dx
jne 0x422baa
or byte [edi + eax + 0x28], 4
jmp 0x422baf
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x422ce8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x422cc8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x422bf1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x422c27
cmp eax, edx
jae 0x422c33
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x422bc9
jmp 0x422ce8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422cc4
cmp dword [ebp - 0x14], 0
je 0x422cc4
mov eax, dword [ebx*4 + 0x43ca98]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x422c9c
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x422ce2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43ca98]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x43ca98]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43ca98]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x422ce5
pop ebx
cmp word [ebp - 4], bx
jne 0x422cad
cmp esi, dword [ebp + 0xc]
jne 0x422cad
mov word [esi], bx
jmp 0x422ce5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00423581
add esp, 0x10
cmp word [ebp - 4], bx
je 0x422ce8
push 0xd
jmp 0x422ce1
mov ecx, dword [ebx*4 + 0x43ca98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422cdf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422ce8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424dd8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x424e75
push ebx
push esi
call fcn.00424da1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00423a26
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x424e22
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424e74
push edi
push eax
call fcn.0041eb36
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x424e42
call fcn.0041e8ff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424e73
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423a26
add esp, 0x20
test eax, eax
jne 0x424e61
push edi
call fcn.0041e8ff
jmp 0x424e69
push ebx
call fcn.0041e8ff
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42bef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42bf1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42bf1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x35014be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
sub esp, 0xc
add eax, edx
jne 0x35014d1
leave
ret
mov ecx, dword [eax + 0x18]
push esi
push edi
mov edi, dword [eax + 0x20]
add edi, edx
dec ecx
mov dword [ebp - 0xc], ecx
xor esi, esi
push ebx
inc esi
mov dword [ebp - 8], esi
mov esi, dword [edi + esi*4]
add esi, edx
movzx ebx, byte [esi]
push 0x47
pop ecx
sub ecx, ebx
jne 0x3501513
mov dword [ebp - 4], 0x3507de0
sub dword [ebp - 4], esi
cmp byte [esi], 0
je 0x3501513
mov ecx, dword [ebp - 4]
inc esi
movzx ecx, byte [ecx + esi]
movzx ebx, byte [esi]
sub ecx, ebx
je 0x35014ff
mov esi, dword [ebp - 8]
cmp esi, dword [ebp - 0xc]
ja 0x350152e
test ecx, ecx
jne 0x35014e2
mov ecx, dword [eax + 0x24]
lea ecx, [ecx + esi*2]
movzx ecx, word [ecx + edx]
cmp ecx, dword [eax + 0x14]
jbe 0x3501532
xor eax, eax
jmp 0x350153d
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x3503a6b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x350978a]
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.035029ca
and dword [ebp - 0x14], 0
cmp dword [0x350a8b6], 0
mov dword [ebp - 0x18], eax
jne 0x3503b1e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x3503bc6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x3503bc6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x350a8b6], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x350a8ba], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x350a8be], eax
call edi
push eax
call esi
mov dword [0x350a8c6], eax
test eax, eax
je 0x3503b1e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x350a8c2], eax
mov eax, dword [0x350a8c2]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x3503b77
cmp dword [0x350a8c6], ecx
je 0x3503b77
push eax
call esi
push dword [0x350a8c6]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x3503b77
test ebx, ebx
je 0x3503b77
call edi
test eax, eax
je 0x3503b6e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x3503b6e
test byte [ebp - 8], 1
jne 0x3503b77
or dword [ebp + 0x10], 0x200000
jmp 0x3503baa
mov eax, dword [0x350a8ba]
cmp eax, dword [ebp - 0x18]
je 0x3503baa
push eax
call esi
test eax, eax
je 0x3503baa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3503baa
mov eax, dword [0x350a8be]
cmp eax, dword [ebp - 0x18]
je 0x3503baa
push eax
call esi
test eax, eax
je 0x3503baa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x350a8b6]
call esi
test eax, eax
je 0x3503bc6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x3503bc8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.03503dd6
leave
ret

Function at 0x3503dd6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x350978a]
jne 0x3503de0
repz ret
jmp fcn.03505046
Function at 0x4029b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044a4
test esi, esi
jne 0x4029ea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404594
jmp 0x402a08
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402868
mov edi, eax
test esi, esi
je 0x402a08
cmp dword [ebx], 0
je 0x402a08
dec esi
jmp 0x4029f1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403624
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40369c
xor eax, eax
push ebp
push 0x403695
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40369c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404328
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x421044], 0
je 0x404389
cmp word [0x421218], 0xd7b2
jne 0x404351
cmp dword [0x421220], 0
jbe 0x404351
mov eax, 0x421214
call dword [0x421230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41d070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043b0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x41d030], 0
jne 0x4043a5
push 0
push 0x41d068
push 0x41d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405604
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405834
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405687
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405834
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405687
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405850
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405710
xor eax, eax
push ebp
push 0x405709
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040544c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4056ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405870
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4056ee
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405710
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40582a
cmp byte [ebp - 0xd], 0
jne 0x405757
cmp byte [ebp - 0x12], 0
je 0x40582a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405770
dec ebx
cmp byte [ebx], 0x2e
je 0x40577f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40576f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40582a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4057bc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40582a
cmp byte [ebp - 0xd], 0
je 0x40582a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40582a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417458
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x417510
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004173f0
test al, al
je 0x4174f2
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404594
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4174f2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404964
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404964
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040469c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4174ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417517
lea eax, [ebp - 0x2c]
call fcn.004044a4
lea eax, [ebp - 0xc]
call fcn.004044a4
ret

Function at 0x417520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4175d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004173f0
test al, al
je 0x4175ba
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404594
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4175ba
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404964
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404964
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040469c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x417573
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4175df
lea eax, [ebp - 0x2c]
call fcn.004044a4
lea eax, [ebp - 0xc]
call fcn.004044a4
ret
Function at 0x417790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404964
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4177e8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x420958]
mov dl, 1
mov eax, dword [0x416ee0]
call fcn.0040ad20
call fcn.00403f04
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00416fe8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4178a4
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x417942
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x41d3cc]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x41d3cc]
push edx
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x41d3cc]
push edx
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x41d3cc]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x4178c3
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x417958
dec edx
je 0x41798d
jmp 0x4179de
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x41d3cc]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x41d3cc]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x4179de
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x41d3cc]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x41d3cc]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x41d3cc]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x417a40
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x417a5f
add edx, 3
sar edx, 2
test edx, edx
jle 0x417b6c
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x417a95
je 0x417ad5
sub ecx, 0x2b
je 0x417acb
sub ecx, 4
je 0x417ad0
dec ecx
sub ecx, 0xa
jb 0x417abe
jmp 0x417ad8
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x417aa7
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x417ab1
jmp 0x417ad8
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x417ad8
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x417ad8
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x417ad8
mov byte [eax], 0x3e
jmp 0x417ad8
mov byte [eax], 0x3f
jmp 0x417ad8
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x417a77
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x417b29
cmp byte [esp + 7], 0xff
jne 0x417b29
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x417b61
cmp dl, 0xff
je 0x417b61
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x417a6e
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x418454
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x418474
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x418462
pop edi
pop esi
pop ebx
ret
Function at 0x404208
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x41f414]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [0x4201bc]
cmp eax, 0xffffffff
jne 0x40425d
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0040bff0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
sbb eax, eax
inc eax
mov dword [0x4201bc], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00409fdb
add ebp, 0x98
leave
ret
Function at 0x404b20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 1
push 0
push 0
push esi
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x1b
je 0x404b45
cmp eax, 0x1f
jne 0x404bb5
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.shell32.dll
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
test eax, eax
jne 0x404bad
push 0x38
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0x3c
call fcn.0040bff0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x44], 0x100
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], str.openas
mov dword [ebp - 0x38], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push 0
call eax
leave
ret
Function at 0x405273
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4186ca
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.00414790
mov eax, dword [0x41f414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x201c], edi
push 0x1ffe
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push edi
push eax
mov dword [ebp - 0x2028], ebx
call fcn.0040bff0
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2010]
push eax
mov esi, ebx
call fcn.00401757
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2030]
mov ecx, ebx
mov dword [ebp - 0x201c], 1
call fcn.00405975
mov ecx, dword [eax]
mov eax, dword [eax + 4]
or edi, 0xffffffff
lea esi, [ebp - 0x2018]
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2014], eax
call fcn.00405e06
mov eax, dword [ebp - 0x2018]
mov dword [ebp - 0x2024], eax
mov eax, dword [ebp - 0x2014]
lea esi, [ebp - 0x2024]
mov dword [ebp - 0x2020], eax
call fcn.00405dd2
cmp word [eax], 0x5c
je 0x40535c
mov eax, ebx
call fcn.0040599b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409fdb
leave
ret

Function at 0x405377
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x1c
mov eax, 0x418bd9
call fcn.0040ba6d
mov edi, ecx
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x20]
call fcn.00406086
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x28]
call fcn.00406086
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
mov eax, edi
call fcn.00405e58
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], esi
cmp ebx, 0xffffffff
jne 0x4053da
xor al, al
jmp 0x40542d
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0xc], eax
jae 0x4053f3
mov eax, dword [ebp + 0xc]
push eax
mov eax, edi
call fcn.00405aa5
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, edi
call fcn.00405b24
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push ebx
cmp eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
call fcn.0040bb0c
ret