joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc17b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
test eax, eax
je 0xc17ce5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
lea edx, [eax + 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x18], 1
mov dword [esp], eax
call fcn.00c13b40
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x84]
mov dword [edx + 0x88], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00c14250
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
call fcn.00c13b40
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x88]
test ebx, ebx
je 0xc17ccf
mov eax, dword [ebx + 4]
add eax, 8
mov dword [esp], eax
call fcn.00c15b50
cmp eax, 0x10
je 0xc17cb0
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x88], eax
mov esi, dword [ebx + 4]
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp + 4], 0
mov eax, dword [esi]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test edi, edi
je 0xc17c42
cmp dword [ebp - 0x18], 4
jg 0xc17c42
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
call fcn.00c14250
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.00c14250
add dword [ebp - 0x1c], 1
mov dword [esp], edi
call dword [ebp - 0x10]
jmp 0xc17ba7
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 8]
test eax, eax
je 0xc17c4f
mov dword [eax + 8], edx
test edx, edx
je 0xc17c56
mov dword [edx + 0x10], eax
mov eax, dword [ebx]
cmp ebx, dword [eax + 0x84]
je 0xc17cf8
cmp ebx, dword [eax + 0x88]
je 0xc17ced
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0xc]
test eax, eax
je 0xc17c7d
mov dword [eax + 0xc], edx
test edx, edx
je 0xc17c84
mov dword [edx + 0x14], eax
mov eax, dword [ebx + 4]
cmp ebx, dword [eax + 0xc]
je 0xc17d05
mov dword [esp], ebx
call fcn.00ded778
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00c14250
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.00c14250
jmp 0xc17ba7
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00c14250
mov dword [esp], 1
call sub.KERNEL32.dll_Sleep
sub esp, 4
jmp 0xc17ba7
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
call fcn.00c14250
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0xc17b77
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [eax + 0x88], edx
jmp 0xc17c70
mov dword [eax + 0x84], edx
mov eax, dword [ebx]
jmp 0xc17c64
mov dword [eax + 0xc], edx
jmp 0xc17c8c
Function at 0xc17d10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1765a60]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test eax, eax
je 0xc17da0
mov edi, dword [0x1765a64]
test edi, edi
je 0xc17da0
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
call sub.WS2_32.DLL_WSAGetLastError
mov esi, eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov dword [esp], esi
call sub.WS2_32.DLL_WSASetLastError
sub esp, 4
test edi, edi
je 0xc17da0
mov edx, dword [edi + 0xc]
lea ebx, [edi + 0x30]
mov eax, dword [edi + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00c17b50
mov dword [esp], ebx
call fcn.00c13b40
mov dword [edi + 0x14], 6
mov dword [esp], ebx
call fcn.00c14250
cmp dword [edi + 0x24], 1
je 0xc17db2
nop
lea esi, [esi]
mov ebx, dword [ebp - 0xc]
mov eax, 1
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00c17320
mov eax, dword [0x1765a64]
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
jmp 0xc17da0

Function at 0xc17de0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [0x1765a64]
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 0
test edi, edi
je 0xc17e3c
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
call sub.WS2_32.DLL_WSAGetLastError
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_SetLastError
mov eax, dword [ebp - 0x14]
sub esp, 4
mov dword [esp], eax
call sub.WS2_32.DLL_WSASetLastError
mov dword [ebp - 0x10], esi
sub esp, 4
mov eax, dword [ebp + 8]
sub eax, 1
cmp eax, 1
jbe 0xc17e53
mov dword [esp], 1
call sub.msvcrt.dll_exit
test esi, esi
je 0xc17e63
mov eax, dword [ebp - 0x10]
test byte [eax + 0x80], 1
je 0xc17ea7
cmp dword [ebp + 8], 1
je 0xc17ecf
cmp dword [ebp + 8], 2
mov ebx, 0xffffffff
je 0xc17e76
xor ebx, ebx
call fcn.00c17d10
mov dword [esp], ebx
call sub.msvcrt.dll__endthreadex
jmp 0xc17ea7
mov edx, dword [eax]
test edx, edx
je 0xc17e93
mov eax, dword [eax + 4]
mov dword [esp], eax
call edx
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [0x1765a68]
mov dword [esp], eax
call fcn.00c13f00
mov eax, dword [0x1765a68]
mov dword [esp], eax
call fcn.00c12300
test eax, eax
mov ebx, eax
jne 0xc17e85
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_longjmp
test esi, esi
je 0xc17e74
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x18]
jmp 0xc17e76
Function at 0xc181f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edi, dword [ebx]
call fcn.00c18160
mov dword [ebp - 0x34], 0x16
test edi, edi
je 0xc18380
lea esi, [edi + 4]
mov dword [esp], esi
call fcn.00c13b40
test eax, eax
mov dword [ebp - 0x34], eax
jne 0xc18380
mov eax, dword [ebx]
test eax, eax
je 0xc18418
mov ebx, dword [edi]
sub ebx, 1
mov dword [edi], ebx
mov dword [esp], esi
call fcn.00c14250
test ebx, ebx
js 0xc18252
xor eax, eax
jmp 0xc1838f
mov ebx, dword [0x1765a68]
xor eax, eax
mov dword [ebp - 0x20], 0xc14e10
mov dword [ebp - 0x1c], edi
test ebx, ebx
je 0xc182a7
call sub.KERNEL32.dll_GetLastError
mov esi, eax
call sub.WS2_32.DLL_WSAGetLastError
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, dword [ebp - 0x30]
sub esp, 4
mov dword [esp], eax
call sub.WS2_32.DLL_WSASetLastError
mov eax, ebx
mov ebx, dword [0x1765a68]
sub esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00c13f00
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
call fcn.00c140a0
test eax, eax
mov esi, eax
mov ebx, eax
je 0xc183e3
mov edi, dword [eax + 0x34]
test edi, edi
jne 0xc1839c
mov eax, dword [eax + 0x3c]
mov edx, 2
test eax, eax
mov dword [ebp - 0x10], eax
je 0xc1839c
nop
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_WaitForMultipleObjects
sub esp, 0x10
test eax, eax
je 0xc18334
cmp eax, 1
je 0xc183a6
cmp eax, 0x102
mov dword [ebp - 0x34], 0x274c
je 0xc18334
mov dword [ebp - 0x34], 0x16
mov eax, dword [0x1765a68]
mov dword [esp], eax
call fcn.00c12300
test eax, eax
mov ebx, eax
je 0xc18374
mov esi, dword [ebp - 0x34]
test esi, esi
je 0xc18360
mov edx, dword [eax]
test edx, edx
je 0xc18360
mov eax, dword [eax + 4]
mov dword [esp], eax
call edx
lea esi, [esi]
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [0x1765a68]
mov dword [esp], eax
call fcn.00c13f00
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0xc1824b
nop
call sub.msvcrt.dll__errno
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
mov eax, 0xffffffff
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, 1
jmp 0xc182f0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_ResetEvent
sub esp, 4
test esi, esi
je 0xc1832d
lea esi, [ebx + 0x30]
mov dword [esp], esi
call fcn.00c13b40
mov eax, dword [ebx + 0x14]
cmp eax, 3
jbe 0xc183f4
mov dword [esp], esi
call fcn.00c14250
mov dword [ebp - 0x34], 0x16
jmp 0xc18334
mov edx, 1
mov dword [ebp - 0x10], 0
jmp 0xc182f0
mov dword [ebx + 0x14], 4
mov dword [ebx + 0x34], 1
mov dword [esp], esi
call fcn.00c14250
mov dword [esp], 2
call fcn.00c17de0
jmp 0xc183cf
mov dword [esp], esi
call fcn.00c14250
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
jmp 0xc1838f
Function at 0xc21550
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x3248]
test ebx, ebx
jne 0xc215d2
mov edx, dword [eax + 0x31bc]
imul ecx, edx, 0x3c
or dword [eax + ecx + 0x30f4], 6
imul ecx, dword [eax + 0x31c4], 0x3c
and dword [eax + ecx + 0x30f4], 0xfffffffd
imul ecx, dword [eax + 0x31c8], 0x3c
and dword [eax + ecx + 0x30f4], 0xfffffffb
mov dword [eax + 0x31c4], edx
mov dword [eax + 0x31c8], edx
mov edx, dword [eax + 0x3fcc]
test edx, edx
je 0xc215cd
mov edx, dword [eax + 0x31bc]
imul ecx, edx, 0x3c
or dword [eax + ecx + 0x30f4], 1
imul ecx, dword [eax + 0x31c0], 0x3c
and dword [eax + ecx + 0x30f4], 0xfffffffe
mov dword [eax + 0x31c0], edx
add esp, 0x18
pop ebx
ret
mov ecx, dword [eax + 0x3fd4]
test ecx, ecx
je 0xc21657
mov edx, dword [eax + 0x3fdc]
test edx, edx
jne 0xc21728
mov edx, dword [eax + 0x31bc]
imul ecx, edx, 0x3c
or dword [eax + ecx + 0x30f4], 4
imul ecx, dword [eax + 0x31c8], 0x3c
and dword [eax + ecx + 0x30f4], 0xfffffffb
mov dword [eax + 0x31c8], edx
mov ebx, dword [eax + 0x3fd0]
test ebx, ebx
je 0xc216a7
mov ecx, dword [eax + 0x3fd8]
test ecx, ecx
jne 0xc21744
mov edx, dword [eax + 0x31bc]
imul ecx, edx, 0x3c
or dword [eax + ecx + 0x30f4], 2
imul ecx, dword [eax + 0x31c4], 0x3c
and dword [eax + ecx + 0x30f4], 0xfffffffd
mov dword [eax + 0x31c4], edx
jmp 0xc2159d
mov edx, dword [eax + 0x3fdc]
test edx, edx
je 0xc21610
test edx, 0xfffffffc
jne 0xc2177c
cmp edx, 1
mov ecx, dword [eax + 0x31c8]
je 0xc21715
mov edx, dword [eax + 0x31c4]
cmp ecx, edx
je 0xc21610
imul ebx, edx, 0x3c
imul ecx, ecx, 0x3c
or dword [eax + ebx + 0x30f4], 4
and dword [eax + ecx + 0x30f4], 0xfffffffb
mov dword [eax + 0x31c8], edx
jmp 0xc21610
mov edx, dword [eax + 0x3fd8]
test edx, edx
je 0xc2159d
test dword [eax + 0x3fdc], 0xfffffffc
jne 0xc21760
cmp edx, 1
je 0xc21700
mov edx, dword [eax + 0x31c8]
mov ecx, dword [eax + 0x31c4]
cmp edx, ecx
je 0xc2159d
imul ebx, edx, 0x3c
imul ecx, ecx, 0x3c
or dword [eax + ebx + 0x30f4], 2
and dword [eax + ecx + 0x30f4], 0xfffffffd
mov dword [eax + 0x31c4], edx
jmp 0xc2159d
mov ecx, dword [eax + 0x31c4]
mov edx, dword [eax + 0x31c0]
cmp ecx, edx
jne 0xc216de
jmp 0xc2159d
mov edx, dword [eax + 0x31c0]
cmp ecx, edx
jne 0xc21686
jmp 0xc21610
mov dword [esp + 8], 0xd0c
mov dword [esp + 4], str.vp8_encoder_onyx_if.c
mov dword [esp], str._cm__copy_buffer_to_arf
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0xd2c
mov dword [esp + 4], str.vp8_encoder_onyx_if.c
mov dword [esp], str._cm__copy_buffer_to_gf
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0xd34
mov dword [esp + 4], str.vp8_encoder_onyx_if.c
mov dword [esp], str.__cm__copy_buffer_to_arf__0x3_
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0xd14
mov dword [esp + 4], str.vp8_encoder_onyx_if.c
mov dword [esp], str.__cm__copy_buffer_to_arf__0x3_
call sub.msvcrt.dll__assert
nop
lea esi, [esi]
Function at 0xc217a0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebp
mov eax, dword [ebx + 0x3268]
test eax, eax
je 0xc21828
mov edi, dword [esi + 0x2c5b0]
mov dword [ebx + 0x3fc0], 0
test edi, edi
jne 0xc218bd
mov eax, dword [ebx + 0x3fc0]
test eax, eax
jle 0xc21805
mov dword [esp], esi
add esi, 0x114a0
mov dword [esp + 4], eax
call fcn.00c4acb0
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00c43780
mov eax, dword [ebx + 0x30b8]
mov dword [esp], eax
call dword [0x1765a9c]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
call fcn.00c2f5d0
lea eax, [esp + 0x28]
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceCounter
mov ebp, dword [esi + 0x2b4e0]
sub esp, 4
test ebp, ebp
mov dword [esp + 4], esi
mov eax, dword [esi + 0x1f85c]
mov dword [esp], eax
je 0xc218e3
call fcn.00c4acf0
lea eax, [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceCounter
mov eax, dword [esi + 0x2c6e8]
sub esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x14], edx
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceFrequency
mov edx, 0xf4240
sub esp, 4
test eax, eax
jne 0xc218f0
mov edi, dword [esi + 0x2c5b0]
add edx, dword [esp + 0x18]
test edi, edi
mov dword [esi + 0x2c6e8], edx
je 0xc217dd
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [esi + 0x2c5dc]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
jmp 0xc217dd
call fcn.00c4a970
jmp 0xc2185c
mov ecx, dword [esp + 0x3c]
sub edi, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
sbb ebp, dword [esp + 0x14]
cmp ebp, ecx
mov dword [esp + 0x10], edx
jg 0xc21948
jl 0xc2190e
cmp edi, edx
jae 0xc21948
imul eax, ebp, 0xf4240
mov ebp, 0xf4240
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
mov eax, edi
mul ebp
mov ebp, dword [esp + 0x1c]
add ebp, edx
mov edx, dword [esp + 0x10]
mov edi, eax
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
call fcn.00de3110
mov edx, eax
jmp 0xc218a5
mov edx, 0xf4240
jmp 0xc218a5
Function at 0xc40ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
xor edx, edx
mov eax, dword [esp + 8]
cmp ecx, 3
mov dword [eax + 0x1ce34], ecx
mov dword [eax + 0x1ce3c], 0
mov dword [eax + 0x1ce44], 0
mov dword [eax + 0x1ce48], 0
mov dword [eax + 0x1ce4c], 0
jg 0xc40f02
mov dl, 4
sub edx, ecx
movzx ebx, byte [eax + 0x2c574]
mov ecx, dword [eax + 0x1ce40]
mov dword [eax + 0x1ce40], edx
mov byte [eax + 0x1254f], bl
movzx ebx, byte [eax + 0x2c575]
cmp edx, ecx
mov byte [eax + 0x12550], bl
movzx ebx, byte [eax + 0x2c576]
mov byte [eax + 0x12551], bl
movzx ebx, byte [eax + 0x2c577]
mov byte [eax + 0x12552], bl
je 0xc40f50
mov dword [esp + 8], eax
pop ebx
jmp fcn.00c3f220
pop ebx
ret
Function at 0xc44a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x9c
lea edx, [edx + 0x744]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x40], edx
lea edx, [esi + 0x179c]
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 0x2c6b8]
add eax, dword [esp + 0xb4]
mov dword [esp + 0x88], 0
mov dword [esp + 0x5c], edx
mov edx, dword [ebx + 0x2c6c0]
mov dword [esp + 0x64], edx
mov edx, dword [ebx + 0x2c6c4]
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 0x2c6c8]
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 0x2c6cc]
mov dword [esp + 0x70], edx
mov edx, dword [ebx + 0x2c6d0]
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 0x2c6d4]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x2c6d8]
mov dword [esp + 0x7c], edx
mov edx, dword [ebx + 0x2c6dc]
mov dword [esp + 0x80], edx
mov edx, dword [ebx + 0x2ca04]
mov dword [esi + 0x1ccc], eax
movzx eax, word [ebp + 2]
mov dword [esp + 0x60], edx
lea edx, [esi + 0x60dc]
sar ax, 3
mov word [esp + 0x8e], ax
movzx eax, word [ebp]
mov dword [esp + 0x48], edx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x84]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x8c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
sar ax, 3
mov word [esp + 0x8c], ax
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20bc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x14], 3
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp], esi
call dword [ebx + 0x2c614]
mov ecx, dword [esp + 0x3c]
cmp eax, 0x7ffffefe
lea edx, [eax + 0x100]
cmovle eax, edx
cmp dword [ecx], eax
jle 0xc44bc1
mov dword [ecx], eax
mov edx, dword [esp + 0xb0]
movzx eax, word [esp + 0x88]
mov word [edx], ax
movzx eax, word [esp + 0x8a]
mov word [edx + 2], ax
mov edi, dword [esp + 0x84]
mov dword [esp + 0x84], 0
cmp edi, 3
jg 0xc44cb3
mov dword [esp + 0x4c], ebp
add edi, 4
mov ebp, ebx
xor eax, eax
mov ebx, ecx
jmp 0xc44c0d
sub eax, 1
mov dword [esp + 0x84], eax
add edi, 1
cmp edi, 8
je 0xc44cb3
mov eax, dword [esp + 0x84]
test eax, eax
jne 0xc44bf0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], edi
mov dword [esp], esi
mov dword [esp + 0x24], edx
lea edx, [esp + 0x84]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x8c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20bc]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
call dword [ebp + 0x2c614]
cmp eax, 0x7ffffefe
lea edx, [eax + 0x100]
cmovle eax, edx
cmp dword [ebx], eax
jle 0xc44bfa
mov dword [ebx], eax
mov edx, dword [esp + 0xb0]
add edi, 1
movzx eax, word [esp + 0x88]
cmp edi, 8
mov word [edx], ax
movzx eax, word [esp + 0x8a]
mov word [edx + 2], ax
jne 0xc44c06
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0xc50da0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
lea edx, [eax + 0x60b8]
mov dword [eax + 0x13e0], edx
mov dword [eax + 0x6f90], 0xc7cec0
mov dword [eax + 0x6f94], 0xc7cfa0
mov dword [eax + 0x6f98], 0xc7d100
mov dword [eax + 0x6f9c], 0xc7d750
jmp 0xc7db00
sub esp, 0x1c
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp], 0x1151774
call sub.msvcrt.dll_getenv
test eax, eax
je 0xc7db2c
cmp byte [eax], 0
jne 0xc7dc25
mov dword [esp], 0x1151782
mov esi, 0xffffffff
call sub.msvcrt.dll_getenv
test eax, eax
je 0xc7db4a
cmp byte [eax], 0
jne 0xc7dc06
xor eax, eax
mov edi, ebx
cpuid
xchg ebx, edi
test eax, eax
je 0xc7dbf6
mov eax, 1
mov edi, ebx
cpuid
xchg ebx, edi
xor eax, eax
test edx, 0x800000
setne al
mov edi, eax
or edi, 2
test edx, 0x2000000
cmovne eax, edi
mov edi, eax
or edi, 4
and edx, 0x4000000
cmovne eax, edi
mov edx, eax
or edx, 8
test cl, 1
cmovne eax, edx
mov edx, eax
or edx, 0x10
test ch, 2
cmovne eax, edx
mov edx, eax
or edx, 0x20
and ecx, 0x80000
cmovne eax, edx
and eax, esi
test al, 1
je 0xc7dbde
mov dword [ebx + 0x6f90], 0xc7dad0
mov dword [ebx + 0x6f94], 0xc9858f
mov dword [ebx + 0x6f98], 0xc98730
mov dword [ebx + 0x6f9c], 0xc98e00
test al, 4
je 0xc7dbf6
mov dword [ebx + 0x6f98], 0xc99180
mov dword [ebx + 0x6f9c], 0xc993f0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 0x1c
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_strtol
mov esi, eax
jmp 0xc7db4a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_strtol
jmp 0xc7dbb2
Function at 0xc521f0
Capabilities:
Create thread

Disassembly:
push ebp
mov eax, 8
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edx, dword [ebx + 0x6148]
cmp dword [ebx + 0x6e24], edx
cmovle edx, dword [ebx + 0x6e24]
mov dword [ebx + 0x6e20], 0
mov dword [ebx + 0x6e30], 0
cmp edx, 8
cmovle eax, edx
cmp eax, 1
jle 0xc523e9
sub eax, 1
mov dword [ebx + 0x6e2c], eax
shl eax, 2
mov dword [ebx + 0x6e20], 1
mov dword [esp], eax
call fcn.00c2e700
test eax, eax
mov dword [ebx + 0x6e6c], eax
je 0xc523f1
mov eax, dword [ebx + 0x6e2c]
shl eax, 2
mov dword [esp], eax
call fcn.00c2e700
test eax, eax
mov dword [ebx + 0x6e70], eax
je 0xc52460
imul eax, dword [ebx + 0x6e2c], 0x1420
mov dword [esp], 0x20
mov dword [esp + 4], eax
call fcn.00c2e6c0
test eax, eax
mov dword [ebx + 0x6e64], eax
je 0xc52437
imul edx, dword [ebx + 0x6e2c], 0x1420
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x6e2c]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp], eax
call fcn.00c2e700
test eax, eax
mov dword [ebx + 0x6e68], eax
je 0xc52414
mov eax, dword [ebx + 0x6e2c]
test eax, eax
jle 0xc523b0
xor edi, edi
xor esi, esi
mov dword [esp + 0x2c], 0
mov edx, dword [ebx + 0x6e70]
lea ebp, [esi*4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
add edx, ebp
mov dword [esp + 0x28], edx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov dword [edx], eax
mov edx, dword [ebx + 0x6e64]
mov eax, dword [esp + 0x2c]
add eax, dword [ebx + 0x6e68]
add ebp, dword [ebx + 0x6e6c]
add edx, edi
add edi, 0x1420
mov dword [eax], esi
add esi, 1
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc51240
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
add dword [esp + 0x2c], 0xc
cmp dword [ebx + 0x6e2c], esi
mov dword [ebp], eax
jg 0xc52303
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
mov dword [ebx + 0x6e74], eax
mov eax, dword [ebx + 0x6e2c]
sub esp, 0x10
mov dword [ebx + 0x6e30], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x1400]
mov dword [esp + 8], 0x114f6c8
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00c52180
jmp 0xc52262
lea eax, [ebx + 0x1400]
mov dword [esp + 8], str.Failed_to_allocate_pbi__de_thread_data
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00c52180
jmp 0xc522e9
lea eax, [ebx + 0x1400]
mov dword [esp], eax
mov dword [esp + 8], str.Failed_to_allocate_pbi__mb_row_di
mov dword [esp + 4], 2
call fcn.00c52180
mov eax, dword [ebx + 0x6e64]
jmp 0xc522a9
lea eax, [ebx + 0x1400]
mov dword [esp + 8], str.Failed_to_allocate_pbi__h_event_start_decoding
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00c52180
jmp 0xc52281