joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000cd63
pop dword [ebp - 0x14]
mov eax, 0x1000cd63
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3c06f
push 0
mov eax, 0xfa543d5
add eax, 0x5bfc8f
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x1fb9f84b
add ecx, 0xe0465bc7
xor esi, esi
add esi, eax
mov edx, 0x10018600
add edx, dword [ebp - 0x14]
mov ebx, 0x7491d532
sub ebx, 0x6d6f973a
mov edi, dword [edx]
xor dword [ebp - 0x10], edx
sub edi, ebx
sub dword [ebp - 0xc], 0x1d7a8f78
mov dword [esi], edi
add esi, 0x704a31c5
add esi, 0x8fb5ce3f
add edx, 0xbe54a667
sub edx, 0xbe54a663
loop 0x1000cdb9
add eax, 0x3472b44b
sub eax, 0x34717130
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401ae8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebx, section..text
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
sub ebx, 0x1000
mov dword [0x4028f4], ebx
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401b11
push esp
mov eax, str.contents
mov dword [ebp - 4], eax
lea eax, [0x401187]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4028f4]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x4028f4]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x402904], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402904]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401bc9
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401bb0
pop ebp
ret 0x10
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x64004
call fcn.10006900
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x1000906c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 0x64004]
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
jmp 0x10001060
xor byte [ebp + eax - 0x64004], 0x69
inc eax
cmp eax, 0x64000
jne 0x10001060
push 0x40
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x64000
lea eax, [ebp - 0x64004]
push eax
push esi
call fcn.10001fa0
add esp, 0xc
push esi
push 0
push 0
push 0x10000
call dword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100054c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000b2e0]
jne 0x100054cf
repz ret
jmp fcn.100066c5
Function at 0x1000635a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000b2e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10002758
and dword [ebp - 0x14], 0
cmp dword [0x1000c4bc], 0
mov dword [ebp - 0x18], eax
jne 0x1000640d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100064b5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100064b5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000c4bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000c4c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000c4c4], eax
call edi
push eax
call esi
mov dword [0x1000c4cc], eax
test eax, eax
je 0x1000640d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000c4c8], eax
mov eax, dword [0x1000c4c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10006466
cmp dword [0x1000c4cc], ecx
je 0x10006466
push eax
call esi
push dword [0x1000c4cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10006466
test ebx, ebx
je 0x10006466
call edi
test eax, eax
je 0x1000645d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000645d
test byte [ebp - 8], 1
jne 0x10006466
or dword [ebp + 0x10], 0x200000
jmp 0x10006499
mov eax, dword [0x1000c4c0]
cmp eax, dword [ebp - 0x18]
je 0x10006499
push eax
call esi
test eax, eax
je 0x10006499
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10006499
mov eax, dword [0x1000c4c4]
cmp eax, dword [ebp - 0x18]
je 0x10006499
push eax
call esi
test eax, eax
je 0x10006499
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000c4bc]
call esi
test eax, eax
je 0x100064b5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100064b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100054c5
leave
ret
Function at 0x401120
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x203c
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
call fcn.00401298
sub esp, eax
mov eax, dword [ecx]
lea esi, [ebp - 0x2018]
add ecx, 4
mov dword [ebp - 0x201c], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], esi
mov dword [esp], 6
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
test eax, eax
jle 0x4011bc
mov ebx, eax
mov dword [esp], 0xfffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push edx
lea edx, [ebp - 0x201c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov eax, dword [ebp - 0x201c]
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x4011f0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit
Function at 0x405860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x76c
push edi
push ecx
lea edi, [ebp - 0x76c]
mov ecx, 0x1db
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jne 0x405898
xor eax, eax
jmp 0x405a79
cmp dword [ebp + 0xc], 0
jne 0x4058a5
xor eax, eax
jmp 0x405a79
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x25]
push edx
call fcn.00448210
add esp, 0x10
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
push 0x200
push 0
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00446de0
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
call fcn.00446e70
add esp, 4
push eax
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00446790
add esp, 0xc
push 0x100
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x764]
push eax
call fcn.00407cd0
add esp, 0xc
mov cl, byte [ebp + 0x14]
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x18], 0
jmp 0x40593e
mov edx, dword [ebp - 0x18]
add edx, 0x10
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jge 0x405a18
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x644]
push edx
call fcn.00448210
add esp, 0x10
cmp eax, 0x10
je 0x405999
push 0x400
push 0
lea eax, [ebp - 0x644]
push eax
call fcn.00446de0
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x764]
push ecx
call fcn.00446de0
add esp, 0xc
xor eax, eax
jmp 0x405a79
lea edx, [ebp - 0x644]
push edx
lea eax, [ebp - 0x644]
push eax
push 0
lea ecx, [ebp - 0x764]
push ecx
call fcn.00408060
add esp, 0x10
mov dword [ebp - 0x76c], 0
jmp 0x4059d3
mov edx, dword [ebp - 0x76c]
add edx, 1
mov dword [ebp - 0x76c], edx
cmp dword [ebp - 0x76c], 0x10
jge 0x405a13
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x76c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x76c]
mov dl, byte [ebp + edx - 0x644]
mov byte [ecx + eax], dl
movsx eax, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x76c]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx + ecx]
add eax, ecx
mov byte [ebp - 0x1d], al
jmp 0x4059c4
jmp 0x405935
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x31]
push eax
call fcn.00448210
add esp, 0x10
movsx ecx, byte [ebp - 0x25]
movsx edx, byte [ebp - 0x31]
cmp ecx, edx
jne 0x405a44
movsx eax, byte [ebp - 0x25]
movsx ecx, byte [ebp - 0x1d]
cmp eax, ecx
je 0x405a74
push 0x400
push 0
lea edx, [ebp - 0x644]
push edx
call fcn.00446de0
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x764]
push eax
call fcn.00446de0
add esp, 0xc
xor eax, eax
jmp 0x405a79
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x405aa8]
call fcn.00448fe0
pop eax
pop edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449070
add esp, 0x76c
cmp ebp, esp
call fcn.00449040
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push ecx
lea edi, [ebp - 0x128]
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
push 0x4a7458
push 0x4a745c
call fcn.0044ab00
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x40f393
mov esi, esp
push 0
push 0
push str.serverset.txt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00449040
push 0
call fcn.0044cbc0
jmp 0x40f48f
lea eax, [ebp - 0x11c]
push eax
push 0x4a7494
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.0044cc40
add esp, 0xc
mov edx, dword [ebp - 0x114]
push edx
call fcn.0044a790
add esp, 4
mov eax, dword [ebp - 0x11c]
push eax
push str.serverset__d_serverlist.list
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0044ada0
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
mov ecx, 0x4cdf90
call fcn.00416850
mov eax, dword [ebp - 0x11c]
push eax
push str.serverset__d_serverlist_Public.list
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0044ada0
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
mov ecx, 0x4cdf90
call fcn.00416990
mov ecx, dword [ebp - 8]
call fcn.0040f9d0
test eax, eax
jne 0x40f42b
mov dword [0x4dd8d0], 1
mov eax, dword [0x4dd8d0]
cmp eax, dword [ebp - 0x11c]
jne 0x40f444
mov dword [ebp - 0x128], 1
jmp 0x40f44e
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x128], 0
jne 0x40f468
push 0
push 0x4d
push 0x4a74dc
call fcn.00409790
add esp, 0xc
movzx ecx, word [ebp + 0xc]
push ecx
movzx edx, word [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040ed90
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0043b600
push edx
mov ecx, ebp
push eax
lea edx, [0x40f4c0]
call fcn.00448fe0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449070
add esp, 0x128
cmp ebp, esp
call fcn.00449040
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415080
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov esi, esp
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.00449040
cmp dword [ebp - 4], 0
jle 0x415113
mov esi, esp
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.00449040
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x4150ff
jmp 0x415113
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x4150ce
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x415138]
call fcn.00448fe0
pop eax
pop edx
pop esi
add esp, 0x18
cmp ebp, esp
call fcn.00449040
mov esp, ebp
pop ebp
ret
Function at 0x4154c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.00449040
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x415510
xor eax, eax
jmp 0x415573
mov eax, 2
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov esi, esp
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00449040
mov word [ebp - 0x1a], ax
mov esi, esp
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.00449040
cmp eax, 0xffffffff
jne 0x415559
jmp 0x41555e
mov eax, dword [ebp - 8]
jmp 0x415573
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.00449040
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4155a0]
call fcn.00448fe0
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449070
add esp, 0x20
cmp ebp, esp
call fcn.00449040
mov esp, ebp
pop ebp
ret
Function at 0x4155f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.00449040
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x415643
xor eax, eax
jmp 0x4156d0
xor eax, eax
mov word [ebp - 0x1c], ax
xor ecx, ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov word [ebp - 0xe], cx
mov edx, 2
mov word [ebp - 0x1c], dx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov esi, esp
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00449040
mov word [ebp - 0x1a], ax
mov esi, esp
push 0x10
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.00449040
cmp eax, 0xffffffff
jne 0x4156a1
jmp 0x4156bb
mov esi, esp
push 3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp esi, esp
call fcn.00449040
mov eax, dword [ebp - 8]
jmp 0x4156d0
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.00449040
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4156fc]
call fcn.00448fe0
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449070
add esp, 0x20
cmp ebp, esp
call fcn.00449040
mov esp, ebp
pop ebp
ret

Function at 0x415720
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x18], ax
xor ecx, ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], cx
mov dword [ebp - 0x24], 0x10
push 0
push 0
call fcn.004155f0
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
ja 0x415776
jmp 0x4157b9
mov esi, esp
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00449040
cmp eax, 0xffffffff
jne 0x41579a
jmp 0x4157b9
mov esi, esp
movzx edx, word [ebp - 0x16]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call fcn.00449040
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp - 0x2c]
jmp 0x4157ce
mov esi, esp
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.00449040
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4157fc]
call fcn.00448fe0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449070
add esp, 0x2c
cmp ebp, esp
call fcn.00449040
mov esp, ebp
pop ebp
ret
Function at 0x4161e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push edi
push ecx
lea edi, [ebp - 0x424]
mov ecx, 0x109
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c3500]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0x400
jg 0x416220
mov dword [ebp - 0x41c], 1
jmp 0x41622a
mov dword [ebp - 0x41c], 0
cmp dword [ebp - 0x41c], 0
jne 0x416244
push 0
push 0x2c
push 0x4a83cc
call fcn.00409790
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x40c]
push edx
call fcn.00446790
add esp, 0xc
mov dword [ebp - 0x414], 0
jmp 0x416285
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x414]
cmp ecx, dword [ebp + 0xc]
jge 0x4162d7
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 0xc]
jne 0x4162a8
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
movsx ecx, byte [eax + ecx]
mov edx, dword [ebp - 0x414]
movsx eax, byte [ebp + edx - 0x40c]
xor eax, ecx
mov ecx, dword [ebp - 0x414]
mov byte [ebp + ecx - 0x40c], al
jmp 0x416267
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x40c]
push edx
call fcn.00448a10
add esp, 0x10
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 1
jne 0x41630d
mov dword [ebp - 0x420], 1
jmp 0x416317
mov dword [ebp - 0x420], 0
cmp dword [ebp - 0x420], 0
jne 0x416331
push 0
push 0x37
push 0x4a83f8
call fcn.00409790
add esp, 0xc
cmp dword [ebp - 0x418], 1
jne 0x416346
mov dword [ebp - 0x424], 1
jmp 0x416350
mov dword [ebp - 0x424], 0
mov eax, dword [ebp - 0x424]
push edx
mov ecx, ebp
push eax
lea edx, [0x416388]
call fcn.00448fe0
pop eax
pop edx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449070
add esp, 0x424
cmp ebp, esp
call fcn.00449040
mov esp, ebp
pop ebp
ret 8