joyce8/EMBER2024-capa huggingface dataset:
Function at 0x569873
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0055ad10
mov eax, dword [0x632930]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00562eb0
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x5699a8
push 2
push esi
push dword [ebp + 8]
call fcn.00562eb0
add esp, 0xc
cmp eax, ebx
je 0x5699a8
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x569948
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0055d780
push 0x8000
push dword [ebp + 8]
call fcn.00569f71
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x5698fe
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.005628d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x56991e
sub edi, eax
test edi, edi
jg 0x5698f6
jmp 0x569936
call fcn.0055da6d
cmp dword [eax], 5
jne 0x569933
call fcn.0055da64
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00569f71
pop ecx
pop ecx
jmp 0x569990
jge 0x569990
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00562eb0
push dword [ebp + 8]
call fcn.005631a9
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x569990
call fcn.0055da64
mov dword [eax], 0xd
call fcn.0055da6d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00562eb0
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5699aa
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d2e5
leave
ret
Function at 0x569fdd
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5d40d8
call fcn.0055da18
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x7d9fbc], edi
jne 0x56a021
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56a00c
mov dword [0x7d9fbc], ebx
jmp 0x56a021
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x56a021
mov dword [0x7d9fbc], 2
mov eax, dword [0x7d9fbc]
cmp eax, ebx
jne 0x56a041
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x56a104
cmp eax, 2
je 0x56a04a
cmp eax, edi
jne 0x56a072
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x56a05d
mov eax, dword [0x7d9f24]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x56a079
xor eax, eax
jmp 0x56a104
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0055ad10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x56a0ac
cmp esi, edi
jne 0x56a0c2
push dword [ebp - 0x20]
call fcn.0055c86c
pop ecx
mov esi, eax
cmp esi, edi
je 0x56a072
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x56a0f5
cmp dword [ebp + 0x14], edi
jne 0x56a0df
push edi
push edi
jmp 0x56a0e5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x56a101
push esi
call fcn.0055a5bd
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0055da53
ret
Function at 0x56a10d
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5d40e8
call fcn.0055da18
xor esi, esi
cmp dword [0x7d9fc0], esi
jne 0x56a151
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56a13c
mov dword [0x7d9fc0], edi
jmp 0x56a151
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x56a151
mov dword [0x7d9fc0], 2
mov eax, dword [0x7d9fc0]
cmp eax, 2
je 0x56a232
cmp eax, esi
je 0x56a232
cmp eax, 1
jne 0x56a196
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x56a17f
mov eax, dword [0x7d9f24]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x56a19d
xor eax, eax
jmp 0x56a244
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0055ad10
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x56a1d3
cmp edi, esi
jne 0x56a1ee
lea eax, [ebx + ebx]
push eax
call fcn.0055c86c
pop ecx
mov edi, eax
cmp edi, esi
je 0x56a196
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56a221
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x56a20b
push esi
push esi
jmp 0x56a211
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x56a22d
push edi
call fcn.0055a5bd
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x56a244
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0055da53
ret
Function at 0x56a705
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x56a71e
or eax, 0xffffffff
jmp 0x56a77f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x56a77b
push 0x3d
push esi
call fcn.0055d239
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x56a77b
cmp esi, eax
je 0x56a77b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x7d9acc]
sete cl
cmp eax, dword [0x7d9ad0]
mov dword [ebp - 4], ecx
jne 0x56a761
mov edi, eax
call fcn.0056a6a4
mov dword [0x7d9acc], eax
cmp eax, ebx
jne 0x56a7ba
cmp dword [ebp + 0xc], ebx
je 0x56a783
cmp dword [0x7d9ad4], ebx
je 0x56a783
call fcn.00569c1d
test eax, eax
je 0x56a7ba
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x56a78c
xor eax, eax
jmp 0x56a77e
push 4
call fcn.0055c86c
cmp eax, ebx
pop ecx
mov dword [0x7d9acc], eax
je 0x56a77b
mov dword [eax], ebx
cmp dword [0x7d9ad4], ebx
jne 0x56a7ba
push 4
call fcn.0055c86c
cmp eax, ebx
pop ecx
mov dword [0x7d9ad4], eax
je 0x56a77b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x7d9acc]
sub edi, esi
push esi
call fcn.0056a657
mov edi, eax
test edi, edi
pop ecx
jl 0x56a821
cmp dword [ebx], 0
je 0x56a821
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0055a5bd
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x56a801
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x56a862
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x56a7f8
mov eax, edi
shl eax, 2
push eax
push dword [0x7d9acc]
call fcn.0055c87e
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x56a862
jmp 0x56a85d
cmp dword [ebp - 4], 0
jne 0x56a8c9
test edi, edi
jge 0x56a831
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x7d9acc]
call fcn.0055c87e
test eax, eax
pop ecx
pop ecx
je 0x56a77b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x7d9acc], eax
cmp dword [ebp + 0xc], 0
je 0x56a8b4
push esi
call fcn.0055d6f0
inc eax
inc eax
push eax
call fcn.0055c86c
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x56a8b4
push esi
push edi
call fcn.0055fba0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x56a8ad
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0055a5bd
pop ecx
cmp dword [ebp - 4], 0
je 0x56a8c1
push esi
call fcn.0055a5bd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x56a77e
push esi
call fcn.0055a5bd
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x56a788
Function at 0x5713b4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x632930]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x571407
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x571407
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x57140f
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d2e5
leave
ret 8

Function at 0x572d28
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x632930]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x572d79
push edi
call fcn.00577a4a
mov esi, eax
test esi, esi
je 0x572d9d
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
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
jmp 0x572d9d
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x5b6294
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d2e5
leave
ret 0xc

Function at 0x576597
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x632930]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x5765ca
push 0x5d1214
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x5765dc
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x576611
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0055b253
add esp, 0x10
cmp eax, 0xffffffff
je 0x576611
cmp eax, esi
jae 0x576611
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x576613
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055d2e5
leave
ret
Function at 0x576636
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x632930]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5766e0
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 - 0x40], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], 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 - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x5767e2
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x576790
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5767e3
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 0x576785
cmp dword [ebp - 0x24], 1
jne 0x576785
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x5d1224
push eax
call fcn.0055d898
add esp, 0xc
cmp eax, 1
jne 0x576785
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 - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5767e3
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x5767e3
lea ecx, [ebp - 0x18]
push ecx
push 0x576620
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x5767e3
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 - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x576808
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.00576597
cmp eax, ebx
pop ecx
jne 0x57680a
inc edi
cmp edi, esi
jl 0x5767f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d2e5
leave
ret 4
Function at 0x57681b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x6324a8
je 0x5768d7
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5768bf
mov esi, dword [ebx + 4]
jmp 0x5768b9
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5768a9
cmp dword [ebp - 0xc], 4
jne 0x5768a9
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x5768a1
or dword [eax + 0x9c], ecx
jmp 0x5768a9
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x57686d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x576850
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x576c97
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x5b0f25
call fcn.0055d388
sub esp, 0x124
mov eax, dword [0x632930]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x576da5
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 0x576d79
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.005596d2
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00576c97
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.005586b4
test bl, bl
jne 0x576d79
or dword [ebp - 4], 0xffffffff
jmp 0x576ce4
cmp esi, 0x103
je 0x576d89
cmp esi, 0x3f2
jne 0x576d99
push dword [edi]
push dword [ebp - 0x12c]
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]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d2e5
leave
ret 8
Function at 0x577196
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 0x5771cb
cmp edi, dword [esi + 0xc]
jge 0x5771cb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5771cb
cmp edi, dword [eax + 8]
jge 0x5771cb
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x5771cd
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 0x5772d1
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 0x577305
jmp fcn.0056bc3d
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x577376
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 0x57746f
cmp eax, dword [edi + 0xc]
jge 0x57746f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x5773c7
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x577458
cmp dword [ebp + 0xc], ebx
je 0x577458
jmp 0x5773f1
push 0x10
call fcn.00577062
cmp eax, ebx
je 0x5773dd
mov ecx, eax
call fcn.005772c8
mov esi, eax
jmp 0x5773df
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 0x577408
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x577418
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 0x57742a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0056bc3d
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.0055d780
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 0x57746a
cmp ecx, dword [esi + 8]
jge 0x57746a
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x577470
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x57752e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x57755c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x57757a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00577498
jmp 0x57757a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x57757a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00577498
test edi, edi
mov eax, edi
jne 0x577564
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x7d9694]
test ecx, ecx
je 0x57762d
jmp 0x57752d
ret 8

Function at 0x57810e
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x5b0e87
call fcn.0055d388
sub esp, 0x18
mov eax, dword [0x632930]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov ebx, ecx
call dword [0x631c30]
xor edi, edi
mov dword [ebp - 0x24], edi
cmp esi, edi
mov dword [ebp - 4], edi
je 0x578194
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0055d780
add esp, 0xc
push esi
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x578178
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x5781b9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [ebp - 0x20]
mov word [ebp - 0x1e], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
mov edi, eax
lea ecx, [ebp - 0x24]
call fcn.0053c210
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d2e5
leave
ret 8
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x578194
Function at 0x57836d
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x57838a
cmp dword [ebp + 0xc], edi
je 0x57847f
push 1
push ebx
call fcn.00577f76
test eax, eax
jne 0x57847f
push esi
push edi
push ebx
call fcn.00577f76
mov esi, eax
cmp esi, edi
jne 0x5783d6
call fcn.00575cde
mov ecx, dword [eax + 0x30]
push 0xffffffffffffffff
call fcn.0056c165
mov esi, eax
cmp esi, edi
je 0x57847e
push edi
push 0xffffffffffffffff
mov dword [esi + 4], ebx
call fcn.0057828d
push edi
push esi
push dword [esi + 4]
call fcn.005781c6
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
dec eax
je 0x57842f
dec eax
je 0x578425
dec eax
dec eax
je 0x57841b
sub eax, 4
je 0x578411
sub eax, 8
je 0x578407
sub eax, 0x10
jne 0x57847e
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x57847e
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x57847e
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
jmp 0x57847e
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x24]
jmp 0x57847e
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
jmp 0x57847e
mov eax, dword [esi + 4]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x57846c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp dword [ebp + 0xc], 1
je 0x578476
cmp ebx, edi
je 0x57847e
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
pop esi
pop edi
pop ebx
leave
ret 8