joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f04d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, 0x440140
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
call fcn.004258f0
push esi
push dword [ebp + 0x10]
call fcn.004258f0
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x41f1d8
push edi
push esi
call fcn.00426399
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.00426620
add esp, 0x10
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41f1ce
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00426620
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x43c004
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41f110
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push 0x43c958
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x34
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00426620
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x43c93c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41f1ce
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], bl
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
cmp esi, ebx
mov dword [ebp + 0xc], eax
jle 0x41f1ce
cmp edi, ebx
mov dword [ebp - 8], ebx
jle 0x41f16f
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
call fcn.004267f0
movzx eax, word [ebp - 8]
add esp, 0xc
cmp edi, ebx
push eax
jne 0x41f1a0
lea eax, [ebp - 0x144]
push 0x43c578
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41f1b8
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push 0x43c934
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call fcn.004258f0
inc edi
pop ecx
cmp edi, esi
pop ecx
jl 0x41f164
push dword [ebp - 0x10]
call fcn.004262b0
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f220
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x43c978
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x41f323
push edi
push 0x43c964
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x41f2b2
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.0041f736
test eax, eax
je 0x41f28a
lea eax, [ebp - 0x82c]
push eax
call fcn.0041f527
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x41f319
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x41f310
mov eax, SysReAllocString
jmp 0x41f310
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x41f319
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x41f377
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push dword [0x43c8cc]
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.0041f680
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x400]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41f3bc
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x41f3d5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x41f42e
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.0041f1dc
pop ecx
test eax, eax
pop ecx
je 0x41f42e
push esi
call fcn.0041f377
test eax, eax
pop ecx
jne 0x41f43b
inc ebx
cmp ebx, 0x1a
jl 0x41f3f9
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x41f437
Function at 0x41fba3
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0041fc4a
test eax, eax
je 0x41fc08
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41fc08
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push 0x43c9a8
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x41fc78
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 0x41fcdb
call esi
cmp eax, 0x3f0
jne 0x41fcd2
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 0x41fd4a
cmp eax, ebx
je 0x41fd4a
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 0x41fd4a
call esi
cmp eax, 0x7a
jne 0x41fd4a
push dword [ebp - 4]
call fcn.00425dd7
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 0x41fd3e
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 0x41fd4e
cmp byte [ebp - 0x24], bl
je 0x41fd4a
push esi
call fcn.0042540e
pop ecx
xor eax, eax
jmp 0x41fd99
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x41fd81
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 0x41fd7a
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x41fd5d
jmp 0x41fd81
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x41fd96
push esi
call fcn.0042540e
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420905
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x433508
call fcn.00425db8
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edi, [eax + 0x4020]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push eax
push ebx
mov ecx, edi
push dword [0x434f28]
push dword [ebp + 8]
call fcn.00407406
lea eax, [ebp - 0x118]
push eax
call fcn.004271cc
cmp eax, 4
pop ecx
jne 0x42097c
mov eax, dword [ebp + 0xc]
push 0x43c798
add eax, 0xac
push eax
call fcn.0041f933
pop ecx
test eax, eax
pop ecx
jl 0x420973
mov esi, 0x300
jmp 0x42099b
push esi
lea eax, [ebp - 0x21c]
jmp 0x420983
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [0x434f3c]
mov ecx, edi
push dword [ebp + 8]
call fcn.00407406
mov esi, eax
cmp esi, ebx
je 0x420a09
mov dword [ebp + 8], ebx
push 0x20019
push 0x43c9f8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040f9b2
test eax, eax
jne 0x4209fb
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x43c9ec
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0xc], esi
jae 0x4209fb
cmp dword [ebp + 8], ebx
je 0x4209f7
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x420a0c
cmp dword [ebp + 8], ebx
je 0x420a09
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x421adc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.00421c7d
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x421b95
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x43cc94
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x421b82
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x43cc88
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x421b46
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push 0x43cc78
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x421b6f
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x421b7c
cmp byte [ebp - 0x838], bl
je 0x421b82
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x421b95
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x421b95
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00421750
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x421bba
cmp dword [ebp + 0xc], 4
jne 0x421be6
cmp dword [ebp - 0x14], ebx
jne 0x421be6
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x421bd2
mov ecx, edi
call fcn.004221a5
jmp 0x421be6
cmp ax, 4
mov ecx, edi
jne 0x421be1
call fcn.0042238b
jmp 0x421be6
call fcn.0042275e
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x4221a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.004264e0
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x43cdbc
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x422373
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x43cdb0
push dword [ebp - 4]
mov dword [ebp - 0x48], 0x43cda8
mov dword [ebp - 0x44], 0x43cd9c
mov dword [ebp - 0x40], 0x43cd8c
mov dword [ebp - 0x3c], 0x43cd84
mov dword [ebp - 0x38], 0x43cd78
mov dword [ebp - 0x34], 0x43cd68
mov dword [ebp - 0x30], 0x43cd60
mov dword [ebp - 0x2c], 0x43cd54
mov dword [ebp - 0x28], 0x43cd44
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x422373
cmp dword [ebp - 0x14], 1
jne 0x422373
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x422336
cmp byte [ebp - 0x148], al
je 0x422336
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x422328
lea eax, [ebp - 0x96c]
push 0x43cd40
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x43bf10
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x43b914
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x42228c
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.00421961
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x422386
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x422386
push dword [ebp - 4]
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423323
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x423386
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x423398
mov eax, dword [esi + 0xdc]
jmp 0x4233f0
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x4233ee
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x4233c6
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x4233a1
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x423c66
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x423cb8
push eax
call fcn.00425dd7
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x423cb8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x43c004
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x423cbc
xor al, al
jmp 0x423d1d
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x43c93c
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x423d1b
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00425dd7
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x423d1b
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x423d09
mov al, 1
pop ebx
leave
ret 4
Function at 0x10005030
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100131c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [0x100131cc]
mov dword [ebp - 0x18], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10005072
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x10005102
push ebx
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0x40]
mov eax, dword [ebp + 0xc]
sub eax, edi
je 0x100050ab
sub eax, 1
je 0x1000509f
sub eax, 1
jne 0x100050ff
push dword [ebp + 8]
mov ecx, ebx
call fcn.100060d3
jmp 0x100050a7
push dword [ebp + 8]
call fcn.10006058
mov edi, eax
jmp 0x100050ff
push 1
push 0x10
push esi
mov esi, dword [0x100136c0]
mov ecx, esi
call dword [0x100142a8]
call esi
mov esi, eax
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10005ee5
push eax
call sym.OLETHK32.dll_TransformHRESULT_3216
mov esi, dword [0x100136c0]
mov edi, eax
push 1
push 0x10
push dword [ebp - 0x18]
mov ecx, esi
call dword [0x100142a8]
call esi
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10011760
leave
ret 0xc
Function at 0x10005737
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x28
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x1000575b
push ecx
mov ecx, eax
call fcn.10006e89
mov dword [ebp - 4], eax
jmp 0x1000575e
mov dword [ebp - 4], esi
push 0x28
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x10005776
push ecx
mov ecx, eax
call fcn.10006e89
mov ebx, eax
jmp 0x10005778
mov ebx, esi
push 0x28
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x10005790
push ecx
mov ecx, eax
call fcn.10006e89
mov edi, eax
jmp 0x10005792
mov edi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x100057fb
test ebx, ebx
je 0x100057eb
test edi, edi
je 0x100057eb
push 0x24
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x100057d3
xor ecx, ecx
mov dword [eax + 8], esi
inc ecx
mov dword [eax + 0x1c], esi
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 0x20], esi
mov esi, eax
mov dword [eax], 0x10001008
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], edi
test esi, esi
je 0x100057e8
push dword [0x100131cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x40], esi
jmp 0x1000581f
mov eax, dword [ebp - 4]
mov ecx, eax
call fcn.10010e82
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
je 0x1000580d
mov ecx, ebx
call fcn.10010e82
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
je 0x1000581f
mov ecx, edi
call fcn.10010e82
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10005ee5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x14
push ebx
push esi
push edi
push dword [0x100131cc]
xor edi, edi
mov ebx, ecx
and dword [eax], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp + 0xc]
test dword [eax + 0x44], 0x1000000
je 0x10005f2b
mov edx, 0x10003040
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x10005f2b
inc ecx
cmp ecx, 4
jne 0x10005f18
mov esi, 0x10003050
mov ecx, esi
mov dword [ebp - 8], esi
call fcn.100077aa
mov dword [ebp - 0xc], eax
shr eax, 0x10
mov dword [ebp - 0x10], eax
test ax, ax
je 0x10005f59
push esi
mov ecx, ebx
call fcn.10005abc
test eax, eax
jne 0x10005f59
mov eax, 0x8007000e
jmp 0x10006051
mov esi, dword [0x100136c0]
mov ecx, esi
push 1
push 0x24
push dword [ebp + 8]
call dword [0x100142a8]
call esi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], ecx
test dl, 2
je 0x10005f83
mov eax, dword [eax]
test dl, 0x10
je 0x10005fa0
cmp dword [ebp - 0xc], edi
jne 0x10005fa0
mov esi, dword [ebp + 8]
push esi
call fcn.10006058
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x1000603e
mov esi, dword [eax]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 8]
mov ecx, dword [esi]
push eax
call dword [0x100142a8]
call dword [esi]
mov edi, eax
test edi, edi
js 0x1000603e
cmp dword [ebp - 4], 0
je 0x10006039
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10005fdb
mov al, byte [ecx + 4]
and al, 2
movzx eax, al
neg eax
sbb eax, eax
not eax
and ecx, eax
lea eax, [ebp - 0x14]
mov dword [ebx + 8], 2
push eax
push dword [ebp - 0xc]
push ecx
push dword [ebp - 4]
mov ecx, ebx
push 0
call fcn.10005c22
test eax, eax
je 0x1000601b
test byte [ebp - 0x14], 3
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x10006020
cmp word [ebp - 0x10], 0
je 0x10006020
push eax
mov ecx, ebx
call fcn.100060d3
mov edi, 0x80004002
jmp 0x10006020
mov edi, 0x8007000e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100142a8]
call esi
and dword [ebx + 8], 0
jmp 0x1000603e
mov edi, 0x80004002
cmp word [ebp - 0x10], 0
je 0x1000604f
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.10005aea
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc