joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bd20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7866
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x10138008]
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 [ebp + 8]
lea ecx, [ebp - 0x650]
mov ebx, dword [ebp + 0xc]
call fcn.100047b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x654]
push 0x1013de20
mov dword [ebp - 0x654], 0
call fcn.10007830
mov byte [ebp - 4], 1
mov ecx, 0x1013de24
call fcn.10004710
test al, al
jne 0x1002bdc9
mov ecx, 0x1013de24
call fcn.10004910
lea ecx, [ebp - 0x650]
cmp ecx, eax
je 0x1002be8d
mov ecx, 0x1013de24
call fcn.10004910
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1002bdc0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x1002be82
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100bea00
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1002bf20
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.100bea00
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1002be6b
test eax, eax
je 0x1002be6b
add eax, eax
cmp eax, 0x412
jae 0x1002bf63
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.10004d20
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x1002be81
lea eax, [ebp - 0x220]
push eax
call fcn.10004d20
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x650]
call fcn.100049b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.10007860
push ebx
push edi
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
call fcn.1002bcb0
test al, al
je 0x1002beb4
mov bl, 1
jmp 0x1002bf31
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100bea00
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1002bf2f
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.10004d20
add esp, 4
lea ecx, [ebp - 0x650]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.100049b0
push ebx
push edi
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
call fcn.1002bcb0
mov bl, al
jmp 0x1002bf31
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.10007860
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x650]
call fcn.10004720
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.100bcc77
mov esp, ebp
pop ebp
ret 8
call fcn.100bd284
int3
Function at 0x1002d490
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7b80
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10138008]
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.10004710
test al, al
je 0x1002d4cd
xor al, al
jmp 0x1002d679
mov ecx, edi
call fcn.1002d320
test al, al
je 0x1002d4df
mov al, 1
jmp 0x1002d679
push 0
mov ecx, edi
call fcn.100052a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1002d52e
lea ecx, [ebp - 0x28]
call fcn.100047b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10032b50
test al, al
je 0x1002d51f
push 0
lea ecx, [ebp - 0x28]
call fcn.100052a0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004720
mov ecx, edi
call fcn.1002d320
test al, al
jne 0x1002d4d8
mov ecx, edi
call fcn.100049a0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1002d61e
mov ecx, edi
call fcn.10004910
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x1002d562
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x1002d585
mov eax, ebx
cmp ecx, 8
jb 0x1002d57b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x1002d60e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10008280
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10004710
test al, al
jne 0x1002d5ff
lea ecx, [ebp - 0x28]
call fcn.1002d110
test al, al
jne 0x1002d5ff
push 0
lea ecx, [ebp - 0x28]
call fcn.100052a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1002d5ff
lea ecx, [ebp - 0x40]
call fcn.100047b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.10032b50
test al, al
je 0x1002d5f3
push 0
lea ecx, [ebp - 0x40]
call fcn.100052a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10004720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004720
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x1002d556
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.1002d110
test al, al
jne 0x1002d672
push 0
mov ecx, edi
call fcn.100052a0
push eax
call ebx
test eax, eax
jne 0x1002d672
lea ecx, [ebp - 0x40]
call fcn.100047b0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.10032b50
test al, al
je 0x1002d663
push 0
lea ecx, [ebp - 0x40]
call fcn.100052a0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004720
mov ecx, edi
call fcn.1002d320
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.100bcc77
mov esp, ebp
pop ebp
ret
Function at 0x1002da40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101252c8
push 0x100be720
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x10138008]
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 dword [ebp - 0x438], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10008ca0
call fcn.1002db50
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1002dac3
test bl, bl
jne 0x1002db2d
mov ecx, esi
call fcn.10008ca0
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.100bea00
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.10004d20
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.100049b0
mov ecx, esi
call fcn.10004710
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.100bcc77
mov esp, ebp
pop ebp
ret

Function at 0x1002dd40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7cd9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10138008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.100047b0
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1002ddfa
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x1002ddfa
lea esi, [eax + eax]
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100bd35e
add esp, 4
mov ebx, eax
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jg 0x1002ddf1
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.10004d20
add esp, 4
mov ecx, edi
push eax
push ebx
call fcn.100049b0
push ebx
call fcn.100bd15e
add esp, 4
mov eax, edi
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 0x1002f1f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x10138008]
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
cmp dword [esi], 0
je 0x1002f229
call fcn.1002f390
cmp byte [0x1013d258], 0
jne 0x1002f23c
mov eax, reloc.gdiplus.dll_Ordinal_1
jmp 0x1002f36c
mov eax, dword [esi]
test eax, eax
jne 0x1002f2bc
push 8
call fcn.100bcc88
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.100bcc88
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.100bea00
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002f2ab
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1002f35b
call fcn.10028470
test al, al
jne 0x1002f2f6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.100289b0
test al, al
je 0x1002f35b
mov ecx, dword [esi]
add ecx, 4
call fcn.10027fc0
call fcn.10028470
test al, al
je 0x1002f35b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.10007620
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.1002df60
mov ecx, eax
call fcn.1002e020
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10004720
test edi, edi
je 0x1002f35b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002f35b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x1002f35b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x1002f36a
mov dword [eax], reloc.gdiplus.dll_Ordinal_1
mov eax, dword [esi]
mov eax, dword [eax]
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.100bcc77
mov esp, ebp
pop ebp
ret 4
Function at 0x100326f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10032728
mov edx, dword [esp + 4]
test edx, edx
je 0x10032728
cmp dword [eax], 0xffffffff
je 0x10032728
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10032728
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x10032760
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x100327c3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100327c3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003279e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100327c3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100bcc77
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100bcc77
add esp, 8
ret 4

Function at 0x100327e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e5218
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10138008]
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, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x10032817
xor al, al
jmp 0x1003287a
and esi, 0xffffb1af
push esi
call fcn.100052a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10032832
mov al, 1
jmp 0x1003287a
lea ecx, [ebp - 0x28]
call fcn.100047b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.10032b50
test al, al
je 0x10032867
push esi
lea ecx, [ebp - 0x28]
call fcn.100052a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10032867
mov bl, 1
jmp 0x10032869
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004720
mov al, bl
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.100bcc77
mov esp, ebp
pop ebp
ret
Function at 0x100328a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e5218
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.100052a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003291e
lea ecx, [ebp - 0x28]
call fcn.100047b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.10032b50
test al, al
je 0x1003290d
lea ecx, [ebp - 0x28]
call fcn.100052a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004720
mov eax, esi
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.100bcc77
mov esp, ebp
pop ebp
ret

Function at 0x10032940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e8970
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10138008]
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
call fcn.100052a0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10032986
mov al, 1
jmp 0x10032a7b
mov ecx, esi
call fcn.100052a0
push eax
lea ecx, [ebp - 0x28]
call fcn.10007620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100328a0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004720
cmp ebx, 0xffffffff
jne 0x100329c5
xor al, al
jmp 0x10032a7b
mov ecx, esi
call fcn.100052a0
push eax
lea ecx, [ebp - 0x28]
call fcn.10007620
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.100327e0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004720
test bl, bl
je 0x100329be
mov ecx, esi
call fcn.100052a0
push eax
call edi
test eax, eax
jne 0x1003297f
lea ecx, [ebp - 0x28]
call fcn.100047b0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10032b50
test al, al
je 0x10032a3d
lea ecx, [ebp - 0x28]
call fcn.100052a0
push eax
call edi
test eax, eax
je 0x10032a3d
mov bl, 1
jmp 0x10032a6a
mov ecx, esi
call fcn.100052a0
push eax
lea ecx, [ebp - 0x44]
call fcn.10007620
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.100327e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10004720
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004720
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.100bcc77
mov esp, ebp
pop ebp
ret
Function at 0x10032aa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.100bea00
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.100052a0
push eax
mov ecx, edi
call fcn.100052a0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10032b35
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.10004d20
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.100049b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100bcc77
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100bcc77
add esp, 0x210
ret

Function at 0x10032c40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e89a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10138008]
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 0x10032c86
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.10033e10
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10032caf
lea ebx, [esi + 8]
jmp 0x10032cb1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.10004710
test al, al
jne 0x10032cc7
mov ecx, dword [ebp - 0x18]
call fcn.100052a0
jmp 0x10032cc9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10032cea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10032cea
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10032d13
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 0x10032d28
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100bccb8
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.100bcc77
mov esp, ebp
pop ebp
ret 4
Function at 0x10032d60
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x100e89e0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10138008]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp + 4]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10032e27
lea edi, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x10032e4c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100bd35e
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, edi
mov dword [ebp], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10032e13
cmp eax, ebx
ja 0x10032e13
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x10], ebx
jmp 0x10032e70
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10032e27
push edi
call fcn.100bd15e
add esp, 4
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 + 0x804]
xor ecx, ebp
call fcn.100bcc77
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x10032ee3
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x10032ee3
mov word [ebp + eax + 4], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x10032ec8
mov esi, dword [ebp - 0x14]
mov ebx, 2
mov eax, dword [ebp - 0x10]
cmp word [esi + ebx - 2], 0
jne 0x10032ebd
cmp ecx, edi
je 0x10032ebd
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x30]
call fcn.10007620
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.100195f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10004720
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x10032e83
mov esi, dword [ebp]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10032edc
push esi
call fcn.100bd15e
add esp, 4
mov al, 1
jmp 0x10032e29
call fcn.100bd284
int3
Function at 0x10037e30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.100bea00
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10037ec7
cmp dword [esp + 8], 6
jb 0x10037ec7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.100bcc77
add esp, 0x118
ret

Function at 0x10037ee0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e9260
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10138008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.10007620
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1002df60
mov ecx, eax
call fcn.1002e020
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004720
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.10007620
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.1002df60
mov ecx, eax
call fcn.1002e020
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004720
test ebx, ebx
je 0x10037ff5
test esi, esi
je 0x10037ff5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], 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
Function at 0x10038930
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x10138008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
mov edi, dword [esp + 0x128]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.100bea00
push 0x110
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0x114
push 0
push eax
call fcn.100bea00
add esp, 0x18
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10038990
cmp dword [esp + 0xc], 6
mov eax, 0x30
jae 0x10038995
mov eax, 0x2c
push edi
mov dword [esi], eax
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi + 0xc], edi
mov ecx, dword [0x1013c668]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x134]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x11c]
pop edi
mov dword [esi + 0x28], 0
pop esi
xor ecx, esp
call fcn.100bcc77
add esp, 0x118
ret 0x18