joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d51a
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x59e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, dword [edi]
mov dword [esi], ecx
test ecx, ecx
je 0x41d962
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov dword [ebp - 4], 1
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 2
mov dword [esi + 4], ecx
test ecx, ecx
je 0x41d97d
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 4
mov dword [esi + 8], ecx
test ecx, ecx
je 0x41d991
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 6
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x41d9a5
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
movzx eax, byte [edi + 0x10]
lea ecx, [esi + 0x18]
mov byte [esi + 0x10], al
movzx eax, byte [edi + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edi + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edi + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edi + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edi + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edi + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edi + 0x17]
mov byte [esi + 0x17], al
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], 7
call fcn.00407f80
lea eax, [edi + 0x24]
mov byte [ebp - 4], 8
lea ecx, [esi + 0x24]
push eax
call fcn.00407f80
lea eax, [edi + 0x30]
mov byte [ebp - 4], 9
lea ecx, [esi + 0x30]
push eax
call fcn.00407f80
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
movq xmm0, qword [edi + 0x44]
movq qword [esi + 0x44], xmm0
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
movzx eax, byte [edi + 0x60]
mov byte [esi + 0x60], al
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x78]
mov dword [esi + 0x74], ecx
lea ecx, [esi + 0x78]
push eax
mov byte [ebp - 4], 0xa
call fcn.0041dbf0
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [esi + 0xa8]
call fcn.0041dbf0
mov eax, dword [edi + 0xd8]
mov ecx, dword [edi + 0xdc]
mov dword [esi + 0xd8], eax
mov eax, esi
mov dword [esi + 0xdc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41dac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d5b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x59e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 3
mov dword [edi + 0x11], 0
mov word [edi + 0x15], 0
mov byte [edi + 0x17], 0
call fcn.00408160
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
call fcn.00408160
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.00408160
lea esi, [edi + 0x78]
mov dword [edi + 0x44], 0
xor eax, eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], eax
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 6
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00408160
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.00408160
lea esi, [edi + 0xa8]
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x18]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00408160
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.00408160
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dc90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d647
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x59e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi], vtable.COpenCallbackImp.0
mov dword [edi + 4], vtable.COpenCallbackImp.1.0
mov dword [edi + 8], vtable.COpenCallbackImp.2.0
mov dword [edi + 0xc], vtable.COpenCallbackImp.3.0
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 2
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.00408160
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 3
call fcn.00408160
lea esi, [edi + 0x60]
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.0040b670
lea ecx, [esi + 0x28]
call fcn.00408160
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 5
call fcn.0041bf40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ddd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d670
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x59e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.0051c12c
push dword [esi + 0xc0]
call fcn.0051c12c
push dword [esi + 0x9c]
call fcn.0051c12c
push dword [esi + 0x90]
call fcn.0051c12c
push dword [esi + 0x30]
call fcn.0051c12c
push dword [esi + 0x24]
call fcn.0051c12c
push dword [esi + 0x18]
call fcn.0051c12c
add esp, 0x1c
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x41de50
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x41de64
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x41de78
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x41de8b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421c60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dc80
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x820], edi
mov dword [ebp - 4], 0
lea esi, [eax + 0x68]
mov dword [ebp - 0x824], esi
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x81c]
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x818], 0
mov byte [ebp - 0x816], 0
call fcn.004238e0
add esp, 4
test eax, eax
je 0x421dae
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp - 0x816], 0
je 0x421d36
mov byte [edi + 0x1c], 1
push dword [esi + 0x44]
call fcn.004077f0
cmp byte [esi + 0x40], 0
je 0x421d30
push 0
push 0
push 0x8001
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051bf16
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x41], 1
jmp 0x421d14
cmp byte [ebp - 0x818], 0
jne 0x421dc4
mov eax, dword [edi + 0x20]
push 0
push dword [eax + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x800
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.0055e280
add esp, 0xc
lea eax, [ebp - 0x814]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00423670
lea ecx, [ebp - 0x814]
push ecx
push eax
call fcn.00422f90
add esp, 8
test eax, eax
jne 0x421cf0
mov ecx, edi
mov byte [ebp - 0x818], 1
mov byte [edi + 0x1c], al
call fcn.004219d0
jmp 0x421cf4
cmp byte [ebp - 0x818], 0
jne 0x421dc4
cmp byte [ebp - 0x816], 0
jne 0x421cf0
mov ecx, edi
mov byte [edi + 0x1c], 0
call fcn.004219d0
jmp 0x421cf4
Function at 0x4238e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd3c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.0051c0e5
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x423969
push 8
call fcn.0051c0e5
add esp, 4
test eax, eax
je 0x423940
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], 0x4239a0
jmp 0x423942
xor eax, eax
mov dword [ebp - 0x14], eax
lea edi, [esi + 4]
mov byte [ebp - 4], 1
push edi
push 0
push eax
push 0x4236f0
push 0
push 0
call fcn.005620eb
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x423988
jmp 0x42396b
xor esi, esi
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051bf16
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.0051d48d
int3
Function at 0x4aa4b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e04d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.0051c0e5
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4aa4fb
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
jmp 0x4aa4fd
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x4aa690
push 0
push 0
call fcn.005620eb
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4aa544
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051bf16
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [edi], 0
call fcn.0051d48d
int3
Function at 0x51ba60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
lea esi, [ebp - 0x12c]
xor bl, bl
mov edi, 0x10
nop dword [eax]
movzx eax, bl
lea esi, [esi + 4]
add ecx, eax
add bl, 4
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [ebp - 4]
shl edx, 8
or edx, eax
mov dword [esi - 4], edx
sub edi, 1
jne 0x51ba80
lea eax, [ebp - 0x128]
mov ebx, 0x30
nop
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
ror edi, 0x12
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 0x11
ror edx, 0x13
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x51bac0
mov ebx, dword [ebp - 4]
add ebx, 0x50
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x40
movups xmm0, xmmword [ebx]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [ebp - 0x14], xmm0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov esi, dword [ebp - 0x20]
mov eax, ebx
ror eax, 0xb
mov ecx, ebx
ror edi, 0x19
not ecx
and ecx, dword [ebp - 0xc]
xor edi, eax
mov eax, ebx
ror eax, 6
xor edi, eax
mov eax, dword [ebp - 0x10]
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 4]
add edi, ecx
add dword [ebp - 4], 4
add edi, dword [eax + 0x583a60]
add edi, dword [ebp + eax - 0x12c]
add edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, edx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
add ebx, edi
mov eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x20], eax
ror eax, 0xd
ror ecx, 0x16
xor ecx, eax
mov eax, dword [ebp - 0x24]
ror eax, 2
xor ecx, eax
mov eax, esi
or eax, edx
and esi, edx
and eax, dword [ebp - 0x24]
add ecx, edi
or eax, esi
add eax, ecx
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x24], eax
jne 0x51bb23
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
mov edx, 8
mov eax, dword [ecx]
lea ecx, [ecx + 4]
add dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x51bbc3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51bd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
xor eax, eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
cmp dword [ebp + 0xc], eax
jbe 0x51bf07
mov edx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx + 0x40]
mov al, byte [edx + eax]
mov byte [ebx + ecx], al
inc dword [ebx + 0x40]
cmp dword [ebx + 0x40], 0x40
jne 0x51bef5
xor al, al
lea esi, [ebp - 0x138]
mov byte [ebp - 1], al
mov edi, 0x10
nop dword [eax + eax]
movzx ecx, al
lea esi, [esi + 4]
movzx eax, byte [ecx + ebx]
add ecx, ebx
shl eax, 8
movzx edx, byte [ecx + 1]
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
shl edx, 8
or edx, eax
mov al, byte [ebp - 1]
add al, 4
mov dword [esi - 4], edx
mov byte [ebp - 1], al
sub edi, 1
jne 0x51bd90
lea eax, [ebp - 0x134]
lea ebx, [edi + 0x30]
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
ror edi, 0x12
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 0x11
ror edx, 0x13
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x51bdd0
mov ebx, dword [ebp - 0x30]
add ebx, 0x50
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], 0x40
movups xmm0, xmmword [ebx]
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [ebp - 0x18], xmm0
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov esi, dword [ebp - 0x24]
mov eax, ebx
ror eax, 0xb
mov ecx, ebx
ror edi, 0x19
not ecx
and ecx, dword [ebp - 0x10]
xor edi, eax
mov eax, ebx
ror eax, 6
xor edi, eax
mov eax, dword [ebp - 0x14]
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 8]
add edi, ecx
add dword [ebp - 8], 4
add edi, dword [eax + 0x583a60]
add edi, dword [ebp + eax - 0x138]
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
add ebx, edi
mov eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov dword [ebp - 0x24], eax
ror eax, 0xd
ror ecx, 0x16
xor ecx, eax
mov eax, dword [ebp - 0x28]
ror eax, 2
xor ecx, eax
mov eax, esi
or eax, edx
and esi, edx
and eax, dword [ebp - 0x28]
add ecx, edi
or eax, esi
add eax, ecx
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], eax
jne 0x51be33
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x38]
mov edx, 8
mov eax, dword [ecx]
lea ecx, [ecx + 4]
add dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x51bed3
mov ebx, dword [ebp - 0x30]
add dword [ebx + 0x48], 0x200
mov dword [ebx + 0x40], edx
adc dword [ebx + 0x4c], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp + 0xc]
jb 0x51bd62
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51c6e0
Capabilities:
Terminate process

Disassembly:
test byte [0x59e0e8], 0x20
jne 0x51c6fe
vmovq xmm0, xmm0
vcvttpd2qq xmm0, xmm0
vmovd eax, xmm0
vpextrd edx, xmm0, 1
ret
mov ecx, esp
add esp, 0xfffffff8
and esp, 0xfffffff8
movsd qword [esp], xmm0
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov esp, ecx
btr edx, 0x1f
sbb ecx, ecx
cmp edx, 0x41e00000
jae 0x51c75e
cvttsd2si eax, xmm0
cdq
ret
mov ecx, edx
bts edx, 0x14
shr ecx, 0x14
and edx, 0x1fffff
sub ecx, 0x433
jge 0x51c758
neg ecx
push ebx
xor ebx, ebx
shrd ebx, eax, cl
je 0x51c751
cvttss2si ebx, dword [0x583bbc]
pop ebx
shrd eax, edx, cl
shr edx, cl
ret
shld edx, eax, cl
shl eax, cl
ret
cmp edx, 0x43e00000
jae 0x51c777
test ecx, ecx
je 0x51c728
call 0x51c728
neg eax
adc edx, 0
neg edx
ret
jecxz 0x51c77f
ja 0x51c77f
test eax, eax
je 0x51c787
cvttss2si ecx, dword [0x583bb8]
mov edx, accept
xor eax, eax
ret

Function at 0x51c790
Capabilities:
Enumerate pe sections

Disassembly:
test byte [0x59e0e8], 0x20
jne 0x51c7aa
vmovd xmm0, ecx
vpinsrd xmm0, xmm0, edx, 1
vcvtqq2pd xmm0, xmm0
ret
movd xmm0, ecx
orps xmm0, xmmword [0x583b90]
subsd xmm0, qword [0x583b90]
test edx, edx
je 0x51c7d1
cvtsi2sd xmm1, edx
mulsd xmm1, qword [0x583bb0]
addsd xmm0, xmm1
ret

Function at 0x51ceb3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x51cef2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51cef2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51cef2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x51cef2
cmp dword [ecx + 0x74], 0xe
jbe 0x51cef2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5245cc
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
jmp 0x5245f6
mov al, byte [esi]
push eax
call fcn.00530495
pop ecx
movsx ecx, al
imul eax, ebx, 0x21
xor ecx, eax
inc esi
mov ebx, ecx
cmp esi, edi
jb 0x5245e2
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x52cb80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp byte [esi + 0x712], 0
je 0x52cc0a
cmp dword [esi + 0x1b0], edi
je 0x52cbc8
push 1
push esi
call fcn.00520ac0
push dword [esi + 0x14c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [esi + 0x1b0]
push 0
push esi
mov edi, eax
call fcn.00520ac0
add esp, 0x24
jmp 0x52cc0a
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0x52cbdc
sub eax, 1
je 0x52cbdc
sub eax, 1
jne 0x52cc0a
push dword [esi + 0x148]
imul eax, ecx, 3
push 1
push 2
add eax, 0x585d14
push eax
call fcn.0056c258
push dword [esi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0056c258
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x52cec6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push eax
mov edx, dword [eax + ecx*4 + 0x148]
push ebx
mov dword [ebp - 0x108], edx
call fcn.0052d269
add esp, 0xc
test eax, eax
je 0x52cf12
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x52cf80
push 0
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
and dword [esi], 0
mov edi, eax
cmp edi, 0xffffffff
jne 0x52cf7e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x52cf4b
xor edi, edi
mov dword [esi], 0x51
jmp 0x52cf7e
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0053cedc
push eax
push str.Send_failure:__s
push ebx
call fcn.0052cc10
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [ebx + 0x964], eax
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051bf16
leave
ret
Function at 0x52d269
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x2a0]
mov ebx, dword [ecx + edx*4 + 0x148]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x52d310
cmp dword [ecx + edx*4 + 0x160], 0x52ce03
jne 0x52d310
xor eax, eax
cmp dword [esi], eax
je 0x52d2ad
test edi, edi
je 0x52d310
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00539446
add esp, 0x14
cmp eax, 0xffffffff
je 0x52d310
test al, 1
je 0x52d310
mov ecx, dword [esi]
test ecx, ecx
jne 0x52d2f9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4e0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x59e138]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x52d2ee
push 0x1b
pop eax
jmp 0x52d312
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x52d310
add dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x19c], 0
je 0x52d454
push eax
call fcn.00527f4e
pop ecx
test eax, eax
je 0x52d475
mov al, 1
pop ebp
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x52d475
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
xor al, al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x80
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.0055e280
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x52d6cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0053cedc
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x52d710
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.0052d317
add esp, 0x10
test al, al
jne 0x52d719
call fcn.00562452
mov esi, dword [eax]
call fcn.00562452
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0053cedc
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0052cc10
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051bf16
leave
ret
Function at 0x52ddb8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x5a023c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x52ddff
push 3
push esi
push eax
push 6
call fcn.00553ae3
add esp, 0x10
test al, al
je 0x52ddf7
mov dword [0x5a023c], esi
jmp 0x52de3f
xor eax, eax
inc eax
mov dword [0x5a023c], eax
cmp eax, esi
je 0x52de3f
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x52de2d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x52de3e
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
leave
ret