joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405250
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x110], edi
mov ax, word [0x439a7c]
movq xmm0, qword [str._unknown_]
push 0xfa
mov word [ebp - 0x100], ax
lea eax, [ebp - 0xfe]
push 0
push eax
movq qword [ebp - 0x108], xmm0
call fcn.00410a80
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4052f0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x4052f0
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x108]
mov dword [edi], 0
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405317
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, edi
call fcn.004026c0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret

Function at 0x405350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4053c1
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00410160
add esp, 8
test eax, eax
jne 0x4053f2
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x405394
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x405400
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4053f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405413
jmp 0x4053f6
mov bl, 1
jmp 0x4053ca
push edx
push ecx
call fcn.0040ed7f
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret
call fcn.004134a7
int3
Function at 0x4054c0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c593
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00405420
mov edi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00405250
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0040c690
push str.___f__erase__
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0040c800
push edi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0040c9c0
push str.___exit
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040c800
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00402450
lea ecx, [ebp - 0x58]
call fcn.00402450
lea ecx, [ebp - 0x70]
call fcn.00402450
lea ecx, [ebp - 0x88]
call fcn.00402450
lea ecx, [ebp - 0xa0]
call fcn.00402450
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00402410
push eax
push str.C:WindowsSystem32cmd.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call fcn.00417c2d
int3
Function at 0x4065e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x58], 0
push eax
push 8
mov word [ebp - 0x54], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406636
lea eax, [ebp - 0x5c]
push eax
push 0x4c
lea eax, [ebp - 0x50]
push eax
push 1
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x60]
test eax, eax
jne 0x406646
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x406636
push esi
push dword [ebp - 0x64]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret

Function at 0x4066a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp - 0x14]
push esi
push edx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x44
push edx
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push 0
push eax
push ecx
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebp + 0x1c]
or esi, 0xffffffff
test eax, eax
cmovne esi, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x406747
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40673d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406758
push edx
push ecx
call fcn.0040ed7f
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret
call fcn.004134a7
int3
Function at 0x409480
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca00
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
call fcn.004187f3
add esp, 4
push eax
call fcn.00417d97
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov esi, dword [ebp + 8]
add esp, 4
cmp edx, 0x10
cmovae ecx, esi
cmp dword [ebp + 0x18], 3
jne 0x4094ff
movzx eax, byte [ecx]
cmp al, 0x63
jne 0x4094f6
movzx eax, byte [ecx + 1]
cmp al, 0x68
jne 0x4094f6
movzx eax, byte [ecx + 2]
cmp al, 0x6b
jne 0x4094f6
xor eax, eax
jmp 0x4094fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x409549
cmp edx, 0x10
lea ecx, [ebp + 8]
cmovae ecx, esi
cmp dword [ebp + 0x18], 4
jne 0x40956f
mov eax, dword [ecx]
mov edx, str._chk
cmp eax, dword [edx]
jne 0x409520
add ecx, 4
xor eax, eax
jmp 0x409545
cmp al, byte [edx]
jne 0x409540
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x409540
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x409540
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x409540
xor eax, eax
jmp 0x409545
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40956f
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00409650
sub esp, 0xc
lea ecx, [ebp - 0xd8]
push str.test
call fcn.0040b4a0
push 0
call fcn.00417c2d
push 0
push 0
push 0
push 0x4056a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SUB
lea ecx, [ebp - 0xf4]
call fcn.00402520
lea edx, [ebp - 0xf4]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00405ea0
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0
call fcn.00402450
call fcn.00404840
mov esi, eax
call fcn.00404f20
mov ecx, eax
test esi, esi
je 0x4095d9
mov eax, 0x439b60
jmp 0x4095e8
test ecx, ecx
mov eax, 0x439b64
mov edx, str.start
cmove eax, edx
push eax
mov ecx, 0x450db0
call fcn.00402420
lea ecx, [ebp - 0x28]
call fcn.00406aa0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040ca60
test al, al
je 0x40962c
sub esp, 0x18
mov ecx, esp
push 0x439b70
call fcn.00402520
lea ecx, [ebp - 0x28]
call fcn.00402410
mov ecx, eax
call fcn.004066a0
add esp, 0x18
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040bb10
call fcn.00408d00
add esp, 0x18
call fcn.004054c0
int3
Function at 0x40a810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40a8f6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40a8e5
jg 0x40a850
test edx, edx
je 0x40a8e5
nop dword [eax]
call fcn.0040c240
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40a8a4
jg 0x40a867
test esi, esi
je 0x40a8a4
cmp ebx, eax
jg 0x40a877
jl 0x40a871
cmp edi, esi
jae 0x40a877
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00410440
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40a8c9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40a8df
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40a850
jl 0x40a8df
test edi, edi
jne 0x40a850
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40a918
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40a91a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40a998
jg 0x40a92d
test esi, esi
je 0x40a998
test eax, eax
jl 0x40a97c
jg 0x40a937
test ebx, ebx
je 0x40a97c
cmp edi, eax
jg 0x40a947
jl 0x40a941
cmp esi, ebx
jae 0x40a947
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00410440
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x40a998
jg 0x40a97f
test esi, esi
je 0x40a998
jmp 0x40a97f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40a998
push eax
push esi
push 1
push edx
call fcn.00418588
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40a9e2
jl 0x40a9d5
test ecx, ecx
jne 0x40a9e2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40aaa2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040c260
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40aa4e
jg 0x40aa0d
test esi, esi
je 0x40aa4e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40aa25
mov eax, dword [esp + 0x10]
jl 0x40aa1f
cmp eax, esi
jae 0x40aa25
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00410440
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40aa6f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40aa8b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x40a9f4
jl 0x40aa8b
test ecx, ecx
jne 0x40a9f4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40aae1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x40aae1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00410440
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x40ab50
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x40ab07
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x40ab39
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004160f9
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x40ab64
cmp edi, eax
ja 0x40ab15
test ecx, ecx
je 0x40ab50
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004160f9
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40aed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40af00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40af3c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40af3c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40b024
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40af64
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40af97
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00417c6c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x40aff7
sub eax, 1
je 0x40aff7
sub eax, 2
jne 0x40b024
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00417c6c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40b014
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00418588
add esp, 0x10
cmp edi, eax
jne 0x40b024
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40af27
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret 4
Function at 0x40b720
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x19], 0
je 0x40b74a
movups xmm0, xmmword [ecx]
mov eax, 0x10
movaps xmm1, xmmword [str.................]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
nop dword [eax]
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0x1a
jb 0x40b740
mov eax, ecx
ret

Function at 0x40b7f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x11], 0
je 0x40b81a
movups xmm0, xmmword [ecx]
mov eax, 0x10
movaps xmm1, xmmword [str.................]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
nop dword [eax]
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0x12
jb 0x40b810
mov eax, ecx
ret

Function at 0x40b870
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0xb], 0
je 0x40b882
xor eax, eax
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0xc
jb 0x40b878
mov eax, ecx
ret

Function at 0x40c060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40c11a
cmp byte [esi + 0x3d], 0
je 0x40c11a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40c108
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40c0d0
sub eax, 1
je 0x40c0d4
sub eax, 2
jne 0x40c108
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40c0f1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00418588
add esp, 0x10
cmp edi, eax
jne 0x40c108
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040eb3f
mov esp, ebp
pop ebp
ret
Function at 0x40c2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43d054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040ed4f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040e206
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41fd83
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041fbf9
Function at 0x4010a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x40d020]
push esi
mov word [0x40d2b4], ax
inc eax
mov dword [0x40d020], eax
mov eax, dword [0x40d024]
mov word [0x40d2b6], ax
inc eax
mov dword [0x40d024], eax
mov esi, ecx
mov byte [0x40d2b0], 8
mov byte [0x40d2b1], 0
mov word [0x40d2b2], 0
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [eax + 0x40d2c0], cl
inc eax
cmp eax, 0x20
jl 0x4010de
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x30
push 0x40d2b0
mov ecx, esi
mov dword [0x40d2bc], eax
call fcn.00401040
mov edx, dword [esp + 0xc]
push 0x10
push edx
mov word [0x40d2b2], ax
mov eax, dword [esp + 0x10]
push 0
push 0x30
push 0x40d2b0
push eax
call sub.WS2_32.dll_sendto
mov esi, eax
cmp esi, 0xffffffff
jne 0x401143
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.sendto___error:_d_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov eax, esi
pop esi
ret 8

Function at 0x401150
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x148
mov ecx, dword [esp + 0x150]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x150]
push ecx
push 0
lea edx, [esp + 0x10]
push 0x144
push edx
push eax
mov dword [esp + 0x18], 0x10
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x4011b7
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.recvfrom___error:_d_n
call dword [sym.imp.MSVCRT.dll_printf]
mov ecx, dword [esp + 0x15c]
mov dl, byte [esp + 0x14]
mov eax, dword [esp + 0x2c]
add esp, 8
mov byte [ecx], dl
add esp, 0x148
ret 0xc
mov eax, dword [esp + 0x154]
mov cl, byte [esp + 0xc]
mov byte [eax], cl
mov eax, dword [esp + 0x24]
add esp, 0x148
ret 0xc

Function at 0x4011e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 0
call sub.WS2_32.dll_select
add esp, 0x10c
ret 4