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

Disassembly:
sub esp, 0x418
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0x870c08
repne scasb al, byte es:[edi]
mov eax, dword [0x962b38]
not ecx
dec ecx
mov ebx, ecx
mov ecx, eax
cmp eax, ebx
jb 0x45b368
mov ecx, ebx
mov ebp, dword [0x962b34]
mov edi, 0x870c08
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x45b380
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x45b395
cmp eax, ebx
jb 0x45b395
cmp eax, ebx
setne dl
test edx, edx
je 0x45b504
test ebp, ebp
mov eax, 0x7e5658
je 0x45b3a0
mov eax, ebp
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b3f0
mov eax, dword [0x962b34]
test eax, eax
jne 0x45b3d0
mov eax, 0x7e5658
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x45b504
test esi, esi
je 0x45b504
push 2
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov ecx, dword [esp + 0x22]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1e]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x38]
push 0x82bd90
push edx
mov dword [esp + 0x2c], 0
call fcn.007a3155
mov ebx, dword [sym.imp.kernel32.dll_lstrlenA]
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call ebx
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
mov dword [esp + 0x24], eax
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
lea edx, [esp + 0x30]
push ecx
push edx
push esi
call edi
mov eax, dword [esp + 0x22]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1e]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1e]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x38]
push 0x82bd40
push ecx
call fcn.007a3155
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push esi
call edi
lea edx, [esp + 0x14]
push 0
push edx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
call edi
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
Function at 0x45b510
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x962b38]
sub esp, 8
test eax, eax
push esi
push edi
je 0x45b661
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45b661
push 0x962718
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [0x962724]
mov edx, dword [0x962720]
xor ecx, ecx
and eax, 0xffff
mov cx, word [0x962722]
push eax
and edx, 0xffff
push ecx
push edx
push 0x82bdc4
push 0x961af8
mov byte [0x961af8], 0
mov dword [esp + 0x1c], 0
call fcn.007a3155
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
push ecx
push 0x962308
mov byte [0x962308], 0
call fcn.007a38f8
mov esi, dword [sym.imp.kernel32.dll_lstrcatA]
add esp, 0x20
push 0x962308
push 0x961af8
call esi
push 0x82bdc0
push 0x961af8
call esi
push 0x961af8
call dword [sym.imp.kernel32.dll_lstrlenA]
mov dword [esp + 0xc], eax
mov eax, dword [0x962b34]
test eax, eax
jne 0x45b5d2
mov eax, 0x7e5658
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b61e
mov eax, dword [0x962b34]
test eax, eax
jne 0x45b602
mov eax, 0x7e5658
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x45b661
test esi, esi
je 0x45b661
push 2
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
lea edx, [esp + 8]
push 0
push edx
lea eax, [esp + 0x14]
push 4
push eax
push esi
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push 0x961af8
push esi
call edi
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
add esp, 8
ret
Function at 0x45da80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7b8273
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0044a3d0
mov cl, byte [esp + 7]
xor eax, eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x2c], cl
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
or eax, 0x20000
mov byte [esp + 0x14], 1
mov dword [esi], 0x7e633c
mov dword [esi + 4], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45e050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7b82ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov byte [edi + 4], al
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dl, byte [esp + 0xf]
mov al, byte [esp + 0xf]
lea ecx, [edi + 0x14]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.0045f740
mov byte [esp + 0x24], 2
mov dword [edi], 0x7e635c
mov cl, byte [esp + 0xf]
mov dword [esp + 0x24], 3
push 0xc
mov byte [esi + 0x30], cl
call fcn.007a2d8d
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
mov dl, byte [esp + 0x13]
mov byte [esp + 0x28], 4
push 0xc
mov byte [esi + 0x3c], dl
call fcn.007a2d8d
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov ecx, dword [esp + 0x1c]
mov al, 1
mov byte [esp + 0x24], 5
mov byte [esi + 0x2b], al
mov byte [esi + 0x29], al
mov dword [esi], 0x7e6358
mov byte [esi + 0x28], bl
mov byte [esi + 0x2c], bl
mov eax, esi
pop edi
mov dword [esp + 0x20], 0xffffffff
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x460560
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x460572
jmp dword [eax*4 + 0x460768]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x870c08
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00401b40
test al, al
je 0x46064f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x870c08
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x460750
cmp esi, 0xffffffff
jne 0x460666
call fcn.007a02eb
mov ecx, ebx
call fcn.00405090
cmp eax, esi
jae 0x460676
call fcn.007a02eb
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x46069b
mov al, byte [ecx - 1]
test al, al
je 0x46069b
cmp al, 0xff
je 0x46069b
test esi, esi
jne 0x4606bf
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404e60
jmp 0x4606e9
test esi, esi
jne 0x4606aa
push 1
mov ecx, ebx
call fcn.00404e60
jmp 0x4606e9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x4606b6
cmp eax, esi
jae 0x4606c7
push 1
mov ecx, ebx
call fcn.00404e60
push esi
mov ecx, ebx
call fcn.00401c60
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x460718
mov al, byte [eax - 1]
test al, al
je 0x460708
cmp al, 0xff
je 0x460708
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401b40
mov eax, dword [ebx + 4]
test eax, eax
je 0x460713
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x46071d
mov ebx, 0x7e5658
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x460745
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x460740
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x460b80
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x460bbd
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x14]
mov dl, byte [ecx + esi]
xor eax, eax
mov al, bh
xor al, dl
movzx dx, dl
add edx, ebx
mov byte [ecx + esi], al
imul edx, dword [esp + 0x20]
add edx, ebp
inc ecx
cmp ecx, edi
mov ebx, edx
jl 0x460b9a
pop esi
pop ebp
pop ebx
pop edi
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x7b859b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, ecx
mov cl, byte [esp + 3]
mov dword [esp + 4], eax
mov byte [eax + 0x38], cl
xor ecx, ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [esp + 0x10], ecx
or edx, 0xffffffff
mov byte [eax + 0x14], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x48], ecx
mov byte [eax + 0x35], cl
mov ecx, dword [esp + 8]
mov dword [eax], 0x7e6360
mov dword [eax + 0x10], edx
mov dword [eax + 0x18], 0x3f800000
mov byte [eax + 0x34], 1
mov dword [esp + 0x10], edx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x461ef0
Capabilities:
Encode data using xor

Disassembly:
mov ax, word [esp + 4]
push ebx
push esi
cmp ax, 1
push edi
jne 0x461f46
mov ebx, dword [esp + 0x18]
mov edx, 0x816
test ebx, ebx
jbe 0x461fd4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sub edi, esi
mov al, byte [esi]
xor ecx, ecx
mov cl, dh
xor cl, al
movzx ax, al
add eax, edx
mov byte [edi + esi], cl
lea edx, [eax + eax*2]
shl edx, 6
add edx, eax
shl edx, 7
inc esi
dec ebx
lea edx, [edx + eax + 0x1608]
jne 0x461f19
pop edi
pop esi
mov al, 1
pop ebx
ret
cmp ax, 2
jne 0x461f93
mov ebx, dword [esp + 0x18]
mov ecx, 0x1608
test ebx, ebx
jbe 0x461fd4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sub edi, esi
mov al, byte [esi]
xor edx, edx
mov dl, ch
xor dl, al
movzx ax, al
add eax, ecx
mov byte [esi + edi], dl
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
inc esi
dec ebx
lea eax, [ecx + ecx*8]
lea eax, [eax + eax*4]
lea ecx, [eax + eax + 0x6081]
jne 0x461f63
pop edi
pop esi
mov al, 1
pop ebx
ret
mov ebx, dword [esp + 0x18]
mov ecx, 0x6081
test ebx, ebx
jbe 0x461fd4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sub edi, esi
mov al, byte [esi]
xor edx, edx
mov dl, ch
xor dl, al
movzx ax, al
add eax, ecx
mov byte [esi + edi], dl
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
inc esi
dec ebx
lea eax, [ecx + ecx*2]
lea ecx, [eax + eax*4]
lea ecx, [ecx*8 + 0x816]
jne 0x461faa
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x462f20
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x463108
mov ecx, dword [ebx + 0x40020]
test ecx, ecx
je 0x463108
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
push 0x4004667f
push eax
mov dword [esp + 0x1c], 0
call sub.wsock32.dll_ioctlsocket
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4630ef
mov edx, dword [ebx + 4]
push 0
lea eax, [ebx + 0x20]
push 0x40000
push eax
push edx
call sub.wsock32.dll_recv
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x4630db
test eax, eax
je 0x4630c9
mov edx, dword [esp + 0x10]
add edx, eax
test eax, eax
mov dword [esp + 0x10], edx
jle 0x4630c9
mov ecx, dword [ebx + 0x40034]
mov edx, dword [ebx + 0x40030]
sub ecx, edx
jns 0x462fb8
add ecx, dword [ebx + 0x40028]
mov ebp, dword [ebx + 0x40028]
mov edx, ebp
sub edx, ecx
cmp eax, edx
jl 0x463044
lea eax, [ebp + ebp]
push eax
mov dword [ebx + 0x40028], eax
call fcn.007a2d8d
mov esi, dword [ebx + 0x4002c]
mov ecx, ebp
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x18], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x40034]
mov edx, dword [ebx + 0x40030]
cmp ecx, edx
jge 0x463022
mov esi, dword [ebx + 0x4002c]
lea edi, [eax + ebp]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x40034], ebp
mov ecx, dword [ebx + 0x4002c]
push ecx
call fcn.007a02e0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [ebx + 0x4002c], edx
jmp 0x462fa2
mov ebp, dword [ebx + 0x40034]
mov ecx, dword [ebx + 0x40028]
lea edx, [eax + ebp]
cmp edx, ecx
jl 0x4630a8
mov edi, dword [ebx + 0x4002c]
sub ecx, ebp
mov edx, ecx
add edi, ebp
mov ebp, ecx
lea esi, [ebx + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
sub eax, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x46309c
mov edi, dword [ebx + 0x4002c]
mov ecx, eax
lea esi, [edx + ebx + 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x40034], eax
jmp 0x4630c9
mov dword [ebx + 0x40034], 0
jmp 0x4630c9
mov edi, dword [ebx + 0x4002c]
mov ecx, eax
mov edx, ecx
lea esi, [ebx + 0x20]
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x40034], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jb 0x462f67
jmp 0x4630ef
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x82be84
call fcn.0045afa0
add esp, 8
mov ecx, ebx
call fcn.00463110
pop edi
pop esi
test eax, eax
pop ebp
je 0x463108
mov ecx, ebx
call fcn.00463110
test eax, eax
jne 0x4630fd
pop ebx
add esp, 0x10
ret
Function at 0x4633d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7b874b
push eax
mov eax, 0x40310
mov dword fs:[0], esp
call fcn.007a3530
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [esi + 0x40094]
test eax, eax
je 0x463575
cmp dword [esi + 4], 0xffffffff
je 0x463575
mov eax, dword [esi + 0x40020]
test eax, eax
je 0x463575
push ebx
push ebp
push edi
mov ecx, 0xffff
xor eax, eax
lea edi, [esp + 0x321]
mov byte [esp + 0x320], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x40038]
test eax, eax
jmp 0x46347a
mov eax, dword [esp + 0x40334]
mov esi, dword [esp + 0x40330]
push 1
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.004620e0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, ebx
push 0xaa55
mov dword [esp + 0x4032c], 0
add ebx, 6
call sub.wsock32.dll_htons
mov ecx, ebp
mov word [esp + 0x320], ax
mov eax, ecx
lea edi, [esp + 0x324]
shr ecx, 2
mov word [esp + 0x322], bp
push 0x55aa
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea ebp, [esp + ebp + 0x328]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.wsock32.dll_htons
xor esi, esi
mov word [ebp], ax
test ebx, ebx
jle 0x463540
mov edi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x324]
push ebx
mov edx, dword [edi + 4]
push ecx
push edx
call sub.wsock32.dll_send
cmp eax, 0xffffffff
je 0x463522
test eax, eax
je 0x46351c
add esi, eax
cmp esi, ebx
jl 0x4634f9
jmp 0x463544
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x82beac
call fcn.0045afa0
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.user32.dll_PostQuitMessage]
jmp 0x463544
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x40060]
mov eax, dword [esp + 0x1c]
add edx, ebx
push eax
mov dword [edi + 0x40060], edx
mov dword [esp + 0x4032c], 0xffffffff
mov dword [esp + 0x18], 0x7e6364
call fcn.007a02e0
add esp, 4
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40314]
pop esi
mov dword fs:[0], ecx
add esp, 0x4031c
ret 8
Function at 0x466430
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
dec eax
push esi
cmp eax, 8
push edi
ja case.default.0x466442
jmp dword [eax*4 + 0x466638]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 4
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, 0x870c08
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00401b40
test al, al
je 0x46651f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x870c08
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
jle 0x466620
cmp esi, 0xffffffff
jne 0x466536
call fcn.007a02eb
mov ecx, ebx
call fcn.00405090
cmp eax, esi
jae 0x466546
call fcn.007a02eb
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x46656b
mov al, byte [ecx - 1]
test al, al
je 0x46656b
cmp al, 0xff
je 0x46656b
test esi, esi
jne 0x46658f
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404e60
jmp 0x4665b9
test esi, esi
jne 0x46657a
push 1
mov ecx, ebx
call fcn.00404e60
jmp 0x4665b9
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x466586
cmp eax, esi
jae 0x466597
push 1
mov ecx, ebx
call fcn.00404e60
push esi
mov ecx, ebx
call fcn.00401c60
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov eax, 0x20202020
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [eax + esi], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4665e8
mov al, byte [eax - 1]
test al, al
je 0x4665d8
cmp al, 0xff
je 0x4665d8
mov ecx, dword [ebx + 8]
push 0
push ecx
mov ecx, ebx
call fcn.00401b40
mov eax, dword [ebx + 4]
test eax, eax
je 0x4665e3
mov byte [eax - 1], 0xff
mov ebx, dword [ebx + 4]
jmp 0x4665ed
mov ebx, 0x7e5658
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
jmp 0x466615
lea edx, [esp + 0x18]
push 0
push edx
push 4
jmp 0x466610
lea edx, [esp + 0x18]
push 0
push edx
push 8
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x468f10
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7b8c4b
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov ebp, ecx
cmp dword [edi + 8], ebx
jne 0x468f5a
mov ecx, dword [ebp + 0x300]
cmp ecx, ebx
je 0x468f49
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp + 0x300], ebx
mov dword [ebp + 0x30c], ebx
jmp 0x469117
cmp dword [ebp + 0x300], ebx
jne 0x468fce
mov cl, byte [esp + 0x40]
push ebx
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
call fcn.00404e60
lea edx, [esp + 0x10]
mov dword [esp + 0x38], ebx
push edx
push 0x899
call fcn.00709cc0
push 0x3c
call fcn.007a2d8d
add esp, 0xc
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x38], 1
je 0x468faf
push ebx
lea ecx, [esp + 0x14]
push 0xc
push ecx
mov ecx, eax
call fcn.0043d6e0
jmp 0x468fb1
xor eax, eax
mov byte [esp + 0x38], bl
mov dword [ebp + 0x300], eax
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00404e60
mov eax, dword [edi + 8]
sub esp, 0x10
mov dword [esp + 0x24], ebx
xor edx, edx
mov dword [esp + 0x20], eax
mov ebx, esp
fild qword [esp + 0x20]
mov eax, edx
mov esi, 0x118
mov dword [ebx], eax
mov ecx, edx
fmul dword [0x7e6314]
mov dword [ebx + 4], ecx
mov dword [esp + 0x28], edx
sub esp, 0x10
mov dword [esp + 0x3c], edx
mov dword [ebx + 8], esi
mov edx, 0x64
fstp dword [ebp + 0x30c]
mov ecx, esp
mov dword [esp + 0x60], esp
push edi
mov dword [ebx + 0xc], edx
call fcn.004267d0
lea eax, [esp + 0x40]
mov ecx, ebp
push eax
mov dword [esp + 0x5c], 0xffffffff
call fcn.00473f60
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x38], 3
mov esi, 0x7e5658
je 0x46904d
mov esi, eax
mov dl, byte [esp + 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], dl
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x14]
push ebx
call fcn.00401b40
test al, al
je 0x46909d
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00405070
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, dword [ebp + 0x300]
mov byte [esp + 0x40], 4
call fcn.0043d9f0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x38], 3
test eax, eax
je 0x4690de
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4690d5
cmp al, 0xff
je 0x4690d5
dec al
mov byte [ecx], al
jmp 0x4690de
push ecx
call fcn.007a02e0
add esp, 4
mov ebp, dword [ebp + 0x300]
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x2c], edx
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x38], 0xffffffff
je 0x469117
mov al, byte [ecx - 1]
test al, al
je 0x46910d
cmp al, 0xff
je 0x46910d
dec al
mov byte [ecx - 1], al
jmp 0x469117
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 8