joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0xc350
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004014f0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40105f
cmp dword [ebp + 0xc], 0
je 0x40105f
cmp dword [ebp + 0x18], 0
je 0x40105f
cmp dword [ebp + 0x1c], 0
jne 0x401069
jmp 0x401154
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x18], eax
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0x1005
push 0xffff
mov edx, dword [ebp - 0x18]
push edx
call sub.WS2_32.dll_setsockopt
push 4
lea eax, [ebp - 0x28]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 0x18]
push ecx
call sub.WS2_32.dll_setsockopt
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4010cd
jmp 0x401154
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x4010e9
jmp 0x401154
mov ecx, 1
test ecx, ecx
je 0x401140
push 0
mov edx, dword [ebp + 0x1c]
sub edx, dword [ebp - 0x20]
sub edx, 1
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.WS2_32.dll_recv
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40111a
cmp dword [ebp - 0x1c], 0
jne 0x40111c
jmp 0x401140
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp - 0x20]
sub ecx, 1
cmp ecx, 5
jge 0x40113e
jmp 0x401140
jmp 0x4010e9
cmp dword [ebp - 0x18], 0
je 0x40114f
mov edx, dword [ebp - 0x18]
push edx
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 0x20]
jmp 0x401157
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401792
mov esp, ebp
pop ebp
ret
Function at 0x1000dea0
Capabilities:
Enumerate services
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1002a0f4]
xor eax, ebp
mov dword [ebp - 4], eax
movsd xmm0, qword [0x1002aa28]
ucomisd xmm0, qword [0x10022b40]
push ebx
push esi
push edi
mov edi, 0x9e069
lahf
test ah, 0x44
jp 0x1000e082
mov ebx, 0x2d
nop word [eax + eax]
cmp edi, 0x9e06a
jge 0x1000e082
movsd xmm0, qword [0x1002aa70]
sub esp, 8
movsd qword [esp], xmm0
movsd xmm0, qword [0x1002aa78]
call fcn.10014e70
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x34], esi
test edx, edx
jg 0x1000df36
jl 0x1000df1b
test eax, eax
jae 0x1000df36
neg eax
adc edx, 0
neg edx
push edx
push eax
lea eax, [ebp - 6]
push eax
call fcn.10001b60
mov word [eax - 2], bx
lea ecx, [eax - 2]
jmp 0x1000df43
push edx
push eax
lea eax, [ebp - 6]
push eax
call fcn.10001b60
mov ecx, eax
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 6]
cmp ecx, eax
je 0x1000df73
sub eax, ecx
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.1000cf20
cvttsd2si eax, qword [0x1002aa50]
push 0x347e2203
movsd xmm0, qword [0x10022938]
push eax
sub esp, 8
movsd qword [esp], xmm0
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
movsd xmm0, qword [0x1002aa58]
add esp, 0x30
fstp qword [ebp - 0x3c]
cvttsd2si ebx, xmm0
call fcn.10014e70
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x34], esi
test edx, edx
jg 0x1000dfdf
jl 0x1000dfc0
test eax, eax
jae 0x1000dfdf
neg eax
adc edx, 0
neg edx
push edx
push eax
lea eax, [ebp - 6]
push eax
call fcn.10001b60
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x1000dfec
push edx
push eax
lea eax, [ebp - 6]
push eax
call fcn.10001b60
mov ecx, eax
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 6]
cmp ecx, eax
je 0x1000e01c
sub eax, ecx
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.1000cf20
cvttsd2si ecx, qword [0x1002aa38]
mov edx, ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
movsd xmm0, qword [0x10022a20]
mov ecx, eax
divsd xmm0, qword [ebp - 0x3c]
movsd qword [ebp - 0x3c], xmm0
call fcn.10014f20
movsd xmm1, qword [ebp - 0x3c]
inc edi
divsd xmm1, xmm0
mov ebx, 0x2d
movsd xmm0, qword [0x10022978]
subsd xmm0, xmm1
movsd qword [0x1002aa30], xmm0
movsd xmm0, qword [0x1002aa28]
ucomisd xmm0, qword [0x10022b40]
lahf
test ah, 0x44
jnp 0x1000dee0
mov esi, 1
xor ebx, ebx
mov edi, section..data
nop
mov eax, dword [edi]
cmp dword [eax + 0x14], 0x10
jb 0x1000e09a
mov eax, dword [eax]
push eax
call fcn.100181af
imul eax, esi
add edi, 4
add esp, 4
shl esi, 8
add ebx, eax
cmp edi, 0x1002a010
jl 0x1000e090
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x1002aa1c], ebx
xor ecx, ebp
pop ebx
call fcn.10014e53
mov esp, ebp
pop ebp
ret
Function at 0x100122b0
Capabilities:
Log keystrokes via input method manager

Disassembly:
movsd xmm0, qword [0x1002aa50]
ucomisd xmm0, qword [0x10022b98]
lahf
test ah, 0x44
jp 0x10012314
cvttsd2si eax, qword [0x1002aa28]
push 0x3b777dee
sub esp, 8
movsd qword [esp], xmm0
movsd xmm0, qword [0x1002aa60]
push eax
sub esp, 8
movsd qword [esp], xmm0
call sub.IMM32.dll_ImmGetCompositionStringW
add esp, 0x18
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x10022800]
addsd xmm0, qword [0x10022860]
movsd qword [0x1002aa58], xmm0
push 0
push 0x10022410
push 0x10022524
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
ret
Function at 0x1001b9fd
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 0x1001ba9a
push ebx
push esi
call fcn.1001b9c6
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.1001b90f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001ba47
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ba99
push edi
push eax
call fcn.1001a4c5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ba67
call fcn.1001a5a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ba98
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001b90f
add esp, 0x20
test eax, eax
jne 0x1001ba86
push edi
call fcn.1001a5a1
jmp 0x1001ba8e
push ebx
call fcn.1001a5a1
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 0x1001bd05
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024c48
push 0x10024c40
push str.FlsAlloc
push 0x1e
call fcn.1001bc23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bd39
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022170]
call esi
jmp 0x1001bd3f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001bd83
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024c58
push 0x10024c50
push str.FlsGetValue
push 0x20
call fcn.1001bc23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bdba
push dword [ebp + 8]
mov ecx, esi
call dword [0x10022170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3eca6918
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x424a5379
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4012f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x34
mov dword [ebp - 0x18], eax
test byte [section..data], 8
jne 0x4013d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
lea edi, [ebp - 0x10]
lea esi, [ebp - 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x1c], ecx
call ecx
xor edx, edx
sub esp, 0x18
test eax, eax
jne 0x4013bf
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
add edx, 4
mov dword [ebp - 0x24], ecx
mov dword [esp + 8], edx
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x28], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub esp, 0x18
test eax, eax
jne 0x401400
mov eax, dword [ebp - 0x28]
xor ecx, ecx
xor ebx, ebx
and eax, 0xfffffffe
mov word [edx + eax - 2], cx
mov word [edx + eax - 4], bx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x404017
mov dword [esp + 8], str.GetRegValue
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call fcn.004012a0
jmp 0x40130b
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor edx, edx
sub esp, 0xc
jmp 0x4013bf
Function at 0x402ac0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402b30
mov ebx, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov esi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00401430
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x1001d160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1008b728]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
push 0x40
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001d1f5
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x100
mov esi, eax
lea eax, [ebp - 0x104]
push eax
push 0x400
push esi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1001d1d5
push esi
push str.error_code__08x
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1001cb20
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push str.VirtualProtect:__s_n
push 2
call fcn.10041d7f
add esp, 4
push eax
call fcn.10005c10
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100354d0
mov esp, ebp
pop ebp
ret

Function at 0x1004c1cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004c042

Function at 0x1004eb6a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004e7e7
Function at 0x402252
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x40228a
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x4022ec
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c3a5
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x4022e7
cmp dword [ebp - 4], 0
je 0x4022e0
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4022ec
movzx esi, si
or esi, 0x80070000
jmp 0x4022ec
xor eax, eax
mov word [ecx], ax
jmp 0x4022ec
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x402eb0
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402ee6
lea esi, [edi + 4]
test esi, esi
je 0x402ee6
call fcn.00402e12
test al, al
je 0x402ee6
mov ecx, edi
call fcn.00402e12
test al, al
je 0x402ee6
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402ee8
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x404936
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, edx
call fcn.00403ad2
push 0x40
xor esi, esi
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0040b2b0
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x40], 0x80
push edi
push eax
push esi
cmp dword [ebp + 8], esi
jne 0x40497a
push esi
push esi
jmp 0x404982
push dword [ebp + 8]
push 0x400
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40499a
call fcn.00407613
mov esi, eax
jmp 0x4049db
movzx ecx, byte [0x431eb9]
neg ecx
sbb ecx, ecx
and ecx, 0x431de0
je 0x4049db
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], 7
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00405c44
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.00403ab3
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403b28
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404b8e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404bcf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404bcf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x404baa
xor al, al
jmp 0x404bd1
mov al, 1
pop esi
leave
ret 4

Function at 0x404c28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004018a4
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040b2b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x404cc2
movzx ecx, bl
cmp ecx, 0x26
jne 0x404c86
mov edx, 0x42b7a8
jmp 0x404c90
cmp ecx, 0x1c
jne 0x404cb1
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00404be3
push eax
mov ecx, esi
call fcn.004017fb
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x404cbe
xor eax, eax
inc eax
jmp 0x404ce0
mov eax, edi
jmp 0x404ce0
lea eax, [ebp - 0x20c]
push eax
call fcn.004148ad
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401a2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a726
leave
ret

Function at 0x405110
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x40512b
mov al, 1
jmp 0x40516e
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040b2b0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405166
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42b850
call fcn.004077f0
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x405127
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a726
leave
ret
Function at 0x405687
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00401269
push eax
lea ecx, [ebp - 4]
call fcn.00401ae3
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4056bd
push edx
lea ecx, [ebp - 4]
call fcn.00401bb3
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4056f3
mov ecx, dword [ebp + 8]
push 0x429fb8
call fcn.00401849
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040280c
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebp + 8]
jmp 0x40572a
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4056cf
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.00401b60
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.0040280c
mov ecx, edi
call fcn.00401251
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x4057da
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x4058a3
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x405899
lea eax, [ebp - 4]
push eax
call fcn.0040572f
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x40583a
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00407531
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00403a30
test al, al
jne 0x405844
mov ecx, edi
call fcn.00404ecf
test eax, eax
jns 0x405844
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
jmp 0x4058a1
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.0041c375
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.004061ac
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x40587f
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.004077f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.00401251
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x4058a1
push eax
mov ecx, ebx
call fcn.0040604c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40644b
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea edx, [ebp - 0x8c]
push esi
xor eax, eax
mov dword [ebp - 0x94], ebx
push edi
lea esi, [ebx + 0x14]
mov dword [ebp - 0x98], eax
mov ecx, dword [esi]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x9c], esi
call fcn.0040502b
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
jbe 0x40649f
mov ecx, ebx
call fcn.00406675
xor eax, eax
cmp byte [ebx + 0xa], al
setne al
xor ecx, ecx
push ecx
push 0x80
lea eax, [eax*2 + 2]
push eax
push ecx
push 3
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x18], eax
cmp eax, 0xffffffff
jne 0x4064d8
xor edi, edi
xor al, al
mov dword [ebx + 0x18], edi
jmp 0x406540
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.00407531
mov esi, dword [ebp - 0x8c]
lea edi, [ebp - 0x28]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x40654f
call fcn.00407613
push dword [ebx + 0x14]
push dword [ebx + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.004077f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], edi
lea ecx, [esi - 0x10]
call fcn.00401251
mov al, byte [ebp - 0x98]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a726
leave
ret
mov eax, dword [ebp - 0x28]
shr eax, 0xa
and al, 1
jne 0x40650c
mov ecx, dword [ebx + 0x18]
call fcn.00405110
test al, al
jne 0x40650c
lea ecx, [ebp - 0xbc]
call fcn.004030c0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push 0x42b3c4
push eax
call fcn.00402c20
add esp, 0x10
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xbc]
push 0xc0010000
push eax
call fcn.0040313d
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.00402d09
test bl, bl
je 0x4065cc
push ecx
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
call fcn.004039f7
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406605
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0xb], 0
je 0x406605
xor ecx, ecx
push ecx
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x94]
push ecx
push 2
push 0x42b118
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x98], 1
call fcn.00403106
jmp 0x406532