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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x748068]
xor eax, esp
mov dword [esp + 0x2e8], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esp + 8]
push 0x2e0
push 0
push eax
call fcn.00652810
add esp, 0xc
lea ecx, [esp + 8]
call fcn.004112a0
push str.E945DD3C_B2BB_4E5F_B090_5B1282E76E72
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x2c4], eax
test eax, eax
je 0x410305
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4102bc
push dword [esp + 0x2c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c4], 0
jmp 0x410305
lea ecx, [esp + 0xc]
call fcn.0041b120
test al, al
je 0x410305
lea ecx, [esp + 8]
call fcn.00413f10
test al, al
je 0x410305
lea ecx, [esp + 8]
call fcn.004134a0
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00405d30
lea ecx, [esp + 0x20]
call fcn.00413240
lea ecx, [esp + 8]
call fcn.00411bb0
lea ecx, [esp + 8]
call fcn.00412010
lea ecx, [esp + 8]
call fcn.00411450
mov ecx, dword [esp + 0x2ec]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 0x10

Function at 0x410330
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x41035b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x410344
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x414e60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x414e91
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x414e80
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x41b890
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x685381
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x748068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.00406ff0
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.00406ff0
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x30]
call fcn.00406ff0
lea eax, [esi + 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x48]
call fcn.00406ff0
lea eax, [esi + 0x60]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x60]
call fcn.00406ff0
lea eax, [esi + 0x78]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x78]
call fcn.00406ff0
lea eax, [esi + 0x90]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0x90]
call fcn.00406ff0
lea eax, [esi + 0xa8]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0xa8]
call fcn.00406ff0
lea eax, [esi + 0xc0]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0xc0]
call fcn.00406ff0
lea eax, [esi + 0xd8]
mov byte [ebp - 4], 8
push eax
lea ecx, [edi + 0xd8]
call fcn.00406ff0
lea eax, [esi + 0xf0]
mov byte [ebp - 4], 9
push eax
lea ecx, [edi + 0xf0]
call fcn.00406ff0
lea eax, [esi + 0x108]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [edi + 0x108]
call fcn.00406ff0
lea eax, [esi + 0x120]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [edi + 0x120]
call fcn.00406ff0
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [edi + 0x138]
call fcn.00406ff0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41c1c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68559c
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x110
lea eax, [ebp - 0x124]
mov dword [ebp - 0x12c], 0
push 0
push eax
call fcn.00652810
add esp, 0xc
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41c30e
cmp dword [ebp - 0x124], 6
jb 0x41c30e
push 6
xor eax, eax
mov dword [ebp - 0x14c], 0
push str.Progid
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
call fcn.00405ec0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x144]
push 0x4d
xor eax, eax
mov dword [ebp - 0x12c], 1
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
call fcn.00405ec0
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], 1
push esi
push eax
lea edx, [ebp - 0x144]
mov dword [ebp - 0x12c], 3
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.0041bf30
add esp, 8
test al, al
je 0x41c2e4
cmp dword [esi + 0x10], 0
je 0x41c2e4
mov bl, 1
jmp 0x41c2e6
xor bl, bl
lea ecx, [ebp - 0x144]
call fcn.00405e50
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 0xffffffff
call fcn.00405e50
test bl, bl
je 0x41c30e
mov al, 1
jmp 0x41c4a2
xor eax, eax
mov dword [ebp - 0x134], 0
push eax
push 0x6cbab0
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
call fcn.00405ec0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x15c]
push 0x17
xor eax, eax
mov dword [ebp - 0x12c], 4
push str.http_shellopencommand
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
call fcn.00405ec0
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 3
push esi
push eax
lea edx, [ebp - 0x15c]
mov dword [ebp - 0x12c], 0xc
mov ecx, SysReAllocString
call fcn.0041bf30
add esp, 8
test al, al
je 0x41c3b6
cmp dword [esi + 0x10], 0
je 0x41c3b6
mov bl, 1
jmp 0x41c3b8
xor bl, bl
lea ecx, [ebp - 0x15c]
call fcn.00405e50
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.00405e50
test bl, bl
jne 0x41c307
xor eax, eax
mov dword [ebp - 0x17c], 0
push eax
push 0x6cbab0
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x178], 7
mov word [ebp - 0x18c], ax
call fcn.00405ec0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x174]
push 0x16
xor eax, eax
mov dword [ebp - 0x12c], 0x10
push str.SoftwareClasses.html
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 7
mov word [ebp - 0x174], ax
call fcn.00405ec0
lea eax, [ebp - 0x18c]
mov dword [ebp - 4], 5
push esi
push eax
lea edx, [ebp - 0x174]
mov dword [ebp - 0x12c], 0x30
mov ecx, reloc.gdiplus.dll_Ordinal_1
call fcn.0041bf30
add esp, 8
test al, al
je 0x41c485
cmp dword [esi + 0x10], 0
je 0x41c485
mov bl, 1
jmp 0x41c487
xor bl, bl
lea ecx, [ebp - 0x174]
call fcn.00405e50
lea ecx, [ebp - 0x18c]
call fcn.00405e50
test bl, bl
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret
Function at 0x41d060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push 0x105
push ecx
push 0x756460
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push 0x756460
call edi
mov ebx, eax
push ebx
call edi
mov esi, eax
mov ax, word [0x756460]
test ax, ax
je 0x41d0a7
cmp word [ebx], 0x3a
jne 0x41d0a7
cmp word [ebx + 2], 0x5c
jne 0x41d0a7
push esi
call edi
mov esi, eax
jmp 0x41d0f8
cmp ax, 0x5c
jne 0x41d0e5
cmp word [0x756462], ax
jne 0x41d0e5
mov ebx, 2
nop dword [eax + eax]
movzx eax, word [esi]
dec ebx
test ax, ax
je 0x41d0eb
mov ecx, eax
nop dword [eax + eax]
cmp cx, 0x5c
je 0x41d0eb
push esi
call edi
mov esi, eax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x41d0d0
pop edi
pop esi
xor al, al
pop ebx
ret
cmp word [esi], 0
je 0x41d0e5
add esi, 2
test ebx, ebx
jne 0x41d0c0
test esi, esi
je 0x41d0e5
mov ecx, esi
call fcn.0041cf00
movzx eax, word [esi]
test ax, ax
je 0x41d0e5
cmp eax, 0x5c
je 0x41d0e5
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, 0x756460
push 0x756460
sar esi, 1
call ebx
mov edi, dword [sym.imp.USER32.dll_CharPrevW]
cmp eax, esi
jle 0x41d188
nop
push 0x756210
push 0x756460
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x41d155
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x756210], 0x10
je 0x41d0e5
push 0x756460
call ebx
lea eax, [eax*2 + 0x756460]
cmp word [eax], 0x5c
je 0x41d178
push eax
push 0x756460
call edi
cmp eax, 0x756460
ja 0x41d163
xor ecx, ecx
push 0x756460
mov word [eax], cx
call ebx
cmp eax, esi
jg 0x41d130
push 0x756460
call ebx
lea eax, [eax*2 + 0x756460]
push eax
push 0x756460
call edi
cmp word [eax], 0x5c
je 0x41d1b4
push 0x6ccbc0
push 0x756460
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x756460
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d0e5
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x41e750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x685a70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x748068]
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 0x41e858
cmp byte [eax + 0x54], 0
je 0x41e858
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.0041d990
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
call fcn.00405ca0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e82c
push 0
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.0043a010
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x38]
call fcn.00405e20
push 0
lea ecx, [ebp - 0x20]
push ecx
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x38]
push eax
call fcn.00414af0
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
lea ecx, [ebp - 0x38]
call fcn.00405da0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x41e851
cmp byte [ebp - 0x18], 0
je 0x41e851
mov eax, dword [esi]
test eax, eax
je 0x41e84d
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.0064fb08
mov esp, ebp
pop ebp
ret 4
Function at 0x41fbd0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68604d
mov eax, dword fs:[0]
push eax
mov eax, 0x112c
call fcn.00650b20
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x1138], esi
mov dword [ebp - 0x1134], 0
call fcn.00405d80
mov dword [ebp - 4], 0
push 1
mov dword [ebp - 0x1134], 1
mov dword [ebp - 0x1014], 0
call fcn.0064fb19
mov dword [ebp - 0x1014], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp - 0x112c]
push eax
call fcn.00652810
add esp, 0x10
mov dword [ebp - 0x1130], 0x11c
lea eax, [ebp - 0x1130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41fc8f
cmp dword [ebp - 0x112c], 6
mov eax, dword [ebp - 0x1014]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1014]
call fcn.00444af0
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00652810
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41fcec
lea eax, [ebp - 0x1010]
push eax
call fcn.004060d0
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.00405ec0
lea ecx, [ebp - 0x1014]
call fcn.00444e00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1014]
call fcn.00444430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 4
Function at 0x4262e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x687276
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
call fcn.00405d80
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00405d80
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00405d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x48], 2
call fcn.00405d80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
push str.2345PCSafe
call fcn.00405d30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00405e20
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x426388
lea ecx, [ebp - 0x5c]
call fcn.00405e20
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x42637c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405ec0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00405ce0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00432bf0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
push str.2345SoftMgr
call fcn.00405d30
mov byte [ebp - 4], 7
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004354c0
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, esi
push eax
call fcn.00405cf0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7c]
call fcn.00405ce0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
call fcn.00405ce0
push str.2345SoftMgr.exe
lea ecx, [ebp - 0x5c]
call fcn.00405d30
mov byte [ebp - 4], 9
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004354c0
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x18]
push eax
call fcn.00405cf0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x7c]
call fcn.00405ce0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
call fcn.00405ce0
push 0x6cef14
lea ecx, [ebp - 0x5c]
call fcn.00405d30
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004354c0
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x30]
push eax
call fcn.00405cf0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x7c]
call fcn.00405ce0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
call fcn.00405ce0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00405ce0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00405ce0
mov dword [ebp - 4], 0xffffffff
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 - 0x14]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 4
Function at 0x427770
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6875e1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
call fcn.00405d80
mov dword [ebp - 4], 0
mov ecx, esi
push 0
mov dword [ebp - 0x2c], 1
call fcn.00405ca0
push eax
push str._s._d.del
push edi
call fcn.004304b0
add esp, 0x10
mov ecx, edi
call fcn.00405c90
test al, al
jne 0x427864
push edi
lea ecx, [ebp - 0x28]
call fcn.00406ff0
mov dword [ebp - 4], 1
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.004352c0
lea ecx, [ebp - 0x28]
call fcn.00455fd0
cmp eax, 0xffffffff
je 0x427858
test al, 0x10
je 0x427858
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405ce0
mov ecx, edi
call fcn.00405c90
test al, al
jne 0x427864
mov ecx, edi
call fcn.00456230
test al, al
je 0x427844
mov ecx, edi
call fcn.00436900
test al, al
je 0x427864
push 4
push 0
mov ecx, edi
call fcn.00405ca0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x427864
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405ce0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret 8
Function at 0x4361b0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x748068]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.00652810
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4362f2
cmp dword [esi + 4], 6
push edi
ja 0x436206
jne 0x43628e
cmp dword [esi + 8], 2
jb 0x43628e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x43628e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43628e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43628e
movups xmm0, xmmword [0x6ddf18]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x6ddf28]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x43628e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43628e
cmp word [edi + 2], ax
jbe 0x43628e
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 0x4362d9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00652810
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x4362d9
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.0064fb08
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0064fb08
add esp, 0x140
ret
Function at 0x436b90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x689c00
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x748068]
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
call fcn.00405c90
test al, al
je 0x436bcd
xor al, al
jmp 0x436d79
mov ecx, edi
call fcn.00436a10
test al, al
je 0x436bdf
mov al, 1
jmp 0x436d79
push 0
mov ecx, edi
call fcn.00405ca0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x436c2e
lea ecx, [ebp - 0x28]
call fcn.00405d80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00456680
test al, al
je 0x436c1f
push 0
lea ecx, [ebp - 0x28]
call fcn.00405ca0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405ce0
mov ecx, edi
call fcn.00436a10
test al, al
jne 0x436bd8
mov ecx, edi
call fcn.00405eb0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x436d1e
mov ecx, edi
call fcn.00405e20
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x436c62
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x436c85
mov eax, ebx
cmp ecx, 8
jb 0x436c7b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x436d0e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040c900
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405c90
test al, al
jne 0x436cff
lea ecx, [ebp - 0x28]
call fcn.00436800
test al, al
jne 0x436cff
push 0
lea ecx, [ebp - 0x28]
call fcn.00405ca0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436cff
lea ecx, [ebp - 0x40]
call fcn.00405d80
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00456680
test al, al
je 0x436cf3
push 0
lea ecx, [ebp - 0x40]
call fcn.00405ca0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405ce0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x436c56
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.00436800
test al, al
jne 0x436d72
push 0
mov ecx, edi
call fcn.00405ca0
push eax
call ebx
test eax, eax
jne 0x436d72
lea ecx, [ebp - 0x40]
call fcn.00405d80
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00456680
test al, al
je 0x436d63
push 0
lea ecx, [ebp - 0x40]
call fcn.00405ca0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405ce0
mov ecx, edi
call fcn.00436a10
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.0064fb08
mov esp, ebp
pop ebp
ret
Function at 0x438370
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a008
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x748068]
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 esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x4383ab
xor al, al
jmp 0x43844e
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x4383c7
mov eax, dword [edi]
test eax, eax
je 0x4383c7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x43842b
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x437f10
push 0
push 0
call fcn.00660be6
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x43846a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x438423
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004380e0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43844c
mov eax, dword [edi]
test eax, eax
je 0x438445
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0064fb08
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x438482
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x43840d
mov bl, 1
jmp 0x43842d
Function at 0x4388b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x716238
push 0x652cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x748068]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], 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 - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.0041cd30
mov ecx, edi
call fcn.004389d0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x438943
test bl, bl
jne 0x4389b2
cmp edi, 0x1a
jne 0x4389b2
mov ecx, esi
call fcn.0041cd30
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.00652810
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push 0x6ddf54
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.004060d0
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00405ec0
mov ecx, esi
call fcn.00405c90
movzx ebx, bl
mov ecx, 1
test al, al
cmove 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 - 0x1c]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
ret