joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406390
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x218], ecx
push eax
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x4065a0
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x4065a0
push edi
mov edi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x208]
call edi
cmp eax, 0xea
jne 0x406583
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x406583
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
imul eax, eax, 0x29c
push esi
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x4064b3
push 0x29c
push 0
push esi
call fcn.0040b3f0
mov eax, dword [ebp - 0x214]
add esp, 0xc
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x208]
call edi
test eax, eax
je 0x4064d2
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a12a
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [ebp - 0x20c], ebx
jbe 0x406544
mov edi, esi
nop
mov eax, dword [edi + 0x28c]
cmp eax, 4
je 0x40652f
cmp eax, 0x3e8
je 0x40652f
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x40652f
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40652f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 0x29c
cmp ebx, dword [ebp - 0x20c]
jb 0x4064e0
mov esi, dword [ebp - 0x21c]
push 0
push 1
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a12a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a12a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0040a12a
mov esp, ebp
pop ebp
ret
Function at 0x4073d0
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x40744a
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x426768
call ebx
xor ecx, ecx
add eax, 0x20
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00410c6a
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x40745d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a12a
mov esp, ebp
pop ebp
ret
push 0x426768
call ebx
add eax, 0x20
push eax
push 2
push edi
call fcn.0040b3f0
mov edi, dword [ebp - 0xc]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
push 0
push 0
push edi
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x426768
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push edi
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.00410c4f
add esp, 4
push 0x426768
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
cmp dword [ebp - 8], eax
jne 0x40744a
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a12a
mov esp, ebp
pop ebp
ret
Function at 0x40a92f
Capabilities:
Parse pe header

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

Function at 0x4125f6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420788
push 0x420780
push str.FlsAlloc
push 0x1f
call fcn.004124b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41262a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f2a8]
call esi
jmp 0x412630
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412674
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420798
push 0x420790
push str.FlsGetValue
push 0x21
call fcn.004124b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4126ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f2a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4126b3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4207a0
push 0x420798
push str.FlsSetValue
push 0x22
call fcn.004124b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4126ed
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41f2a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x415da4
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 0x415e41
push ebx
push esi
call fcn.00415d6d
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.00415d01
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415dee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415e40
push edi
push eax
call fcn.00412da5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415e0e
call fcn.00412348
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415e3f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415d01
add esp, 0x20
test eax, eax
jne 0x415e2d
push edi
call fcn.00412348
jmp 0x415e35
push ebx
call fcn.00412348
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 0x41e0f0
Capabilities:
Parse pe header

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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406203
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x280], esi
xorps xmm0, xmm0
mov dword [ebp - 0x27c], 1
movups xmmword [esi], xmm0
push 0x20
movups xmmword [esi + 0x10], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00405098
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
push dword [esi + 4]
mov dword [esi + 0x18], 7
push 0x10
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
call fcn.00404310
push 0
mov dword [ebp - 4], 2
push 2
mov dword [ebp - 0x27c], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x401dd8
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401dd1
nop
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403d40
lea edx, [ebp - 0x44]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401690
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x288]
mov ecx, esi
push eax
call fcn.00404790
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x401d6f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401d65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401df8
push ecx
push edx
call fcn.004051dd
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 7
jbe 0x401dbb
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401db1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401df8
push ecx
push edx
call fcn.004051dd
add esp, 8
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401d00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040508a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x402b60
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4066ec
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x101
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x402d2e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00403d40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x270]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
push str.runneradmin
movq qword [ebp - 0x224], xmm0
call fcn.00403d40
push str.Lain
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.00403d40
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
push ecx
lea eax, [ebp - 0x240]
push eax
push ecx
lea ecx, [ebp - 0x224]
call fcn.00403480
push 0x403ce0
push 2
push 0x18
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 4
push eax
call fcn.004050c8
mov edi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x240]
cmp edi, dword [ebp - 0x220]
je 0x402ce7
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x402c5f
mov eax, dword [edi]
cmp dword [ebp - 0x22c], 7
lea esi, [ebp - 0x240]
mov ecx, dword [ebp - 0x230]
cmova esi, ebx
cmp ecx, dword [edi + 0x10]
jne 0x402cd8
mov edx, ecx
test edx, edx
je 0x402c93
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x402cd8
add eax, 2
sub edx, 1
jne 0x402c82
lea ecx, [ebp - 0x224]
call fcn.00404140
mov eax, dword [ebp - 0x22c]
cmp eax, 7
jbe 0x402cd4
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x402cca
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d1e
push ecx
push ebx
call fcn.004051dd
add esp, 8
mov al, 1
jmp 0x402d30
add edi, 0x18
cmp edi, dword [ebp - 0x220]
jne 0x402c55
lea ecx, [ebp - 0x224]
call fcn.00404140
mov eax, dword [ebp - 0x22c]
cmp eax, 7
jbe 0x402d2e
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x402d24
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402d24
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.004051dd
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040508a
mov esp, ebp
pop ebp
ret
Function at 0x405a8e
Capabilities:
Parse pe header

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

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x7ffe82de
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push 0x40
push 0x3000
push 0xb68df7
push 0
call dword [sym.imp.kernel32_VirtualAlloc]
push 0x8000
push 0
push eax
call dword [sym.imp.kernel32_VirtualFree]
inc esi
dec esi
stc
stc
add al, 0
cld
push esi
push edi
push ebx
cld
mov esi, 0x7fff65e0
clc
cld
cld
xor ecx, ecx
nop
mov cl, 0x1e
pushal
inc eax
popal
cld
xor byte [ecx + esi], 0xe2
loop 0x7ffe831c
cld
mov cl, 0xff
nop
push esi
loop 0x7ffe8326
cld
add al, 4
sub al, 4
clc
push dword fs:[0x24]
clc
pop dword [esi + 0xa]
inc esi
dec esi
xor eax, ecx
xor eax, ecx
mov dword [esi + 0x11], 0xffff3e55
not eax
not eax
mov edi, dword fs:[0x30]
pushf
popf
mov ebx, dword [edi + 0x2c]
nop
lea esp, [esp]
cld
mov dword [esi + 0x1b], ebx
clc
push eax
pop eax
mov dword [0x7fff66e0], ebx
nop
push es
pop ds
inc esi
dec esi
cld
mov dword [edi + 0x2c], esp
push bx
inc esp
inc esp
nop
push 0
push es
pop ds
cld
push 0
push 0
nop
push 0
push 0x1d
clc
stc
and al, 0xff
clc
push 0x1a
xor eax, ecx
xor eax, ecx
clc
push 0
stc
push 0
add eax, 0
push 0
push bx
inc esp
inc esp
and al, 0xff
mov edi, 0x7ffe83d0
push edi
clc
stc
push edi
nop
push 0
push edx
cdq
pop edx
call dword [sym.imp.user32.dll_CreateWindowExA]
lea esp, [esp]
push eax
pop eax
add esp, 0x3f8
pop ebx
pop edi
pop esi
cld
add eax, 0
xor eax, eax
inc eax
ret 0xc
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b008]
jne 0x40100a
repz ret
jmp fcn.00401a2c

Function at 0x40569b
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.00403053
and dword [ebp - 4], 0
cmp dword [0x41ce74], 0
mov ebx, eax
jne 0x40574c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4057fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4057fd
push eax
call fcn.00402fe1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ce74], eax
call esi
push eax
call fcn.00402fe1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ce78], eax
call esi
push eax
call fcn.00402fe1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41ce7c], eax
call esi
push eax
call fcn.00402fe1
pop ecx
mov dword [0x41ce84], eax
test eax, eax
je 0x40574c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402fe1
pop ecx
mov dword [0x41ce80], eax
mov eax, dword [0x41ce80]
cmp eax, ebx
je 0x4057a4
cmp dword [0x41ce84], ebx
je 0x4057a4
push eax
call fcn.0040305c
push dword [0x41ce84]
mov esi, eax
call fcn.0040305c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4057a4
test edi, edi
je 0x4057a4
call esi
test eax, eax
je 0x40579b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40579b
test byte [ebp - 0xc], 1
jne 0x4057a4
or dword [ebp + 0x10], 0x200000
jmp 0x4057dd
mov eax, dword [0x41ce78]
cmp eax, ebx
je 0x4057dd
push eax
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057dd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4057dd
mov eax, dword [0x41ce7c]
cmp eax, ebx
je 0x4057dd
push eax
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ce74]
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4057ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417380
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2b1af6c]
push ebx
push esi
mov esi, dword [0x2b1adb4]
mov ebx, eax
cmp eax, 0x5dd
jne 0x4173ba
push 0
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x41bef0]
call fcn.00417220
cmp dword [0x2b1af6c], 0x2f
jne 0x4173d5
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.00417260
add esp, 4
cmp dword [0x2b1af6c], 0x568
pop esi
pop ebx
jne 0x417403
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov ecx, dword [ebp - 0x408]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x401144
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.00401000
push 0x40c
xor ebx, ebx
mov dword [ebp - 0x414], 0x22
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00401de0
add esp, 0xc
lea eax, [ebp - 0x412]
mov esi, 0x207
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401259
cmp eax, esi
jae 0x401259
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x412]
push eax
call esi
lea eax, [ebp - 0x412]
push eax
call esi
push str.GoogleUpdate.exe
lea eax, [ebp - 0x412]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x401259
push str.___ondemand
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.00401046
test eax, eax
js 0x40125e
push edi
push 0x40
lea eax, [ebp - 0x464]
mov dword [ebp - 0x468], 0x44
push ebx
push eax
call fcn.00401de0
xor eax, eax
lea edi, [ebp - 0x424]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x401259
push dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x420]
call esi
xor eax, eax
jmp 0x40125e
call fcn.0040102b
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004014b9
leave
ret 0x10
Function at 0x406a1f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406a6a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406c40
test al, al
jne 0x406a64
sub edx, 2
cmp edx, edi
jne 0x406a4a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406a8c
lea eax, [edi + 2]
cmp edx, eax
je 0x406a8c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040696b
add esp, 0x10
jmp 0x406b86
push esi
lea ecx, [ebp - 0x255]
call fcn.00406c40
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406acf
push dword [ebp - 0x25c]
jmp 0x406a7c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406b0c
cmp word [ebp - 0x226], 0
je 0x406b2d
cmp word [ebp - 0x226], ax
jne 0x406b0c
cmp word [ebp - 0x224], 0
je 0x406b2d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040696b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406b79
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406ae6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x406b61
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406b86
push 0x40679b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409760
add esp, 0x10
jmp 0x406b56
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004014b9
leave
ret

Function at 0x408627
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fe04
push 0x40fdfc
push str.FlsAlloc
push 0x1e
call fcn.00408564
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40865b
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
jmp 0x408661
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4086a5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fe14
push 0x40fe0c
push str.FlsGetValue
push 0x20
call fcn.00408564
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4086dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]