joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54f775
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 0x54f78e
or eax, 0xffffffff
jmp 0x54f7ef
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x54f7eb
push 0x3d
push esi
call fcn.00542249
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x54f7eb
cmp esi, eax
je 0x54f7eb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x76b84c]
sete cl
cmp eax, dword [0x76b850]
mov dword [ebp - 4], ecx
jne 0x54f7d1
mov edi, eax
call fcn.0054f714
mov dword [0x76b84c], eax
cmp eax, ebx
jne 0x54f82a
cmp dword [ebp + 0xc], ebx
je 0x54f7f3
cmp dword [0x76b854], ebx
je 0x54f7f3
call fcn.0054ec90
test eax, eax
je 0x54f82a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x54f7fc
xor eax, eax
jmp 0x54f7ee
push 4
call fcn.00540bd8
cmp eax, ebx
pop ecx
mov dword [0x76b84c], eax
je 0x54f7eb
mov dword [eax], ebx
cmp dword [0x76b854], ebx
jne 0x54f82a
push 4
call fcn.00540bd8
cmp eax, ebx
pop ecx
mov dword [0x76b854], eax
je 0x54f7eb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x76b84c]
sub edi, esi
push esi
call fcn.0054f6c7
mov edi, eax
test edi, edi
pop ecx
jl 0x54f891
cmp dword [ebx], 0
je 0x54f891
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0053f8fd
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x54f871
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x54f8d2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x54f868
mov eax, edi
shl eax, 2
push eax
push dword [0x76b84c]
call fcn.00541a15
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x54f8d2
jmp 0x54f8cd
cmp dword [ebp - 4], 0
jne 0x54f939
test edi, edi
jge 0x54f8a1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x76b84c]
call fcn.00541a15
test eax, eax
pop ecx
pop ecx
je 0x54f7eb
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 [0x76b84c], eax
cmp dword [ebp + 0xc], 0
je 0x54f924
push esi
call fcn.00542700
inc eax
inc eax
push eax
call fcn.00540bd8
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x54f924
push esi
push edi
call fcn.00544bb0
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 0x54f91d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0053f8fd
pop ecx
cmp dword [ebp - 4], 0
je 0x54f931
push esi
call fcn.0053f8fd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x54f7ee
push esi
call fcn.0053f8fd
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x54f7f8
Function at 0x556310
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x60b430]
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 0x556363
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x556363
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x55636b
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.005422f5
leave
ret 8

Function at 0x557c84
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x60b430]
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 0x557cd5
push edi
call fcn.0055c9a6
mov esi, eax
test esi, esi
je 0x557cf9
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 0x557cf9
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x596fdc
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.005422f5
leave
ret 0xc

Function at 0x55b4f3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x60b430]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x55b526
push 0x5b13dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x55b538
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x55b56d
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00540643
add esp, 0x10
cmp eax, 0xffffffff
je 0x55b56d
cmp eax, esi
jae 0x55b56d
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x55b56f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005422f5
leave
ret
Function at 0x55b592
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x60b430]
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 0x55b63c
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 0x55b73e
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x55b6ec
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 0x55b73f
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 0x55b6e1
cmp dword [ebp - 0x24], 1
jne 0x55b6e1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x5b13ec
push eax
call fcn.005428a8
add esp, 0xc
cmp eax, 1
jne 0x55b6e1
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 0x55b73f
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x55b73f
lea ecx, [ebp - 0x18]
push ecx
push 0x55b57c
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x55b73f
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 0x55b764
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.0055b4f3
cmp eax, ebx
pop ecx
jne 0x55b766
inc edi
cmp edi, esi
jl 0x55b74e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005422f5
leave
ret 4
Function at 0x55b777
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, 0x60afc0
je 0x55b833
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 0x55b81b
mov esi, dword [ebx + 4]
jmp 0x55b815
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 0x55b805
cmp dword [ebp - 0xc], 4
jne 0x55b805
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x55b7fd
or dword [eax + 0x9c], ecx
jmp 0x55b805
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 0x55b7c9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x55b7ac
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x55bbf3
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x5915e5
call fcn.00542398
sub esp, 0x124
mov eax, dword [0x60b430]
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 0x55bd01
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 0x55bcd5
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0053ea12
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0055bbf3
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0053d9f4
test bl, bl
jne 0x55bcd5
or dword [ebp - 4], 0xffffffff
jmp 0x55bc40
cmp esi, 0x103
je 0x55bce5
cmp esi, 0x3f2
jne 0x55bcf5
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.005422f5
leave
ret 8
Function at 0x55c0f2
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 0x55c127
cmp edi, dword [esi + 0xc]
jge 0x55c127
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55c127
cmp edi, dword [eax + 8]
jge 0x55c127
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x55c129
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 0x55c22d
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 0x55c261
jmp fcn.00550b99
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x55c2d2
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 0x55c3cb
cmp eax, dword [edi + 0xc]
jge 0x55c3cb
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x55c323
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x55c3b4
cmp dword [ebp + 0xc], ebx
je 0x55c3b4
jmp 0x55c34d
push 0x10
call fcn.0055bfbe
cmp eax, ebx
je 0x55c339
mov ecx, eax
call fcn.0055c224
mov esi, eax
jmp 0x55c33b
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 0x55c364
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x55c374
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 0x55c386
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00550b99
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.00542790
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 0x55c3c6
cmp ecx, dword [esi + 8]
jge 0x55c3c6
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x55c3cc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x55c48a
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 0x55c4b8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55c4d6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0055c3f4
jmp 0x55c4d6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x55c4d6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0055c3f4
test edi, edi
mov eax, edi
jne 0x55c4c0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x76b414]
test ecx, ecx
je 0x55c589
jmp 0x55c489
ret 8

Function at 0x55d06a
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x591547
call fcn.00542398
sub esp, 0x18
mov eax, dword [0x60b430]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov ebx, ecx
call dword [0x60a788]
xor edi, edi
mov dword [ebp - 0x24], edi
cmp esi, edi
mov dword [ebp - 4], edi
je 0x55d0f0
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00542790
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 0x55d0d4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x55d115
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.00529000
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.005422f5
leave
ret 8
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x55d0f0
Function at 0x55d2c9
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 0x55d2e6
cmp dword [ebp + 0xc], edi
je 0x55d3db
push 1
push ebx
call fcn.0055ced2
test eax, eax
jne 0x55d3db
push esi
push edi
push ebx
call fcn.0055ced2
mov esi, eax
cmp esi, edi
jne 0x55d332
call fcn.0055ac3a
mov ecx, dword [eax + 0x30]
push 0xffffffffffffffff
call fcn.005510c1
mov esi, eax
cmp esi, edi
je 0x55d3da
push edi
push 0xffffffffffffffff
mov dword [esi + 4], ebx
call fcn.0055d1e9
push edi
push esi
push dword [esi + 4]
call fcn.0055d122
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
dec eax
je 0x55d38b
dec eax
je 0x55d381
dec eax
dec eax
je 0x55d377
sub eax, 4
je 0x55d36d
sub eax, 8
je 0x55d363
sub eax, 0x10
jne 0x55d3da
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x55d3da
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x55d3da
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
jmp 0x55d3da
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x24]
jmp 0x55d3da
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
jmp 0x55d3da
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 0x55d3c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp dword [ebp + 0xc], 1
je 0x55d3d2
cmp ebx, edi
je 0x55d3da
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x55d62d
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x591588
call fcn.00542398
sub esp, 0x198
mov eax, dword [0x60b430]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
push 0x55b4c8
mov ecx, 0x76b238
mov dword [ebp - 0x10], eax
call fcn.0055c152
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x55d691
cmp esi, ebx
jne 0x55d66f
lea esi, [ebp - 0x1a0]
push esi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x55d6c3
cmp byte [esi], 1
jne 0x55d6bd
cmp byte [esi + 1], 1
jne 0x55d6bd
mov dword [edi + 0xc], 0x55d5fa
call fcn.0055ac3a
mov esi, eax
cmp dword [esi + 0x30], ebx
jne 0x55d6d0
push 0x1c
call fcn.005512e8
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x55d6c7
push 0xa
call fcn.005511dc
jmp 0x55d6c9
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x55d733
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], ebx
jne 0x55d702
push 0x1c
call fcn.005512e8
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 1
je 0x55d6f9
push 0xa
call fcn.005511dc
jmp 0x55d6fb
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], eax
cmp dword [esi + 0x38], ebx
jne 0x55d730
push 0x1c
call fcn.005512e8
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x55d72b
push 0xa
call fcn.00550d24
jmp 0x55d72d
xor eax, eax
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.005422f5
leave
ret 4
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45ca00
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4773f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea esi, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.00401300
mov byte [esp + 0x30], 1
cmp dword [esp + 0x1c], 0
mov esi, 8
je 0x401093
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x20], esi
jae 0x40105f
lea eax, [esp + 0xc]
push eax
call fcn.004029d0
add esp, 4
test eax, eax
je 0x401093
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x20], esi
jae 0x40107a
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x38]
push 1
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401098
call fcn.00401530
cmp dword [esp + 0x20], esi
jb 0x4010ab
mov edx, dword [esp + 0xc]
push edx
call fcn.00443310
add esp, 4
xor eax, eax
mov word [esp + 0xc], ax
mov eax, dword [esp + 0x38]
lea ecx, [eax - 0xc]
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
cmp ecx, dword [0x4788a0]
je 0x4010ef
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4010ef
mov edx, dword [esp + 0x38]
add edx, 0xfffffff4
push edx
call fcn.00443685
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044331b
add esp, 0x2c
ret
Function at 0x401110
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45c9bb
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00455930
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x103c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4773f0]
xor eax, esp
push eax
lea eax, [esp + 0x1054]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1064]
mov ebp, dword [esp + 0x1070]
lea esi, [esp + 0x34]
mov edi, ecx
call fcn.00401300
mov dword [esp + 0x105c], 0
cmp dword [esp + 0x48], 0
je 0x401238
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x40118d
lea eax, [esp + 0x38]
push eax
call fcn.004029d0
add esp, 4
test eax, eax
je 0x401238
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0x5a]
push ecx
mov word [esp + 0x5c], ax
call fcn.00446040
mov edx, dword [esp + 0x1074]
push edx
push ebx
mov ecx, edi
lea esi, [esp + 0x2c]
call fcn.004013e0
mov esi, 8
add esp, 0x14
cmp dword [eax + 0x18], esi
jb 0x4011db
mov eax, dword [eax + 4]
jmp 0x4011de
add eax, 4
push eax
push 0x46b814
lea eax, [esp + 0x58]
push str._from:_s__gtype:3__apppath:__s___size:normal
push eax
mov ecx, 0x800
call fcn.004027d0
add esp, 0x10
cmp dword [esp + 0x30], esi
jb 0x40120e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00443310
add esp, 4
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x40121c
lea eax, [esp + 0x38]
push 1
push 0
lea edx, [esp + 0x58]
push edx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4012b8
cmp dword [esp + 0x106c], 0
je 0x4012b3
test ebp, ebp
je 0x40129c
push 0x800
call fcn.00430556
add esp, 4
mov esi, 0x400
mov ecx, eax
sub edi, eax
lea esp, [esp]
lea edx, [esi + 0x7ffffbfe]
test edx, edx
je 0x401280
movzx edx, word [edi + ecx]
test dx, dx
je 0x401280
mov word [ecx], dx
add ecx, 2
sub esi, 1
jne 0x401260
jmp 0x401284
test esi, esi
jne 0x401287
sub ecx, 2
push eax
xor edx, edx
push edx
push 0x569
push ebp
mov word [ecx], dx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4012b8
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edi
call fcn.00402760
call fcn.004085d0
add esp, 4
jmp 0x4012b8
call fcn.00401530
cmp dword [esp + 0x4c], 8
jb 0x4012cc
mov eax, dword [esp + 0x38]
push eax
call fcn.00443310
add esp, 4
mov ecx, dword [esp + 0x1054]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x103c]
xor ecx, esp
call fcn.0044331b
add esp, 0x104c
ret