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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4758b0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418763
cmp byte [ebx], 0xa
jne 0x418763
or byte [eax + edi + 0x28], 4
jmp 0x418768
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418866
mov al, byte [edx]
cmp al, 0x1a
je 0x418848
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418797
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4187bc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4187c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x418779
jmp 0x418866
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418843
cmp dword [ebp - 0xc], 0
je 0x418843
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4758b0]
test byte [eax + edi + 0x28], 0x48
je 0x41881d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418808
mov byte [esi], dl
jmp 0x418819
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4758b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418866
cmp byte [ebp - 1], 0xa
jne 0x41882c
cmp esi, ebx
jne 0x41882c
mov byte [esi], 0xa
jmp 0x418865
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004192a6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418866
mov byte [esi], 0xd
jmp 0x418865
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4758b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418862
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418866
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41886f
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 + 0x4758b0]
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 0x4188b2
cmp word [esi], dx
jne 0x4188b2
or byte [edi + eax + 0x28], 4
jmp 0x4188b7
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 0x418a0a
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 0x4189ea
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4188f9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41892f
cmp eax, edx
jae 0x41893b
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 0x4188d1
jmp 0x418a0a
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 0x4189e6
cmp dword [ebp - 0x14], 0
je 0x4189e6
mov eax, dword [ebx*4 + 0x4758b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4189be
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418987
mov word [esi], cx
jmp 0x4189ba
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4758b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4758b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4758b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418a0a
pop ebx
cmp word [ebp - 4], bx
jne 0x4189cf
cmp esi, dword [ebp + 0xc]
jne 0x4189cf
mov word [esi], bx
jmp 0x418a07
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004192a6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418a0a
push 0xd
jmp 0x418a03
mov ecx, dword [ebx*4 + 0x4758b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418a01
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418a0a
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 0x41b4ea
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 0x41b587
push ebx
push esi
call fcn.0041b4b3
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.0041a138
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b534
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b586
push edi
push eax
call fcn.004150b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b554
call fcn.00413ec9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b585
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a138
add esp, 0x20
test eax, eax
jne 0x41b573
push edi
call fcn.00413ec9
jmp 0x41b57b
push ebx
call fcn.00413ec9
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 0x422760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42278d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42278d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x430040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov al, byte [esi + 0x4742e0]
xor al, 0x73
sub al, 0x6c
mov byte [esi + 0x4742e0], al
call fcn.00402f42
push eax
call fcn.00403105
mov al, byte [esi + 0x4742e0]
xor al, 0x74
add al, 0x59
mov byte [esi + 0x4742e0], al
call fcn.00401ba3
push eax
call fcn.00403105
mov al, byte [esi + 0x4742e0]
sub al, 0xb
mov dword [esp], str.Taste
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x4742e0], al
call fcn.004010d6
lea ecx, [ebp - 0x1c]
mov dword [esp], 0x42cce0
call fcn.00401d09
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.0040e16d
xor byte [esi + 0x4742e0], al
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040261a
inc esi
cmp esi, 0x4ac
jb 0x424013
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406520
leave
ret 8
Function at 0x4240b6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x430040]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x2c
mov dword [esp + 0x30], ebx
call fcn.00406533
pop ecx
mov ecx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x28], eax
xor edx, edx
mov byte [esp + ecx + 0x38], cl
push 0x19
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x474790]
mov byte [esp + ecx + 0x138], al
inc ecx
cmp ecx, 0x100
jl 0x4240f5
mov esi, ebx
mov edi, ebx
mov dl, byte [esp + esi + 0x38]
movzx eax, byte [esp + esi + 0x138]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x42413f
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x38]
mov byte [esp + esi + 0x38], al
inc esi
mov byte [esp + edi + 0x38], dl
cmp esi, 0x100
jl 0x42411c
movsd xmm0, qword [0x42cd48]
mov eax, ebx
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
movsd qword [esp + 0x30], xmm0
inc eax
and eax, 0x800000ff
jns 0x424185
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [esp + eax + 0x38]
movzx edi, bl
add ecx, edi
mov dword [esp + 0x14], eax
and ecx, 0x800000ff
jns 0x4241a2
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ecx
push eax
push 0
lea ecx, [esp + 0x24]
call fcn.00403d30
mov esi, dword [esp + 0x1c]
movsd xmm1, qword [esi]
call fcn.00401a7f
push eax
call fcn.00403105
mov edx, dword [esp + 0x1c]
pop ecx
mov ecx, dword [esp + 0x14]
mov al, byte [esp + edx + 0x38]
mov byte [esp + ecx + 0x38], al
mov byte [esp + edx + 0x38], bl
movzx eax, byte [esp + ecx + 0x38]
mov ebx, dword [esp + 0x10]
add eax, edi
movzx eax, al
mov al, byte [esp + eax + 0x38]
xor byte [ebx + 0x430ae0], al
mov eax, dword [esp + 0x24]
sub eax, esi
and eax, 0xfffffff8
push eax
push esi
call fcn.00403798
xor eax, eax
inc ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
cmp ebx, 0x43800
jl 0x424176
lea ecx, [esp + 0x28]
call fcn.00401a64
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406520
mov esp, ebp
pop ebp
ret
Function at 0x424363
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.00406533
lea ecx, [ebp - 8]
xor ebx, ebx
push ecx
push ebx
push eax
push 0x403efb
push ebx
push ebx
mov dword [eax], 0x42424d
call fcn.0040adaa
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
je 0x424445
cmp dword [ebp - 8], ebx
je 0x42444c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [ebp - 8], eax
jne 0x4243b9
push 5
jmp 0x42444e
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00405df0
add esp, 0xc
test eax, eax
je 0x4243d0
push 2
jmp 0x42444e
push esi
push edi
push ebx
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
mov ecx, ebx
mov dword [ebp - 0x18], ebx
mov eax, ebx
mov dword [ebp - 0x14], ecx
push 0x64
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
pop edi
push 2
pop esi
cmp ecx, eax
je 0x424406
mov dword [ecx], ebx
add ecx, 4
mov dword [ebp - 0x14], ecx
jmp 0x424419
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403c11
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub esi, 1
jne 0x4243f8
sub edi, 1
jne 0x4243f5
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x42443b
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00403798
pop ecx
pop ecx
cmp dword [ebp - 8], 0
jne 0x424453
xor eax, eax
leave
ret
mov dword [ebp - 8], ebx
push 6
jmp 0x42444e
push 1
call fcn.00404166
call fcn.0040d772
int3
Function at 0x100046a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
push edi
push 1
push eax
call fcn.10004e00
push 0
mov ebx, eax
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10004e00
xor edx, edx
mov dl, byte [ebx + 0x1f]
mov esi, edx
test esi, esi
je 0x10004853
cmp esi, 0x1f
jge 0x10004853
cmp byte [esi + ebx], 0xe9
jne 0x10004853
mov ecx, dword [esi + ebx + 1]
lea edi, [ecx + ebx + 5]
mov cl, byte [ecx + ebx + 5]
cmp cl, 0xe9
je 0x10004706
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov edx, dword [edi + 1]
lea ecx, [edx + edi + 5]
cmp ecx, eax
je 0x10004724
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x1000476a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1000476a
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x1000476a
lea edx, [esp + 0x18]
push edx
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
mov eax, ebx
test esi, esi
mov edx, edi
jle 0x10004788
push 0
push eax
push edx
call fcn.10004e40
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
lea edx, [ecx + edi]
jl 0x10004774
cmp ecx, esi
je 0x100047fa
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000485b
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1000485b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000485b
push eax
mov eax, dword [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x1000485b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10004845
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10004845
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004845
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x10004845
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x401078
push str.Windows_original_main_args:_n
call fcn.004010f9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebx
pop ecx
call edi
cmp dword [eax], ebx
jle 0x401078
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010f9
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401058
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea ecx, [edi*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebx
test edi, edi
jle 0x4010b2
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4010a7
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebx
test ecx, ecx
jne 0x4010c1
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010cc
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x4021bc
push 0x4021c0
push 0x40300c
push 2
push 0x403004
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x4015d0
Capabilities:
Reference http user-agent string

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push ebp
push 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov eax, dword [edx]
push eax
push ecx
push ebx
call sub.SSLEAY32.dll_Ordinal_108
add esp, 0xc
test eax, eax
jg 0x40160f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x18]
push eax
push ebx
push esi
call fcn.00401080
lea ecx, [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0xc
push ecx
push edx
push eax
push esi
call fcn.00401370
lea ecx, [esp + 0x24]
add esp, 0x10
push ecx
push 0
push 0x407238
push eax
push esi
call fcn.00401000
lea ecx, [esp + 0x28]
mov ebp, dword [esp + 0x4c]
add esp, 0x14
mov edx, dword [ebp]
push ecx
push 0
push edx
push eax
push esi
call fcn.00401000
add esp, 0x14
mov ebx, eax
mov byte [edi], 0
lea eax, [esp + 0x10]
push eax
push 0
push str.GET__messages_inbox_authid
push edi
push esi
call fcn.00401000
lea ecx, [esp + 0x24]
mov edx, dword [esp + 0x50]
add esp, 0x14
mov edi, dword [edx]
push ecx
push 0
push edi
push eax
push esi
call fcn.00401000
lea ecx, [esp + 0x24]
add esp, 0x14
push ecx
push 0
push str.back1dwhsplits10273.b1ss12743sfromloginx_login_auth1back1_HTTP_1.1_r_nHost:_e.mail.ru_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9_image_avif_image_webp_image_apng___q0.8_application_signed_exchange_vb3_q0.7_r_nAccept_Language:_ru_RU_ru_q0.9_en_US_q0.8_en_q0.7_r_nPriority:_u0__i_r_nReferer:_https:__account.mail.ru_r_nCache_Control:_max_age0_r_nSec_Ch_Ua_Full_Version:__117.0.5938.11__r_nSec_Ch_Ua_Full_Version_List:__Chromium__v_117.0.5938.11____Not_ABrand__v_8.0.0.0__r_nSec_Ch_Ua:__Chromium__v_117____Not_ABrand__v_8__r_nSec_Ch_Ua_Mobile:__0_r_nSec_Ch_Ua_Model:____r_nSec_Ch_Ua_Platform:__Windows__r_nSec_Ch_Ua_Platform_Version:__15.0.0__r_nSec_Fetch_Dest:_document_r_nSec_Fetch_Mode:_navigate_r_nSec_Fetch_Site:_same_site_r_nSec_Fetch_User:__1_r_nUpgrade_Insecure_Requests:_1_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_117.0.0.0_Safari_537.36_r_nCookie:
push eax
push esi
call fcn.00401000
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
push eax
push esi
call fcn.00401000
lea ecx, [esp + 0x24]
add esp, 0x14
push ecx
push 0
push str._r_n_r_n
push eax
push esi
call fcn.00401000
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
add esp, 0x14
mov dword [edx], ecx
mov dword [ebp], ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x402814
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x403534
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x408e2c], eax
mov al, ah
and eax, 0xff
mov dword [0x408e38], eax
mov eax, dword [0x408e2c]
shr dword [0x408e2c], 0x10
and eax, 0xff
mov dword [0x408e34], eax
shl eax, 8
add eax, dword [0x408e38]
mov dword [0x408e30], eax
call fcn.0040348a
mov dword [ebp - 4], 0
call fcn.0040339c
call fcn.00403391
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40541c], eax
call fcn.00402f05
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x408e04], eax
call fcn.00402e3a
call fcn.00402994
mov esi, dword [0x40541c]
mov al, byte [esi]
cmp al, 0x22
jne 0x4028d2
mov al, byte [ebp - 0x28]
inc esi
mov al, byte [esi]
test al, al
je 0x4028ca
cmp al, 0x22
jne 0x4028bf
cmp byte [esi], 0x22
jne 0x4028dc
inc esi
jmp 0x4028dc
cmp al, 0x20
jbe 0x4028dc
inc esi
cmp byte [esi], 0x20
ja 0x4028d6
cmp byte [esi], 0
je 0x4028ec
cmp byte [esi], 0x20
ja 0x4028ec
inc esi
cmp byte [esi], 0
jne 0x4028e1
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40290c
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004029c4
jmp 0x402948
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4029e6
Capabilities:
Terminate process

Disassembly:
mov dword [0x408e64], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x408e60], bl
jne 0x402a42
cmp dword [0x405418], 0
je 0x402a30
mov esi, dword [0x405410]
sub esi, 4
cmp dword [0x405418], esi
ja 0x402a30
mov eax, dword [esi]
test eax, eax
je 0x402a25
call eax
sub esi, 4
cmp dword [0x405418], esi
jbe 0x402a1d
push 0x409834
push 0x409830
call fcn.00402a65
add esp, 8
push 0x40983c
push 0x409838
call fcn.00402a65
add esp, 8
test ebx, ebx
jne 0x402a62
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x46502d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00464eaa

Function at 0x468097
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00467d31
Function at 0x401190
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4235e1
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x42dd00]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov eax, dword [0x42dd00]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004031f3
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
push 0x103
lea edx, [esp + 0x31]
push 0
push edx
mov byte [esp + 0x38], 0
call fcn.00411cf0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401246
push 0
push str.SetUpSCM_SearchTool
push str.SetUp_NpOctopus_fail_exit_
mov ecx, esi
call fcn.00406eb8
push 0
call fcn.00410e83
push str.npOctopus.xpi
lea ecx, [esp + 0x1c]
call fcn.00401c40
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x154], 0
call fcn.00401450
add esp, 0xc
mov byte [esp + 0x148], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40129a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x427e90
push 0x81
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40122c
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40133f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40133f
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.0040b569
push 0
mov byte [esp + 0x14c], 3
mov ecx, dword [esp + 0x14]
push 0x1002
push ecx
lea ecx, [esp + 0x28]
call fcn.0040b9df
test eax, eax
je 0x40132e
mov edx, dword [esp + 0x14]
push edi
push edx
lea ecx, [esp + 0x24]
call fcn.0040b29f
lea ecx, [esp + 0x1c]
call fcn.0040b503
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 2
call fcn.0040b671
mov eax, dword [esp + 0x10]
push 5
push 0
push eax
push str.firefox.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40123f
jmp 0x40122c

Function at 0x401610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040372a