joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40284c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x430034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4028a7
mov edi, eax
push str.CreateWebViewEnvironmentWithOptionsInternal
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402919
mov ecx, eax
mov esi, dword [ebp + 0x1c]
mov bl, byte [ebp + 0xc]
call dword [0x4222f0]
movzx eax, bl
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call ecx
mov esi, eax
jmp 0x402984
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea ebx, [ebp - 0x14]
mov dword [ebx], esi
xor eax, eax
dec eax
lea edi, [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.00401eac
push edi
push 1
push 4
push ebx
call fcn.004027c0
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.WebView2:_CoreWebView2Environment_failed_when_trying_to_LoadLibrary:_hr0x
call ebx
mov ecx, edi
call fcn.00402140
push eax
call ebx
push str._path
call ebx
push dword [ebp + 8]
call ebx
push 0x422ce2
call ebx
mov ecx, edi
call fcn.00401ebe
jmp 0x40299b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], esi
xor eax, eax
dec eax
lea ebx, [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.00401eac
push ebx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.004027c0
add esp, 0x10
push str.WebView2:_CoreWebView2Environment_failed_when_trying_to_call_into_EmbeddedBrowserWebView.dll._hr0x
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call fcn.00402140
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x422ce2
call eax
mov ecx, ebx
call fcn.00401ebe
push str.DllCanUnloadNow
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40299b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e688
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x430034]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov ebx, edx
lea esi, [esp + 0x14]
xorps xmm0, xmm0
mov eax, esi
push edi
movlpd qword [esp + 0x10], xmm0
mov edi, 0x104
mov dword [ebx], 0
sub ecx, eax
nop dword [eax + eax]
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x4047be
movzx eax, word [ecx + esi]
test ax, ax
je 0x4047be
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x4047a0
test edi, edi
lea eax, [esi - 2]
push 0x429028
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [esp + 0x1c]
call fcn.00402be0
lea eax, [esp + 0x18]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x404837
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404813
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00404680
mov edi, eax
add esp, 4
test edi, edi
js 0x40486d
mov edi, dword [esp + 0x10]
lea eax, [edi*4]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040e688
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ecx, esi
call fcn.004048e0
mov edi, eax
test edi, edi
jns 0x4048a8
push edi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.00404630
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4048cc
push edi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x62
call fcn.00404630
add esp, 8
mov edx, 0x6b
push edi
push ecx
mov ecx, dword [ebp + 4]
call fcn.00404630
mov ecx, dword [esp + 0x22c]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e688
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cdq
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x404817
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x93e
call fcn.004046d0
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x93e
call fcn.004046d0
int3
Function at 0x405d10
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x430034]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
push ebx
sete al
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x2c], ebx
lea eax, [eax*4 + 1]
mov dword [ebp - 0x34], eax
nop dword [eax]
xor edi, edi
mov esi, 0x4000
push esi
test edi, edi
jne 0x405d56
call fcn.00414236
add esp, 4
jmp 0x405d5f
push edi
call fcn.00411ab3
add esp, 8
push 0
push esi
mov edi, eax
push edi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x405d7c
add esi, 0x4000
jmp 0x405d47
test edi, edi
je 0x405ed6
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x405dde
mov eax, esi
cmp word [eax], 0
mov ebx, eax
je 0x405d9e
add ebx, 2
cmp word [ebx], 0
jne 0x405d95
sub ebx, eax
sar ebx, 1
mov ecx, 0xfe
nop word [eax + eax]
mov ax, word [edi + 0x38]
sub ax, 5
cmp ax, cx
ja 0x405ec5
cmp dword [edi + 0x44], 0
je 0x405ec5
push dword [edi + 0x3c]
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, eax
test esi, esi
je 0x405ded
mov edx, esi
jmp 0x405df7
mov eax, dword [ebx*4 + 0x42c400]
test eax, eax
jne 0x405d8d
xor ebx, ebx
jmp 0x405da2
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax*4 + 0x42c400]
test ecx, ecx
je 0x405ec0
test edx, edx
je 0x405ec0
cmp word [ecx], 0
mov eax, ecx
je 0x405e19
nop
add eax, 2
cmp word [eax], 0
jne 0x405e10
sub eax, ecx
sar eax, 1
cmp ebx, eax
jg 0x405ec0
test ebx, ebx
jle 0x405e52
lea eax, [ebx - 1]
test eax, eax
jle 0x405e48
movzx esi, word [ecx]
test si, si
je 0x405e48
cmp si, word [edx]
jne 0x405e48
dec eax
add ecx, 2
add edx, 2
test eax, eax
jg 0x405e30
movzx ecx, word [ecx]
movzx eax, word [edx]
sub ecx, eax
jne 0x405ec0
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], 0
push eax
push 1
lea eax, [ebp - 8]
mov dword [ebp - 0x28], 0x18
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
xor esi, esi
test eax, eax
cmovns esi, dword [ebp - 8]
test esi, esi
je 0x405eb9
push 0
push esi
call dword [sym.imp.ntdll.dll_ZwTerminateProcess]
push esi
call dword [sym.imp.ntdll.dll_ZwClose]
mov ecx, 0xfe
add edi, dword [edi]
mov esi, dword [ebp - 0x30]
cmp dword [edi], 0
jne 0x405db0
mov ebx, dword [ebp - 0x2c]
inc ebx
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [ebp - 0x34]
jl 0x405d40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e688
mov esp, ebp
pop ebp
ret
Function at 0x405fc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x430034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x30
lea eax, [ebp - 0x34]
mov edi, ecx
push 0
push eax
call fcn.0040ffd0
imul eax, edi, 0x208
add esp, 0xc
push 0x104
push 0
lea ebx, [eax + 0x432418]
push ebx
call fcn.0040ffd0
add esp, 0xc
push dword [0x45444c]
push dword [edi*4 + 0x42c3dc]
push str._s__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0x83
mov dword [ebp - 0x2c], 0x405f00
mov dword [ebp - 0x28], 0
push 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push eax
mov dword [ebp - 0x20], eax
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ebx
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x406183
push 0
push dword [ebp - 0x20]
push 0
push 0
push 1
push 1
push closesocket
push closesocket
push 0xcf0000
push 0
push ebx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi*4 + 0x453694], eax
test eax, eax
je 0x406183
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 0xfffffffffffffff0
push eax
call esi
push 0x80
push 0xffffffffffffffec
push dword [edi*4 + 0x453694]
call esi
push 5
push dword [edi*4 + 0x453694]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi*4 + 0x453694]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x422dbc
push 0x10
call fcn.0040e893
mov esi, eax
add esp, 8
test esi, esi
je 0x406170
mov dword [esi + 8], 1
mov dword [esi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
mov ecx, dword [0x45456c]
test ecx, ecx
je 0x40613e
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push esi
push 0
push 0x454030
push 0x4536e0
mov dword [esi + 0xc], edi
mov dword [esi], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.virtual_0
call fcn.00401320
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e688
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x454030
push 0x4536e0
call fcn.00401320
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e688
mov esp, ebp
pop ebp
ret
Function at 0x408cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x430034]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0x2710
push 0x454018
movups xmmword [0x433660], xmm0
mov dword [ebp - 8], 0xffffd8f0
call dword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
push 0x407e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.ntdll.dll_ZwWaitForSingleObject]
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e688
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x430034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
sub esp, 8
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
xor bl, bl
mov byte [ebp - 0x39], bl
push eax
call fcn.0040e570
mov edi, dword [ebp - 0x18]
add esp, 0xc
test edi, edi
je 0x409c9c
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push 0x20119
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ntdll.dll_ZwOpenKey]
push edi
mov esi, eax
call fcn.0041421b
add esp, 4
test esi, esi
js 0x409c9c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x409c9c
xor ebx, ebx
xor edi, edi
inc edi
cmp byte [edi + str.MachineGuid], bl
jne 0x409b62
lea esi, [edi + edi]
mov dword [ebp - 0x20], ebx
lea eax, [esi + 2]
push eax
call fcn.00414236
add esp, 4
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x20]
push edi
push str.MachineGuid
push ecx
push esi
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
push ecx
mov word [ecx + eax*2], dx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, dword [ebp - 0x44]
xor esi, esi
mov dword [ebp - 0x18], 4
nop word [eax + eax]
test esi, esi
je 0x409bcd
push esi
call fcn.0041421b
add esp, 4
push dword [ebp - 0x18]
call fcn.00414236
mov esi, eax
add esp, 4
test esi, esi
je 0x409c05
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push esi
push 2
push eax
push edi
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov ebx, eax
cmp ebx, 0x80000005
je 0x409bc0
cmp ebx, 0xc0000023
je 0x409bc0
test ebx, ebx
js 0x409c75
mov eax, dword [esi + 4]
dec eax
cmp eax, 6
ja case.0x409c19.5
movzx eax, byte [eax + 0x409cc0]
jmp dword [eax*4 + 0x409cb4]
mov eax, dword [esi + 0xc]
mov bl, 1
mov ecx, dword [ebp - 0x48]
mov dword [0x45444c], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
mov dword [ecx], eax
jmp 0x409c78
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call fcn.00414236
mov ecx, eax
add esp, 4
mov dword [0x45444c], ecx
test ecx, ecx
je case.0x409c19.5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
lea eax, [esi + 0xc]
push eax
push ecx
call fcn.00410130
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov bl, 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
mov dword [ecx], eax
jmp 0x409c78
mov bl, byte [ebp - 0x39]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x409c88
push eax
call fcn.0041421b
add esp, 4
test esi, esi
je 0x409c95
push esi
call fcn.0041421b
add esp, 4
push edi
call dword [sym.imp.ntdll.dll_ZwClose]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e688
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a460
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
push 9
mov dword [ebp - 4], esi
call fcn.00414236
mov ebx, eax
add esp, 4
mov dword [esi], ebx
test ebx, ebx
je 0x40a4f2
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
movq qword [ebx], xmm0
xor edi, edi
mov byte [ebx + 8], 0
mov dword [esi], 0
nop dword [eax]
push 0
push 1
lea eax, [edi + ebx]
push eax
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40a4b7
inc dword [esi]
mov eax, dword [ebp - 4]
mov edx, 0x42c620
mov edi, dword [esi]
push 0
push ecx
mov ebx, dword [eax]
mov ecx, ebx
call fcn.004099e0
add esp, 8
cmp eax, 0xffffffff
je 0x40a4a0
cmp edi, 9
jae 0x40a4e8
push edi
push ebx
call fcn.00411ab3
mov edi, dword [esi]
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 4]
mov byte [ebx + edi], 0
pop edi
mov dword [eax], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40af70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ebx
lea esi, [edi + 1]
push esi
call fcn.00414236
add esp, 4
test eax, eax
je 0x40b030
push esi
call fcn.00414236
mov esi, eax
mov dword [ebp - 4], eax
add esp, 4
test esi, esi
je 0x40afbd
push edi
push dword [ebp - 8]
push esi
call fcn.00410130
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x40afc2
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x40afd9
xor ecx, ecx
test esi, esi
je 0x40afdb
cmp byte [esi], cl
je 0x40afdb
inc ecx
cmp byte [ecx + esi], 0
jne 0x40afd0
jmp 0x40afdb
mov ecx, edi
xor edi, edi
test ebx, ebx
je 0x40afed
cmp byte [ebx], 0
je 0x40afed
inc edi
cmp byte [edi + ebx], 0
jne 0x40afe6
xor ebx, ebx
test ecx, ecx
jle 0x40b009
mov eax, ebx
mov esi, dword [ebp - 0xc]
cdq
idiv edi
mov al, byte [edx + esi]
mov esi, dword [ebp - 4]
xor byte [ebx + esi], al
inc ebx
cmp ebx, ecx
jl 0x40aff3
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, esi
push dword [ebp + 0x10]
xor cl, cl
push eax
mov byte [esi + eax], 0
call fcn.0040b370
add esp, 0xc
test esi, esi
je 0x40b030
push esi
call fcn.0041421b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b370
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, 0xaaaaaaab
push esi
mov dword [ebp - 0x10], edx
lea esi, [ebx + 2]
mov byte [ebp - 5], cl
mov ecx, dword [ebp + 0xc]
mul esi
mov dword [ebp - 0x14], ecx
shr edx, 1
shl edx, 2
mov dword [ecx], edx
lea eax, [edx + 4]
push eax
call fcn.00414236
mov esi, dword [ebp - 0xc]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x40b4fd
cmp byte [ebp - 5], 0
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
push edi
push 0x41
jne 0x40b3ca
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp - 4], eax
call fcn.00414236
mov edi, eax
add esp, 4
test edi, edi
je 0x40b400
mov eax, dword [ebp - 4]
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [edi + 0x30], xmm0
mov byte [edi + 0x40], 0
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40b4b9
cmp eax, ebx
jae 0x40b43a
mov ecx, dword [ebp - 0x10]
movzx edx, byte [eax + ecx]
inc eax
mov esi, edx
cmp eax, ebx
jae 0x40b43c
movzx ecx, byte [eax + ecx]
inc eax
cmp eax, ebx
jae 0x40b43e
mov esi, dword [ebp - 0x10]
movzx esi, byte [eax + esi]
inc eax
mov dword [ebp - 0x18], esi
mov esi, edx
mov edx, dword [ebp - 0x18]
jmp 0x40b440
xor esi, esi
xor ecx, ecx
xor edx, edx
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
shl esi, 8
add esi, ecx
shl esi, 8
add esi, edx
mov edx, dword [ebp - 0xc]
mov ecx, esi
shr ecx, 0x12
mov edx, dword [edx]
movzx ecx, byte [ecx + edi]
mov byte [ebx + edx], cl
mov ecx, esi
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
shr ecx, 0xc
mov edx, dword [edx]
and ecx, 0x3f
movzx ecx, byte [ecx + edi]
mov byte [ebx + edx], cl
mov ecx, esi
mov edx, dword [ebp - 0xc]
and esi, 0x3f
mov ebx, dword [ebp - 4]
inc dword [ebp - 4]
shr ecx, 6
mov edx, dword [edx]
and ecx, 0x3f
movzx ecx, byte [ecx + edi]
mov byte [ebx + edx], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
mov edx, dword [ecx]
movzx ecx, byte [esi + edi]
mov esi, dword [ebp - 4]
mov byte [esi + edx], cl
inc esi
mov dword [ebp - 4], esi
cmp eax, ebx
jb 0x40b411
mov esi, dword [ebp - 0xc]
test edi, edi
je 0x40b4c6
push edi
call fcn.0041421b
add esp, 4
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea eax, [edx + edx*2]
xor edx, edx
sub ebx, eax
mov edi, dword [ebx*4 + 0x42c45c]
mov ebx, dword [ebp - 0x14]
test edi, edi
jle 0x40b4f4
mov ecx, dword [ebx]
mov eax, dword [esi]
sub ecx, edx
inc edx
mov byte [ecx + eax - 1], 0x3d
cmp edx, edi
jl 0x40b4e4
mov ecx, dword [ebx]
mov eax, dword [esi]
pop edi
mov byte [ecx + eax], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x430034]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x14], edx
test edi, edi
je 0x40bb8d
lea eax, [edi + 1]
push eax
call fcn.00414236
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x40bb8d
xor esi, esi
push 0
push 0
mov eax, edi
xorps xmm0, xmm0
sub eax, esi
movq qword [ebp - 0x10], xmm0
push eax
mov eax, dword [ecx]
add eax, esi
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x40bb6f
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, 0xc0000011
je 0x40bb84
test eax, eax
js 0x40bb84
add esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp esi, edi
jb 0x40bb36
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov byte [edi + eax], 0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e688
mov esp, ebp
pop ebp
ret
Function at 0x401310
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x170
mov eax, dword [0x8a0c44]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x180]
push esi
mov esi, dword [esp + 0x180]
push edi
push 0
call fcn.0063e87c
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 0x64
mov ecx, 0x18
lea edi, [esp + 0x20]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00437b80
mov edi, 1
lea edx, [esp + 0x20]
add esp, 0xc
xor esi, esi
or ecx, 0xffffffff
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], eax
sub edi, edx
mov eax, esi
and eax, 3
mov dl, byte [esp + eax + 0x10]
lea eax, [esp + esi + 0x14]
xor byte [eax], dl
xor byte [eax + 4], dl
lea ebx, [edi + eax]
and ebx, 3
movzx ebx, byte [esp + ebx + 0x10]
xor byte [eax + 1], bl
lea ebx, [ecx - 1]
and ebx, 3
movzx ebx, byte [esp + ebx + 0x10]
xor byte [eax + 2], bl
mov ebx, ecx
and ebx, 3
movzx ebx, byte [esp + ebx + 0x10]
xor byte [eax + 3], bl
add ecx, 5
add esi, 5
cmp ecx, 0x63
jl 0x401373
push 0
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
push 0x40
push 0x68
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x90]
push 0x100
push edx
call fcn.00437a40
mov bl, al
add esp, 0x1c
test bl, bl
je 0x4013f0
lea eax, [esp + 0x7c]
push eax
mov ecx, ebp
call fcn.004325d0
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.0063ecb3
add esp, 0x170
ret
Function at 0x41ee80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x662498
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x8a0c44]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x5c]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
test ebx, ebx
jne 0x41eedb
mov ebx, 0x6fe608
mov eax, dword [esi + 0x54]
test eax, eax
je 0x41f03c
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx + 0x2c]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, 0xb
ja case.default.0x41ef11
movzx ecx, byte [eax + 0x41f064]
jmp dword [ecx*4 + 0x41f05c]
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x1c]
mov edx, dword [esi]
mov edi, dword [eax + 0x48]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi + 0x48]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x54]
push edx
mov edx, dword [eax]
mov eax, dword [edi + 0x10]
push ecx
push edx
call eax
add esp, 0x10
push ebx
lea ecx, [esp + 0x18]
call fcn.00432cd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0
call fcn.004317e0
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063f278
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.004317e0
lea eax, [eax + eax + 2]
push eax
push 0
push edi
call fcn.0063f050
add esp, 0xc
push 0xfde9
lea ecx, [esp + 0x18]
call fcn.004317e0
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00431ac0
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x5c], 0
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x34]
mov edx, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
call edx
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x1c]
mov ebx, dword [ecx + 0x34]
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004317e0
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [ebx + 0x18]
push edi
push 1
push edx
call eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi + 0x30]
mov dword [esp + 0x3c], ecx
mov eax, dword [edx + 0x1c]
mov edx, dword [esi + 0x48]
mov eax, dword [eax + 0x48]
lea ecx, [esp + 0x38]
push ecx
push edx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax + 0x14]
push ecx
call edx
push edi
call fcn.0063f18d
add esp, 0x20
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0xffffffff
call fcn.00431720
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x48
ret 4
mov ecx, esi
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push 3
call edx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x48
ret 4