joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444b14
Capabilities:
Create thread

Disassembly:
push 0x5c
mov eax, 0x4531c5
call fcn.0041c1cd
cmp byte [0x4995e5], 0
jne 0x444b91
xor esi, esi
lea eax, [ebp - 0x48]
push eax
push esi
push 0x4991e0
push 0x40309d
push esi
push esi
mov dword [0x499550], esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], esi
call fcn.0044af10
or dword [ebp - 4], 0xffffffff
mov dword [0x499550], eax
jmp 0x444b6a
cmp dword [ebp - 0x48], 0
je 0x444b88
push esi
push esi
push 0x502
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x499550], 0
je 0x444b97
call fcn.0041c11f
ret
lea ecx, [ebp - 0x2c]
call fcn.0040215b
mov dword [ebp - 4], 2
call fcn.004070a4
test al, al
lea eax, [ebp - 0x44]
je 0x444bd7
push 0x2b
push 0x13
push eax
call fcn.0044408d
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401b93
lea ecx, [ebp - 0x44]
call fcn.004022e0
lea ecx, [ebp - 0x2c]
call fcn.00449d79
jmp 0x444bf2
push 0x29
push 0x11
push eax
call fcn.0044408d
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401b93
lea ecx, [ebp - 0x44]
call fcn.004022e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405544
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x68]
call fcn.00404af6
push 0x46dacc
lea eax, [ebp - 0x68]
push eax
call fcn.0041f1de
int3

Function at 0x444c1d
Capabilities:
Create thread

Disassembly:
push esi
call fcn.0042222f
cmp byte [0x4995e5], 0
mov esi, eax
jne 0x444c7a
cmp dword [0x49954c], 0
jne 0x444c7a
cmp word [0x4995ee], 3
push edi
mov edi, 0x4995e8
jne 0x444c5e
mov ecx, edi
call fcn.0040228e
test al, 1
je 0x444c5e
mov eax, dword [0x4992f0]
shr eax, 9
test al, 1
je 0x444c79
push 0x499554
xor eax, eax
push eax
push edi
push 0x405896
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x499558], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x444d44
Capabilities:
Check mutex on windows

Disassembly:
push 0x64
mov eax, 0x453255
call fcn.0041c161
mov eax, dword [0x4992f0]
shr eax, 0xe
test al, 1
je 0x444de7
push 0x4991f8
lea ecx, [ebp - 0x28]
call fcn.00405607
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0x4676f0
call fcn.00401b54
push 0x4676b8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401b54
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.0040a340
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004025c7
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004025c7
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x49955c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x444ded
lea ecx, [ebp - 0x28]
call fcn.004025c7
call fcn.0041c110
ret
push 0x2e
push 0x29
lea eax, [ebp - 0x70]
push eax
call fcn.0044408d
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00449d79
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405544
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x50]
call fcn.00404af6
push 0x46dacc
lea eax, [ebp - 0x50]
push eax
call fcn.0041f1de
int3

Function at 0x445257
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x499220], 0
push esi
mov esi, 0x499210
jne 0x445372
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.004022f0
cmp dword [0x499224], 7
mov eax, esi
cmova eax, dword [0x499210]
xor ebx, ebx
push ebx
push eax
call fcn.00426ec8
pop ecx
pop ecx
test eax, eax
je 0x4452d0
push 0x460bc4
mov ecx, esi
call fcn.004022f0
mov ecx, esi
call fcn.004089a8
cmp dword [0x499220], ebx
je 0x4452f5
cmp dword [0x499224], 7
mov eax, esi
push ebx
cmova eax, dword [0x499210]
push eax
call fcn.00426ec8
pop ecx
pop ecx
test eax, eax
je 0x445308
push str.TEMP
call fcn.00427913
pop ecx
push eax
mov ecx, esi
call fcn.004022f0
cmp dword [0x499220], ebx
je 0x44532d
cmp dword [0x499224], 7
mov eax, esi
push ebx
cmova eax, dword [0x499210]
push eax
call fcn.00426ec8
pop ecx
pop ecx
test eax, eax
je 0x445340
push 0x4676e8
call fcn.00427913
pop ecx
push eax
mov ecx, esi
call fcn.004022f0
cmp dword [0x499220], ebx
je 0x445365
cmp dword [0x499224], 7
mov eax, esi
push ebx
cmova eax, dword [0x499210]
push eax
call fcn.00426ec8
pop ecx
pop ecx
test eax, eax
je 0x445371
push 0x4991e0
mov ecx, esi
call fcn.0040563d
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b825
leave
ret
Function at 0x4490bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [esi + 0xc], 0x201
jne 0x4491ae
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041d550
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x44b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], eax
xor eax, eax
push 7
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
lea edi, [ebp - 0x234]
pop ecx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x238], 5
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [ebx + 0xb8]
pop edi
cmp eax, dword [ebx + 0xbc]
je 0x4491b1
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4491b1
and dword [eax], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b825
leave
ret 0xc
Function at 0x44e9d0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x44e9ed
mov eax, dword [esi]
test eax, eax
je 0x44eb11
cmp word [eax], 0
je 0x44eb11
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44eb11
test al, 0x10
jne 0x44eb11
cmp dword [esi + 0x14], 7
jbe 0x44ea1f
mov esi, dword [esi]
push 0x467710
push esi
call fcn.00421be3
mov esi, eax
add esp, 8
test esi, esi
je 0x44eb11
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.0042930b
push 2
push 0
push esi
call fcn.0042898c
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0042930b
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00429842
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x44eb08
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.00427f75
add esp, 0x10
test eax, eax
je 0x44eb08
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x44eb08
cmp dword [esp + 0x20], 0x48535844
jne 0x44eb08
cmp dword [esp + 0x24], 0x28
jne 0x44eb08
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.00422021
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5a800c]
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 eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4064d6
cmp byte [eax + 0x54], 0
je 0x4064d6
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.004051f0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4064aa
push 0
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.004202c0
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x406498
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40648e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40648e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005597ea
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4064cf
cmp byte [ebp - 0x18], 0
je 0x4064cf
mov eax, dword [esi]
test eax, eax
je 0x4064cb
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
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.0055929f
mov esp, ebp
pop ebp
ret 4
Function at 0x41b030
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f270
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5a800c]
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
mov ebx, ecx
call fcn.00402520
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x41b071
xor al, al
jmp 0x41b211
call fcn.0041aaf0
test al, al
je 0x41b081
mov al, 1
jmp 0x41b211
push 0
mov ecx, ebx
call fcn.004023c0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x41b0cf
lea ecx, [ebp - 0x28]
call fcn.00402410
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.0042cbb0
test al, al
je 0x41b0c0
push 0
lea ecx, [ebp - 0x28]
call fcn.004023c0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
mov ecx, ebx
call fcn.0041aaf0
test al, al
jne 0x41b07a
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x41b1b1
nop word [eax + eax]
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x41b0fc
mov eax, dword [edi]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x41b11f
mov eax, edi
cmp ecx, 8
jb 0x41b115
mov eax, dword [edi]
cmp dx, word [eax + esi*2]
jne 0x41b1a7
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0040f870
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402520
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41b198
call fcn.0041a910
test al, al
jne 0x41b198
push 0
lea ecx, [ebp - 0x28]
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41b198
lea ecx, [ebp - 0x40]
call fcn.00402410
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.0042cbb0
test al, al
je 0x41b18c
push 0
lea ecx, [ebp - 0x40]
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x41b0f0
mov ecx, ebx
call fcn.0041a910
test al, al
jne 0x41b20a
push 0
mov ecx, ebx
call fcn.004023c0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x41b20a
lea ecx, [ebp - 0x40]
call fcn.00402410
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, ebx
call fcn.0042cbb0
test al, al
je 0x41b1fb
push 0
lea ecx, [ebp - 0x40]
call fcn.004023c0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402400
mov ecx, ebx
call fcn.0041aaf0
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.0055929f
mov esp, ebp
pop ebp
ret
Function at 0x41bae0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x41c
mov eax, dword [0x5a800c]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
mov esi, ecx
call fcn.00402520
mov dword [esp + 4], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x41bb13
mov eax, dword [eax]
lea edx, [esp + 4]
mov ecx, eax
call fcn.00402890
push 0x412
lea eax, [esp + 0xc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x41bb5e
xor al, al
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0055929f
add esp, 0x41c
ret
cmp eax, 0x208
jae 0x41bb46
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x418], ax
call fcn.004028c0
push eax
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00402610
mov ecx, dword [esp + 0x41c]
mov al, 1
pop esi
xor ecx, esp
call fcn.0055929f
add esp, 0x41c
ret

Function at 0x41c130
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f4a8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5a800c]
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
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41c173
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0042fa80
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41c19c
lea edx, [esi + 8]
jmp 0x41c19e
xor edx, edx
mov ecx, ebx
call fcn.00402520
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41c1b3
call fcn.004023c0
jmp 0x41c1b5
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x41c1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41c1d6
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41c1ff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41c214
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.005597ea
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.0055929f
mov esp, ebp
pop ebp
ret 4
Function at 0x41c250
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5a800c]
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
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x41c296
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0042fb40
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41c2c0
lea ebx, [esi + 8]
jmp 0x41c2c2
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00402520
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0
je 0x41c2dc
call fcn.004023c0
jmp 0x41c2de
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x41c329
call ecx
cmp eax, 5
jne 0x41c323
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x41c315
mov ecx, dword [ebp - 0x18]
call fcn.004023c0
jmp 0x41c317
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x41c347
call ecx
cmp eax, 0xb7
jne 0x41c33c
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.0042e4c0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41c36d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41c382
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.005597ea
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.0055929f
mov esp, ebp
pop ebp
ret 4
Function at 0x420fc0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x5a800c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x421102
cmp dword [esi + 4], 6
push edi
ja 0x421016
jne 0x42109e
cmp dword [esi + 8], 2
jb 0x42109e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x42109e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42109e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42109e
movups xmm0, xmmword [0x57fc28]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x57fc38]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x42109e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42109e
cmp word [edi + 2], ax
jbe 0x42109e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4210e9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x4210e9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0055929f
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0055929f
add esp, 0x140
ret
Function at 0x421670
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x594180
push 0x559c7d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5a800c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00402520
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4216e2
mov eax, dword [eax]
lea edx, [ebp - 0x24]
mov ecx, eax
call fcn.00402890
mov edx, esi
mov ecx, edi
call fcn.004217d0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x42171e
test bl, bl
jne 0x42179f
cmp edi, 0x1a
jne 0x42179f
mov ecx, esi
call fcn.00402520
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x421744
mov eax, dword [eax]
lea edx, [ebp - 0x20]
mov ecx, eax
call fcn.00402890
push 0x410
push 0
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
call fcn.004028c0
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00402610
mov ecx, esi
call fcn.00402520
movzx ebx, bl
mov ecx, 1
cmp dword [eax + 0x10], 0
cmovne ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0055929f
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x421a50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fe21
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a800c]
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
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov ecx, edi
mov dword [ebp - 0x2c], 0
call fcn.00402520
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x421a9d
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x421ab4
mov eax, edx
cmp word [eax], 0x25
je 0x421ae8
add eax, 2
sub ecx, 1
jne 0x421aa6
push edi
mov ecx, esi
call fcn.00402430
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
mov eax, esi
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.0055929f
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x421ab4
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x421ab4
push edi
lea ecx, [ebp - 0x28]
call fcn.00402430
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x421b3b
push edi
mov ecx, esi
call fcn.00402430
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402400
jmp 0x421aca
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00559a74
mov edx, dword [ebp - 0x30]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x421b8d
cmp eax, dword [ebp - 0x30]
ja 0x421b8d
xor ecx, ecx
mov word [ebx + eax*2], cx
mov ecx, ebx
call fcn.004028c0
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402610
push ebx
call fcn.00559c78
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00405080
jmp 0x421b26