joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56be2f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ceed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
push 1
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.0053fd56
test eax, eax
jne 0x56be78
push 0x216
push str.filecore.cpp
call fcn.005c3050
test eax, eax
je 0x56be78
int3
xor ecx, ecx
test ecx, ecx
jne 0x56be50
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
test eax, eax
jne 0x56bece
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x56beb4
mov ecx, dword [ebp + 0xc]
push ecx
push str.Warning:_could_not_parse_the_path__s._n
call fcn.0053fb15
add esp, 8
push 0x104
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_lstrcpynA]
xor eax, eax
jmp 0x56bfc1
lea ecx, [ebp - 0x1c]
call fcn.005bf5d7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0056bfd4
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.005bf67a
push eax
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
jne 0x56bf46
lea ecx, [ebp - 0x1c]
call fcn.005bf67a
push eax
push str.Warning:_could_not_get_volume_information__s._n
call fcn.0053fb15
add esp, 8
mov dword [ebp - 0x164], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.005654bc
mov eax, dword [ebp - 0x164]
jmp 0x56bfc1
mov edx, dword [ebp - 0x18]
and edx, 2
test edx, edx
jne 0x56bf5a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.user32.dll_CharUpperA]
mov ecx, dword [ebp - 0x18]
and ecx, 4
test ecx, ecx
jne 0x56bfa2
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x56bfa2
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.kernel32.dll_FindClose]
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
mov dword [ebp - 0x168], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.005654bc
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x56e541
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
jne 0x56e572
push 0x432
push str.wincore.cpp
call fcn.005c3050
test eax, eax
je 0x56e572
int3
xor edx, edx
test edx, edx
jne 0x56e54d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x56e5be
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00565e17
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00565da3
jmp 0x56e5d6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov eax, dword [edx]
call dword [eax + 0x90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x571e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x571ebc
call fcn.005c5e42
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x571ebc
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x571e8f
xor eax, eax
jmp 0x571eed
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x571eb6
push 0xcba
push str.wincore.cpp
call fcn.005c3050
test eax, eax
je 0x571eb6
int3
xor edx, edx
test edx, edx
jne 0x571e9c
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00571ef6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x571eea
cmp dword [ebp - 8], 0
je 0x571eea
mov ecx, dword [ebp - 8]
push ecx
call fcn.004e31f0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x578e19
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
push 0x5e
push str.filest.cpp
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00575350
push 0x118
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00500130
add esp, 0xc
push 0x104
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.005bf67a
push eax
mov edx, dword [ebp + 8]
add edx, 0x12
push edx
call dword [sym.imp.kernel32.dll_lstrcpynA]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0xffffffff
je 0x578fa1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.kernel32.dll_GetFileTime]
test eax, eax
jne 0x578e94
xor eax, eax
jmp 0x578fa6
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0xffffffff
jne 0x578eb9
xor eax, eax
jmp 0x578fa6
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.005bf65c
test eax, eax
je 0x578ed1
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x10], 0
jmp 0x578f1a
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.005bf67a
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x578ef5
mov edx, dword [ebp + 8]
mov byte [edx + 0x10], 0
jmp 0x578f1a
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 0x10], cl
mov edx, dword [ebp - 0x1c]
and dl, 0
test edx, edx
je 0x578f1a
push str.Warning:_CFile::GetStatus___returns_m_attribute_without_high_order_flags._n
push 0x674aa0
call fcn.0053fb15
add esp, 8
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0053d5cf
push eax
mov ecx, dword [ebp + 8]
call fcn.005bfd68
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0053d5cf
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.005bfd68
push 0xffffffffffffffff
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x28]
call fcn.0053d5cf
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.005bfd68
mov ecx, dword [ebp + 8]
call fcn.005bfd9a
test eax, eax
jne 0x578f80
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.005bfd68
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.005bfd9a
test eax, eax
jne 0x578fa1
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.005bfd68
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x587a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
cmp dword [0x682c80], 0
je 0x587aac
mov eax, dword [0x684c68]
jmp 0x587bf0
mov dword [0x682c80], 1
xor eax, eax
mov ax, word [0x684c64]
test eax, eax
jne 0x587aef
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.user32.dll_RegisterClipboardFormatA]
mov dword [0x684c60], eax
cmp dword [0x684c60], 0
jne 0x587ae6
mov word [0x684c64], 1
jmp 0x587aef
mov word [0x684c64], 2
xor ecx, ecx
mov cx, word [0x684c64]
cmp ecx, 2
jne 0x587b4a
mov dword [ebp - 4], 0
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.user32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x587b4a
cmp dword [0x684c60], 0
je 0x587b4a
push 0
push 0
mov edx, dword [0x684c60]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov dword [0x684c68], eax
mov eax, dword [0x684c68]
jmp 0x587bf0
mov dword [0x684c68], 3
cmp dword [0x684c3c], 0
jne 0x587bd1
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x587bcf
mov dword [ebp - 0x90], 0x80
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push 0
push str.WheelScrollLines
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x587bc5
push 0xa
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.00509960
add esp, 0xc
mov dword [0x684c68], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x587beb
cmp dword [0x684c38], 0
jne 0x587beb
push 0
push 0x684c68
push 0
push 0x68
call dword [sym.imp.user32.dll_SystemParametersInfoA]
mov eax, dword [0x684c68]
mov esp, ebp
pop ebp
ret

Function at 0x58ac70
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.005bf67a
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x58acc6
push 1
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x58acc4
push str.Warning:_File_save_with_new_name_failed._n
push 0x6772dc
call fcn.0053fb15
add esp, 8
xor eax, eax
jmp 0x58ad01
jmp 0x58acfc
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.005bf67a
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x58acfc
push str.Warning:_File_save_failed._n
push 0x6772fc
call fcn.0053fb15
add esp, 8
xor eax, eax
jmp 0x58ad01
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x591b36
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00591760
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x591b95
push 0x20
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.user32.dll_GetWindowTextA]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.005918f4
test eax, eax
jne 0x591b93
push 0xffffffffffffffff
push 0
mov edx, dword [ebp + 0x14]
push edx
call fcn.00590fb9
mov ecx, dword [ebp + 8]
call fcn.0059187f
jmp 0x591bb4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.user32.dll_wvsprintfA]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00585a83
mov dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x592224
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.005917ae
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x59229d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x592274
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00565e17
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.user32.dll_GetWindowTextA]
jmp 0x592291
push 0x100
push 0xff
mov ecx, dword [ebp + 0x10]
call fcn.00565c68
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.00565da3
jmp 0x5922ce
mov ecx, dword [ebp + 0x10]
call fcn.005bf67a
push eax
push 0xffffffffffffffff
push 0x14d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x5922ce
mov ecx, dword [ebp + 0x10]
call fcn.005bf67a
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00585a83
mov esp, ebp
pop ebp
ret 0xc
Function at 0x59d43e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
cmp dword [ebp + 0x10], 0
jne 0x59d45e
push 0x32
push str.dlgfloat.cpp
call fcn.005c3050
test eax, eax
je 0x59d45e
int3
xor eax, eax
test eax, eax
jne 0x59d447
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00591760
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x59d4d2
push 0x20
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.user32.dll_GetWindowTextA]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0059d380
test eax, eax
jne 0x59d4b2
push 0xffffffffffffffff
push 0
push 0xf111
call fcn.00590fb9
mov ecx, dword [ebp + 8]
call fcn.0059187f
cmp dword [ebp + 0x1c], 6
jne 0x59d4c2
fld qword [ebp - 0x2c]
mov ecx, dword [ebp + 0x10]
fstp dword [ecx]
jmp 0x59d4d0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
jmp 0x59d4fc
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x672aa0
lea edx, [ebp - 0x20]
push edx
call fcn.005006a0
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00585a83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x5ad24e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x5ad272
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x5ad2ac
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5ad2c6
push 0xc9
push str.dlgprop.cpp
call fcn.005c3050
test eax, eax
je 0x5ad2c6
int3
xor eax, eax
test eax, eax
jne 0x5ad2ac
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x5ad3a1
call dword [sym.imp.kernel32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x5ad371
push 0x670ebc
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5ad31e
push 0xe1
push str.dlgprop.cpp
call fcn.005c3050
test eax, eax
je 0x5ad31e
int3
xor ecx, ecx
test ecx, ecx
jne 0x5ad304
cmp dword [ebp - 0x18], 0
je 0x5ad36f
push 0x670ecc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5ad365
mov eax, 1
test eax, eax
je 0x5ad35f
push 0xe6
push str.dlgprop.cpp
call fcn.005c3050
test eax, eax
je 0x5ad35f
int3
xor ecx, ecx
test ecx, ecx
jne 0x5ad342
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x5ad3a1
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x5ad3a1
mov ecx, 1
test ecx, ecx
je 0x5ad39b
push 0xed
push str.dlgprop.cpp
call fcn.005c3050
test eax, eax
je 0x5ad39b
int3
xor edx, edx
test edx, edx
jne 0x5ad37e
call fcn.005d9293
cmp dword [eax + 0x1038], 0
je 0x5ad3be
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.005ad203
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005ad0c5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x5ad3ee
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x5ad403
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5dc1bc
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x5dc1e2
push 0x146
push str.afxtls.cpp
call fcn.005c3050
test eax, eax
je 0x5dc1e2
int3
xor eax, eax
test eax, eax
jne 0x5dc1c8
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x5dc201
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x5dc284
cmp dword [ebp + 0xc], 0
je 0x5dc224
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x5dc269
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5dc250
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x5dc257
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x5dc27f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x5dc27f
mov dword [ebp - 4], 0
jmp 0x5dc1f8
cmp dword [ebp - 4], 0
je 0x5dc2f8
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.005dc880
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5dc2e3
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x5dc2ea
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5dc301
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x5dc344
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5dc342
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.005dc1bc
jmp 0x5dc379
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.005dc8a0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5dc379
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.005dc1bc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x5dc352
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8

Function at 0x5de65d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x5de6a9
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push 0x80000000
call dword [sym.imp.advapi32.dll_RegSetValueA]
test eax, eax
je 0x5de6a2
mov eax, dword [ebp + 8]
push eax
push 0x677048
call fcn.0053fb15
add esp, 8
xor eax, eax
jmp 0x5de715
mov eax, 1
jmp 0x5de715
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x80000000
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
test eax, eax
jne 0x5de702
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
jne 0x5de702
cmp dword [ebp - 8], 0
jne 0x5de702
mov eax, 1
jmp 0x5de715
mov edx, dword [ebp + 8]
push edx
push str.Warning:_registration_database_update_failed_for_key__s._n
call fcn.0053fb15
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5e7068
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5e710b
cmp dword [ebp + 8], 0
je 0x5e710b
lea edx, [ebp - 0xc]
push edx
push 0x676dd8
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.combase.dll_StringFromCLSID]
mov edx, dword [ebp - 0x10]
push edx
call fcn.005dfbce
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.advapi32.dll_RegSetValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.combase.dll_CoTaskMemFree]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc