joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c710
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x1001c00b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1004a1b0]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x1004d3c8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.1000ecc5
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x1000c8fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000c7ae
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.1000e5e0
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.1000c400
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x1000c815
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x10046e48
push eax
call fcn.1000e937
add esp, 0xc
cmp eax, 1
jne 0x1000c815
mov eax, dword [ebp - 0x14]
mov dword [0x1004d3c8], eax
jmp 0x1000c8e5
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1000c82f
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1000c843
push ebx
push esi
call fcn.1000cb60
jmp 0x1000c845
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x1004d3c8], eax
test eax, eax
jne 0x1000c867
push 0x10047c48
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.1000e0ab
push eax
lea edx, [ebp + 0x84]
push 0x10046e48
push edx
mov edi, 1
call fcn.1000ed98
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.1000c540
test eax, eax
jne 0x1000c8de
push 0x10047c48
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.1000e0ab
call fcn.1000c5e0
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x1004d3c8]
test esi, esi
je 0x1000c8cf
call fcn.1000cc40
mov dword [0x1004d3c8], 0
jmp 0x1000c8d6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1000c8dc
ret
mov eax, dword [0x1004d3c8]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x1000c8fd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1004d3c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.1000d1af
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x1000c930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bf80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1004a1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x1004d3c8]
xor edi, edi
cmp ecx, edi
jne 0x1000c97b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1000c988
mov dword [ebp - 0x14], edi
jmp 0x1000c9a0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1000ca36
mov ecx, dword [0x1004d3c8]
mov eax, dword [ecx]
cmp eax, edi
je 0x1000c967
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000c967
mov ebx, 0x1004d3c8
mov dword [ebp - 4], edi
call fcn.1000ca50
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x1000c9de
push 0x10047c48
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.1000e0ab
mov ecx, dword [0x1004d3c8]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1000c9f8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x1000ca22
push 0x10047c48
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.1000e0ab
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000ca19
call fcn.1000cd60
mov eax, 0x1000ca1f
ret
mov eax, dword [0x1004d3c8]
mov eax, dword [eax]
test eax, eax
je 0x1000ca34
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ca50
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1000ca7d
xor ecx, ecx
jmp 0x1000ca89
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1000cb3d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1000cab0
mov dword [esp + 0xc], esi
jmp 0x1000cb10
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1000cb09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000cafc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1000cb10
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000cb10
push 0x10046e50
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000cb10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1000cb33
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1000caa2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1000cb51
mov ecx, dword [ebx]
add ecx, 8
call fcn.1000cc90
test eax, eax
je 0x1000cb51
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1000cb60
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1001bfdb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1004a1b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1000e5e0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1000cbf8
push 0x10047c48
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1000e0ab
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1000d1af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004a1b0]
jne 0x1000d1b9
repz ret
jmp fcn.1000f51d
Function at 0x1001864d
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.1000f7ca
and dword [ebp - 4], 0
cmp dword [0x1004c280], 0
mov ebx, eax
jne 0x100186fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100187af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100187af
push eax
call fcn.1000f758
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1004c280], eax
call esi
push eax
call fcn.1000f758
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1004c284], eax
call esi
push eax
call fcn.1000f758
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1004c288], eax
call esi
push eax
call fcn.1000f758
pop ecx
mov dword [0x1004c290], eax
test eax, eax
je 0x100186fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000f758
pop ecx
mov dword [0x1004c28c], eax
mov eax, dword [0x1004c28c]
cmp eax, ebx
je 0x10018756
cmp dword [0x1004c290], ebx
je 0x10018756
push eax
call fcn.1000f7d3
push dword [0x1004c290]
mov esi, eax
call fcn.1000f7d3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10018756
test edi, edi
je 0x10018756
call esi
test eax, eax
je 0x1001874d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001874d
test byte [ebp - 0xc], 1
jne 0x10018756
or dword [ebp + 0x10], 0x200000
jmp 0x1001878f
mov eax, dword [0x1004c284]
cmp eax, ebx
je 0x1001878f
push eax
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x1001878f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001878f
mov eax, dword [0x1004c288]
cmp eax, ebx
je 0x1001878f
push eax
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x1001878f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1004c280]
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x100187af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100187b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406968
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x14], ebx
mov dword [ebp - 0xc], esi
sete al
xor ecx, ecx
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 1], bl
sete cl
cmp eax, ecx
jne 0x406a23
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x406a22
cmp dword [esi + 0x78], ebx
jne 0x4069bd
mov byte [ebp - 1], 1
jmp 0x406a22
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x406a22
add eax, 2
push eax
call fcn.00427504
mov esi, eax
pop ecx
cmp esi, ebx
je 0x406a22
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x406a1b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0x10]
mov byte [esi + eax + 1], bl
cmp dword [ecx + 0x7c], 8
jb 0x406a05
mov eax, dword [ecx + 0x68]
jmp 0x406a08
lea eax, [ecx + 0x68]
push eax
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x10]
push esi
call fcn.00406790
mov byte [ebp - 1], al
push esi
call fcn.00428278
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x406a2c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
push edi
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov esi, ecx
call fcn.00428ce0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406ac3
cmp dword [esi + 0x28], 8
jb 0x406a7e
mov eax, dword [esi + 0x14]
jmp 0x406a81
lea eax, [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x43ebd0
push eax
call edi
test eax, eax
jne 0x406a9c
cmp dword [ebp - 0x7c], 5
sete al
jmp 0x406ac5
cmp dword [esi + 0x28], 8
jb 0x406aa7
mov esi, dword [esi + 0x14]
jmp 0x406aaa
add esi, 0x14
push 0x43ebc8
push esi
call edi
test eax, eax
jne 0x406abf
cmp dword [ebp - 0x7c], 5
setne al
jmp 0x406ac5
mov al, 1
jmp 0x406ac5
xor al, al
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.0042815f
add ebp, 0x98
leave
ret
Function at 0x408222
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
mov edi, ecx
mov byte [ebp - 1], bl
cmp dword [edi + 0x78], ebx
je 0x408312
cmp dword [edi + 0x60], 8
jb 0x408245
mov eax, dword [edi + 0x4c]
jmp 0x408248
lea eax, [edi + 0x4c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x408312
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x14], eax
call fcn.00427504
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x408308
push ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408308
cmp dword [ebp - 0x10], esi
jne 0x408308
mov eax, dword [ebp - 8]
mov byte [eax + esi], bl
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427504
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4082ff
push dword [ebp - 0x14]
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4082f8
cmp dword [edi + 0x7c], 8
jb 0x4082e9
mov eax, dword [edi + 0x68]
jmp 0x4082ec
lea eax, [edi + 0x68]
push eax
push esi
mov ecx, edi
call fcn.004081b5
mov byte [ebp - 1], al
push esi
call fcn.00428278
pop ecx
push dword [ebp - 8]
call fcn.00428278
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x4086e7
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
push edi
je 0x408830
push 8
pop ebx
cmp dword [esi + 0x44], ebx
jb 0x408703
mov eax, dword [esi + 0x30]
jmp 0x408706
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x43ec20
push eax
call edi
test eax, eax
jne 0x408755
cmp dword [esi + 0x60], ebx
jb 0x408722
mov eax, dword [esi + 0x4c]
jmp 0x408725
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40874e
cmp dword [esi + 0x60], ebx
jb 0x40873a
mov esi, dword [esi + 0x4c]
jmp 0x40873d
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40874e
inc eax
jmp 0x408832
xor eax, eax
jmp 0x408832
cmp dword [esi + 0x44], ebx
jb 0x40875f
mov eax, dword [esi + 0x30]
jmp 0x408762
lea eax, [esi + 0x30]
push str.folder
push eax
call edi
test eax, eax
jne 0x40878d
cmp dword [esi + 0x60], ebx
jb 0x408778
mov esi, dword [esi + 0x4c]
jmp 0x40877b
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x408832
cmp dword [esi + 0x44], ebx
jb 0x408797
mov eax, dword [esi + 0x30]
jmp 0x40879a
lea eax, [esi + 0x30]
push str.contentasutf
push eax
call edi
test eax, eax
jne 0x4087e4
cmp dword [esi + 0x60], ebx
jb 0x4087b0
mov eax, dword [esi + 0x4c]
jmp 0x4087b3
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408830
cmp dword [esi + 0x60], ebx
jb 0x4087c8
mov eax, dword [esi + 0x4c]
jmp 0x4087cb
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408830
push 0xfde9
mov ecx, esi
call fcn.00408222
jmp 0x408832
cmp dword [esi + 0x44], ebx
jb 0x4087ee
mov eax, dword [esi + 0x30]
jmp 0x4087f1
lea eax, [esi + 0x30]
push str.contentasansi
push eax
call edi
test eax, eax
jne 0x408830
cmp dword [esi + 0x60], ebx
jb 0x408807
mov eax, dword [esi + 0x4c]
jmp 0x40880a
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408830
cmp dword [esi + 0x60], ebx
jb 0x40881f
mov eax, dword [esi + 0x4c]
jmp 0x408822
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x408830
push eax
jmp 0x4087db
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x408e3e
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0xc68
lea ebp, [esp - 4]
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0xc68], eax
push 0x1c
mov eax, 0x43b1ca
call fcn.0042816e
mov edi, ecx
push 0x43ec64
lea ecx, [ebp + 0x1c]
call fcn.0040594d
and dword [ebp - 4], 0
push 0x43ec60
lea ecx, [ebp]
call fcn.0040594d
push 0
lea eax, [ebp + 0x1c]
lea ebx, [edi + 0x18]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00408c98
mov esi, eax
cmp esi, 0xffffffff
je 0x408f2a
lea eax, [ebp + 0x650]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408f83
lea eax, [ebp + 0x650]
add edi, 0x54
push eax
mov ecx, edi
call fcn.00405929
push esi
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00408c98
cmp eax, 0xffffffff
je 0x408ef9
mov ecx, dword [ebp + 0x30]
sub eax, ecx
sub eax, esi
push eax
add ecx, esi
push ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.00408e1c
mov byte [ebp - 4], 2
jmp 0x408f10
mov eax, dword [ebp + 0x30]
push 0xffffffffffffffff
add eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.00408e1c
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00405e81
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00405613
jmp 0x408f83
lea eax, [ebp + 0x38]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408f83
lea eax, [ebp + 0x650]
push eax
push 0
push 0x43ec58
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x408f83
lea eax, [ebp + 0x650]
add edi, 0x54
push eax
mov ecx, edi
call fcn.00405929
push 0x43ec4c
mov ecx, edi
call fcn.0040648e
lea eax, [ebp + 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp]
call fcn.00405613
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.00405613
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc68]
xor ecx, ebp
call fcn.0042815f
add ebp, 0xc6c
leave
ret

Function at 0x409466
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3e0], ebx
push edi
mov edi, edx
jle 0x4094a3
push 8
call fcn.00427b5b
pop ecx
cmp eax, ebx
je 0x40948a
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x40948c
xor eax, eax
push ebx
push ebx
push eax
push 0x40942d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x4094a7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x30b
lea eax, [ebp - 0x61c]
xor ebx, ebx
push eax
mov esi, ecx
push ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409593
push edi
push ebx
push ebx
push 3
push ebx
xor eax, eax
push 1
mov word [ebp - 6], ax
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409592
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 4], eax
jle 0x409519
mov dword [esi + 4], eax
cmp dword [esi + 8], eax
jle 0x409521
mov dword [esi + 8], eax
xor eax, eax
cmp byte [esi], bl
setne al
dec eax
and eax, 2
push eax
push ebx
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x409592
mov eax, dword [esi + 4]
cmp byte [esi + 0xc], bl
je 0x409546
inc eax
push eax
call fcn.00427504
pop ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x409592
push ebx
lea ecx, [ebp - 0x620]
push ecx
push dword [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409584
mov eax, dword [ebp - 0x620]
cmp eax, dword [esi + 4]
jne 0x409584
push dword [esi + 0x10]
call fcn.00428278
pop ecx
mov dword [esi + 0x10], ebx
jmp 0x409592
cmp byte [esi + 0xc], bl
je 0x409592
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov byte [eax + ecx], bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042815f
leave
ret

Function at 0x40963a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44b4fc], 0
je 0x409698
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00428ce0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov byte [0x44b4fc], 0
sbb al, al
inc al
mov byte [0x44d0d8], al
jmp 0x40969d
mov al, byte [0x44d0d8]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0042815f
add ebp, 0x98
leave
ret
Function at 0x409b37
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0xc]
mov dword [ebp - 0xc], edx
je 0x409bd8
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409bd6
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00427504
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x409bce
push esi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409bc5
cmp edi, dword [ebp - 8]
jne 0x409bc5
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.0040991b
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call fcn.00428278
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret