joyce8/EMBER2024-capa huggingface dataset:
Function at 0x568fdf
Capabilities:
Encode data using xor

Disassembly:
fadd qword [eax + edx - 0x12]
shl bl, 0xb1
sti
xor eax, 0x1fda3a7b
xchg byte [ecx + esi*4], dl
jecxz 0x569038
sbb dl, byte [ecx - 0x42]
outsd dx, dword [esi]
mov dl, 5
mov al, 0x68
out 0xae, eax
and ax, 0x2279
and ah, 0x37
movsd dword es:[edi], dword [esi]
push ebx
hlt
and al, 0x40
and al, 0xca
jnp 0x569050
retf 0x127b
invalid
or al, 0x8c
xchg byte [eax - 0x3c], bl
push 0xa2dea4ef
inc ebp
popfd
loopne 0x5690c9
adc esp, 0xc105f33f
jb 0x56903b
cmp dword [esi], eax
inc ebx
mov ah, 0x7a
mov ch, 0x56
sbb dh, byte [esi - 0x6baeed30]
rcl byte [edx]
push ecx
xchg esp, eax
sbb dh, byte [eax]
push edi
das
or eax, 0xc953cb6c
clc
xor edi, dword [eax]
ja 0x569070
pop edx
add bl, cl
invalid
push 0xfffffffffffffffa
cmp al, 6
mov cl, 0x47
sbb eax, 0x71c4a18c
invalid

Function at 0x6578fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3e8
cmp edx, dword [eax]
je 0x65791f
add eax, 8
inc ecx
cmp eax, 0x65f478
jl 0x657910
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3e8]
jne 0x657a4d
mov eax, dword [0xa5bdc4]
cmp eax, 1
je 0x657a27
test eax, eax
jne 0x657950
cmp dword [0x65f314], 1
je 0x657a27
cmp edx, 0xfc
je 0x657a4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657987
lea eax, [ebp - 0x1a4]
push 0x65ca20
push eax
call fcn.006582e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658770
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6579ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658770
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65ca1c
push edi
call fcn.0065a640
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65ca00
push eax
call fcn.006582e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006582f0
lea eax, [ebp - 0xa0]
push 0x65c9fc
push eax
call fcn.006582f0
push dword [esi + 0x65f3ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.006582f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c9d4
push eax
call fcn.0065a5b4
add esp, 0x2c
pop edi
jmp 0x657a4d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3ec]
push 0
push eax
push dword [esi]
call fcn.00658770
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Move file
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov eax, 1
push esi
push edi
mov dword [esp + 0x14], eax
and eax, 0xffff
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40116c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40116c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40116c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x124]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push 0
push 0x403024
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea eax, [esp + 0x128]
push 0
push eax
call edi
mov ecx, dword [0x403020]
mov edx, dword [ebx + ebp - 4]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], edx
push eax
push ecx
lea edx, [esp + 0x28]
push str._s._s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x20]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40116c
lea ecx, [esp + 0x1c]
push 0
add ebx, 0xfffffffb
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
lea edx, [esp + 0x28]
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 4
lea ecx, [esp + 0x128]
push 0
push ecx
call edi
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x64
mov dword [esp + 0x14], eax
jl 0x401013
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4077fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edx
push eax
mov eax, 8
call sub.ntdll.dll__chkstk
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jb 0x407840
jmp 0x40787e
mov eax, 1
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x407827
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movzx edx, byte [edx]
movzx edx, dl
xor eax, edx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov byte [edx], al
mov eax, 1
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0xf
jne 0x407833
mov dword [ebp - 8], 0
jmp 0x407833
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40c20e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421cfc]
jne 0x40c218
repz ret
jmp fcn.0041050f

Function at 0x4130dd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c28f
and dword [ebp - 4], 0
cmp dword [0x427c54], 0
mov ebx, eax
jne 0x41318e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41323f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41323f
push eax
call fcn.0040c21d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427c54], eax
call esi
push eax
call fcn.0040c21d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427c58], eax
call esi
push eax
call fcn.0040c21d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427c5c], eax
call esi
push eax
call fcn.0040c21d
pop ecx
mov dword [0x427c64], eax
test eax, eax
je 0x41318e
push 0x419b34
push edi
call esi
push eax
call fcn.0040c21d
pop ecx
mov dword [0x427c60], eax
mov eax, dword [0x427c60]
cmp eax, ebx
je 0x4131e6
cmp dword [0x427c64], ebx
je 0x4131e6
push eax
call fcn.0040c298
push dword [0x427c64]
mov esi, eax
call fcn.0040c298
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4131e6
test edi, edi
je 0x4131e6
call esi
test eax, eax
je 0x4131dd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4131dd
test byte [ebp - 0xc], 1
jne 0x4131e6
or dword [ebp + 0x10], 0x200000
jmp 0x41321f
mov eax, dword [0x427c58]
cmp eax, ebx
je 0x41321f
push eax
call fcn.0040c298
pop ecx
test eax, eax
je 0x41321f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41321f
mov eax, dword [0x427c5c]
cmp eax, ebx
je 0x41321f
push eax
call fcn.0040c298
pop ecx
test eax, eax
je 0x41321f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427c54]
call fcn.0040c298
pop ecx
test eax, eax
je 0x41323f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413241
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002943
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x1002f2c5]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.10002455
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.1000fd90
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100029ba
push ebx
call fcn.1000f0b3
add esp, 4
pop eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100029e8
mov eax, 0x1002f2c4
jmp 0x10002a09
mov eax, dword [ebp - 8]
test eax, eax
je 0x10002a04
push eax
mov ebx, eax
call fcn.10001687
inc eax
push eax
call fcn.1000f0ad
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10002a09
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10002a1a
push ebx
call fcn.1000f0b3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10004a81
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10010030
add esp, 0x1c
mov dword [ebp - 8], eax
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10004b2d
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10010030
add esp, 0x1c
mov dword [ebp - 8], eax
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10004b35
mov esp, ebp
pop ebp
ret 8

Function at 0x1000835c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x1000838b
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
jmp 0x10008404
push dword [ebp + 8]
call fcn.1000840a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x100083bc
push 7
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
jmp 0x10008404
push dword [ebp + 8]
call fcn.1000842b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x100083ed
push 5
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
jmp 0x10008404
push 4
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
jmp 0x10008404
mov esp, ebp
pop ebp
ret 8

Function at 0x1000ebb6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 8]
call fcn.1000ecd9
mov dword [ebp - 4], eax
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1000ec03
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetHandleCount]
nop
nop
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.1000ed4f
mov eax, dword [ebp - 8]
jmp 0x1000ec27
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f9b0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.10011120
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x10024480
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x1000fa72
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0xc], eax
jle 0x1000fa6b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ebx, [edi + 4]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0x3a8
call ebp
mov esi, eax
test esi, esi
jle 0x1000fa56
lea edx, [esi + 1]
push edx
call fcn.1000f3a0
mov edi, eax
add esp, 4
test edi, edi
je 0x1000fa48
mov eax, dword [ebx]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0x3a8
call ebp
mov byte [eax + edi], 0
push edi
lea ecx, [esp + 0x20]
call fcn.100113b0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x1000fa02
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x1000fa85
push eax
call fcn.10011570
add esp, 4
mov edi, dword [esp + 0x28]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.1000f3a0
mov dword [eax], 1
mov edx, dword [esp + 0x2c]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [ebx], eax
mov dword [esp + 0x18], 0x1002447c
call fcn.10011320
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x1000ff60
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1000ff7e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x1000ff73
pop esi
ret
Function at 0x57aa98
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 0x57ab35
push ebx
push esi
call fcn.0057aa61
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.0057a9aa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x57aae2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x57ab34
push edi
push eax
call fcn.0057b698
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x57ab02
call fcn.005795d3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x57ab33
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0057a9aa
add esp, 0x20
test eax, eax
jne 0x57ab21
push edi
call fcn.005795d3
jmp 0x57ab29
push ebx
call fcn.005795d3
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 0x57be1b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x583f90
push 0x583f88
push 0x582be0
push 0x1e
call fcn.0057bcdc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57be4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x582128]
call esi
jmp 0x57be55
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x57be99
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x583fa0
push 0x583f98
push 0x582c04
push 0x20
call fcn.0057bcdc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57bed0
push dword [ebp + 8]
mov ecx, esi
call dword [0x582128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5903b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x122000]
push edi
or ebp, 0xffffffff
jmp 0x5903d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5903d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5903c8
mov eax, 1
add ebx, ebx
jne 0x5903eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5903fc
jne 0x59041b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59041b
dec eax
add ebx, ebx
jne 0x590408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5903e0
add ebx, ebx
jne 0x590417
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59046d
xor ecx, ecx
sub eax, 3
jb 0x590433
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5904a2
sar eax, 1
mov ebp, eax
jmp 0x59043e
add ebx, ebx
jne 0x59043e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59040c
inc ecx
add ebx, ebx
jne 0x59044c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59040c
add ebx, ebx
jne 0x590459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59044e
jne 0x59046a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59044e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59048c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59047e
jmp 0x5903ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59048c
add edi, ecx
jmp 0x5903ce
pop esi
mov edi, esi
mov ecx, 0x5c70
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5904aa
cmp byte [edi], 0x15
jne 0x5904aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5904af
lea edi, [esi + 0x187000]
mov eax, dword [edi]
or eax, eax
je 0x590527
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19b1f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19b314]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5904dc
mov ecx, edi
jns 0x59050b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19b31c]
or eax, eax
je 0x590521
mov dword [ebx], eax
add ebx, 4
jmp 0x5904f9
call dword [esi + 0x19b318]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x590558
cmp al, 0xef
ja 0x59054b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x59052d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x59053a
mov ebp, dword [esi + 0x19b320]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x59058c
sub esp, 0xffffff80
jmp 0x4b6c80
Function at 0x10001000
Capabilities:
Check if file exists
Get file attributes
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x1004f100]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x2a]
push ecx
mov dword [esp + 0x20], str.C:Program_FilesGoogleChromeApplicationchrome.exe
mov dword [esp + 0x24], str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
mov dword [esp + 0x28], str.C:Program_FilesMicrosoftEdgeApplicationmsedge.exe
mov word [esp + 0x2c], ax
call fcn.100285e0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x232]
push eax
mov word [esp + 0x234], dx
call fcn.100285e0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x22c]
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test esi, esi
jne 0x10001097
lea esi, [esp + 0x228]
push esi
push str.C:Users_sAppDataLocalGoogleChromeApplicationchrome.exe
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.10001f00
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
xor bl, bl
xor esi, esi
lea esp, [esp]
mov eax, dword [esp + esi*4 + 0x14]
test eax, eax
je 0x100010d0
push eax
call edi
cmp eax, 0xffffffff
jne 0x100010d8
inc esi
cmp esi, 3
jl 0x100010c0
jmp 0x100010f3
mov ecx, dword [esp + esi*4 + 0x14]
push ecx
push str.Browser_Installed_Path:_s
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
mov bl, 1
lea edx, [esp + 0x20]
test edx, edx
je 0x10001135
mov eax, edx
push eax
call edi
cmp eax, 0xffffffff
je 0x10001135
lea ecx, [esp + 0x20]
push ecx
push str.Browser_Installed_Path:_s
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.100269c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x434]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.100269c5
mov esp, ebp
pop ebp
ret
Function at 0x10001690
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x310
push 0xffffffffffffffff
push 0x10037370
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x30c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x100016e3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100016f8
push 0x10049464
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x32
call fcn.10028c35
push 0x206
lea edx, [ebp + 2]
xor ecx, ecx
push ebx
push edx
mov word [ebp], cx
call fcn.100285e0
push esi
push str.msiexec___i__s__q
lea eax, [ebp]
push 0x104
push eax
call fcn.10001f00
push 0x103
lea ecx, [ebp + 0x209]
push ebx
push ecx
mov byte [ebp + 0x208], bl
call fcn.100285e0
lea eax, [ebp]
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10001742
push ebx
push ebx
push 0x104
sub eax, edx
lea edx, [ebp + 0x208]
push edx
sar eax, 1
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x104
jge 0x1000177a
mov byte [ebp + eax + 0x208], bl
push 0x44
lea ecx, [ebp - 0x70]
push ebx
push ecx
call fcn.100285e0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x70]
push ecx
push ebx
push ebx
push ebx
push ebx
xor edx, edx
push ebx
mov word [ebp - 0x40], dx
push ebx
lea edx, [ebp]
push edx
push ebx
mov dword [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x24]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov esi, eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.1001af90
mov ecx, dword [ebp - 0x14]
push ecx
push esi
lea edx, [ebp]
push edx
push str.Exec_Install_cmd:_s_ExecRlt:_d_ExitCode:_d
mov ecx, eax
call fcn.1001b3f0
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
push eax
call edi
mov ecx, dword [ebp - 0x20]
push ecx
call edi
jmp 0x10001829
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x30c]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x310
mov esp, ebp
pop ebp
ret