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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x58
mov ebp, dword [esp + 0x70]
cmp dword [ebp + 8], 1
je 0x101345de
mov ebx, dword [esp + 0x7c]
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x74]
lea edx, [esp + 4]
movzx ecx, byte [ebx + 0x2c]
movzx eax, al
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
push eax
push edi
push ecx
push edx
call fcn.101204e0
add esp, 0x10
cmp byte [esp + 4], 3
jne 0x1013444c
test byte [ebp], 1
je 0x10134476
mov word [esi], 0x101
mov dword [esi + 4], 1
mov dword [esi + 8], 0x101fa690
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jmp 0x1013446c
movsd xmm0, qword [esp + 0x14]
movsd xmm2, qword [esp + 4]
movsd xmm1, qword [esp + 0xc]
movsd qword [esi + 0x10], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm2
mov eax, esi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 4]
cmp eax, edi
mov dword [esp], eax
jbe 0x10134581
mov eax, dword [0x1027132c]
mov eax, dword [eax]
cmp eax, 2
jae 0x10134422
movzx eax, byte [0x10270fb0]
movzx ecx, al
lea edx, [ecx - 1]
cmp edx, 2
jae 0x101345bc
movzx eax, al
push eax
push dword [0x10270fa8]
call fcn.10149b60
add esp, 8
test al, al
je 0x10134422
mov eax, dword [0x10270fa8]
cmp dword [eax + 0x20], 0
je 0x101345ef
lea ecx, [eax + 0x1c]
mov edx, dword [ecx]
test edx, edx
je 0x101345ef
lea edi, [eax + 0x20]
mov dword [esp + 0x1c], edx
lea ebx, [esp + 0x74]
movsd xmm0, qword [edi]
movsd qword [esp + 0x20], xmm0
mov edx, dword [edi + 8]
mov edi, esp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0x1013a9d0
lea ebx, [esp + 0x48]
mov dword [esp + 4], 0x101fa81c
mov dword [esp + 8], 3
mov dword [esp + 0x14], 0
mov dword [esp + 0x50], edi
lea edi, [esp + 0x1c]
mov dword [esp + 0xc], ebx
lea ebx, [esp + 4]
mov dword [esp + 0x54], 0x1013a9d0
mov dword [esp + 0x10], 2
mov dword [esp + 0x30], edi
lea edi, [esp + 0x30]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x101fa834
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
push ecx
push eax
call fcn.1014a450
add esp, 8
jmp 0x10134422
lea eax, [edi + 2]
mov ecx, eax
shr ecx, 0x1f
mov dword [ebp], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 4], eax
cmp ecx, dword [ebx + 0x14]
jbe 0x101345a3
mov dword [esi + 4], 1
mov dword [esi + 8], edi
jmp 0x101345b4
mov dword [ebp + 8], 1
mov dword [ebp + 0xc], edi
mov dword [esi + 4], 0
mov byte [esi], 3
jmp 0x1013446c
test ecx, ecx
je 0x10134422
push 0x10270fa8
call fcn.101c9ee0
add esp, 4
test al, al
jne 0x101344a6
jmp 0x10134422
push 0x101fa7a0
push 0x28
push 0x101fa778
call fcn.101cc940
push 0x101fa7d4
push 0x22
push str.FieldSet_corrupted__this_is_a_bug_
call fcn.101cc830
Function at 0x1014f0a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
nop word cs:[eax + eax]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x1014f0b0
test al, 1
je 0x1014f0c7
test al, 2
jne 0x1014f0d8
xor eax, 3
ret
push 0x1020aa38
push 0x23
push str.assertion_failed:_prev.is_running__
call fcn.101cc940
push 0x1020aa70
push 0x25
push 0x1020aa48
call fcn.101cc940
int3
Function at 0x10157540
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10159f80
mov dword [ebp - 0x20], ecx
add ecx, 0x30
lea eax, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x10], 6
push ecx
call fcn.10161760
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x101575a3
shl eax, 3
push 4
push eax
push dword [esi + 0x34]
call fcn.10013780
add esp, 0xc
mov eax, dword [esi + 0x64]
test eax, eax
je 0x101575c5
lock dec dword [eax]
jne 0x101575c5
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 5
add eax, 0x64
push eax
call fcn.1015e2b0
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x10157617
mov eax, dword [ebp - 0x20]
push dword [eax + 0x70]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [esi]
jne 0x101575f6
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 4
add eax, 0x68
push eax
call fcn.10006c40
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x6c]
lock dec dword [eax]
jne 0x10157617
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
add eax, 0x6c
push eax
call fcn.1015e7c0
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 2
add eax, 0x40
push eax
call fcn.101624b0
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
lock dec dword [eax]
jne 0x1015764e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
add eax, 0x20
push eax
call fcn.10006ea0
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x10157678
lock dec dword [eax]
jne 0x10157678
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
add eax, 0x80
push eax
call fcn.10006ea0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x88]
test eax, eax
je 0x101576a0
lock dec dword [eax]
jne 0x101576a0
add ecx, 0x88
mov dword [ebp - 0x10], 0xffffffff
push ecx
call fcn.10006ea0
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015e000
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1015eb00
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x10], 5
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
add eax, 0x30
mov dword [ebp - 0x24], eax
push eax
call fcn.10161760
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1015e069
shl eax, 3
push 4
push eax
push dword [esi + 0x34]
call fcn.10013780
add esp, 0xc
mov eax, dword [esi + 0x64]
test eax, eax
je 0x1015e08b
lock dec dword [eax]
jne 0x1015e08b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 4
add eax, 0x64
push eax
call fcn.1015e2b0
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x1015e0d2
mov edi, dword [ebp - 0x20]
push dword [edi + 0x70]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [esi]
mov esi, edi
jne 0x1015e0b4
lea eax, [esi + 0x68]
push eax
call fcn.10006c40
add esp, 4
mov eax, dword [esi + 0x6c]
lock dec dword [eax]
jne 0x1015e0d2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
add eax, 0x6c
push eax
call fcn.1015e7c0
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 2
add eax, 0x40
push eax
call fcn.101624b0
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
lock dec dword [eax]
jne 0x1015e109
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
add eax, 0x20
push eax
call fcn.10006ea0
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x1015e133
lock dec dword [eax]
jne 0x1015e133
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
add eax, 0x80
push eax
call fcn.10006ea0
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x1015e15b
lock dec dword [eax]
jne 0x1015e15b
lea eax, [esi + 0x88]
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.10006ea0
add esp, 4
cmp esi, 0xffffffff
je 0x1015e176
lock dec dword [esi + 4]
jne 0x1015e176
push 8
push 0xa8
push esi
call fcn.10013780
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10162c90
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test byte [edx], 1
je 0x10162d15
movsd xmm0, qword [edx + 4]
movsd xmm1, qword [edx + 0xc]
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x18]
movzx edx, word [edx + 0x1c]
mov di, 0x17
movsd qword [eax + 8], xmm0
xorps xmm0, xmm0
movsd qword [eax + 0x10], xmm1
mov dword [eax + 0x7c], 0
rol dx, 8
movsd qword [eax + 0x74], xmm0
movsd qword [eax + 0x6c], xmm0
movsd qword [eax + 0x64], xmm0
movsd qword [eax + 0x5c], xmm0
movsd qword [eax + 0x54], xmm0
movsd qword [eax + 0x4c], xmm0
movsd qword [eax + 0x44], xmm0
movsd qword [eax + 0x3c], xmm0
movsd qword [eax + 0x34], xmm0
movsd qword [eax + 0x2c], xmm0
movsd qword [eax + 0x24], xmm0
movsd qword [eax + 0x1c], xmm0
mov dword [eax + 0x18], esi
mov esi, 0x1c
jmp 0x10162d77
mov ecx, dword [edx + 2]
movzx edx, word [edx + 6]
xorps xmm0, xmm0
mov esi, 0x10
mov di, 2
movsd qword [eax + 0x78], xmm0
movsd qword [eax + 0x70], xmm0
movsd qword [eax + 0x68], xmm0
movsd qword [eax + 0x60], xmm0
movsd qword [eax + 0x58], xmm0
movsd qword [eax + 0x50], xmm0
movsd qword [eax + 0x48], xmm0
movsd qword [eax + 0x40], xmm0
movsd qword [eax + 0x38], xmm0
movsd qword [eax + 0x30], xmm0
movsd qword [eax + 0x28], xmm0
movsd qword [eax + 0x20], xmm0
movsd qword [eax + 0x18], xmm0
movsd qword [eax + 0x10], xmm0
movsd qword [eax + 8], xmm0
rol dx, 8
mov word [eax], di
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 0x80], esi
pop esi
pop edi
ret

Function at 0x10162ec0
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push ecx
push 0x8004667e
push eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
mov cl, 4
cmp eax, 0xffffffff
jne 0x10162ef4
call fcn.101a2ad0
xor ecx, ecx
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret

Function at 0x10162f00
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, dword [ecx]
mov dword [esp], eax
mov eax, esp
push 4
push eax
push 0x1002
push 0xffff
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x10162f3a
call fcn.101a2ad0
xor ecx, ecx
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret

Function at 0x10162f50
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push 4
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x10162f88
call fcn.101a2ad0
xor ecx, ecx
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret
Function at 0x10162fa0
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, dword [ecx]
mov dword [esp], eax
mov eax, esp
push 4
push eax
push 0x1001
push 0xffff
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x10162fda
call fcn.101a2ad0
xor ecx, ecx
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret

Function at 0x10162ff0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [esp + 8], 1
mov edi, dword [eax]
lea eax, [esp + 8]
push 4
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1016313e
mov ecx, dword [esp + 0x34]
xor ebp, ebp
mov esi, 0
mov dword [esp + 4], edi
mov ebx, dword [ecx + 8]
cmp ebx, 0x3b9aca00
je 0x10163093
mov eax, 0x3e8
mul dword [ecx]
mov dword [esp], eax
mov eax, 0x3e8
mov esi, edx
mul dword [ecx + 4]
mov edi, eax
mov ecx, edx
mov edx, 0x431bde83
mov eax, ebx
add edi, esi
mov esi, 0xffffffff
adc ecx, 0
mul edx
shr edx, 0x12
add edx, dword [esp]
adc edi, 0
adc ecx, 0
setb al
xor ebx, ebx
neg edi
mov edi, dword [esp + 4]
sbb ebx, ebx
movzx eax, al
or ebx, edx
or eax, ecx
mov ecx, dword [esp + 0x34]
cmove esi, ebx
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x3b9aca00
je 0x101630ed
mov eax, 0x3e8
mul dword [ecx + 0x10]
mov dword [esp], eax
mov eax, 0x3e8
mov ebp, edx
mul dword [ecx + 0x14]
mov edi, eax
mov ecx, edx
mov edx, 0x431bde83
mov eax, ebx
add edi, ebp
mov ebp, 0xffffffff
adc ecx, 0
mul edx
shr edx, 0x12
add edx, dword [esp]
adc edi, 0
adc ecx, 0
setb al
xor ebx, ebx
neg edi
mov edi, dword [esp + 4]
sbb ebx, ebx
movzx eax, al
or ebx, edx
or eax, ecx
cmove ebp, ebx
mov dword [esp + 8], 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push 0
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x20]
push eax
push 0x98000004
push edi
call dword [sym.imp.ws2_32.dll_WSAIoctl]
mov esi, dword [esp + 0x2c]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1016313a
call fcn.101a2ad0
xor ecx, ecx
mov dword [esi + 4], eax
mov byte [esi], cl
jmp 0x1016314c
call fcn.101a2ad0
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10173980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, 2
test edx, edx
je 0x101739ba
cmp edx, 1
jne 0x101739bf
xor esi, esi
nop word cs:[eax + eax]
cmp edx, esi
je 0x10173a40
movzx ebx, byte [ecx + esi]
inc esi
add bl, 0xd0
cmp bl, 0xa
jb 0x101739a0
jmp 0x10173a4c
jmp 0x10173a77
cmp word [ecx], 0x7830
je 0x10173a03
cmp word [ecx], 0x5830
je 0x10173a03
cmp byte [ecx], 0x30
jne 0x10173994
cmp byte [ecx + 1], 0xbf
jle 0x10173a8d
inc ecx
lea esi, [edx - 1]
dec edx
mov edi, ecx
nop word cs:[eax + eax]
nop dword [eax]
test edx, edx
je 0x10173a57
movzx ebx, byte [edi]
inc edi
dec edx
and bl, 0xf8
cmp bl, 0x30
je 0x101739f0
jmp 0x10173a4c
cmp edx, 3
jb 0x10173a47
cmp byte [ecx + 2], 0xbf
jle 0x10173a7e
add ecx, 2
lea esi, [edx - 2]
add edx, 0xfffffffe
mov edi, ecx
nop dword [eax]
test edx, edx
je 0x10173a50
movzx ebx, byte [edi]
inc edi
dec edx
mov bh, bl
add bh, 0xd0
cmp bh, 0xa
jb 0x10173a20
and bl, 0xdf
add bl, 0xbf
cmp bl, 6
jb 0x10173a20
jmp 0x10173a4c
mov eax, 0xa
jmp 0x10173a5e
mov eax, 1
xor edx, edx
jmp 0x10173a77
mov eax, 0x10
jmp 0x10173a5c
mov eax, 8
mov edx, esi
mov esi, esp
push eax
push edx
push ecx
push esi
call fcn.101bec90
add esp, 0x10
movzx eax, byte [esp]
mov edx, dword [esp + 4]
xor eax, 1
add esp, 8
pop esi
pop edi
pop ebx
ret
push 0x1020e018
push edx
push 2
push edx
push ecx
call fcn.101cce60
push 0x1020e008
push edx
push 1
push edx
push ecx
call fcn.101cce60
int3
Function at 0x10180220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], esp
mov dword [esi + 0x80], 0xffffffff
mov dword [esi + 0x7c], 0x101812d0
lea eax, [esi + 0x78]
mov ecx, dword fs:[0]
mov dword [esi + 0x78], ecx
mov dword fs:[0], eax
mov byte [esi + 4], 0
mov dword [esi + 0xc], 0x10240bdc
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0x10240bdc
mov dword [esi + 0x20], str._zero_capacity_should_never_failC:UsersPC_HUK.cargo_registry_srcindex.crates.io_6f17d22bba15001fhttp_0.2.12_srcheadermap.rs
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
mov word [esi + 0x2c], 0xffff
mov dword [esi + 0x80], 0
lea eax, [esi + 0x30]
push 0
push eax
call fcn.1017d910
add esp, 8
mov eax, dword [esi + 0x30]
xor eax, 3
or eax, dword [esi + 0x34]
je 0x1018038c
mov eax, dword [ebp + 8]
movsd xmm0, qword [esi + 0x68]
movsd xmm1, qword [esi + 0x38]
movsd xmm2, qword [esi + 4]
mov ecx, dword [esi + 0x2c]
movsd qword [eax + 0x38], xmm0
movsd xmm0, qword [esi + 0x60]
movsd qword [eax + 8], xmm1
movsd xmm1, qword [esi + 0xc]
movsd qword [eax + 0x30], xmm0
movsd xmm0, qword [esi + 0x58]
movsd qword [eax + 0x28], xmm0
movsd xmm0, qword [esi + 0x50]
movsd qword [eax + 0x20], xmm0
movsd xmm0, qword [esi + 0x48]
movsd qword [eax + 0x18], xmm0
movsd xmm0, qword [esi + 0x40]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [esi + 0x30]
movsd qword [eax], xmm0
xorps xmm0, xmm0
mov byte [eax + 0x6c], 1
mov word [eax + 0x6d], 0
mov byte [eax + 0x6f], 0
movsd qword [eax + 0x70], xmm0
movsd qword [eax + 0x78], xmm0
movsd qword [eax + 0x48], xmm1
movsd xmm1, qword [esi + 0x14]
movsd qword [eax + 0x40], xmm2
movsd xmm2, qword [esi + 0x1c]
mov dword [eax + 0x68], ecx
mov ecx, dword [esi + 0x78]
movsd qword [eax + 0x50], xmm1
movsd xmm1, qword [esi + 0x24]
movsd qword [eax + 0x58], xmm2
movsd qword [eax + 0x60], xmm1
mov byte [eax + 0x84], 2
mov dword [eax + 0x80], 0
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 3]
push 0x10240df4
push 0x10240bcc
push eax
push 0x1f
push 0x10240d71
call fcn.101ccb80
add esp, 0x14
ud2
Function at 0x1018ee10
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
call 0x1018ee1c
pop eax
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x1c], xmm0
push eax
call sub.kernel32.dll_GetSystemInfo
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1018f122
mov ecx, dword [esp + 0x58]
xor edx, edx
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x54]
mov eax, ecx
div esi
lea eax, [esi + ecx]
sub eax, edx
test edx, edx
cmove eax, ecx
test eax, eax
cmove eax, esi
test edi, edi
mov dword [esp + 0x14], eax
je 0x1018eff2
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], 0
xor eax, eax
xor esi, esi
lea edx, [ebp + edi*8]
nop word cs:[eax + eax]
nop
mov ecx, esi
mov esi, ebp
mov edi, dword [esi]
lea ebp, [esi + 8]
cmp edi, 2
jne 0x1018ef0d
cmp ebp, edx
mov esi, ecx
je 0x1018ef7a
nop dword [eax + eax]
mov eax, dword [ebp]
cmp eax, 2
jne 0x1018eef0
add ebp, 8
cmp ebp, edx
jne 0x1018eed0
jmp 0x1018ef7a
mov eax, dword [eax*4 + 0x1018f14c]
add eax, dword [esp + 0xc]
jmp eax
mov edi, dword [edi*4 + 0x1018f130]
add edi, dword [esp + 0xc]
jmp edi
cmp dword [esp + 8], 1
sete dl
test byte [esp], 1
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 4]
je 0x1018f0b4
mov ecx, eax
movzx eax, cl
and eax, 1
shl eax, 5
add eax, 0x20
test dl, dl
je 0x1018f0cb
not cl
mov dword [esp + 0xc], esi
movzx ecx, cl
and ecx, 1
lea esi, [ecx + ecx + 0x22]
push 0
push 0
push 0
push eax
push 0
push dword [esp + 0x2c]
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
call fcn.101a2ad0
test edi, edi
je 0x1018f05f
cmp eax, 0xb7
jne 0x1018f06b
mov dword [ebp + 4], 9
jmp 0x1018f111
xor edx, edx
xor eax, eax
xor esi, esi
mov dword [esp + 0x10], 0
or dl, al
mov eax, 1
test dl, 1
jne 0x1018f0c2
jmp 0x1018f0cb
mov dword [ebp + 4], 0xb
jmp 0x1018f10e
push 0
push dword [esp + 0x10]
push 0
push esi
push edi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x1018f08a
mov dword [ebp], 0
mov dword [ebp + 4], edi
jmp 0x1018f0f6
call fcn.101a2ad0
mov dword [ebp + 4], 0xc
jmp 0x1018f10e
or al, dl
mov ecx, eax
mov eax, 0x10
test cl, 1
je 0x1018f0cb
mov dword [ebp + 4], 7
jmp 0x1018f111
test esi, esi
je 0x1018f0d8
mov dword [ebp + 4], 8
jmp 0x1018f111
push eax
push 0x3000
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call sub.kernel32.dll_VirtualAlloc
test eax, eax
je 0x1018f102
mov dword [ebp], 1
mov ecx, dword [esp + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
jmp 0x1018f118
call fcn.101a2ad0
mov dword [ebp + 4], 0xa
mov dword [ebp + 8], eax
mov dword [ebp], 2
mov eax, ebp
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10247ae0
call fcn.101ccec0
ud2
Function at 0x101901f0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
je 0x1019022c
mov ebp, dword [esp + 0x14]
push 2
push ebx
push ebp
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x1019022c
mov edi, eax
push ebx
push ebp
call dword [sym.imp.advapi32.dll_SystemFunction036]
and edi, 0x7fffffff
xor esi, esi
test al, al
cmove esi, edi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101934e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ad0c0
mov esi, ecx
lea eax, [ebp - 0x18]
mov edi, edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x10284b49]
push 4
push 0x1ec
call fcn.10013770
add esp, 8
test eax, eax
je 0x10193686
mov ebx, dword [edi]
mov dword [ebp - 0x3c], esi
mov esi, dword [edi + 8]
mov dword [eax + 0xb0], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], eax
movzx ecx, word [ebx + 0x1ea]
mov edi, esi
not edi
add edi, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [esi + esi*8]
lea ecx, [ecx + ecx*2]
mov word [eax + 0x1ea], di
add ecx, esi
mov edx, dword [ebx + ecx + 0xcc]
mov dword [ebp - 0x40], edx
movsd xmm0, qword [ebx + ecx + 0xc4]
movsd qword [ebp - 0x48], xmm0
movsd xmm0, qword [ebx + ecx + 0xb4]
movsd xmm1, qword [ebx + ecx + 0xbc]
mov ecx, esi
shl ecx, 4
cmp edi, 0xc
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
mov eax, dword [ebx + ecx]
mov edx, dword [ebx + ecx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
jae 0x10193692
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
inc esi
sub eax, esi
cmp eax, edi
jne 0x101936ab
mov edx, dword [ebx + ecx + 0xc]
mov ecx, dword [ebx + ecx + 8]
lea eax, [ebx + 0xb4]
add eax, esi
mov dword [ebp - 0x20], ecx
lea ecx, [esi + esi*8]
mov dword [ebp - 0x30], edx
lea edx, [edi + edi*8]
lea ecx, [ecx + ecx*2]
lea edx, [edx + edx*2]
add eax, ecx
mov ecx, dword [ebp - 0x28]
add edx, edi
add ecx, 0xb4
push edx
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
shl esi, 4
shl edi, 4
add esi, ebx
push edi
push esi
mov esi, dword [ebp - 0x28]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov word [ebx + 0x1ea], ax
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x38]
movsd qword [ecx], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ecx + 8], xmm1
mov eax, dword [eax + 4]
movsd qword [ecx + 0x10], xmm0
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edx
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x34], esi
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1ec
push 4
call fcn.101cc679
mov dword [ebp - 0x10], 0
push 0x1024889c
push 0xb
push edi
call fcn.101ccc90
add esp, 0xc
jmp 0x101936c6
mov dword [ebp - 0x10], 0
push 0x1024888c
push 0x28
push str.assertion_failed:_src.len____dst.len___
call fcn.101cc940
add esp, 0xc
ud2