joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018ec20
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
call 0x1018ec2c
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 0x1018ef32
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 0x1018ee02
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 0x1018ed1d
cmp ebp, edx
mov esi, ecx
je 0x1018ed8a
nop dword [eax + eax]
mov eax, dword [ebp]
cmp eax, 2
jne 0x1018ed00
add ebp, 8
cmp ebp, edx
jne 0x1018ece0
jmp 0x1018ed8a
mov eax, dword [eax*4 + 0x1018ef5c]
add eax, dword [esp + 0xc]
jmp eax
mov edi, dword [edi*4 + 0x1018ef40]
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 0x1018eec4
mov ecx, eax
movzx eax, cl
and eax, 1
shl eax, 5
add eax, 0x20
test dl, dl
je 0x1018eedb
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.101a29e0
test edi, edi
je 0x1018ee6f
cmp eax, 0xb7
jne 0x1018ee7b
mov dword [ebp + 4], 9
jmp 0x1018ef21
xor edx, edx
xor eax, eax
xor esi, esi
mov dword [esp + 0x10], 0
or dl, al
mov eax, 1
test dl, 1
jne 0x1018eed2
jmp 0x1018eedb
mov dword [ebp + 4], 0xb
jmp 0x1018ef1e
push 0
push dword [esp + 0x10]
push 0
push esi
push edi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x1018ee9a
mov dword [ebp], 0
mov dword [ebp + 4], edi
jmp 0x1018ef06
call fcn.101a29e0
mov dword [ebp + 4], 0xc
jmp 0x1018ef1e
or al, dl
mov ecx, eax
mov eax, 0x10
test cl, 1
je 0x1018eedb
mov dword [ebp + 4], 7
jmp 0x1018ef21
test esi, esi
je 0x1018eee8
mov dword [ebp + 4], 8
jmp 0x1018ef21
push eax
push 0x3000
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call sub.kernel32.dll_VirtualAlloc
test eax, eax
je 0x1018ef12
mov dword [ebp], 1
mov ecx, dword [esp + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
jmp 0x1018ef28
call fcn.101a29e0
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 0x10248090
call fcn.101ccb80
ud2
Function at 0x10190000
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 0x1019003c
mov ebp, dword [esp + 0x14]
push 2
push ebx
push ebp
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x1019003c
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 0x10193290
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], 0x101acf50
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 [0x10284b09]
push 4
push 0x1ec
call fcn.10013450
add esp, 8
test eax, eax
je 0x10193436
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 0x10193442
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
inc esi
sub eax, esi
cmp eax, edi
jne 0x1019345b
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.101cc329
mov dword [ebp - 0x10], 0
push 0x10248ec4
push 0xb
push edi
call fcn.101cc950
add esp, 0xc
jmp 0x10193476
mov dword [ebp - 0x10], 0
push 0x10248eb4
push 0x28
push str.assertion_failed:_src.len____dst.len__d
call fcn.101cc600
add esp, 0xc
ud2
Function at 0x10196060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101acff0
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp edi, 0x201
jae 0x101960f0
jmp 0x101960de
jbe 0x1019617a
cmp edi, 0x201
jae 0x101960f0
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x444]
mov esi, edi
jmp 0x10196125
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x10196119
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push 2
push 2
push edi
call fcn.101cb2e0
add esp, 0xc
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x10196149
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x101961dd
cmp edi, esi
jne 0x101960d0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x101961fc
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x101960de
jmp 0x101960f0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x10196219
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.10199fb0
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x101961c7
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.10013460
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x101961b7
jmp 0x101961c7
mov dword [ebp - 0x10], 0
push 0x1024af88
push 0x28
push str.internal_error:_entered_unreachable_coded
call fcn.101cc600
add esp, 0xc
jmp 0x10196228
push 0x1024af78
push eax
push edi
call fcn.101cc950
add esp, 0xc
ud2
Function at 0x10199db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push 4
push ecx
push 1
push 6
push eax
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x10199df1
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0xc]
mov edx, dword [edx]
mov edx, dword [edx]
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push edi
push ecx
push eax
push edx
call dword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x10199ef0
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x10199eff
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebp
ret
Function at 0x1019dca0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.101c4cb0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ad210
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea edi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x101a3bc0
push eax
push 0x1000
push edi
mov dword [ebp - 0x20], esi
push esi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1019ddf3
mov esi, dword [sym.imp.kernel32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 1
jne 0x1019dd2a
cmp dword [ebp - 0x2c], 0
jne 0x1019ddf9
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x1019ddf9
cmp edi, 0x1000
ja 0x1019de35
xor ebx, ebx
nop dword [eax]
mov eax, edi
sub eax, ebx
jb 0x1019de1d
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + ebx - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x101a3bc0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x1019ddf3
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 1
jne 0x1019dda0
cmp dword [ebp - 0x2c], 0
jne 0x1019ddf9
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x1019dd60
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x101a3bc0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1019dd2a
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x1024aaa4
push edi
push ebx
call fcn.101cc9b0
add esp, 0xc
jmp 0x1019de4f
mov dword [ebp - 0x10], 0
push 0x1024aaa4
push 0x1000
push edi
call fcn.101cc950
add esp, 0xc
ud2
Function at 0x101a0d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x258
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edi, dword [ebx + 0x258]
cmp edi, 0xffffffff
je 0x101a0e66
movzx ecx, word [ebx + 0x32]
mov eax, dword [ebx]
movzx esi, word [ebx + 0x30]
mov dword [ebp - 0x10], ecx
movzx ecx, word [ebx + 0x34]
cmp eax, 1
mov dword [ebx], 0
jne 0x101a0dd9
mov eax, dword [ebx + 0x254]
cmp si, 0x2e
jne 0x101a0e98
cmp word [ebp - 0x10], 0
je 0x101a0dd9
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
xor eax, 0x2e
or ax, cx
mov eax, dword [ebp - 0x14]
jne 0x101a0e98
lea esi, [ebp - 0x264]
push 0x250
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x101a0e71
mov eax, dword [ebx + 0x254]
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [ebp - 0x10], eax
jmp 0x101a0e18
push esi
push edi
call ebx
test eax, eax
je 0x101a0e71
cmp word [ebp - 0x238], 0x2e
jne 0x101a0e3e
movzx eax, word [ebp - 0x236]
test ax, ax
je 0x101a0e10
cmp ax, 0x2e
jne 0x101a0e3e
cmp word [ebp - 0x234], 0
je 0x101a0e10
mov ebx, dword [ebp - 0x10]
lock inc dword [ebx]
jle 0x101a0f1f
mov edi, dword [ebp + 8]
lea eax, [edi + 8]
push 0x250
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
add esp, 0xc
mov dword [edi + 4], ebx
jmp 0x101a0e8f
mov dword [edx], 0
jmp 0x101a0f12
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp eax, 0x12
je 0x101a0e94
mov dword [edx + 4], 0
mov byte [edx + 8], 0
mov dword [edx + 0xc], eax
mov ecx, 1
mov dword [edx], ecx
jmp 0x101a0f12
mov word [ebp - 0x14], cx
lock inc dword [eax]
jle 0x101a0f1f
mov edi, eax
lea eax, [ebx + 4]
add ebx, 0x36
movsd xmm2, qword [eax + 0x18]
movsd xmm1, qword [eax + 0x10]
mov ecx, dword [eax + 0x28]
movsd xmm0, qword [eax + 0x20]
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
mov dword [edx + 0x30], ecx
movsd qword [edx + 0x28], xmm0
lea eax, [edx + 0x3a]
movsd qword [edx + 0x10], xmm1
movsd qword [edx + 8], xmm2
push 0x21e
push ebx
push eax
mov ebx, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx ecx, word [ebp - 0x14]
mov dword [ebx + 4], edi
mov word [ebx + 0x34], si
mov word [ebx + 0x36], ax
mov word [ebx + 0x38], cx
mov dword [ebx], 1
mov eax, edx
add esp, 0x258
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x101a1560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.101aa9c0
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x1c]
jo 0x101a15b0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call fcn.101abae0
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, edi
neg eax
jno 0x101a15bd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x101a15d6
mov byte [esi], 4
test edi, edi
jne 0x101a15e6
jmp 0x101a15b5
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x101a15b5
add edi, edi
push 2
push edi
push ebx
call fcn.10013460
add esp, 0x30
jmp 0x101a15b8
Function at 0x101a1a90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call fcn.101aa9c0
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x1c]
jo 0x101a1ae4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call fcn.101abae0
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, edi
neg eax
jno 0x101a1af3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x101a1b0a
mov byte [esi], 4
test edi, edi
jne 0x101a1b1a
jmp 0x101a1ae9
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x101a1ae9
add edi, edi
push 2
push edi
push ebx
call fcn.10013460
add esp, 0xc
jmp 0x101a1ae9

Function at 0x101a2700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x101a2779
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x101a2789
mov dword [esi + 4], 0
jmp 0x101a279b
cmp eax, 0x103
je 0x101a27b5
test eax, eax
js 0x101a27a6
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x101a279e
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x1024a8bc
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call fcn.101992f0
add esp, 0xc
mov ecx, esi
call fcn.101919f0
mov ecx, 7
int 0x29
ud2
Function at 0x101a2820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x101a28a0
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x101a28c2
test eax, eax
js 0x101a28ac
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x101a28b5
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x1024a8bc
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call fcn.101992f0
add esp, 0xc
mov ecx, esi
call fcn.101919f0
mov ecx, 7
int 0x29
ud2

Function at 0x101a2920
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, 2
cmp byte [eax], 0
mov eax, 0x17
cmovne ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x101a2964
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x101a2978
cmp eax, 0x2739
jne 0x101a29a3
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x101a29ab
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x101a29bc
mov dword [esi + 4], edi
jmp 0x101a295a
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x101a295d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x101a295d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x101a295d
Function at 0x101a87f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ad3c0
mov eax, dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x44]
push eax
call fcn.101aa9c0
add esp, 4
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov edx, ecx
neg edx
mov edx, dword [ebp - 0x3c]
jo 0x101a8862
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edx
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x4c], eax
call fcn.101a0c70
mov esi, dword [ebp - 0x38]
mov eax, esi
neg eax
jno 0x101a88cf
movzx eax, byte [ebp - 0x34]
mov edx, dword [ebp - 0x30]
cmp al, 3
jne 0x101a88b8
mov eax, dword [edx]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [eax]
test eax, eax
je 0x101a888f
mov dword [ebp - 0x10], 0
push dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
call eax
mov ebx, dword [ebp - 0x2c]
add esp, 4
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
test eax, eax
je 0x101a88a9
push dword [edx + 8]
push eax
push ecx
call fcn.10013460
add esp, 0xc
push 4
push 0xc
push dword [ebp - 0x28]
call fcn.10013460
add esp, 0xc
mov dword [ebx], 0x80000000
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101a88f1
mov eax, dword [ebp - 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
jmp 0x101a88be
test esi, esi
mov dword [ebx], 0x80000000
je 0x101a88be
add esi, esi
push 2
push esi
push edi
call fcn.10013460
add esp, 0xc
jmp 0x101a88be