joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58b810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x59ce04], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x58b8ea
cmp dword [0x59ce00], 0
jne 0x58b8ea
cmp dword [0x59d000], 0
je 0x58b8a4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0058b1d8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x58b88a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0058b1d8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x58b88a
lea ebx, [ebp - 0x84]
jmp 0x58b88b
inc ebx
call fcn.0058b7c8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x58b925
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x59ce08
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00582df0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x59ce0b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x58b925
cmp dword [0x59ce00], 0
je 0x58b904
cmp dword [0x59ce00], 0xffffffff
je 0x58b925
push esi
call dword [0x59ce00]
pop ecx
mov eax, dword [0x59ce04]
test eax, eax
je 0x58b925
cmp dword [0x59ce04], 0xffffffff
je 0x58b925
cmp byte [eax], 0
je 0x58b925
push esi
push eax
call fcn.0058b728
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4010f0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40332c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319b], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401121
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319b]
mov dword [ebp - 0x48], eax
mov eax, 0x401bbc
mov dword [ebp - 0x54], eax
mov ecx, 0x4030bd
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40319b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403378], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403378]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4011d9
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4011cb
mov esp, ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.0040130e

Function at 0x4054c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
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.004034d1
and dword [ebp - 0x14], 0
cmp dword [0x42295c], 0
mov dword [ebp - 0x18], eax
jne 0x405576
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40561e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40561e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42295c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422964], eax
call edi
push eax
call esi
mov dword [0x42296c], eax
test eax, eax
je 0x405576
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x422968], eax
mov eax, dword [0x422968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4055cf
cmp dword [0x42296c], ecx
je 0x4055cf
push eax
call esi
push dword [0x42296c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4055cf
test ebx, ebx
je 0x4055cf
call edi
test eax, eax
je 0x4055c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4055c6
test byte [ebp - 8], 1
jne 0x4055cf
or dword [ebp + 0x10], 0x200000
jmp 0x405602
mov eax, dword [0x422960]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405602
mov eax, dword [0x422964]
cmp eax, dword [ebp - 0x18]
je 0x405602
push eax
call esi
test eax, eax
je 0x405602
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42295c]
call esi
test eax, eax
je 0x40561e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405620
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41c360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41c590
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dd0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c4b0
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c5ed
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041c500
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c870
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
xor edi, edi
cmp dword [0x1ef4de4], 0x8cf
jne 0x41c8a6
push 0
push 0
call ebx
cmp edi, 0x845013
jne 0x41c8bd
mov eax, dword [0x421bf0]
add eax, 0xa231
mov dword [0x1ef4de4], eax
cmp dword [0x1ef4de4], 0x141
jne 0x41c8eb
push str.viwesorihefukenapedumate_ronofo_virejesirahipuj_cafaloteceselu_dizupucucakixucafukiz
lea ecx, [ebp - 0x804]
push ecx
call esi
mov dword [0x422e80], 0xec58acac
mov dword [0x422e84], 0xffffffff
inc edi
cmp edi, 0xbbe2a98
jl 0x41c894
call fcn.0041c600
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
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.00403568
and dword [ebp - 0x14], 0
cmp dword [0x422940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422948], eax
call edi
push eax
call esi
mov dword [0x422950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42294c], eax
mov eax, dword [0x42294c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x422950], ecx
je 0x404367
push eax
call esi
push dword [0x422950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x422944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x422948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41c4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41c720
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c640
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c77d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041c690
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402089
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x4020fd
cmp eax, ebx
jl 0x4020fd
cmp edi, ebx
jl 0x4020fd
cmp dword [ebp + 0xc], ebx
je 0x4020fd
push 2
neg eax
push eax
push dword [ebp + 8]
call fcn.0042023f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4020c0
mov byte [ebp - 1], bl
jmp 0x40210b
push esi
lea esi, [edi + 1]
push esi
call fcn.0041ef0a
push esi
mov ebx, eax
push 0
push ebx
call fcn.00423bc0
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.0041ff37
add esp, 0x20
pop esi
test eax, eax
jne 0x4020ee
mov byte [ebp - 1], al
jmp 0x402100
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0041f1c0
add esp, 0xc
jmp 0x402100
mov byte [ebp - 1], bl
test ebx, ebx
je 0x40210b
push ebx
call fcn.0041fc8c
pop ecx
mov al, byte [ebp - 1]
pop ebx
leave
ret 8

Function at 0x402628
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x433fca
call fcn.00424356
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x402644
xor al, al
call fcn.004243d9
ret
lea eax, [ebp - 0x50]
push eax
call fcn.00402cca
and dword [ebp - 4], 0
mov eax, dword [esi + 4]
add eax, 0x3c
lea ecx, [ebp - 0x50]
call fcn.00407ae5
mov ecx, 0x441be8
lea esi, [ebp - 0x34]
call fcn.00401087
push str._t.txt
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.0040118b
push ecx
mov ecx, esi
mov esi, esp
mov dword [ebp - 0x38], esp
call fcn.00401087
lea edi, [ebp - 0x30]
call fcn.0041da85
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
pop ecx
jae 0x40269f
lea eax, [ebp - 0x2c]
push 0x437230
push eax
call fcn.0041fba7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4026d7
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402eaa
lea esi, [ebp - 0x34]
call fcn.0040172e
lea esi, [ebp - 0x50]
call fcn.00407c2c
mov al, bl
jmp 0x40263e
mov edi, dword [ebp - 0x40]
sub edi, dword [ebp - 0x44]
jne 0x4026e4
call fcn.0041fa72
push esi
push 1
push edi
push dword [ebp - 0x44]
call fcn.00420133
push esi
call fcn.0042038c
add esp, 0x14
mov bl, 1
jmp 0x4026b4

Function at 0x40397c
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x441c0c], 0
jne 0x4039ac
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4039a5
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x441c10], eax
mov byte [0x441c0c], 1
mov eax, dword [0x441c10]
test eax, eax
je 0x4039c4
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x4039d0
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4

Function at 0x403a5d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x403a6b
push 0xd
pop eax
jmp 0x403a9e
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403a72
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x403aa2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x43f600]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.004039ea
mov ebx, eax
cmp ebx, edi
je 0x403b08
cmp dword [ebp - 0x214], edi
je 0x403b01
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x403ba0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403b30
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00403aa2
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x403bb1
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x403b10
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x403b7b
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.0040397c
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x403b9e
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ef20
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x403bc5
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x403ba0
Function at 0x406134
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, 0x1388
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
ret

Function at 0x4061dc
Capabilities:
Create process on windows

Disassembly:
cmp dword [esp + 4], 4
push esi
mov esi, eax
je 0x406250
cmp dword [esp + 8], 3
jne 0x406203
push 0
push 0x437d20
push str.Failed_to_loading__Thanks_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40624b
cmp dword [esp + 8], 2
jne 0x406250
cmp dword [esp + 0xc], 0
je 0x406250
call fcn.00406256
lea ecx, [esi + 0x24]
call fcn.00402628
mov eax, dword [esi + 0x3c]
cmp dword [eax - 8], 0
je 0x40623f
push 1
push 0
push dword [0x441b98]
push eax
push 0x437248
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40624b
call fcn.00407439
call fcn.00406134
xor eax, eax
pop esi
ret 8

Function at 0x406256
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x433e98
call fcn.004242ed
mov ecx, 0x441be8
lea esi, [ebp - 0x10]
call fcn.00401087
and dword [ebp - 4], 0
push str._r.txt
mov eax, esi
push eax
call fcn.0040118b
push ecx
mov ecx, esi
mov esi, esp
mov dword [ebp - 0x14], esp
call fcn.00401087
lea edi, [ebp - 0x30]
call fcn.0041da85
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x4062a1
mov eax, dword [eax + 4]
jmp 0x4062a4
add eax, 4
push 0x437230
push eax
call fcn.0041fba7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4062e4
cmp dword [0x4406a8], 0x10
mov esi, dword [0x4406a4]
mov eax, dword [0x440694]
jae 0x4062d0
mov eax, 0x440694
push edi
push esi
push 1
push eax
call fcn.00420133
add esp, 0x10
push edi
call fcn.0042038c
pop ecx
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00402eaa
lea esi, [ebp - 0x10]
call fcn.0040172e
call fcn.004243c5
ret

Function at 0x40f035
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 4
mov edi, ecx
call fcn.00420423
mov esi, eax
pop ecx
test esi, esi
jne 0x40f04d
or eax, 0xffffffff
jmp 0x40f07c
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x40f027
push 0
push 0
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x40f07a
push esi
call fcn.0041ef15
and dword [edi + 4], 0
pop ecx
jmp 0x40f048
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x413684
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x432f27
call fcn.004242ed
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x4136ad
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.004149c0
xor al, al
jmp 0x41380b
call fcn.004130b8
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 0xc]
call fcn.0042023f
push dword [ebp + 0xc]
call fcn.00420a92
push ebx
push ebx
push dword [ebp + 0xc]
mov esi, eax
call fcn.0042023f
add esp, 0x1c
cmp esi, ebx
jg 0x4136e6
push ebx
push ebx
push 0xd
jmp 0x41369e
mov ebx, 0x441abc
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00412b5d
lea eax, [esi + 1]
push eax
call fcn.00420423
push dword [ebp + 0xc]
mov edi, eax
push 1
push esi
push edi
mov dword [ebp - 0x14], edi
mov byte [edi], 0
call fcn.0041ff37
add esp, 0x14
cmp eax, 1
je 0x413751
push edi
call fcn.0041ef15
mov edi, dword [ebp + 8]
pop ecx
push 0
push 0
push 2
xor ecx, ecx
pop eax
call fcn.004149c0
cmp dword [ebp - 0x10], ebx
je 0x4136a6
push dword [ebp - 0x10]
call fcn.0041fc8c
pop ecx
jmp 0x4136a6
mov ebx, edi
mov eax, ebx
mov byte [eax + esi], 0
cmp byte [eax], 0
je 0x4137b6
mov al, byte [ebx]
cmp al, 0xa
jne 0x413776
mov eax, ebx
sub eax, edi
inc eax
push eax
push edi
lea edi, [ebp - 0x10]
call fcn.00412c4d
inc ebx
jmp 0x4137ac
cmp al, 0xd
jne 0x4137b0
mov eax, ebx
sub eax, edi
test eax, eax
jle 0x41378c
push eax
push edi
lea edi, [ebp - 0x10]
call fcn.00412c4d
push 1
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x10]
mov byte [ebp + 0xc], 0xa
call fcn.00412c4d
lea eax, [ebx + 1]
cmp byte [eax], 0xa
jne 0x4137aa
inc ebx
inc ebx
jmp 0x4137ac
mov ebx, eax
mov edi, ebx
jmp 0x4137b1
inc ebx
cmp byte [ebx], 0
jne 0x41375e
sub ebx, edi
je 0x4137c4
push ebx
push edi
lea edi, [ebp - 0x10]
call fcn.00412c4d
push dword [ebp - 0x14]
call fcn.0041ef15
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
pop ecx
push 0
push 0
lea ecx, [edi + 8]
push ecx
mov ecx, esi
call dword [eax + 8]
cmp byte [esi + 0x2c], 0
je 0x4137fa
cmp edi, 0x441abc
je 0x4136a6
push edi
jmp 0x413746
cmp edi, 0x441abc
je 0x413809
push edi
call fcn.0041fc8c
pop ecx
mov al, 1
call fcn.004243c5
ret 8

Function at 0x416717
Capabilities:
Manipulate console buffer

Disassembly:
mov ecx, dword [eax + 0x1c]
test ecx, 0x100
je 0x416756
cmp dword [eax + 0xc], 0xe
jne 0x41672d
jmp fcn.0041a38e
and ecx, 0xfffffeff
dec dword [eax + 0x34]
mov dword [eax + 0x1c], ecx
jne 0x416756
test cl, 1
jne 0x416756
test cl, 0x40
je 0x416756
and ecx, 0xffffffbf
mov dword [eax + 0x1c], ecx
test cl, 0x20
je 0x416756
mov eax, dword [eax + 8]
dec dword [eax + 0xc]
xor eax, eax
ret
Function at 0x416fc1
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 0x74], 0xffffffff
jne 0x41703c
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x416ffc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov edi, dword [edi + 8]
mov ecx, esi
call fcn.0041b96d
mov dword [edi + 4], eax
mov dword [edi + 8], esi
or eax, 0xffffffff
jmp 0x417074
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x41702c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [edi + 8]
mov esi, eax
mov ecx, esi
call fcn.0041b96d
mov dword [edi + 4], eax
mov dword [edi + 8], esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x416ff7
mov esi, dword [edi + 8]
push ebx
push edi
call fcn.00416c90
pop ecx
pop ecx
test eax, eax
jl 0x417023
push 0x10
push dword [esp + 0x14]
push dword [edi + 0x74]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41706b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, 0x2740
cmp esi, eax
jne 0x416fe7
or dword [edi + 0x1c], 0x400
mov dword [edi + 0x78], eax
or dword [edi + 0x1c], 0x200
xor eax, eax
pop edi
pop esi
pop ebx
ret