joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x404d61
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x404d44
cmp edi, 2
jb 0x404d44
cmp byte [esi], cl
jne 0x404d44
cmp byte [esi + 1], cl
jne 0x404d44
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43f5c8]
jmp 0x404d15
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43f5c8]
test edi, edi
jne 0x404d15
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x404d90
cmp cl, 0x23
jne 0x404d77
cmp byte [esi], cl
jne 0x404d77
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x43f5c8]
test cl, cl
jne 0x404d68
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x404f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x404f33
mov dword [ebx], 0
mov edx, 0x43f1bc
call fcn.00404da0
mov esi, eax
test esi, esi
je 0x405052
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x405048
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x405048
push esi
call edi
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x405048
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x405048
mov ecx, edi
call fcn.00408cd0
mov dword [ebp + 8], eax
test eax, eax
je 0x405048
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x405031
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [0x44649c]
add esp, 4
test ecx, ecx
je 0x40501e
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov esi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x405014
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x405040
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4084e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xec]
mov ebx, dword [edi + 0xf4]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43f5c8]
sub esi, 1
jne 0x408520
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fc4], ebx
jne 0x408557
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041b250
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bcd1
mov esp, ebp
pop ebp
ret 4

Function at 0x408570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0x108]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x10c]
subss xmm0, xmm1
mov ecx, dword [edx + 0xec]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xf4]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43f5c8]
sub edi, 1
jne 0x4085f0
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.0043bcd1
mov esp, ebp
pop ebp
ret 4
Function at 0x40bcc0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40bcfd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40bce3
cmp byte [esi], bl
jne 0x40bce3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x43f5c8]
test bl, bl
jne 0x40bcd4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040bc60
Function at 0x419c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5e2c], 0
lea esi, [edi + 0x5e30]
je 0x419ce2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x419c9c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0041c000
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00405540
mov edx, dword [esi]
mov ecx, 0x446498
push dword [edi + 0x5e2c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5e38]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00405540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a0f0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x44649c]
test bl, bl
je 0x41a136
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41a117
cmp byte [esi], bl
jne 0x41a117
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x43f5c8]
test bl, bl
jne 0x41a108
mov edi, dword [0x44649c]
mov ecx, dword [edi + 0x5dd0]
not eax
mov edx, dword [edi + 0x5dd8]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x41a15d
cmp dword [edx + 4], eax
je 0x41a160
add edx, 0x24
cmp edx, ecx
jne 0x41a151
xor eax, eax
ret
mov eax, edx
ret
Function at 0x42d280
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x44649c]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42d42c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x42d42c
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x44649c]
add esp, 4
mov edi, eax
test esi, esi
je 0x42d323
movsx edx, word [esi + 0x5ee4]
lea eax, [esi + 0x5ee8]
mov ecx, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x42d319
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5edc]
test edi, edi
je 0x42d336
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x42d338
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x6c], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x42d373
mov esi, dword [esi + 0x74]
jmp 0x42d375
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42d398
mov dword [esi], eax
mov eax, dword [0x44649c]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a34]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x28], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x42d3fa
inc esi
cmp esi, 5
jl 0x42d3d1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bcd1
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bcd1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bcd1
mov esp, ebp
pop ebp
ret
Function at 0x439930
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x4399a2
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x439978
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x43995f
cmp byte [esi], cl
jne 0x43995f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x43f5c8]
test cl, cl
jne 0x439950
mov ecx, dword [0x44649c]
not eax
cmp dword [ecx + 0x3fdc], eax
jne 0x43998e
mov dword [ecx + 0x3fe0], eax
cmp dword [ecx + 0x4004], eax
jne 0x4399e8
mov byte [ecx + 0x4008], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x44649c]
xor edx, edx
mov esi, dword [eax + 0x3f8c]
mov ecx, dword [esi + 0xec]
mov eax, dword [esi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.00404d00
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x3fc4], ebx
jne 0x4399e6
push ecx
push edi
mov edx, 0xb
mov ecx, ebx
call fcn.0041b250
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x43c5cf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43c60e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43c60e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43c60e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43c60e
cmp dword [ecx + 0x74], 0xe
jbe 0x43c60e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4024a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1002c
call fcn.004abe10
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x10028], eax
mov eax, dword [esp + 0x10]
push ebx
xor ebx, ebx
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
push edi
mov edi, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x4024f5
add eax, 4
jmp 0x4024f7
xor eax, eax
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x402503
add ecx, 4
jmp 0x402505
xor ecx, ecx
push 0xf003f
push ecx
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, eax
call fcn.00455560
cmp eax, ebx
je 0x402558
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40252a
lea edx, [eax + 4]
jmp 0x40252c
xor edx, edx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x402538
add eax, 4
jmp 0x40253a
xor eax, eax
push 0x20019
push eax
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00455560
cmp eax, ebx
je 0x402558
mov dword [edi], ebx
jmp 0x402611
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
add esi, 0xc
push eax
mov edi, 0x10000
mov eax, esi
call fcn.0043c570
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40257e
add eax, 4
jmp 0x402580
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push ebx
push eax
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4025ae
mov edi, dword [esp + 0x28]
jmp 0x4025bb
mov edi, dword [esp + 0x24]
dec edi
cmp byte [esp + 0x30], bl
jne 0x4025bb
xor edi, edi
lea ecx, [esp + 0x14]
call fcn.00455610
test eax, eax
jne 0x4025db
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4025db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp edi, ebx
je 0x4025eb
push edi
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0043c500
mov esi, dword [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
cmp esi, ebx
je 0x402611
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0x80
jl 0x402611
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edi, [esp + 0x14]
call fcn.004554e0
mov ecx, dword [esp + 0x10034]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049ceb0
mov esp, ebp
pop ebp
ret
Function at 0x4027a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
call fcn.00402890
xor ebx, ebx
test eax, eax
je 0x4027c5
cmp byte [esi + 0x20], bl
je 0x4027c5
mov eax, esi
call fcn.004029a0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
lea edi, [esi + 0xc]
mov dword [esi + 0x18], eax
mov ecx, dword [ecx]
cmp eax, ecx
je 0x40287a
mov eax, dword [esp + 0x18]
xor eax, eax
mov dword [edi], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
cmp eax, ebx
je 0x4027ff
lea edx, [eax + 4]
jmp 0x402801
xor edx, edx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40280d
add eax, 4
jmp 0x40280f
xor eax, eax
push 0xf003f
push eax
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00455560
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 0x14]
cmp eax, ebx
je 0x40283a
add eax, 4
jmp 0x40283c
xor eax, eax
mov ecx, dword [esp + 0x10]
push 4
push edi
push esi
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
call fcn.00455610
test eax, eax
jne 0x40286d
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40286d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov esi, dword [edi]
lea edi, [esp + 0x10]
call fcn.004554e0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
xor eax, eax
push edi
xor edi, edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x4028bc
lea edx, [eax + 4]
jmp 0x4028be
xor edx, edx
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4028ca
add eax, 4
jmp 0x4028cc
xor eax, eax
push 0xf003f
push eax
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00455560
cmp eax, edi
je 0x40292a
mov eax, dword [esi + 8]
cmp eax, edi
je 0x4028ef
lea edx, [eax + 4]
jmp 0x4028f1
xor edx, edx
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4028fd
add eax, 4
jmp 0x4028ff
xor eax, eax
push 0x20019
push eax
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00455560
mov ebx, eax
cmp ebx, edi
je 0x40292a
lea edi, [esp + 0x18]
call fcn.004554e0
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x402937
add eax, 4
jmp 0x402939
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
add esi, 0xc
push esi
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
push edx
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00455610
test eax, eax
jne 0x402982
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x402982
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], edi
lea edi, [esp + 0x18]
call fcn.004554e0
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x404220
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
lea eax, [ebp + 0x10]
push eax
mov dword [esp + 0x18], ebx
mov dword [ebp], vtable.ytBaseThread.0
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
call edi
lea esi, [ebp + 0x28]
mov dword [ebp + 0xc], ebx
mov dword [ebp], vtable.RateLimitHue.0
call fcn.0044a930
lea esi, [ebp + 0x38]
call fcn.0044a930
mov byte [ebp + 0x48], 1
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov byte [ebp + 0x54], 1
mov byte [ebp + 0x55], bl
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov byte [ebp + 0x60], 1
mov byte [ebp + 0x61], bl
lea esi, [ebp + 0x70]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
call fcn.0044a930
lea ecx, [ebp + 0x90]
push ecx
mov dword [ebp + 0x80], vtable.ytBaseThread.0
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x84], ebx
call edi
movss xmm0, dword [0x4c418c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x80], vtable.ytArray_struct_HueBridge__0__class_ytBaseThread_.0
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
movss dword [ebp + 0xb0], xmm0
mov dword [ebp + 0xb4], ebx
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xc4], ebx
pxor xmm0, xmm0
movq qword [ebp + 0xd0], xmm0
movq qword [ebp + 0xd8], xmm0
movq qword [ebp + 0xe0], xmm0
movq qword [ebp + 0xe8], xmm0
mov dword [ebp + 0xf0], ebx
pxor xmm0, xmm0
movq qword [ebp + 0xf4], xmm0
movq qword [ebp + 0xfc], xmm0
movq qword [ebp + 0x104], xmm0
movq qword [ebp + 0x10c], xmm0
movsd xmm0, qword [0x4d3620]
mov dword [ebp + 0x114], ebx
push 0x567098
mov byte [ebp + 0x118], bl
movsd qword [ebp + 0xc8], xmm0
call esi
lea edi, [ebx + 0x4c]
call fcn.0045f460
mov edi, eax
cmp edi, ebx
je 0x4043af
push 8
push str.ssdp:all
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebx
call fcn.0043c500
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x1c], 1
call fcn.00403b50
mov dword [edi], vtable.HueSearch.0
mov dword [edi + 4], vtable.HueSearch.1.0
jmp 0x4043b1
xor edi, edi
test byte [esp + 0x14], 1
mov dword [ebp + 0xc0], edi
je 0x4043e9
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x4043e9
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x4043de
push edi
call esi
jmp 0x4043e9
cmp eax, ebx
jne 0x4043e9
mov esi, edi
call fcn.0045f5a0
mov esi, dword [ebp + 0xc0]
add esi, 4
lea edi, [esi + 0x10]
push edi
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push ebx
push 0x43cff0
call fcn.0049dc4e
add esp, 0xc
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x74], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x405390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov dword [esi + 0xf28], eax
je 0x405484
cmp dword [esi + 0xe4c], 0
jne 0x405426
push 0x567098
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0x120
call fcn.0045f460
test eax, eax
je 0x4053d5
push eax
call fcn.00404220
jmp 0x4053d7
xor eax, eax
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0xe4c], eax
mov dword [eax + 0xb8], ecx
mov edx, dword [esi + 0xe4c]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0xbc], eax
mov edi, dword [esi + 0xe4c]
lea ebx, [edi + 0x10]
push ebx
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0
push 0x43cff0
call fcn.0049dc4e
add esp, 0xc
push ebx
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movsx ecx, byte [ebp + 0xc]
mov edx, dword [esi + 0xe4c]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 6
cvtsi2sd xmm0, ecx
movsd qword [edx + 0xc8], xmm0
mov eax, dword [esi + 0xe4c]
cvtsi2ss xmm0, dword [ebp + 0x14]
mov dl, byte [ebp + 0x10]
movss dword [eax + 0xb0], xmm0
mov ecx, dword [esi + 0xe4c]
mov eax, dword [ebp + 0x18]
mov byte [ecx + 0x48], dl
mov edi, dword [esi + 0xe4c]
push eax
add edi, 0xb4
call fcn.00401250
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [esi + 0xe4c]
test edi, edi
je 0x4054b1
push 0
call fcn.0043d0e0
mov ecx, dword [esi + 0xe4c]
test ecx, ecx
je 0x4054a7
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0xe4c], 0
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4054c0
Capabilities:
Create thread

Disassembly:
push ecx
cmp byte [esp + 0xc], 0
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
je 0x405547
cmp dword [ebp + 0xe50], 0
jne 0x405563
push 0x567098
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0x50
call fcn.0045f460
test eax, eax
je 0x4054fe
mov esi, eax
call fcn.004037b0
jmp 0x405500
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0xe50], eax
mov dword [eax + 0x44], ecx
mov esi, dword [ebp + 0xe50]
lea edi, [esi + 0x10]
push edi
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push 0
push 0x43cff0
call fcn.0049dc4e
add esp, 0xc
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
mov ecx, dword [ebp + 0xe50]
test ecx, ecx
je 0x405563
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebp + 0xe50], 0
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc