joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ca13
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42ca52
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ca52
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ca52
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42ca52
cmp dword [ecx + 0x74], 0xe
jbe 0x42ca52
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43579e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b530
push 0x46b528
push str.FlsAlloc
push 0x1f
call fcn.00435685
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4357d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x443140]
call esi
jmp 0x4357d8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43581c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b540
push 0x46b538
push str.FlsGetValue
push 0x21
call fcn.00435685
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435853
push dword [ebp + 8]
mov ecx, esi
call dword [0x443140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43585b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46b548
push 0x46b540
push str.FlsSetValue
push 0x22
call fcn.00435685
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435895
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x443140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x437d4e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x517500]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x437d99
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00437ee9
test al, al
jne 0x437d93
sub edx, 2
cmp edx, edi
jne 0x437d79
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x437dbb
lea eax, [edi + 2]
cmp edx, eax
je 0x437dbb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00437c9a
add esp, 0x10
jmp 0x437eb5
push esi
lea ecx, [ebp - 0x255]
call fcn.00437ee9
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x437dfe
push dword [ebp - 0x25c]
jmp 0x437dab
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x437e3b
cmp word [ebp - 0x226], 0
je 0x437e5c
cmp word [ebp - 0x226], ax
jne 0x437e3b
cmp word [ebp - 0x224], 0
je 0x437e5c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00437c9a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x437ea8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x437e15
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x437e90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x437eb5
push 0x437aca
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043c060
add esp, 0x10
jmp 0x437e85
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bc89
leave
ret

Function at 0x43b007
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00434bc5
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43b076
cmp esi, dword [ebp - 4]
je 0x43b071
cmp dword [ebp + 0xc], 0
je 0x43b071
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43b04e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043ab59
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43b078
xor eax, eax
inc eax
jmp 0x43b078
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x43b0dd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x517500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00434bc5
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00434bc5
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43b154
cmp word [ecx], dx
je 0x43b154
mov eax, dword [0x46bb8c]
push edi
dec eax
push eax
push 0x46ba78
call fcn.0043b07c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43b1c7
cmp word [eax], dx
je 0x43b1c7
mov eax, dword [edi]
test eax, eax
je 0x43b178
cmp word [eax], dx
je 0x43b178
lea eax, [ebp - 0x10]
push eax
call fcn.0043aa5f
jmp 0x43b181
lea eax, [ebp - 0x10]
push eax
call fcn.0043aafa
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43b1f1
mov eax, dword [0x46ba74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x46b768
call fcn.0043b07c
add esp, 0xc
test al, al
je 0x43b1f1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43b1bc
cmp word [eax], di
je 0x43b1bc
lea eax, [ebp - 0x10]
push eax
call fcn.0043aa5f
pop ecx
jmp 0x43b1f3
lea eax, [ebp - 0x10]
push eax
call fcn.0043aafa
jmp 0x43b1b9
mov eax, dword [edi]
test eax, eax
je 0x43b1de
cmp word [eax], dx
je 0x43b1de
lea eax, [ebp - 0x10]
push eax
call fcn.0043aa14
pop ecx
jmp 0x43b1f1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x43b2bc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043af01
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43b2bc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43b2bc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43b2bc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43b249
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043599b
test ebx, ebx
je 0x43b2b7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043599b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43b2bc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43b2bc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043d2ee
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43b2be
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bc89
leave
ret
Function at 0x43ef00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43ef2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ef2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40109c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
push edi
push ebx
add al, 0x40
push 0x80
push 3
mov byte [ebp - 0x10], al
push ebx
push 3
lea eax, [ebp - 0x14]
push 0x80000000
push eax
mov dword [ebp - 4], ebx
mov dword [esi], ebx
mov byte [ebp - 0x14], 0x5c
mov byte [ebp - 0x13], 0x5c
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x5c
mov byte [ebp - 0xf], 0x3a
mov byte [ebp - 0xe], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010f4
push 0xb
pop esi
jmp 0x40113c
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401113
push 0xd
pop esi
jmp 0x401135
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40112d
push 8
jmp 0x401110
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401143
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, 0x104
push edi
call fcn.00404aba
mov esi, eax
pop ecx
test esi, esi
jne 0x40115f
push 5
jmp 0x40117a
and byte [esi + 1], 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esi + 1], 0x3a
je 0x40117d
push esi
call fcn.004049d1
pop ecx
push 1
pop eax
jmp 0x401196
mov al, byte [esi]
push esi
mov byte [ebp - 4], al
call fcn.004049d1
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00401357
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x401357
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4013ad
cmp dword [ebp - 0x84], 2
jne 0x4013ad
push dword [ebp + 0xc]
cmp dword [ebp - 0x90], 5
push dword [ebp + 8]
jae 0x40139a
call fcn.0040335f
jmp 0x40139f
call fcn.004033ec
pop ecx
pop ecx
xor ecx, ecx
test ax, ax
sete cl
mov eax, ecx
leave
ret
push 1
pop eax
leave
ret
Function at 0x40274f
Capabilities:
Create directory
Enumerate files on windows

Disassembly:
mov eax, 0x40d9b0
call fcn.00405780
sub esp, 0x16c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test ebx, ebx
je 0x40276c
and dword [ebx], 0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40295d
cmp dword [ebp + 8], 0
je 0x40295d
lea eax, [edi + 2]
push eax
call fcn.00404aba
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp + 0xc], esi
jne 0x4027a7
test ebx, ebx
je 0x4027a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push 5
jmp 0x40295f
lea eax, [edi + 1]
push eax
push 0
push esi
call fcn.00404ff0
push edi
push dword [ebp + 8]
push esi
call fcn.00404c00
add esp, 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4027e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4027e8
test ebx, ebx
je 0x4027e0
mov dword [ebx], eax
push 0x13
pop esi
jmp 0x402950
lea ecx, [ebp - 0x38]
call fcn.004030c1
push dword [0x41359c]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040310d
test al, al
je 0x402934
push esi
lea ecx, [ebp - 0x38]
call fcn.004032e6
push esi
lea ecx, [ebp - 0x38]
call fcn.004031f2
mov esi, eax
test esi, esi
jne 0x40293b
lea eax, [edi + 0xa]
push eax
call fcn.00404aba
mov ebx, eax
pop ecx
test ebx, ebx
je 0x402930
push dword [ebp + 0xc]
push ebx
call fcn.004051a0
push 0x5c
push ebx
call fcn.00405380
add esp, 0x10
test eax, eax
je 0x40285f
cmp byte [eax + 1], 0
jne 0x40285f
push 0x410640
jmp 0x402864
push str..
push ebx
call fcn.004051b0
pop ecx
lea eax, [ebp - 0x178]
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x402929
mov eax, dword [ebp - 0x178]
and eax, 0x10
cmp al, 0x10
je 0x4028fb
lea eax, [ebp - 0x14c]
push eax
call fcn.00405120
lea eax, [eax + edi + 2]
push eax
call fcn.00404aba
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4028fb
push dword [ebp + 0xc]
push esi
call fcn.004051a0
push 0x5c
push esi
call fcn.00405380
add esp, 0x10
test eax, eax
je 0x4028cf
cmp byte [eax + 1], 0
je 0x4028dc
push 0x410634
push esi
call fcn.004051b0
pop ecx
pop ecx
lea eax, [ebp - 0x14c]
push eax
push esi
call fcn.004051b0
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.004032e6
push esi
call fcn.004049d1
pop ecx
lea eax, [ebp - 0x178]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402886
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.004031f2
mov esi, eax
push ebx
call fcn.004049d1
pop ecx
test esi, esi
jne 0x402938
xor esi, esi
jmp 0x402944
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x402941
mov dword [ebx], esi
push 0x14
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00403106
push dword [ebp + 0xc]
call fcn.004049d1
pop ecx
mov eax, esi
jmp 0x402960
push 3
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40296f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x402988
push 6
pop eax
jmp 0x402a12
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x402a12
lea eax, [ebp - 0x10]
push edi
push eax
push esi
push esi
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
jne 0x4029fc
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.0040296f
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
jmp 0x4029c6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
leave
ret
Function at 0x402a15
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x29
push ebx
push esi
push edi
jb 0x402b44
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
lea edi, [esi + edx]
mov dword [ebp + 8], ecx
lea ecx, [edi + ecx + 0x28]
cmp dword [ebp + 0xc], ecx
jne 0x402b44
lea ecx, [eax + 0x28]
mov ebx, dword [eax + 0x14]
lea edi, [esi + ecx]
mov esi, dword [ebp + 0x10]
add edx, edi
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 8], edx
xor edx, edx
mov dword [esi + 4], edx
mov eax, dword [eax]
sub eax, 0x10
je 0x402b1b
dec eax
je 0x402ae6
dec eax
je 0x402abb
dec eax
je 0x402a82
mov dword [esi + 4], 0xf
jmp 0x402b4e
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x402b4e
push edi
push dword [ebp + 0xc]
call fcn.0040296f
pop ecx
mov dword [esi + 8], eax
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402b4e
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x402b4e
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
mov dword [esi + 8], eax
jmp 0x402ab0
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x402b4e
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov dword [esi + 8], eax
jmp 0x402ab0
lea eax, [ebp + 0xc]
push edx
push eax
push 0x4134a0
push 0xf003f
push edx
push edx
push edx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x402b4e
push dword [ebp + 0xc]
jmp 0x402ab0
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], 3
push 0xc
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402c0e
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x413590]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x402c22
mov al, 1
jmp 0x402c77
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp - 4]
push edi
push ecx
push ebx
push ebx
push eax
mov dword [ebp - 4], 1
call esi
push dword [ebp - 4]
call fcn.00405112
push dword [ebp - 4]
mov edi, eax
push ebx
push edi
call fcn.00404ff0
add esp, 0x10
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push dword [0x413590]
call esi
test eax, eax
je 0x402c6c
cmp dword [edi + 4], 3
sete bl
push edi
call fcn.00405107
pop ecx
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x402e46
Capabilities:
Query service configuration

Disassembly:
mov eax, 0x40d9bc
call fcn.00405780
sub esp, 0x208
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x402e77
mov eax, dword [0x413590]
xor ebx, ebx
cmp eax, ebx
jne 0x402ea1
mov dword [0x410398], 0xae
mov eax, dword [ebp + 8]
test eax, eax
je 0x402e86
mov ecx, dword [0x410398]
mov dword [eax], ecx
mov eax, dword [0x410398]
mov ecx, dword [ebp - 0xc]
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 0x19
mov dword fs:[0], ecx
pop ebx
leave
ret
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp + 0xc]
push ecx
push ebx
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], 1
call esi
push dword [ebp + 0xc]
call fcn.00405112
mov edi, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push edi
push dword [0x413590]
call esi
test eax, eax
je 0x402fe9
mov esi, 0x104
mov dword [0x410398], ebx
push esi
mov ebx, esi
call fcn.00405112
pop ecx
mov dword [ebp - 0x14], eax
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebx - 2]
cmp eax, ecx
jbe 0x402f18
push dword [ebp - 0x14]
add ebx, esi
call fcn.00405107
push ebx
call fcn.00405112
pop ecx
jmp 0x402ef0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x214]
xor esi, esi
push eax
push esi
push esi
push ebx
call fcn.00405ab5
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push ebx
call fcn.00405a24
push dword [edi + 0xc]
call fcn.004058f0
push ebx
call fcn.004058f0
mov eax, dword [edi + 0xc]
add esp, 0x30
cmp eax, esi
je 0x402f6e
push ebx
push eax
call fcn.00405870
pop ecx
test eax, eax
pop ecx
jne 0x402f78
mov dword [0x410398], 0xaf
cmp dword [edi], 0x10
je 0x402f89
mov dword [0x410398], 0xb0
jmp 0x402fe2
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x402fd8
push str.Autodesk_Licensing_Service
push eax
call fcn.004057a0
pop ecx
test eax, eax
pop ecx
jne 0x402fd8
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x402fe2
push str..System
push eax
call fcn.004057a0
pop ecx
test eax, eax
pop ecx
je 0x402fe2
push str.LocalSystem
push dword [edi + 0x1c]
call fcn.004057a0
pop ecx
test eax, eax
pop ecx
je 0x402fe2
mov dword [0x410398], 0xb2
jmp 0x402fe2
mov dword [0x410398], 0xb1
push ebx
call fcn.00405107
pop ecx
push edi
call fcn.00405107
pop ecx
jmp 0x402e77
Function at 0x40310d
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov esi, ecx
je 0x4031b7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AllocateAndInitializeSid
push ebp
call edi
push str.FreeSid
push ebp
mov dword [esi + 4], eax
call edi
push str.InitializeAcl
push ebp
mov dword [esi + 8], eax
call edi
push str.AddAccessAllowedAceEx
push ebp
mov dword [esi + 0xc], eax
call edi
push str.AddAccessAllowedAce
push ebp
mov dword [esi + 0x10], eax
call edi
push str.GetAce
push ebp
mov dword [esi + 0x14], eax
call edi
push str.SetNamedSecurityInfo
push ebp
mov dword [esi + 0x1c], eax
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x403183
push str.SetNamedSecurityInfoA
push ebp
call edi
mov dword [esi + 0x18], eax
push str.GetNamedSecurityInfo
push ebp
call edi
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x40319d
push str.GetNamedSecurityInfoA
push ebp
call edi
mov dword [esi + 0x20], eax
push str.SetEntriesInAcl
push ebp
call edi
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x4031b7
push str.SetEntriesInAclA
push ebp
call edi
mov dword [esi + 0x24], eax
cmp dword [esi + 0x24], ebx
je 0x4031e5
cmp dword [esi + 0x20], ebx
je 0x4031e5
cmp dword [esi + 4], ebx
je 0x4031e5
cmp dword [esi + 8], ebx
je 0x4031e5
cmp dword [esi + 0xc], ebx
je 0x4031e5
cmp dword [esi + 0x14], ebx
je 0x4031e5
cmp dword [esi + 0x18], ebx
je 0x4031e5
cmp dword [esi + 0x1c], ebx
je 0x4031e5
mov byte [esi + 0x28], 1
jmp 0x4031e8
mov byte [esi + 0x28], bl
mov al, byte [esi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40335f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
movsx eax, byte [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
push 0x410784
push eax
xor ebx, ebx
call fcn.0040531f
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4033e4
lea eax, [ebp - 0x110]
push eax
call fcn.00405c30
mov esi, str.DEVICEHARDDISK
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00405870
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4033e4
push esi
call fcn.00405120
push dword [ebp + 0xc]
add edi, eax
push 0x41076c
push edi
call fcn.00405bfc
add esp, 0x10
cmp eax, 1
jne 0x4033e4
push eax
pop ebx
pop edi
mov ax, bx
pop esi
pop ebx
leave
ret