joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fbbe2
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.004a5920
add esp, 0xc
call fcn.005157af
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x4fbcb2
cmp dword [ebp - 8], ebx
je 0x4fbcad
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4fbab4
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004a5a46
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x4fbcbc
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x4fbc85
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x4fbc9f
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x4fbcb7
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x4fbcbe
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x4fbcbc
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4fbcc5
Capabilities:
Resume thread

Disassembly:
mov eax, 0x527e2e
call fcn.004a5528
push ecx
push esi
push 0x40
call fcn.004fb3b1
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x4fbcf4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00515865
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.004fbbe2
test eax, eax
jne 0x4fbd1b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x4fbd38
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x4fbd36
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4fcd1f
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x527e72
call fcn.004a5528
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4fcd44
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
jmp 0x4fcd90
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrcpyn]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401270
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4ff4c8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4ff501
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004980d9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004980b4
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x500758
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x50079b
call fcn.005157bf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x50079b
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5007b6
push edi
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004ff8bd
test ebx, ebx
mov esi, eax
je 0x5007b4
test edi, edi
je 0x5007b4
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x5013c7
Capabilities:
Get disk information

Disassembly:
mov eax, 0x52823f
call fcn.004a5528
sub esp, 0x150
mov eax, dword [0x58f2d4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x50140f
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
jmp 0x501413
cmp eax, esi
jb 0x50141a
xor eax, eax
jmp 0x5014ef
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.00501385
push dword [ebp + 8]
call dword [sym.imp.shlwapi.dll_PathIsUNCA]
test eax, eax
jne 0x5014df
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
jne 0x50146e
xor esi, esi
jmp 0x5014e2
test byte [ebp - 0x158], 2
jne 0x50147e
push edi
call dword [sym.imp.user32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x5014df
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x5014df
push eax
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x50146a
cmp dword [ebp - 0x154], edi
jbe 0x50146a
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x50146a
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.kernel32.dll_lstrcpy]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401270
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004a5518
leave
ret 8
Function at 0x502b43
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.004a5920
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyn]
mov eax, dword [edi + 4]
cmp eax, dword [0x560258]
je 0x502c4a
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileTime]
test eax, eax
je 0x502bb3
push ebx
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x502bba
cmp ebx, ebx
jne 0x502bba
xor eax, eax
jmp 0x502c4d
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x502bc7
mov byte [esi + 0x20], bl
jmp 0x502bdb
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004a175a
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004a175a
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004a175a
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x502c36
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x502c4a
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x50756b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x58f2d4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x5075ba
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, esi
jne 0x5075ba
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_lstrcmp]
test eax, eax
je 0x5075c6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004a5518
leave
ret 8

Function at 0x508548
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x58f2d4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x508595
push dword [ebp + 8]
call fcn.00515ab2
mov esi, eax
test esi, esi
je 0x5085bd
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.advapi32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x5085bd
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x53026c
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004a5518
leave
ret 0xc
Function at 0x508998
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x508b1c
push ebx
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x508b1b
push esi
push edi
mov edi, dword [ebx]
add edi, 0x40
push edi
call fcn.004a2ea9
mov esi, eax
test esi, esi
pop ecx
je 0x508b19
push edi
push ebx
push esi
call fcn.004a5550
mov edi, dword [esi]
add esp, 0xc
add edi, esi
and dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov ecx, dword [edi + ecx*4]
xor eax, eax
cmp ecx, dword [eax*8 + 0x560b78]
je 0x508a0e
inc eax
cmp eax, 4
jb 0x5089fd
jmp 0x508a70
cmp dword [ebp + 0x10], 0
je 0x508a2a
cmp dword [eax*8 + 0x560b7c], 0x12
je 0x508a70
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], 0xffffff
jmp 0x508a70
lea ebx, [eax*8 + 0x560b7c]
push dword [ebx]
mov dword [ebp - 4], ebx
call dword [sym.imp.user32.dll_GetSysColor]
push dword [ebx]
movzx eax, ah
mov dword [ebp + 8], eax
call dword [sym.imp.user32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
mov ch, al
mov eax, ebx
push dword [eax]
shl ecx, 8
mov dword [ebp + 8], ecx
call dword [sym.imp.user32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], ecx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x5089f5
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.user32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 4], eax
je 0x508afb
push dword [ebp + 0x10]
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov ebx, dword [sym.imp.gdi32.dll_SelectObject]
mov edi, eax
push edi
call ebx
mov cl, byte [esi + 0xe]
push 0xcc0020
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push esi
lea ecx, [ecx + edx*4 + 0x28]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push edi
call dword [sym.imp.gdi32.dll_StretchDIBits]
push dword [ebp - 0xc]
push edi
call ebx
push edi
call dword [sym.imp.gdi32.dll_DeleteDC]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
push esi
call fcn.004a25de
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x50e5bc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x58f2d4]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0050e5a5
cmp dword [esi], 0
mov ebx, eax
je 0x50e61c
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.user32.dll_GetWindowTextA]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.004a2dce
add esp, 0xc
cmp eax, 1
pop edi
je 0x50e639
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.005084e6
mov ecx, esi
call fcn.0050e315
jmp 0x50e639
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.004a1bad
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0050756b
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004a5518
leave
ret

Function at 0x514aea
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x58f2d4]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x514b48
push 0x55e624
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004a5490
add esp, 0x10
cmp eax, 0xffffffff
je 0x514b5c
cmp eax, esi
jae 0x514b5c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
jmp 0x514b5e
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
jne 0x514b13
jmp 0x514b5f
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.004a5518
leave
ret
Function at 0x514b7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x58f2d4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
xor ebx, ebx
push 0x55e698
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push 0x55e67c
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x514c21
call eax
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push 0x55e660
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x514d23
call dword [sym.imp.kernel32.dll_GetVersion]
test eax, eax
jns 0x514cd1
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x55e638
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x514d24
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x514cc6
cmp dword [ebp - 0x24], 1
jne 0x514cc6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x55e634
push eax
call fcn.004a2dce
add esp, 0xc
cmp eax, 1
jne 0x514cc6
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x514d24
push 0x55e628
call edi
cmp eax, ebx
je 0x514d24
lea ecx, [ebp - 0x18]
push ecx
push 0x514b69
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.kernel32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x514d24
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x514d4a
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00514aea
cmp eax, ebx
pop ecx
pop ecx
jne 0x514d4c
inc edi
cmp edi, esi
jl 0x514d33
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a5518
leave
ret 4
Function at 0x515b61
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x527e60
call fcn.004a5528
mov eax, 0x1014
call fcn.004a2fa0
mov eax, dword [0x58f2d4]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x515c5c
push dword [ebp + 0xc]
call fcn.00515ab2
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x515baa
push dword [ebp + 0x14]
jmp 0x515c8d
push esi
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x515c27
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.00401a80
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.004980b4
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x515c4a
lea eax, [ebp + 0xc]
push eax
call fcn.00401f00
jmp 0x515c52
push dword [ebp + 0x14]
call fcn.00402700
lea ecx, [ebx - 0x10]
call fcn.00401270
jmp 0x515c95
cmp dword [ebp + 0x14], edi
jne 0x515c68
mov dword [ebp + 0x14], 0x52a984
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402700
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004a5518
leave
ret 0x10
Function at 0x515e34
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x527eb6
call fcn.004a5528
sub esp, 0x11c
mov eax, dword [0x58f2d4]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x515f2d
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x515f01
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402700
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00515e34
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401270
test bl, bl
jne 0x515f01
or dword [ebp - 4], 0xffffffff
jmp 0x515e72
cmp esi, 0x103
je 0x515f11
cmp esi, 0x3f2
jne 0x515f21
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004a5518
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5178c6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x5178fb
cmp edi, dword [esi + 0xc]
jge 0x5178fb
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5178fb
cmp edi, dword [eax + 8]
jge 0x5178fb
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x5178fd
xor edi, edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x517a01
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x517a35
jmp fcn.004f794a
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x517aa6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x517b9f
cmp eax, dword [edi + 0xc]
jge 0x517b9f
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x517af7
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x517b88
cmp dword [ebp + 0xc], ebx
je 0x517b88
jmp 0x517b21
push 0x10
call fcn.00517792
cmp eax, ebx
je 0x517b0d
mov ecx, eax
call fcn.005179f8
mov esi, eax
jmp 0x517b0f
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x517b38
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_LocalAlloc]
jmp 0x517b48
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.kernel32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x517b5a
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call fcn.004f794a
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004a5920
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x517b9a
cmp ecx, dword [esi + 8]
jge 0x517b9a
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x517ba0
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8