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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp ecx, dword [edi + 0x10]
mov dword [ebp - 4], ecx
jae 0x4caf75
mov eax, dword [0x776138]
push ebx
push esi
xor ebx, ebx
mov edx, dword [edi + 0x14]
mov esi, dword [edx + ecx*4]
cmp esi, ebx
je 0x4caf5e
cmp word [esi + 0x3c], bx
je 0x4caed9
cmp eax, ebx
jge 0x4cae9e
xor eax, eax
jmp 0x4caea5
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [esi + 0x3c]
cmp ecx, dword [eax + 0x120]
ja 0x4caecd
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea eax, [ecx + eax - 0x10]
je 0x4caecd
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
mov word [esi + 0x3c], bx
mov dword [esi + 4], ebx
mov eax, dword [0x776138]
cmp word [esi + 0x3e], bx
je 0x4caf22
cmp eax, ebx
jge 0x4caee7
xor eax, eax
jmp 0x4caeee
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [esi + 0x3e]
cmp ecx, dword [eax + 0x120]
ja 0x4caf16
mov edx, dword [esi + 0xc]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea eax, [ecx + eax - 0x10]
je 0x4caf16
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
mov word [esi + 0x3e], bx
mov dword [esi + 0xc], ebx
mov eax, dword [0x776138]
cmp eax, ebx
jl 0x4caf5e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp edi, ebx
je 0x4caf56
push 0x40
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov dword [esi], ebx
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x4caf50
mov dword [eax], esi
jmp 0x4caf53
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov edi, dword [ebp + 8]
mov eax, dword [0x776138]
mov ecx, dword [ebp - 4]
add ecx, 1
cmp ecx, dword [edi + 0x10]
mov dword [ebp - 4], ecx
jb 0x4cae82
mov ecx, dword [ebp + 0xc]
pop esi
pop ebx
or dword [edi + 0x18], 7
mov dword [edi + 0x10], ecx
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x4cc480
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp esi, 0xffff
mov eax, dword [ebp + 8]
mov word [eax], 0
mov dword [ebx], 0
jbe 0x4cc4a4
mov eax, 0x80070216
pop ebp
ret 4
test esi, esi
jbe 0x4cc51b
mov eax, dword [0x776138]
test eax, eax
jge 0x4cc4b5
xor eax, eax
jmp 0x4cc4bc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, dword [eax + 0x120]
ja 0x4cc4f4
mov edx, dword [eax + 0x11c]
mov ecx, esi
shl ecx, 4
cmp dword [edx + ecx - 0xc], 0
push edi
lea edi, [edx + ecx - 0x10]
jne 0x4cc4e9
call fcn.004ce8f0
test eax, eax
je 0x4cc4e9
xor eax, eax
pop edi
jmp 0x4cc506
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov dword [edi + 4], ecx
pop edi
jmp 0x4cc506
mov ecx, dword [eax + 0xc]
push 0x10
lea edx, [esi*4]
push edx
call fcn.007515ae
test eax, eax
mov dword [ebx], eax
jne 0x4cc515
mov eax, 0x8007000e
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov word [eax], si
xor eax, eax
pop ebp
ret 4
Function at 0x4ce810
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x776138]
test eax, eax
jge 0x4ce822
xor eax, eax
jmp 0x4ce829
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret 4

Function at 0x4ce850
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x776138]
test eax, eax
jge 0x4ce85d
xor eax, eax
jmp 0x4ce864
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x10], 0
je 0x4ce889
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4ce874
xor eax, eax
ret
mov edx, dword [ecx]
test edx, edx
mov dword [eax + 0x10], edx
jne 0x4ce880
mov dword [eax + 0x14], edx
mov dword [ecx], 0xfefefefe
mov eax, ecx
ret
mov ecx, dword [eax + 0xc]
push 0x10
push 0x40
call fcn.007515ae
ret

Function at 0x4ce8a0
Capabilities:
Get thread local storage value

Disassembly:
test esi, esi
je 0x4ce8e6
mov eax, dword [0x776138]
test eax, eax
jl 0x4ce8e6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x4ce8e5
push 0x40
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov dword [esi], 0
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4ce8df
mov dword [eax], esi
mov dword [edi + 0x14], esi
pop edi
ret
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
pop edi
ret
Function at 0x4d8fd0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x2994]
push esi
push edi
push eax
mov dword [ebx], 0x45cf48
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebx + 0x29a0]
add esp, 4
test ecx, ecx
je 0x4d8ffe
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov esi, dword [ebx + 0x299c]
test esi, esi
je 0x4d9016
call fcn.00523fb0
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx + 0x299c], 0
lea esi, [ebx + 0x2a58]
mov edi, 0x1000
jmp 0x4d9030
mov ecx, dword [esi]
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov dword [esi], 0
add esp, 4
add esi, 4
sub edi, 1
jne 0x4d9030
lea esi, [ebx + 0x2a58]
mov edi, 0xe
mov eax, dword [esi - 0xc]
sub esi, 0xc
test eax, eax
je 0x4d9073
mov edi, edi
mov edx, dword [eax]
push eax
mov dword [esi], edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi]
add esp, 4
test eax, eax
jne 0x4d9060
mov eax, dword [esi + 4]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
sub edi, 1
mov dword [esi + 4], 0
jns 0x4d9054
pop edi
pop esi
mov ecx, ebx
pop ebx
jmp fcn.004c9850
Function at 0x4de080
Capabilities:
Get thread local storage value

Disassembly:
test esi, esi
je 0x4de0c9
mov eax, dword [0x776138]
test eax, eax
push edi
jge 0x4de092
xor edi, edi
jmp 0x4de09b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push pe_nt_image_headers32
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov dword [esi], 0
mov eax, dword [edi + 8]
add esp, 0xc
test eax, eax
je 0x4de0c2
mov dword [eax], esi
mov dword [edi + 8], esi
pop edi
ret
mov dword [edi + 4], esi
mov dword [edi + 8], esi
pop edi
ret

Function at 0x4e0380
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebx], 0
je 0x4e0422
push esi
push edi
mov esi, dword [ebx]
test esi, esi
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
je 0x4e0413
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4e03d3
cmp ecx, 0xffffffff
je 0x4e03d3
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4e03b8
mov edx, dword [esi + 0x14]
mov dword [eax + 0x14], edx
jmp 0x4e03be
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x24], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e03cd
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x18], ecx
jmp 0x4e03d3
mov edx, dword [esi + 0x18]
mov dword [ecx + 0x28], edx
mov eax, dword [0x776138]
test eax, eax
jge 0x4e03e0
xor edi, edi
jmp 0x4e03e9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push pe_nt_image_headers32
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov dword [esi], 0
mov eax, dword [edi + 8]
add esp, 0xc
test eax, eax
je 0x4e040d
mov dword [eax], esi
jmp 0x4e0410
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov eax, dword [ebp - 4]
test eax, eax
mov dword [ebx], eax
jne 0x4e0391
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50c9f0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0xaa84]
push eax
mov dword [esi], 0x462310
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esi + 0xaa9c]
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0xab10]
add esp, 8
test eax, eax
je 0x50ca32
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0xab10], 0
mov ecx, esi
pop esi
jmp fcn.004d8fd0
Function at 0x52be60
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x28fc]
push edi
mov dword [ebp - 4], eax
xor edi, edi
lea ebx, [ebp - 0x14]
fldz
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov eax, dword [esi + 0x28fc]
sub esp, 8
fstp qword [esp]
push 0
push 0
push edi
push edx
push eax
push ebx
push esi
call fcn.004ca3c0
test eax, eax
jl 0x52bff5
add edi, 1
add ebx, 4
cmp edi, 4
jb 0x52be7b
mov eax, dword [ebp - 4]
add dword [eax + 0x10], 1
mov eax, dword [0x776138]
xor edi, edi
cmp eax, edi
jge 0x52bec6
xor eax, eax
jmp 0x52becd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x10], edi
je 0x52bef3
mov ecx, dword [eax + 0x10]
cmp ecx, edi
jne 0x52bedd
xor eax, eax
jmp 0x52beff
mov edx, dword [ecx]
cmp edx, edi
mov dword [eax + 0x10], edx
jne 0x52bee9
mov dword [eax + 0x14], edi
mov dword [ecx], 0xfefefefe
mov eax, ecx
jmp 0x52beff
mov ecx, dword [eax + 0xc]
push 0x10
push 0x40
call fcn.007515ae
cmp eax, edi
je 0x52bf38
or ecx, 0xffffffff
mov dword [eax + 0x10], ecx
mov dword [eax + 0x20], ecx
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 0x38], edi
mov dword [eax + 4], edi
mov word [eax + 0x3c], di
mov dword [eax + 0xc], edi
mov word [eax + 0x3e], di
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x24], edi
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], edi
mov ecx, eax
jmp 0x52bf3a
xor ecx, ecx
cmp ecx, edi
mov edx, dword [ebp + 8]
mov dword [edx], ecx
jne 0x52bf51
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
push edi
mov eax, ebx
and eax, 0xfffff
push ecx
or eax, 0x10000000
mov edx, ebx
mov ecx, ebx
call fcn.004cc5e0
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x52bfa4
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
cmp ebx, edi
je 0x52bff5
lea esi, [ebx + 4]
lea edi, [ebx + 0x3c]
call fcn.004cc530
lea esi, [ebx + 0xc]
lea edi, [ebx + 0x3e]
call fcn.004cc530
mov esi, ebx
call fcn.004ce8a0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xaa78]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
xor eax, eax
cmp ebx, edi
jbe 0x52bff3
mov edi, dword [ecx + 4]
mov edx, dword [ebp + eax*4 - 0x14]
mov dword [edi + eax*4], edx
mov edi, dword [esi + 0xaa78]
mov edi, dword [edi + 0xc]
mov edi, dword [edi + eax*4]
mov ebx, dword [ecx + 0xc]
mov dword [ebx + eax*4], edi
mov edi, dword [esi + 0xaa78]
mov edi, dword [edi + 0xc]
mov dword [edi + eax*4], edx
add eax, 1
cmp eax, dword [ebp + 0xc]
jb 0x52bfc1
xor edi, edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52f2b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, ecx
xor ebx, ebx
xor ecx, ecx
cmp dword [edi + 0xab24], ebx
mov dword [ebp - 4], edi
mov dword [edi], 0x463288
mov dword [ebp - 8], ecx
jbe 0x52f3d5
mov eax, dword [0x776138]
push esi
mov edi, edi
mov edx, dword [edi + 0xab18]
mov esi, dword [edx + ecx*4]
cmp esi, ebx
je 0x52f3bf
cmp word [esi + 0x3c], bx
je 0x52f33a
cmp eax, ebx
jge 0x52f2ff
xor eax, eax
jmp 0x52f306
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [esi + 0x3c]
cmp ecx, dword [eax + 0x120]
ja 0x52f32e
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea eax, [ecx + eax - 0x10]
je 0x52f32e
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
mov word [esi + 0x3c], bx
mov dword [esi + 4], ebx
mov eax, dword [0x776138]
cmp word [esi + 0x3e], bx
je 0x52f383
cmp eax, ebx
jge 0x52f348
xor eax, eax
jmp 0x52f34f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [esi + 0x3e]
cmp ecx, dword [eax + 0x120]
ja 0x52f377
mov edx, dword [esi + 0xc]
mov eax, dword [eax + 0x11c]
shl ecx, 4
cmp edx, ebx
lea eax, [ecx + eax - 0x10]
je 0x52f377
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
mov word [esi + 0x3e], bx
mov dword [esi + 0xc], ebx
mov eax, dword [0x776138]
cmp eax, ebx
jl 0x52f3bf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp edi, ebx
je 0x52f3b7
push 0x40
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov dword [esi], ebx
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x52f3b1
mov dword [eax], esi
jmp 0x52f3b4
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov edi, dword [ebp - 4]
mov eax, dword [0x776138]
mov ecx, dword [ebp - 8]
add ecx, 1
cmp ecx, dword [edi + 0xab24]
mov dword [ebp - 8], ecx
jb 0x52f2e0
pop esi
mov edx, dword [edi + 0xab18]
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi + 0xab1c]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi + 0xab20]
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi + 0xab2c]
push edx
call sub.msvcrt.dll_free
mov eax, dword [edi + 0xaa84]
push eax
mov dword [edi], 0x462310
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi + 0xaa9c]
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi + 0xab10]
add esp, 0x18
cmp eax, ebx
je 0x52f43e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0xab10], ebx
mov ecx, edi
call fcn.004d8fd0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x540570
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1774
call fcn.0074f240
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x10]
push eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xbbc]
push 0xbb7
push edx
call sub.msvcrt.dll__vsnprintf
add esp, 0x10
test eax, eax
jl 0x5405b5
cmp eax, 0xbb7
ja 0x5405b5
jne 0x5405b9
mov byte [ebp - 5], 0
cmp byte [ebp + 8], 0
je 0x5405d9
lea eax, [ebp - 0xbbc]
push eax
push 0x4635d0
push 0xbb8
lea ecx, [ebp - 0x1774]
push ecx
jmp 0x5405f1
lea edx, [ebp - 0xbbc]
push edx
push 0x4635fc
push 0xbb8
lea eax, [ebp - 0x1774]
push eax
call fcn.00468e10
add esp, 0x10
test esi, esi
je 0x540616
lea ecx, [ebp - 0x1774]
push ecx
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0074f205
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x1774]
push edx
call esi
push 0x462bec
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0074f205
mov esp, ebp
pop ebp
ret

Function at 0x540640
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1774
call fcn.0074f240
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0xc]
push eax
mov esi, ecx
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xbbc]
push 0xbb7
push edx
call sub.msvcrt.dll__vsnprintf
add esp, 0x10
test eax, eax
jl 0x540685
cmp eax, 0xbb7
ja 0x540685
jne 0x540689
mov byte [ebp - 5], 0
lea eax, [ebp - 0xbbc]
push eax
push 0x463630
lea ecx, [ebp - 0x1774]
push 0xbb8
push ecx
call fcn.00468e10
add esp, 0x10
test esi, esi
je 0x5406c6
lea edx, [ebp - 0x1774]
push edx
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0074f205
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x1774]
push eax
call esi
push 0x462bec
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0074f205
mov esp, ebp
pop ebp
ret
Function at 0x54d088
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40156c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x54d0e1
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x54d0e1
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x54d0e1
xor eax, eax
inc eax
jmp 0x54d0e3
xor eax, eax
leave
ret 0x10
Function at 0x577c77
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x40156c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x577ce7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x405cb8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x577cde
cmp dword [ebp - 0xc], 4
jne 0x577cde
cmp dword [ebp - 0x10], edi
je 0x577cde
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x75e298], edi
xor eax, eax
jmp 0x577d26
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x75e298], edi
jge 0x577d21
lea eax, [ebp - 0x34]
push eax
mov dword [0x75e298], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x577d21
cmp word [ebp - 0x14], 5
jb 0x577d21
call fcn.00577c4a
test eax, eax
je 0x577d21
emms
mov dword [0x75e298], 1
mov eax, dword [0x75e298]
pop edi
leave
ret

Function at 0x577e41
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x577e8a
inc eax
jmp 0x577ec4
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x577eb8
cmp dword [ebp - 0x94], 4
ja 0x577eb4
jne 0x577ec4
cmp dword [ebp - 0x90], 0xa
jb 0x577ec4
cmp word [ebp - 0x8c], 0x55d
jb 0x577ec4
xor eax, eax
jmp 0x577ec4
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0074f205
leave
ret

Function at 0x577ed5
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x577f32
cmp dword [ebp - 0x88], 2
jne 0x577f32
cmp dword [ebp - 0x94], 5
jb 0x577f32
xor eax, eax
inc eax
jmp 0x577f34
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0074f205
leave
ret
Function at 0x5a488e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [esi + 0xc]
call fcn.005a47d7
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x5a48bd
mov esi, 0x8007000e
jmp 0x5a4943
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5a48c2
sub eax, ecx
lea esi, [eax + 1]
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5a48d4
sub eax, ecx
push ebx
lea ebx, [eax + 1]
lea eax, [ebx + esi]
push eax
mov dword [ebp + 0x10], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
jne 0x5a48fb
mov esi, 0x8007000e
jmp 0x5a4942
mov eax, dword [ebp + 0xc]
push esi
push dword [eax]
push edi
call sub.msvcrt.dll_memcpy
push ebx
push dword [ebp + 0x14]
lea eax, [edi + esi]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 4]
push edx
push edi
push dword [ebp + 0x10]
push 0
push 0
push 0x401ce0
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x5a4942
push 0x40660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x5a4954
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x5a4968
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5a497d
sub eax, ecx
lea edi, [eax + 1]
mov eax, dword [esi + 8]
lea eax, [eax + edi + 4]
push eax
mov dword [ebp + 0xc], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x5a49a7
mov esi, 0x8007000e
jmp 0x5a49f8
push edi
push dword [esi]
push ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 8]
lea eax, [edi + ebx]
shr ecx, 2
mov dword [eax], ecx
push dword [esi + 8]
add eax, 4
push dword [esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 4]
push edx
push ebx
push dword [ebp + 0xc]
push 0
push 0
push 0x401cd0
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x5a49f8
push 0x40660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x5a4a09
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x5a4a1e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5a4a33
sub eax, esi
lea esi, [eax + 1]
lea eax, [esi + 4]
push eax
mov dword [ebp + 0xc], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
jne 0x5a4a59
mov esi, 0x8007000e
jmp 0x5a4a98
push esi
push dword [ebx]
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push edi
push dword [ebp + 0xc]
mov dword [esi + edi], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push 0
push 0
push 0x401cf0
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x5a4a98
push 0x40660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x5a4aa9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5a4abe
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [edi]
call fcn.005a47d7
test eax, eax
jne 0x5a4ae8
mov esi, 0x8007000e
jmp 0x5a4b85
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x5a4aed
mov edx, dword [ebp + 0x18]
push ebx
lea ebx, [ebp - 4]
push ebx
push eax
sub ecx, esi
mov esi, dword [edx]
inc ecx
push ecx
xor ebx, ebx
push ebx
push ebx
push 0x401d00
push edx
call dword [esi + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x5a4b23
push 0x40660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x5a4b84
cmp dword [edi + 4], ebx
mov dword [ebp + 0xc], ebx
jbe 0x5a4b84
xor ebx, ebx
mov eax, dword [edi + 8]
add eax, ebx
mov ecx, dword [eax + 4]
dec ecx
je 0x5a4b5e
dec ecx
je 0x5a4b50
dec ecx
je 0x5a4b42
xor esi, esi
jmp 0x5a4b76
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.005a4a1e
jmp 0x5a4b70
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.005a4968
jmp 0x5a4b70
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.005a488e
mov esi, eax
test esi, esi
jl 0x5a4b84
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add ebx, 0x10
cmp eax, dword [edi + 4]
jb 0x5a4b2d
pop ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x5a4b92
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret 0x14