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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x100095c1
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x100095ef
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10009627
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10009604
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10009627
fld qword [ebp + 0x10]
lea ecx, [eax + eax*8]
sub esp, 8
shl ecx, 4
add ecx, edx
fstp qword [esp]
push dword [ecx + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x178]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10009650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x100096a1
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x100096cf
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10009701
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x100096e4
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10009701
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push dword [ecx + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x17c]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10009730
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x10009781
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x100097af
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x100097e1
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x100097c4
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x100097e1
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push dword [ecx + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x180]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10009810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x10009861
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x1000988f
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x100098c1
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x100098a4
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x100098c1
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push dword [ecx + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x184]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100098f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x10009941
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x1000996f
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x100099a1
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10009984
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x100099a1
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push dword [ecx + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x188]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100099d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x10009a21
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x10009a4f
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10009a81
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10009a64
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10009a81
push dword [ebp + 0x10]
lea ecx, [eax + eax*8]
shl ecx, 4
add ecx, edx
push dword [ecx + 0x8c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18c]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10009ab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afda8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x3c]
cmp eax, ecx
jne 0x10009afe
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
add esi, 0x44
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x34], 0
jne 0x10009b30
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10009b72
mov edi, dword [eax + 0x38]
dec edi
js 0x10009b61
lea ebx, [edi + edi*8]
shl ebx, 4
lea esp, [esp]
mov eax, dword [eax + 0x34]
push dword [ebp + 0xc]
add eax, ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x190]
test eax, eax
je 0x10009b9a
mov eax, dword [ebp + 8]
sub ebx, 0x90
dec edi
jns 0x10009b40
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp + 8], 0
jmp 0x10009b72

Function at 0x10009c70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100afd88
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x3c]
cmp eax, ecx
jne 0x10009cc1
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea esi, [edi + 0x44]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test edx, edx
jne 0x10009cef
push 6
call ebx
mov dword [ebp + 8], 0
jmp 0x10009d24
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x38]
jb 0x10009d04
push 0x57
call ebx
mov dword [ebp + 8], 0
jmp 0x10009d24
push dword [ebp + 0x1c]
lea ecx, [eax + eax*8]
push dword [ebp + 0x18]
shl ecx, 4
push dword [ebp + 0x14]
add ecx, edx
push dword [ebp + 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1a0]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10014582
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub ecx, dword [ecx - 4]
sub ecx, 8
jmp fcn.1001a5d0
Function at 0x10019ed1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp byte [ecx - 0x4a98], 0
je 0x10019c51
add ecx, 0xfffffff0
jmp fcn.10016240
jmp fcn.1001a5d0
sub ecx, dword [ecx - 4]
jmp 0x10019c40
Function at 0x1001abd0
Capabilities:
Access peb ldr_data
Check os version
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b020c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
lea ebx, [esi + 0x38]
fld1
fstp qword [ebx + 0x18]
fld qword [0x100b91f8]
fst qword [ebx + 0x30]
fldz
fstp qword [ebx + 0x48]
mov dword [ebx + 8], 1
fst qword [ebx + 0x40]
fstp qword [ebx + 0x38]
fld qword [0x100b91d8]
fstp qword [ebx + 0x50]
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x10], 0x20
mov byte [ebx + 0x20], 1
mov dword [ebx + 0x28], 4
mov dword [ebx], vtable.fir_shape_0_.0
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 1
call fcn.1001c480
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 2
call fcn.1001c4a0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 3
call fcn.100954e0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
fld1
lea edi, [esi + 0xd8]
fstp qword [edi + 0x18]
mov dword [edi + 8], 1
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 0x20
mov byte [edi + 0x20], 1
mov dword [edi + 0x28], 4
mov dword [edi], vtable.fir_shape_4_.0
lea ecx, [esi + 0x160]
mov byte [ebp - 4], 5
call fcn.10031590
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
fldz
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0x1001b5b0
fst dword [esi + 0x140]
fstp dword [esi + 0x130]
mov dword [esi + 0xc], ebx
test ebx, ebx
je 0x1001ad48
mov byte [ebx + 0x20], 1
jmp 0x1001ad6d
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1001ad6d
push eax
call fcn.1009d16a
add esp, 4
mov dword [esi + 0x10], 0
cmp dword [ebx + 0x28], 0xa
je 0x1001ad7e
mov dword [ebx + 0x28], 0xa
mov byte [ebx + 0x20], 1
mov dword [esi + 0xac], edi
test edi, edi
je 0x1001ad8e
mov byte [edi + 0x20], 1
jmp 0x1001adbf
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
test eax, eax
je 0x1001adbf
push eax
call fcn.1009d16a
add esp, 4
mov dword [esi + 0xb0], 0
cmp dword [edi + 0x10], 0x200
je 0x1001aded
xor edx, edx
mov eax, 0x200
div dword [edi + 8]
test edx, edx
jne 0x1001aded
cmp eax, 4
jb 0x1001aded
mov eax, dword [edi]
mov ecx, edi
mov dword [edi + 0x10], 0x200
mov byte [edi + 0x20], 1
call dword [eax + 8]
cmp dword [edi + 0x28], 3
je 0x1001adfe
mov dword [edi + 0x28], 3
mov byte [edi + 0x20], 1
fldz
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
fstp dword [esi + 0x98]
mov dword [esi + 0xa4], 0x320
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x108], 3
mov dword [esi + 0x114], 3
mov dword [esi + 0x118], 0xbb8
mov dword [esi + 0x11c], 0x64
mov dword [esi + 0x128], 3
mov byte [esi + 0x15c], 0
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c400
Capabilities:
Terminate process

Disassembly:
push edi
lea edi, [ecx + 0x160]
mov ecx, edi
call fcn.10031950
mov eax, dword [edi]
test eax, eax
je 0x1001c453
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x94]
call esi
push dword [edi + 0x90]
call esi
mov dword [edi], 0
mov dword [edi + 0xb0], 0
pop esi
pop edi
ret

Function at 0x1001d8a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b022b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea eax, [esi + 0x18]
mov dword [esi], vtable.g65ddc_demux::stream.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
lea edi, [esi + 0x30]
push 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.1009c7ed
add esp, 4
test eax, eax
jne 0x1001d90f
call fcn.100ace30
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
mov al, byte [ebp + 0xc]
mov byte [esi + 0x44], al
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10020c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
push 0xa
mov eax, dword [ebx]
call dword [eax + 0x104]
movzx eax, ax
push eax
push dword [0x100db79c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10020c78
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [0x100db79c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x100db79c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10020c6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x10020caf
mov eax, 0xe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
lea edx, [edi - 8]
mov esi, dword [eax]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [eax + 8]
call fcn.1008d330
add esp, 8
test eax, eax
jne 0x10020cf3
push dword [ebp - 4]
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [ebp - 0xc]
push esi
push dword [ebp - 8]
push edi
call dword [eax + 0x108]
push edi
mov esi, eax
call fcn.1009c348
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10020d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
test cl, cl
je 0x10020d68
lea eax, [ebp - 8]
mov byte [ebp - 1], 0
push eax
push 0
lea eax, [ebp - 1]
push eax
push 0x10020d00
push 0
push 0
call fcn.1009c4da
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10020d68
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret
push 0x50024
push str.Confirm
push str.Do_you_want_to_use_fpga_debug.rbf_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
cmp eax, 6
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x10022680
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x358], 0
je 0x100227bd
mov eax, dword [edi]
call dword [eax + 0x114]
lea eax, [edi + 0x2cd]
push eax
lea eax, [esp + 0x2c]
push str.SoftwareWiNRADiOG65DDCAPI_s
push eax
call fcn.1009d293
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x20019
push 0
lea eax, [esp + 0x34]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
test eax, eax
jne 0x10022760
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 8
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str.Relay
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1002275a
cmp dword [esp + 0x18], 3
jne 0x1002275a
cmp dword [esp + 0xc], 8
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
jne 0x10022760
lea eax, [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, 0x54d38000
adc eax, 0x192
cmp eax, dword [esp + 0x14]
jg 0x100227bd
jl 0x10022760
cmp ecx, dword [esp + 0x10]
ja 0x100227bd
jmp 0x10022760
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, edi
call fcn.100227d0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100227bd
lea eax, [esp + 0x10]
push eax
call esi
push 8
lea eax, [esp + 0x14]
push eax
push 3
push 0
push str.Relay
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10026530
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x100b0425
push eax
mov dword fs:[0], esp
sub esp, 0x2d8
push ebx
push esi
push edi
push 4
mov esi, edx
mov ebx, ecx
push str.udp:
push esi
call fcn.1009d837
add esp, 0xc
test eax, eax
jne 0x100266bd
mov dword [esp + 0x18], esi
add esi, 4
push 0x3a
push esi
call fcn.1009d9d0
mov edi, eax
add esp, 8
test edi, edi
je 0x100266bd
sub edi, esi
cmp edi, 0x100
jae 0x100266bd
test edi, edi
je 0x100266bd
push edi
lea eax, [esp + 0x54]
push esi
push eax
call fcn.100a8ab0
lea eax, [esi + 1]
mov byte [esp + edi + 0x5c], 0
add eax, edi
add esp, 0xc
cmp byte [eax], 0
je 0x100266bd
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.1009dd21
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov esi, eax
test ecx, ecx
je 0x100266bd
cmp byte [ecx], 0
jne 0x100266bd
cmp esi, 0xffff
jg 0x100266bd
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x1cc]
call eax
test al, al
je 0x1002660e
push 0x32
jmp 0x100266bf
lea eax, [esp + 0x150]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1002662b
push eax
jmp 0x100266bf
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push 0xa
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.1009d953
add esp, 0xc
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x10026686
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
jmp 0x100266bf
mov eax, dword [esp + 0x10]
mov esi, eax
test eax, eax
je 0x1002669d
cmp dword [esi + 4], 2
je 0x100266dc
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10026690
mov esi, eax
test eax, eax
je 0x100266b0
cmp dword [esi + 4], 0x17
je 0x100266dc
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100266a3
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x2e4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100da820
push 0xc05b8
call fcn.1009c903
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2ec], 0
test eax, eax
je 0x10026717
push dword [esi + 0x10]
mov ecx, eax
push dword [esi + 0x18]
push dword [esp + 0x20]
push ebx
call fcn.100272b0
mov esi, eax
jmp 0x10026719
xor esi, esi
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
test esi, esi
je 0x1002674c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0x2e4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x2e4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret