joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402bd0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384ec
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x402c00
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x402c00
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384ec
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x402cd6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402c29
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402c35
movsx eax, bl
jmp 0x402c6d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x402c97
sub eax, 1
je 0x402c97
sub eax, 2
jne 0x402cd6
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384ec
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402cb5
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402cd6
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x402cd6
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384ec
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004384ec
mov esp, ebp
pop ebp
ret 4
Function at 0x402f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x402ffc
cmp byte [esi + 0x3d], 0
je 0x402ffc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x402fea
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x402fb1
sub eax, 1
je 0x402fb5
sub eax, 2
jne 0x402fea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384ec
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402fd3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402fea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384ec
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384ec
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004384ec
mov esp, ebp
pop ebp
ret
Function at 0x405de0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x405e2c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x405e0f
cmp edi, 2
jb 0x405e0f
cmp byte [esi], cl
jne 0x405e0f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43a930]
test edi, edi
jne 0x405df5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x405e5b
cmp cl, 0x23
jne 0x405e42
cmp byte [esi], cl
jne 0x405e42
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x43a930]
test cl, cl
jne 0x405e33
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x405f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x405f54
mov dword [ebx], 0
mov edx, 0x43a798
call fcn.00405e70
mov esi, eax
test esi, esi
je 0x406042
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x406038
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x406038
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x406038
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x406038
mov eax, dword [0x4598f8]
test eax, eax
je 0x405fcc
inc dword [eax + 0x370]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x406038
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40601d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4598f8]
add esp, 4
test eax, eax
je 0x40600a
dec dword [eax + 0x370]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40602f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407cf0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439b93
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x44300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4598f8]
test eax, eax
je 0x407d3a
inc dword [eax + 0x370]
push 0x3c68
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x11]
add esp, 4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x407d6f
push 0
mov ecx, eax
call fcn.004044e0
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x407d74
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, dword [0x4598f8]
mov esi, 0x43a6e5
test eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], str.Window
cmove eax, edi
or edx, 0xffffffff
mov dword [0x4598f8], eax
or edi, 0xffffffff
mov al, 0x57
nop
cmp al, 0x23
jne 0x407dae
cmp byte [esi], al
jne 0x407dae
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x43a930]
test al, al
jne 0x407da0
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0x415010
mov dword [ebp - 0x34], 0x415090
mov esi, dword [edi + 0x2e08]
mov ecx, dword [edi + 0x2e0c]
mov dword [ebp - 0x30], 0x415100
mov dword [ebp - 0x2c], 0x4151d0
mov dword [ebp - 0x28], 0x4152a0
cmp esi, ecx
jne 0x407e96
inc esi
test ecx, ecx
je 0x407e16
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x407e1b
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x407e96
mov eax, dword [0x4598f8]
test eax, eax
je 0x407e33
inc dword [eax + 0x370]
lea eax, [esi + esi*8]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, eax
add esp, 4
mov eax, dword [edi + 0x2e10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x407e8a
mov ecx, dword [edi + 0x2e08]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x4598f8]
add esp, 0xc
test eax, eax
je 0x407e7b
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [ebp - 0x1c]
add esp, 4
mov dword [edi + 0x2e10], edx
mov dword [edi + 0x2e0c], esi
mov eax, dword [edi + 0x2e08]
movups xmm0, xmmword [ebp - 0x44]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x2e10]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
mov eax, edi
inc dword [edi + 0x2e08]
mov byte [edi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40b5f0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40b62d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40b613
cmp byte [esi], bl
jne 0x40b613
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x43a930]
test bl, bl
jne 0x40b604
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040b580
Function at 0x414880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x4598f8]
push edi
cmp byte [esi + 0x2e2c], 0
je 0x41491f
cmp dword [esi + 0x2e34], 0
lea edi, [esi + 0x2e38]
je 0x414911
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x4148c9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00415d60
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.004063a0
mov edx, dword [edi]
mov ecx, 0x4598f4
push dword [esi + 0x2e34]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2e40]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.004063a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41d98a
mov eax, dword [0x4598f8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x41d97d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41d9bb
mov eax, dword [0x4598f8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x41d9ae
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41d9ec
mov eax, dword [0x4598f8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x41d9df
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x41da39
mov eax, dword [0x4598f8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x41da2c
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x41da6a
mov eax, dword [0x4598f8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x41da5d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x41da9b
mov eax, dword [0x4598f8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x41da8e
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0041fb90
Function at 0x42ffa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439c3d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x44300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.004384fd
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ecx], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x430320
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x430022
mov eax, esi
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.004384ec
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x433cb0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0x3e8
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00439480
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00439480
mov edi, eax
mov ebx, edx
mov eax, esi
xorps xmm0, xmm0
cdq
add edi, eax
movlpd qword [ebp - 0x18], xmm0
adc ebx, edx
js 0x433d4a
jg 0x433d1d
test edi, edi
je 0x433d4a
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00439480
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp edx, ebx
jl 0x433d23
jg 0x433d4a
cmp eax, edi
jb 0x433d23
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004384ec
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401fe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40208a
call fcn.00401f30
mov esi, eax
cmp esi, ebx
je 0x40208a
push 0x44
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.004057f0
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 4]
push edx
push 0x13
push esi
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], str.winsta0default
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push ebx
push edi
je 0x402055
mov edx, dword [ebp - 4]
push edx
jmp 0x402056
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40206e
push eax
call ebx
push esi
call ebx
test edi, edi
je 0x402081
mov edx, dword [ebp - 0x18]
push edx
call ebx
mov eax, dword [ebp - 0x14]
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402de0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x410280]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402e61
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x402e60
push edi
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x204]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x40e39c
push 0x40e39c
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x402e5c
push eax
call edi
push esi
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403bfe
mov esp, ebp
pop ebp
ret
Function at 0x402e70
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x410280]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x402f0b
push esi
push 0xf01ff
push 0x40e39c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402f03
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402ef9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x402ef8
mov edi, edi
cmp dword [ebp - 0x1c], 3
jne 0x402ef8
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x402ee0
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
jmp 0x402f04
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00403bfe
mov esp, ebp
pop ebp
ret
Function at 0x40a1ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410280]
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.0040687a
and dword [ebp - 0x14], 0
cmp dword [0x411cfc], 0
mov dword [ebp - 0x18], eax
jne 0x40a25e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a306
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a306
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411cfc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411d00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411d04], eax
call edi
push eax
call esi
mov dword [0x411d0c], eax
test eax, eax
je 0x40a25e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411d08], eax
mov eax, dword [0x411d08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a2b7
cmp dword [0x411d0c], ecx
je 0x40a2b7
push eax
call esi
push dword [0x411d0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a2b7
test ebx, ebx
je 0x40a2b7
call edi
test eax, eax
je 0x40a2ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a2ae
test byte [ebp - 8], 1
jne 0x40a2b7
or dword [ebp + 0x10], 0x200000
jmp 0x40a2ea
mov eax, dword [0x411d00]
cmp eax, dword [ebp - 0x18]
je 0x40a2ea
push eax
call esi
test eax, eax
je 0x40a2ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a2ea
mov eax, dword [0x411d04]
cmp eax, dword [ebp - 0x18]
je 0x40a2ea
push eax
call esi
test eax, eax
je 0x40a2ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411cfc]
call esi
test eax, eax
je 0x40a306
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a308
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403bfe
leave
ret

Function at 0x41e92b
Capabilities:
Encode data using base64

Disassembly:
ror eax, 1
lea edx, [ecx + ecx*8 - 0x6a5640c7]
btc dx, cx
xor eax, 0x30b55b2a
mov dword [esp + ecx*2 - 0x397e], 0x7d1dc621
pop edx
lea eax, [edx + eax + 0x5f91b283]
ror edx, cl
push edx
xor eax, 0x9814f795
bswap ecx
call fcn.004b7d76
pop eax
popfd
not dx
lea edx, [edx*2 + 0x1413a005]
not dl
pop edx
jmp 0x42bdbb
pop ecx
call fcn.0048154d
Function at 0x420f27
Capabilities:
Encode data using base64

Disassembly:
or ecx, 0x8e864d0c
not ecx
ror eax, 2
xor eax, 0x38365a95
rol eax, 2
neg eax
mov dword [esp + ecx - 0x30109073], ecx
push ecx
inc eax
neg eax
xor cl, dh
xor ebx, eax
add edi, eax
ror dx, 0xac
xor ecx, dword [esp + ecx - 0x30108ffc]
not dword [esp + ecx*2 - 0xe2]
mov edx, ebp
mov dword [esp + ecx - 0x6b], 0xd88a89a3
movzx eax, cx
lea ebp, [ebp + ecx*4 - 0x1d0]
add word [esp + ecx*2 - 0xe1], 0x8095
mov dword [ebp + ecx - 0x73], edx
pop eax
pop edx
pop eax
jo fcn.00418574

Function at 0x4226df
Capabilities:
Encode data using base64

Disassembly:
mov dword [esp], ecx
dec edx
xor cx, 0x11a9
je 0x4185e3
and dword [esp + 1], eax
rol edx, 3
lea ecx, [ecx*2 + 0x5e14e637]
sal ecx, 0x23
bt ax, cx
xor ebx, edx
and word [esp + 4], ax
adc ebp, edx
pop eax
pop ecx
jmp ebp

Function at 0x4286f2
Capabilities:
Encode data using base64

Disassembly:
mov dword [esp + eax*2 - 0x7a1200], 0xea3a1d8f
add esi, edx
call fcn.004175b1
mov ecx, 0x288ddc8c
movzx edx, cl
btc cx, cx
mov ax, word [edi + ecx*2 - 0x511b9918]
btr edx, 0x18
jae 0x48dcad
mov ecx, dword [esi]
mov edx, 0x19a3819d
jmp 0x4c5d2b
lea esi, [esi + edx*4 - 0x668e0670]
bswap edx
sub edx, edx
movsx eax, dx
xor ecx, ebx

Function at 0x42980a
Capabilities:
Encode data using base64
Parse pe header

Disassembly:
ror ecx, 2
bswap ecx
pop edx
sub ecx, 0x1e3e332d
shr word [esp + 1], 0x21
mov eax, 0x9fa5f739
pop eax
xor ecx, 0xa31f69af
movsx edx, ax
cwde
sub dx, 0x8499
not ecx
xor ebx, ecx
cwde
push edx
add edi, ecx
lea edx, [eax*2 - 0x6ad598c3]
shl dl, 0x67
xchg ah, al
mov ecx, ebp
sub ax, 0x3f96
lea ebp, [ebp + eax - 0xe57f]
jl 0x468a79
mov word [ebp + eax - 0xe57d], cx
pop ecx
jp fcn.00418574
rol cl, 0xc4
adc eax, 0x7b4911e
call fcn.004d6a38

Function at 0x4380e2
Capabilities:
Encode data using base64

Disassembly:
xor ebx, edx
xchg ecx, eax
add esi, edx
mov ax, word [ecx + edi - 0x52b10008]
add dword [esp + ecx - 0x52b10004], ecx
mov dword [esp + ecx - 0x52b10008], ecx
lea edi, [edi + ecx - 0x52b10006]
lea ecx, [ecx*4 - 0x3d4a4dd2]
lea ebp, [ebp + ecx*8 - 0x6bcd9271]
movzx edx, cl
movzx ecx, byte [ebp + ecx*2 - 0x1af3649c]
call fcn.004d783a