joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e0b0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x80
mov eax, dword [0x470d00]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
lea eax, [esp + 0x44]
push esi
mov esi, dword [esp + 0xa4]
push edi
push eax
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_BeginPaint]
push 0xffffffffffffffeb
xorps xmm0, xmm0
mov ebx, eax
push ebp
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x2c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [esp + 0x10], eax
lea ecx, [eax*2 + 2]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [esp + 0x14]
add esp, 4
inc ecx
mov esi, eax
mov dword [esp + 0x14], esi
push ecx
push esi
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x420
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov esi, dword [sym.imp.GDI32.dll_GetStockObject]
test edi, edi
je 0x45e16a
mov ebp, dword [edi + 0x50]
test ebp, ebp
jne 0x45e170
push 4
call esi
mov ebp, eax
push 0x13
call esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call esi
push 0x848484
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_SetDCPenColor]
push ebp
push ebx
call esi
push ebp
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
cdq
inc esi
sub eax, edx
mov dword [esp + 0x30], esi
sar eax, 1
sub ecx, eax
add eax, esi
push ecx
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffffc
push ecx
push eax
mov eax, dword [esp + 0x38]
add eax, 4
push eax
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x10], 0
je 0x45e23f
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0xb
sub dword [esp + 0x28], eax
push 0
push ebx
mov dword [esp + 0x24], 0xa
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
movups xmm0, xmmword [esp + 0x1c]
push ebp
lea eax, [esp + 0x40]
push eax
movups xmmword [esp + 0x44], xmm0
push ebx
mov dword [esp + 0x48], 8
call dword [sym.imp.USER32.dll_FillRect]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x20
push eax
push 0xffffffffffffffff
push esi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x45e243
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x8c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f6d1
add esp, 0x80
ret
Function at 0x460604
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x460643
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x460643
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x460643
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x460643
cmp dword [ecx + 0x74], 0xe
jbe 0x460643
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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 0x402910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x448054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [0x449148], 0x43f3e8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push 0x200
push 0x448940
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x448940
call fcn.00403b11
add esp, 8
test eax, eax
je 0x402a2c
lea ecx, [eax + 2]
mov edx, 0x448d40
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402973
push 0x2e
push 0x448d40
call fcn.00403b11
add esp, 8
test eax, eax
je 0x4029a9
movzx ecx, word [eax + 2]
cmp ecx, 0x45
je 0x4029a4
cmp ecx, 0x65
jne 0x4029a9
xor ecx, ecx
mov word [eax], cx
call fcn.00402310
push edi
call fcn.00401010
movzx eax, ax
add esp, 4
test ax, ax
je 0x402a2c
cwde
push eax
push dword [0x449148]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x194]
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
call esi
test eax, eax
je 0x402a16
cmp eax, 0x190
jg 0x402a16
push 0x190
lea eax, [ebp - 0x4b4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x194]
push eax
push 1
push 0
call esi
push 0x30
push 0x448d40
lea eax, [ebp - 0x4b4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00402afd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402bd6
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x446b10
call fcn.00403820
push 1
call fcn.00403274
pop ecx
test al, al
je 0x402d31
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00403177
mov byte [ebp - 0x24], al
mov eax, dword [0x4494bc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x402d31
test eax, eax
jne 0x402c60
mov dword [0x4494bc], ecx
push 0x43f1bc
push 0x43f1a4
call fcn.0041fa41
pop ecx
pop ecx
test eax, eax
je 0x402c43
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402d2b
push 0x43f1a0
push 0x43f198
call fcn.0041f9e5
pop ecx
pop ecx
mov dword [0x4494bc], 2
jmp 0x402c65
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004033e1
pop ecx
call fcn.004035c4
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402c95
push esi
call fcn.00403357
pop ecx
test al, al
je 0x402c95
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00403811
call esi
call fcn.004035ca
mov esi, eax
cmp dword [esi], edi
je 0x402cb3
push esi
call fcn.00403357
pop ecx
test al, al
je 0x402cb3
push dword [esi]
call fcn.0041fdd8
pop ecx
call fcn.004036ec
movzx eax, ax
push eax
call fcn.0041f94c
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00403722
test al, al
je 0x402d38
test bl, bl
jne 0x402ce1
call fcn.0041fdad
push edi
push 1
call fcn.004033fe
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402d2b
call fcn.00403866
ret
push 7
call fcn.004035d0
push esi
call fcn.0041fe10
push dword [ebp - 0x20]
call fcn.0041fdbc
int3
call fcn.004e2000
jmp 0x402bd6

Function at 0x405b90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x43f66c
push str.FlsAlloc
push 0
call fcn.00405a37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405bc2
push dword [ebp + 8]
mov ecx, esi
call fcn.00403811
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x405c04
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x43f690
push str.FlsGetValue
push 2
call fcn.00405a37
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x405c35
mov ecx, esi
call fcn.00403811
call esi
jmp 0x405c3b
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x405c3e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x43f6a4
push str.FlsSetValue
push 3
call fcn.00405a37
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405c72
mov ecx, esi
call fcn.00403811
call esi
jmp 0x405c78
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x42804e
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427dd5

Function at 0x42a2e2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429abc

Function at 0x42a2ed
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429cf7
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

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 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x4072d4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
mov dword [ebp - 4], ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
add esi, esi
mov ebx, eax
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
push esi
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, 0x25c
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push str.labels
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
push ebx
call fcn.0040d060
mov eax, dword [ebp + 0xc]
pop ecx
pop esi
pop ebx
leave
ret 0xc

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 0x4063a2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x406463
cmp dword [ebp + 8], 0
jne 0x4063c7
cmp dword [ebp + 0x10], 2
jg 0x406463
call fcn.00401371
push eax
lea ecx, [ebp - 4]
call fcn.00401791
call fcn.00401371
push eax
lea ecx, [ebp + 0x14]
call fcn.00401791
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.00407526
test al, al
jne 0x406409
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x4063e9
jmp 0x40642d
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c5
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x40644d
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x43c0a0
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x406775
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.00406923
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00401371
push eax
lea ecx, [ebx + 0xc]
call fcn.00401791
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.00403f59
mov dword [ebx + 0x18], edi
call fcn.00401371
push eax
lea ecx, [ebx + 0x1c]
call fcn.00401791
movzx eax, byte [0x443f39]
neg eax
sbb eax, eax
and eax, 0x443f40
mov dword [ebp + 8], eax
je 0x406848
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.00406688
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x406824
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x40682e
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.004015e6
lea ecx, [esi - 0x10]
call fcn.004015ce
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x4068a0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406921
mov byte [esi + 8], 1
call fcn.0040694f
cmp dword [esi + 0x10], 0
je 0x406921
test al, al
je 0x4068c0
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.00406f7c
test al, al
jne 0x4068e7
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.004088a4
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00406a14
cmp dword [esi + 0x18], 0
jne 0x40690e
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.004088a4
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406921
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x40bc5f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x44]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x40]
lea ebx, [edi - 1]
not ebx
and ebx, dword [ebp + 8]
je 0x40bcb0
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040c6a1
cmp eax, dword [esi + 0xc]
je 0x40bca4
cmp ebx, dword [eax + 0x10]
jae 0x40bca7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40bcb9
sub ebx, edi
jne 0x40bc8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 7
lea esi, [eax + 0x14]
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40bcb0
mov eax, ebx
jmp 0x40bcb2

Function at 0x40f2b7
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f353
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f353
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f353
push 4
push 0xffffffffffffffff
push esi
push 0x40fa6d
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f353
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f31e
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f353
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40f359
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f355

Function at 0x40f465
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.00417440
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x40f4b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40f4cb
cmp ebx, 0x3e5
je 0x40f4cb
push 0xa
mov ecx, edi
call fcn.0040f6f6
jmp 0x40f4d5
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411750
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
movzx ecx, byte [0x443f39]
neg ecx
push edi
sbb ecx, ecx
and ecx, 0x443f40
je 0x41179a
or dword [ebp - 0x18], 0xffffffff
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
call fcn.00406204
push dword [esi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push str._StartProcessWithNoExceptionHandler___s_
push eax
call fcn.00403086
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00408607
push 0x43d968
lea ecx, [ebp - 8]
call fcn.00403f59
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea ecx, [ebp - 4]
call fcn.00403f59
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e581
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004015ce
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 8], eax
test eax, eax
je 0x411884
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e5b2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
je 0x411884
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push ebx
push eax
call fcn.00417440
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x411851
push dword [eax - 0xc]
mov ecx, esi
call fcn.00401910
mov eax, dword [esi]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push ebx
push edi
push 0x400
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411884
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x41188b
call fcn.004086c7
mov ebx, eax
test edi, edi
je 0x4118a0
mov ecx, dword [ebp - 0x14]
sub ecx, edi
and ecx, 0xfffffffe
push ecx
push edi
call fcn.004046da
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
mov ecx, eax
call fcn.00408674
push 0x18
push dword [ebp - 0x10]
call fcn.004046da
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret