joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4153e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4fa8f0]
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x415400
call fcn.004194c0
mov eax, esi
mov dword [ebp - 4], 0xf
mov dword [ebp - 8], 0
mov byte [ebp - 0x18], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415417
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402b40
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00419fa0
add esp, 4
cmp dword [ebp - 4], 0x10
jb 0x415448
mov edx, dword [ebp - 0x18]
push edx
call fcn.00443256
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x415463
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.00415360
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.004524e0
mov eax, dword [0x4f4500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
call fcn.0040de20
mov esi, eax
add esp, 4
test esi, esi
jne 0x417e10
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004436fd
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
lea eax, [ebp - 0x10004]
push 1
push eax
call fcn.0044755b
add esp, 0x10
test eax, eax
jbe 0x417e5e
jmp 0x417e30
test edi, edi
je 0x417e43
push eax
lea ecx, [ebp - 0x10004]
push ecx
mov ecx, edi
call fcn.00404b70
push esi
push 0x10000
lea edx, [ebp - 0x10004]
push 1
push edx
call fcn.0044755b
add esp, 0x10
test eax, eax
ja 0x417e30
push esi
call fcn.00447ab1
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004436fd
mov esp, ebp
pop ebp
ret
Function at 0x419550
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
push esi
push edi
xor edi, edi
push 0x44
mov esi, eax
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x18], edi
call fcn.004435a0
add esp, 0xc
cmp byte [esi + 8], 0
mov dword [esp + 0x20], 0x44
je 0x419589
mov dword [esp + 0x28], 0x4b31c0
xor ecx, ecx
cmp byte [esi + 1], cl
mov dword [esp + 0x4c], 1
setne cl
dec ecx
and ecx, 5
mov word [esp + 0x50], cx
cmp dword [esi + 0xc], edi
je 0x4195ac
mov edi, 0x1000004
mov eax, dword [esi + 4]
test eax, eax
je 0x419620
push 0
push eax
lea edx, [esp + 0x14]
push edx
or edi, 0x400
mov dword [esp + 0x18], 0
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x419618
cmp dword [ebx + 0x18], 8
jb 0x4195dd
mov eax, dword [ebx + 4]
jmp 0x4195e0
lea eax, [ebx + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
movzx edx, byte [esi + 2]
push 0
push ecx
push edi
push edx
push 0
push 0
push eax
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ecx, dword [esp + 0xc]
push ecx
mov edi, eax
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
jne 0x419653
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x18], 8
jb 0x41962b
mov eax, dword [ebx + 4]
jmp 0x41962e
lea eax, [ebx + 4]
lea edx, [esp + 0x10]
push edx
movzx edx, byte [esi + 2]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edi
push edx
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41968e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4196a1
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x419696
mov eax, dword [esp + 0x10]
push 1
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x41968e
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
cmp byte [esi], 0
je 0x4196c0
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4196d5
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
call fcn.0041a080
test al, al
je 0x41a00f
mov eax, dword [0x4f65d0]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
jne 0x419fc4
call fcn.0041f7e0
mov ecx, dword [0x4fa7a4]
cmp dword [eax + ecx*4], 0
jne 0x41a00e
push esi
push 0xc8
call fcn.0044353b
add esp, 4
test eax, eax
je 0x419ff1
mov edx, dword [ebp + 8]
push edx
mov esi, eax
call fcn.00419e80
mov esi, eax
jmp 0x419ff3
xor esi, esi
mov eax, dword [0x4f65d0]
push eax
call edi
test eax, eax
jne 0x41a004
call fcn.0041f7e0
mov ecx, dword [0x4fa7a4]
mov dword [eax + ecx*4], esi
pop esi
pop edi
pop ebp
ret

Function at 0x41f7e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [0x4f65d0], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 4], 0
jne 0x41f81e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0xffffffffffffffff
mov esi, eax
push esi
push 0x4f65d0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x41f81e
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004435a0
mov edx, dword [0x4f65d0]
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.00442a0d
mov ebx, eax
add esp, 4
mov ecx, 0x40
lea esi, [ebp - 0x108]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4f65d0]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f8e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4f65d0]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x41f996
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x41f995
push esi
push edi
mov ecx, 0x40
mov esi, ebx
lea edi, [ebp - 0x104]
lea eax, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4f65d0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00443640
add esp, 4
mov edi, 0x40
mov esi, dword [0x4f65d4]
dec esi
xor ebx, ebx
xor dl, dl
cmp esi, ebx
jle 0x41f97c
mov eax, dword [ebp + esi*4 - 0x104]
cmp eax, ebx
je 0x41f977
mov ecx, dword [esi*4 + 0x4fa5c8]
cmp ecx, ebx
je 0x41f977
push eax
mov dword [ebp + esi*4 - 0x104], ebx
call ecx
add esp, 4
mov dl, 1
dec esi
cmp esi, ebx
jg 0x41f952
dec edi
cmp edi, ebx
jle 0x41f985
test dl, dl
jne 0x41f943
mov edx, dword [0x4f65d0]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f9f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 6]
add eax, edx
cmp edi, ecx
jae 0x41fa3e
movzx ecx, word [eax + 0x14]
add ecx, esi
lea eax, [ecx + eax + 0x18]
test eax, eax
je 0x41fa3e
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41fa2a
add ecx, edx
cmp ecx, ebx
ja 0x41fa38
mov ebx, dword [eax + 8]
add ebx, ecx
mov ecx, ebx
mov ebx, dword [ebp + 8]
cmp ecx, ebx
ja 0x41fa40
inc edi
add esi, 0x28
jmp 0x41fa01
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41fb20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x41fb37
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x3c]
mov edx, dword [edi]
mov edx, dword [edx]
add eax, ecx
mov eax, dword [eax + 0x78]
push esi
push eax
mov ecx, edi
call edx
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x41fbdc
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x41fb70
mov word [ebx], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x20]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
mov ecx, edi
call edx
mov ebx, eax
mov eax, dword [esi + 0x18]
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x41fbdc
jmp 0x41fb93
mov eax, dword [ebp - 4]
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
mov edx, dword [edi]
mov edx, dword [edx]
sar eax, 1
lea esi, [ebx + eax*4]
mov eax, dword [esi]
push eax
mov ecx, edi
call edx
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x41fbc1
cmp dl, byte [eax]
jne 0x41fbc1
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x41fbb4
movzx edx, byte [eax]
movzx eax, byte [ecx]
sub eax, edx
je 0x41fbe6
test eax, eax
jle 0x41fbd4
lea ebx, [esi + 4]
jmp 0x41fbd7
mov dword [ebp - 4], esi
cmp ebx, dword [ebp - 4]
jne 0x41fb90
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x24]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
mov ecx, edi
call edx
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [ebx + 0x10]
pop esi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41fc20
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41fc30
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41fc2d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x41fc2d
mov edx, 0x10b
cmp word [eax + 0x18], dx
sete al
ret
Function at 0x420fb0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f4500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
mov edx, 0x1400
cmp dx, si
je 0x421053
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 9
lea eax, [ebp - 0x18]
push eax
movzx edi, si
push 0x59
push edi
call ebx
cmp eax, 1
jle 0x421053
dec eax
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00408ab0
mov ecx, dword [ebp - 0x1c]
call fcn.00407310
and esi, 0xfc00
xor edx, edx
cmp dx, si
je 0x421040
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push edi
call ebx
cmp eax, 1
jle 0x421040
dec eax
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00408ab0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004436fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004436fd
mov esp, ebp
pop ebp
ret
Function at 0x4248b5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4f4500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x24], eax
call fcn.0043d032
movzx eax, al
pop ecx
neg eax
sbb eax, eax
push 1
add eax, 0x80000002
push edi
push eax
lea ecx, [ebp - 0x2c]
xor bl, bl
call fcn.0040cd80
cmp dword [ebp - 0x2c], 0
je 0x424964
push esi
lea ecx, [ebp - 0x20]
call fcn.00407290
push str.new_chrome.exe
lea ecx, [ebp - 0x20]
call fcn.0040c7b0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x42491d
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424940
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push 0x4b2594
call fcn.0040cfd0
test eax, eax
jne 0x424940
mov bl, 1
jmp 0x424958
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push 0x4b2630
call fcn.0040cfd0
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004081e0
lea ecx, [ebp - 0x2c]
call fcn.0040cdd0
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004436fd
leave
ret
Function at 0x424c31
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
push edi
mov dword [ebp + 8], eax
jb 0x424c4f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.00406500
push str.chrome.dll
mov ecx, esi
mov edi, eax
call fcn.0040c7b0
push str.type
lea ecx, [ebp - 0x30]
call fcn.00401d40
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.00406b20
mov bl, al
neg bl
sbb bl, bl
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x30]
inc bl
call fcn.00402810
test bl, bl
je 0x424d9c
and dword [ebp - 0xc], 0
push edi
push str.SoftwareGoogleChromeFrame
push 0x80000001
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], 0x1000
mov dword [ebp - 4], edi
call fcn.0040cd80
cmp dword [ebp - 0x14], 0
je 0x424d01
lea eax, [ebp - 0xc]
push eax
push str.PreReadSize
lea ecx, [ebp - 0x14]
call fcn.0040cf60
lea eax, [ebp - 8]
push eax
push str.PreReadStepSize
lea ecx, [ebp - 0x14]
call fcn.0040cf60
lea eax, [ebp - 4]
push eax
push 0x49b488
lea ecx, [ebp - 0x14]
call fcn.0040cf60
lea ecx, [ebp - 0x14]
call fcn.0040cdd0
lea eax, [ebp - 4]
push eax
call fcn.00424b82
pop ecx
test al, al
je 0x424d51
call fcn.004110b0
cmp dword [ebp - 4], 0
mov ebx, eax
mov eax, 0x49b484
jne 0x424d26
mov eax, 0x4ee928
push eax
lea ecx, [ebp - 0x30]
call fcn.00401d40
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push str.CHROME_PRE_READ_EXPERIMENT
mov ecx, ebx
call dword [eax + 0xc]
push 0
push edi
lea ecx, [ebp - 0x30]
call fcn.00402810
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax]
cmp dword [ebp - 4], 0
je 0x424d94
mov edi, 0x4ee23a
push edi
push 0
mov ebx, str.PreReadImage
push ebx
push 0x42
call fcn.0040ede0
mov eax, dword [ebp + 8]
add esp, 0x10
cmp dword [esi + 0x18], 8
jb 0x424d7a
mov eax, dword [eax]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call fcn.0040e100
push edi
push 0
push ebx
push 0x45
call fcn.0040ede0
add esp, 0x1c
lea ecx, [ebp - 0x14]
call fcn.0040cdd0
cmp dword [esi + 0x18], 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
jb 0x424daa
mov eax, dword [eax]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret
Function at 0x425e84
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push dword [ebp + 0x14]
call fcn.0042544d
pop ecx
test al, al
jne 0x425f3c
push esi
call fcn.004110b0
mov esi, eax
mov eax, dword [esi]
push str.CHROME_RESTART
mov ecx, esi
call dword [eax + 8]
test al, al
jne 0x425ebd
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x425f3b
push edi
push 0x49b484
lea ecx, [ebp - 0x2c]
call fcn.00401d40
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push str.CHROME_CRASHED
mov ecx, esi
call dword [eax + 0xc]
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402810
push 0x40
lea eax, [ebp - 0x6c]
push edi
push eax
mov dword [ebp - 0x70], 0x44
call fcn.004435a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push 0x400
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x425f32
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
call edi
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop edi
pop esi
mov al, 1
leave
ret
Function at 0x426c06
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push str.CHROME_CRASHED
lea ecx, [ebp - 8]
call fcn.0040b790
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00411350
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x426c33
mov eax, dword [eax + 4]
jmp 0x426c36
add eax, 4
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
push esi
push esi
push eax
call edi
mov ebx, eax
neg ebx
push esi
sbb bl, bl
push 1
lea ecx, [ebp - 0x3c]
inc bl
call fcn.004081e0
test bl, bl
je 0x426c64
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push str.CHROME_RESTART
lea ecx, [ebp - 8]
call fcn.0040b790
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00411350
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x426c8b
mov eax, dword [eax + 4]
jmp 0x426c8e
add eax, 4
push esi
push esi
push eax
call edi
push 0
push 1
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.004081e0
test esi, esi
jne 0x426ca9
mov al, 1
jmp 0x426c5f
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00442a0d
lea ecx, [ebp - 8]
mov ebx, eax
mov dword [esp], str.CHROME_RESTART
call fcn.0040b790
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00411350
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x426ceb
mov eax, dword [eax + 4]
jmp 0x426cee
add eax, 4
push esi
push ebx
push eax
call edi
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.004081e0
xor eax, eax
lea ecx, [ebp - 0x20]
mov word [ebx + esi*2], ax
call fcn.00407440
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00407290
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push 0x7c
push eax
call fcn.00414df0
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.004081e0
push ebx
call fcn.00443640
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 3
jae 0x426d66
mov bl, 1
lea ecx, [ebp - 0x20]
call fcn.00408320
push dword [ebp - 0x20]
call fcn.00443256
pop ecx
mov al, bl
jmp 0x426c5f
push 0x31
pop esi
push str.RIGHT_TO_LEFT
lea ecx, [ebp - 8]
call fcn.0040b790
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00411350
pop ecx
pop ecx
push eax
push 2
lea ecx, [ebp - 0x20]
call fcn.00407720
push eax
call fcn.0040e250
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x3c]
mov bl, al
call fcn.004081e0
test bl, bl
je 0x426dae
mov esi, 0x180031
push edi
lea ecx, [ebp - 0x20]
call fcn.00407720
cmp dword [eax + 0x18], 8
jb 0x426dc2
mov edi, dword [eax + 4]
jmp 0x426dc5
lea edi, [eax + 4]
push 1
lea ecx, [ebp - 0x20]
call fcn.00407720
cmp dword [eax + 0x18], 8
jb 0x426dda
mov eax, dword [eax + 4]
jmp 0x426ddd
add eax, 4
push dword [ebp + 8]
push esi
push edi
push eax
call fcn.0042551f
add esp, 0x10
mov bl, al
jmp 0x426d4e
Function at 0x42aa86
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
push edi
add eax, ebx
push eax
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x42aabc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42abc1
push edi
push edi
push 6
lea ecx, [ebp + 0x10]
push ecx
push dword [esi]
mov dword [ebp + 0x10], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42aab1
push edi
push edi
push edi
push 6
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x42aab1
add eax, ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0042a971
mov eax, dword [ebp + 0x10]
add esp, 0xc
push 4
push 0x4f681c
push str.g_shared_section
mov ecx, esi
mov dword [0x4f681c], eax
call fcn.0042aa4e
mov dword [0x4f681c], edi
cmp eax, edi
je 0x42ab33
cmp eax, 1
je 0x42aab1
xor eax, eax
inc eax
jmp 0x42abc1
push 4
push 0x4f6898
push str.g_shared_IPC_size
mov ecx, esi
mov dword [0x4f6898], ebx
call fcn.0042aa4e
mov dword [0x4f6898], edi
cmp eax, edi
jne 0x42ab26
mov eax, dword [ebp + 0x14]
push 4
push 0x4f689c
push str.g_shared_policy_size
mov ecx, esi
mov dword [0x4f689c], eax
call fcn.0042aa4e
mov dword [0x4f689c], edi
cmp eax, edi
jne 0x42ab26
push 0x34
call fcn.0044353b
pop ecx
cmp eax, edi
je 0x42ab9e
push dword [ebp + 8]
mov ecx, eax
push dword [esi + 0x20]
push dword [esi + 0x18]
push dword [esi + 8]
push dword [esi]
call fcn.0042de1e
jmp 0x42aba0
xor eax, eax
push 0x400
push ebx
push dword [ebp - 4]
mov ecx, eax
mov dword [esi + 0x1c], eax
call fcn.0042e121
test al, al
jne 0x42abbc
push 8
pop eax
jmp 0x42abc1
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42acd2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x4f4500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2f4], ecx
call fcn.0044474a
push ebx
mov dword [esi + 0x28], eax
call fcn.0044474a
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x2ec], eax
cmp edi, ebx
je 0x42ad2e
push edi
call fcn.0044474a
pop ecx
mov dword [ebp - 0x2d4], eax
jmp 0x42ad34
mov dword [ebp - 0x2d4], ebx
mov eax, dword [ebp - 0x2d4]
push 0x40
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x334]
push ebx
push eax
mov dword [ebp - 0x338], 0x44
call fcn.004435a0
add esp, 0xc
cmp edi, ebx
je 0x42ad6c
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x330], eax
xor eax, eax
mov dword [ebp - 0x2e4], ebx
lea edi, [ebp - 0x2e0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x338]
push eax
push ebx
push ebx
push 0x100040c
push ebx
push ebx
push ebx
push dword [ebp - 0x2ec]
push dword [ebp - 0x2e8]
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x42ade1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
lea ecx, [ebp - 0x2f0]
call fcn.00434f65
push ebx
lea ecx, [ebp - 0x2ec]
call fcn.00434f65
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004436fd
leave
ret 0x10
push dword [ebp - 0x2e4]
call fcn.0042abd8
pop ecx
push dword [ebp - 0x2e4]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x42ae17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.0042a94c
pop ecx
jmp 0x42adb6
push dword [esi + 0x10]
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x42ae00
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2e0]
mov dword [ebp - 0x2d0], 0x1003f
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x42ae00
mov eax, dword [ebp - 0x2e4]
push dword [ebp - 0x220]
mov dword [esi], eax
mov eax, dword [ebp - 0x2e0]
push dword [ebp - 0x2e8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2dc]
mov dword [esi + 8], eax
call fcn.0042a9ab
mov edi, dword [ebp - 0x2f4]
mov dword [esi + 0x24], eax
lea esi, [ebp - 0x2e4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
xor esi, esi
jmp 0x42adb6