joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4368b6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
call fcn.00436882
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
pop edi
je 0x436916
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x436911
cmp eax, 5
jne 0x436916
push 1
pop eax
jmp 0x436918
xor eax, eax
leave
ret 4

Function at 0x436a50
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], 1
call edi
lea eax, [eax + eax + 4]
push eax
call fcn.00454b4e
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48c2b8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x436ad1
cmp word [ebx], 0x5c
jne 0x436ac3
and word [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x436abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x436acc
mov word [ebx], 0x5c
inc ebx
inc ebx
inc ebp
cmp ebp, edi
jb 0x436a9a
jmp 0x436ad1
and dword [esp + 0x10], 0
push esi
call fcn.0043a0ac
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x436ae4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 8
lea eax, [ebp - 1]
sub esp, 0x28
xor edi, edi
mov ecx, esp
mov dword [ebp - 8], esp
push 1
push eax
push dword [ebp + 8]
call fcn.00402d75
call fcn.0043a884
add esp, 0x2c
test al, al
je 0x436b32
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x436b2e
push 1
pop edi
push 0
call esi
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x436b3a
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
lea eax, [ebp + 0xb]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 4], esp
push 1
push eax
push edi
call fcn.00402d75
call fcn.0043a884
add esp, 0x2c
test al, al
jne 0x436b6b
push 1
pop eax
jmp 0x436ba4
push edi
xor ebx, ebx
call fcn.00436bab
test eax, eax
jne 0x436ba2
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x436b9e
push 1
pop ebx
push 0
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x436cfc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x473034
call fcn.004549fc
sub esp, 0xb4
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x7c], 0x4765e0
mov dword [ebp - 0x5c], 0x4765d8
jne 0x436d2e
mov eax, 0x494ad8
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004011a9
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004550b0
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.004550b0
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov word [ebp - 0x90], bx
push 1
pop eax
mov dword [ebp - 0x94], eax
je 0x436d81
mov word [ebp - 0x90], ax
mov edi, dword [ebp - 0x74]
cmp edi, ebx
jne 0x436d8d
mov edi, 0x4765fc
push eax
lea eax, [ebp + 0xf]
mov esi, 0x48ed88
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x436db0
mov eax, 0x4765fc
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
push 0x48eed0
push eax
mov dword [ebp - 0x14], 0x4a7
call fcn.0040a580
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401093
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0040b1a5
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.0040afdf
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x1c]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.0040b2ad
cmp edi, ebx
je 0x436ed1
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x436e63
cmp eax, 1
jne 0x436e63
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x44], 0x11
je 0x436e63
cmp dword [ebp - 0x44], 0x10
je 0x436e63
cmp dword [ebp - 0x44], 0x12
jne 0x436e26
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov dword [0x498770], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x436ea2
mov eax, 0x4765fc
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4c8
push edi
push 0x48ee90
push eax
call fcn.0040a580
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401093
mov esi, dword [ebp - 0x10]
jmp 0x436ed6
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x436ef5
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x47305e
call fcn.004549fc
sub esp, 0x8e0
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004550b0
push 0x44
lea eax, [ebp - 0x9c]
pop esi
push esi
push ebx
push eax
call fcn.004550b0
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x9c], esi
mov word [ebp - 0x6c], bx
push 1
pop edi
mov dword [ebp - 0x70], edi
je 0x436f43
mov word [ebp - 0x6c], di
push dword [ebp + 8]
lea eax, [ebp - 0x8ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x8ec]
mov dword [ebp - 0x58], 0x4765e0
test eax, eax
mov dword [ebp - 0x38], 0x4765d8
lea eax, [ebp - 0x8ec]
jne 0x436f76
mov eax, 0x494ad8
lea ecx, [ebp + 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004011a9
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x14], 0x4765fc
je 0x436f98
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xb]
push edi
mov esi, 0x48ed88
push eax
push esi
lea ecx, [ebp - 0xec]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x436fbe
mov eax, 0x4765fc
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x4e9
push 0x48ef28
push eax
call fcn.0040a580
add esp, 0xc
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], bl
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401093
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push 0x20
push edi
push ebx
lea eax, [ebp - 0x8ec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xd]
push edi
push eax
push esi
lea ecx, [ebp - 0xc4]
call fcn.00401889
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x43703d
mov eax, 0x4765fc
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4ee
push 0x48ef04
push eax
call fcn.0040a580
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00401093
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
je 0x437080
push 0x3e8
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4370ac
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43710f
call esi
cmp eax, 0x3f0
jne 0x437106
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x43717e
cmp eax, ebx
je 0x43717e
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x43717e
call esi
cmp eax, 0x7a
jne 0x43717e
push dword [ebp - 4]
call fcn.00454b4e
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x437172
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x437182
cmp byte [ebp - 0x24], bl
je 0x43717e
push esi
call fcn.0043a0ac
pop ecx
xor eax, eax
jmp 0x4371cd
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x4371b5
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4371ae
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x437191
jmp 0x4371b5
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x4371ca
push esi
call fcn.0043a0ac
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4371d2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebp + 8]
cmp dword [0x4987e0], esi
jne 0x4371ee
mov eax, dword [0x48ece4]
cmp eax, 0xffffffff
jne 0x43722e
lea eax, [ebp - 0x48]
push 0x14
push eax
push 0x1004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x437228
lea eax, [ebp - 0x48]
push eax
call fcn.00455b1b
pop ecx
lea ecx, [ebp - 0x20]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x437231
movsx eax, word [ebp - 0x20]
mov dword [0x48ece4], eax
mov ax, word [0x48ece4]
pop esi
leave
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x437228
xor ax, ax
jmp 0x43722e
Function at 0x4376f2
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4730bf
call fcn.004549fc
sub esp, 0x870
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x646]
mov word [ebp - 0x648], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x648]
push eax
push dword [0x498778]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x648]
lea ecx, [ebp - 0x87c]
push eax
call fcn.00434503
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov ebx, 0x496f18
mov ecx, ebx
stosw word es:[edi], ax
call fcn.00401a19
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.004378cb
pop ecx
test eax, eax
pop ecx
je 0x4377e7
and word [ebp - 0x440], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x43e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x440]
mov byte [ebp - 0xd], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x238]
push eax
push 0
lea eax, [ebp - 0x440]
push 0x48efa8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x238]
push 0
push eax
mov ecx, ebx
call fcn.00401a19
push eax
lea ecx, [ebp - 0x87c]
call fcn.0043524a
jmp 0x43784c
mov eax, 0x496f40
mov ecx, eax
test ecx, ecx
je 0x43780c
cmp word [0x496f40], 0
je 0x43780c
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x437848
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.004366c6
mov eax, dword [0x496f20]
test eax, eax
jne 0x437834
mov eax, 0x4765fc
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0043691c
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.004028ee
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00402936
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x494ad8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402b35
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x437896
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402f3d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403a04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.00434b43
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x43a884
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x47327a
call fcn.004549fc
sub esp, 0xf4
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 0x30]
mov dword [ebp - 4], esi
test bl, 0x10
je 0x43a8d6
lea ecx, [ebp + 8]
call fcn.00433453
test al, al
je 0x43a8d6
push ebx
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.0040798e
call fcn.0043ab39
add esp, 0x2c
mov bl, al
jmp 0x43aa53
sub esp, 0x28
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, esp
push esi
push eax
mov dword [ecx], 0x476628
mov dword [ecx + 0x20], 0x476620
call fcn.00403c6a
call fcn.004437a7
add esp, 0x28
cmp eax, 0xffffffff
je 0x43a923
test bl, 4
je 0x43a90b
test al, 0x10
je 0x43a91c
test bl, 8
je 0x43aa51
test al, 0x10
je 0x43aa51
mov bl, 1
jmp 0x43aa53
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 2
je 0x43aa63
cmp esi, 3
je 0x43aa63
push 1
cmp esi, 5
pop ebx
jne 0x43a9d8
lea ecx, [ebp - 0x100]
call fcn.0043aaaa
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
push eax
call fcn.0040798e
call fcn.00443651
add esp, 0x2c
cmp eax, 0xffffffff
je 0x43a9c5
test byte [ebp + 0x30], 4
je 0x43a993
test byte [ebp - 0x100], 0x10
je 0x43a9a4
test byte [ebp + 0x30], 8
je 0x43a9a2
test byte [ebp - 0x100], 0x10
jne 0x43a9a4
xor bl, bl
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
test ecx, ecx
je 0x43a9b1
push eax
call ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.0043ab03
jmp 0x43aa53
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.0043ab03
test byte [ebp + 0x30], 0x20
je 0x43aa51
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x4768a0
mov dword [ebp - 0x1c], 0x476898
call fcn.00403c6a
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x4768a8
call fcn.0042ce9b
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.0043aa80
mov eax, dword [ebp - 0x84]
push 0x4821d8
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x84], 0x477cac
lea eax, [ebp - 0x84]
push eax
call fcn.00455bf6
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402424
mov al, bl
jmp 0x43aa71
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402424
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43b6c9
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x4734c4
call fcn.004549fc
push ebx
xor ebx, ebx
cmp byte [ebp + 0x30], bl
mov dword [ebp - 4], ebx
je 0x43b6f5
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x43b6ea
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x43b73c
push 0x80
lea eax, [ebp + 8]
sub esp, 0x28
mov ecx, esp
mov dword [ebp + 0x30], esp
push 1
push eax
call fcn.0040798e
call fcn.00443828
pop ecx
lea eax, [ebp + 8]
mov dword [ebp + 0x30], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x476628
mov dword [ecx + 0x20], 0x476620
call fcn.00403c6a
call fcn.004438af
add esp, 0x28
cmp eax, ebx
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402424
mov ecx, dword [ebp - 0xc]
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43cf11
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x114], 0x114
and dword [eax], 0
lea eax, [ebp - 0x114]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 1
jne 0x43cf8c
cmp dword [ebp - 0x10c], 0
je 0x43cf84
cmp dword [ebp - 0x10c], 0xa
je 0x43cf6f
cmp dword [ebp - 0x10c], 0x5a
je 0x43cf78
xor al, al
mov dword [esi], 0x80
jmp 0x43cffd
call fcn.0043d2e5
test al, al
je 0x43cf7c
mov al, 1
jmp 0x43cf64
mov dword [esi], 0x40
jmp 0x43cfe6
mov dword [esi], 0x10
jmp 0x43cfe6
cmp dword [ebp - 0x104], 2
jne 0x43cffb
mov eax, dword [ebp - 0x110]
sub eax, 4
je 0x43cff3
mov ecx, dword [ebp - 0x10c]
dec eax
je 0x43cfb6
dec eax
je 0x43cfdc
xor al, al
mov dword [esi], 0x2000000
jmp 0x43cffd
test ecx, ecx
jne 0x43cfc2
mov dword [esi], 0x100000
jmp 0x43cfe6
cmp ecx, 1
jne 0x43cfcf
mov dword [esi], 0x400000
jmp 0x43cfe6
cmp ecx, 2
jne 0x43cfdc
mov dword [esi], 0x800000
jmp 0x43cfe6
test ecx, ecx
jne 0x43cfea
mov dword [esi], 0x1000000
mov al, 1
jmp 0x43cffd
cmp ecx, 1
jne 0x43cfac
mov al, cl
jmp 0x43cfae
mov dword [esi], 0x10000
jmp 0x43cfe6
xor al, al
pop esi
leave
ret

Function at 0x43d1da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x48f4c8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43d209
push 0x48f4ac
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43d209
call eax
jmp 0x43d2e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysStringLen
push 0x48f450
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x43d255
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x494ad8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43d2b6
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0x48f404
push edi
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x43d28a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x48f3f4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x43d29e
cmp esi, ebx
je 0x43d29e
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x43d2be
cmp dword [ebp - 4], ebx
je 0x43d2b0
cmp esi, ebx
je 0x43d2b0
push dword [ebp - 4]
call esi
mov ax, 0x409
jmp 0x43d2e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00454b5c
add esp, 0xc
cmp dword [ebp - 4], ebx
mov edi, eax
je 0x43d2dd
cmp esi, ebx
je 0x43d2dd
push dword [ebp - 4]
call esi
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d3fe
Capabilities:
Get common file path

Disassembly:
mov eax, 0x473883
call fcn.004549fc
sub esp, 0x260
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x43d4a9
push 0x48f514
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43d4a9
push 0x48f4f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x48f4f4], eax
je 0x43d4a9
lea ecx, [ebp - 0x26c]
push esi
push ecx
call eax
test eax, eax
je 0x43d4a9
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x4768a0
mov esi, 0x476898
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00403cfd
push 0x48c2b8
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.0043d53b
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x43d524
lea eax, [ebp - 0x26c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x43d4d1
lea ecx, [ebp - 0x30]
call fcn.0042cbd5
lea eax, [ebp - 0x30]
push 0x4846b8
push eax
call fcn.00455bf6
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x4768a0
mov esi, 0x476898
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00403cfd
push 0x48c2b8
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.0043d53b
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00402424
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret