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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
call 0x1018c31c
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 0x1018c622
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 0x1018c4f2
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 0x1018c40d
cmp ebp, edx
mov esi, ecx
je 0x1018c47a
nop dword [eax + eax]
mov eax, dword [ebp]
cmp eax, 2
jne 0x1018c3f0
add ebp, 8
cmp ebp, edx
jne 0x1018c3d0
jmp 0x1018c47a
mov eax, dword [eax*4 + 0x1018c64c]
add eax, dword [esp + 0xc]
jmp eax
mov edi, dword [edi*4 + 0x1018c630]
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 0x1018c5b4
mov ecx, eax
movzx eax, cl
and eax, 1
shl eax, 5
add eax, 0x20
test dl, dl
je 0x1018c5cb
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.101a17d0
test edi, edi
je 0x1018c55f
cmp eax, 0xb7
jne 0x1018c56b
mov dword [ebp + 4], 9
jmp 0x1018c611
xor edx, edx
xor eax, eax
xor esi, esi
mov dword [esp + 0x10], 0
or dl, al
mov eax, 1
test dl, 1
jne 0x1018c5c2
jmp 0x1018c5cb
mov dword [ebp + 4], 0xb
jmp 0x1018c60e
push 0
push dword [esp + 0x10]
push 0
push esi
push edi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x1018c58a
mov dword [ebp], 0
mov dword [ebp + 4], edi
jmp 0x1018c5f6
call fcn.101a17d0
mov dword [ebp + 4], 0xc
jmp 0x1018c60e
or al, dl
mov ecx, eax
mov eax, 0x10
test cl, 1
je 0x1018c5cb
mov dword [ebp + 4], 7
jmp 0x1018c611
test esi, esi
je 0x1018c5d8
mov dword [ebp + 4], 8
jmp 0x1018c611
push eax
push 0x3000
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call sub.kernel32.dll_VirtualAlloc
test eax, eax
je 0x1018c602
mov dword [ebp], 1
mov ecx, dword [esp + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
jmp 0x1018c618
call fcn.101a17d0
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 0x10246edc
call fcn.101cbef0
ud2
Function at 0x1018d720
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 0x1018d75c
mov ebp, dword [esp + 0x14]
push 2
push ebx
push ebp
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x1018d75c
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 0x10190870
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], 0x101aadb0
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 [0x10283b09]
push 4
push 0x1ec
call fcn.10013860
add esp, 8
test eax, eax
je 0x10190a16
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 0x10190a22
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
inc esi
sub eax, esi
cmp eax, edi
jne 0x10190a3b
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.101cb670
mov dword [ebp - 0x10], 0
push 0x10247cf4
push 0xb
push edi
call fcn.101cbcc0
add esp, 0xc
jmp 0x10190a56
mov dword [ebp - 0x10], 0
push 0x10247ce4
push 0x28
push str.assertion_failed:_src.len____dst.len__
call fcn.101cb950
add esp, 0xc
ud2
Function at 0x101934f0
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], 0x101aae50
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 0x10193580
jmp 0x1019356e
jbe 0x10193606
cmp edi, 0x201
jae 0x10193580
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x444]
mov esi, edi
jmp 0x101935b1
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x101935a5
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push edi
call fcn.101ca4d0
add esp, 4
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 0x101935d5
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x10193669
cmp edi, esi
jne 0x10193560
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10193688
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x1019356e
jmp 0x10193580
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x101936a5
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.10197bd0
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 0x10193653
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.10013870
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 0x10193643
jmp 0x10193653
mov dword [ebp - 0x10], 0
push 0x10249f70
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.101cb950
add esp, 0xc
jmp 0x101936b4
push 0x10249f60
push eax
push edi
call fcn.101cbcc0
add esp, 0xc
ud2
Function at 0x101979d0
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 0x10197a11
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 0x10197ad0
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 0x10197b10
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x10197b1f
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 0x1019b8e0
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.101c2ec0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ab070
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 0x101a29b0
push eax
push 0x1000
push edi
mov dword [ebp - 0x20], esi
push esi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1019ba33
mov esi, dword [sym.imp.kernel32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 1
jne 0x1019b96a
cmp dword [ebp - 0x2c], 0
jne 0x1019ba39
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x1019ba39
cmp edi, 0x1000
ja 0x1019ba75
xor ebx, ebx
nop dword [eax]
mov eax, edi
sub eax, ebx
jb 0x1019ba5d
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 0x101a29b0
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 0x1019ba33
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 1
jne 0x1019b9e0
cmp dword [ebp - 0x2c], 0
jne 0x1019ba39
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x1019b9a0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x101a29b0
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 0x1019b96a
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 0x10249a64
push edi
push ebx
call fcn.101cbd20
add esp, 0xc
jmp 0x1019ba8f
mov dword [ebp - 0x10], 0
push 0x10249a64
push 0x1000
push edi
call fcn.101cbcc0
add esp, 0xc
ud2
Function at 0x1019fb70
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 0x1019fc66
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 0x1019fbd9
mov eax, dword [ebx + 0x254]
cmp si, 0x2e
jne 0x1019fc98
cmp word [ebp - 0x10], 0
je 0x1019fbd9
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
xor eax, 0x2e
or ax, cx
mov eax, dword [ebp - 0x14]
jne 0x1019fc98
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 0x1019fc71
mov eax, dword [ebx + 0x254]
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [ebp - 0x10], eax
jmp 0x1019fc18
push esi
push edi
call ebx
test eax, eax
je 0x1019fc71
cmp word [ebp - 0x238], 0x2e
jne 0x1019fc3e
movzx eax, word [ebp - 0x236]
test ax, ax
je 0x1019fc10
cmp ax, 0x2e
jne 0x1019fc3e
cmp word [ebp - 0x234], 0
je 0x1019fc10
mov ebx, dword [ebp - 0x10]
lock inc dword [ebx]
jle 0x1019fd1f
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 0x1019fc8f
mov dword [edx], 0
jmp 0x1019fd12
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp eax, 0x12
je 0x1019fc94
mov dword [edx + 4], 0
mov byte [edx + 8], 0
mov dword [edx + 0xc], eax
mov ecx, 1
mov dword [edx], ecx
jmp 0x1019fd12
mov word [ebp - 0x14], cx
lock inc dword [eax]
jle 0x1019fd1f
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 0x101a0360
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.101a8870
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x1c]
jo 0x101a03b0
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.101a9930
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, edi
neg eax
jno 0x101a03bd
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 0x101a03d6
mov byte [esi], 4
test edi, edi
jne 0x101a03e6
jmp 0x101a03b5
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x101a03b5
add edi, edi
push 2
push edi
push ebx
call fcn.10013870
add esp, 0x30
jmp 0x101a03b8
Function at 0x101a0890
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.101a8870
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x1c]
jo 0x101a08e4
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.101a9930
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, edi
neg eax
jno 0x101a08f3
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 0x101a090a
mov byte [esi], 4
test edi, edi
jne 0x101a091a
jmp 0x101a08e9
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x101a08e9
add edi, edi
push 2
push edi
push ebx
call fcn.10013870
add esp, 0xc
jmp 0x101a08e9

Function at 0x101a14f0
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 0x101a1569
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x101a1579
mov dword [esi + 4], 0
jmp 0x101a158b
cmp eax, 0x103
je 0x101a15a5
test eax, eax
js 0x101a1596
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 0x101a158e
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x10249864
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.10196f10
add esp, 0xc
mov ecx, esi
call fcn.1018ef90
mov ecx, 7
int 0x29
ud2
Function at 0x101a1610
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 0x101a1690
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x101a16b2
test eax, eax
js 0x101a169c
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x101a16a5
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], 0x10249864
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.10196f10
add esp, 0xc
mov ecx, esi
call fcn.1018ef90
mov ecx, 7
int 0x29
ud2

Function at 0x101a1710
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 0x101a1754
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 0x101a1768
cmp eax, 0x2739
jne 0x101a1793
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x101a179b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x101a17ac
mov dword [esi + 4], edi
jmp 0x101a174a
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x101a174d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x101a174d
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 0x101a174d
Function at 0x101a66e0
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], 0x101ab230
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.101a8870
add esp, 4
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov edx, ecx
neg edx
mov edx, dword [ebp - 0x3c]
jo 0x101a6752
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.1019fa70
mov esi, dword [ebp - 0x38]
mov eax, esi
neg eax
jno 0x101a67bf
movzx eax, byte [ebp - 0x34]
mov edx, dword [ebp - 0x30]
cmp al, 3
jne 0x101a67a8
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 0x101a677f
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 0x101a6799
push dword [edx + 8]
push eax
push ecx
call fcn.10013870
add esp, 0xc
push 4
push 0xc
push dword [ebp - 0x28]
call fcn.10013870
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 0x101a67e1
mov eax, dword [ebp - 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
jmp 0x101a67ae
test esi, esi
mov dword [ebx], 0x80000000
je 0x101a67ae
add esi, esi
push 2
push esi
push edi
call fcn.10013870
add esp, 0xc
jmp 0x101a67ae