joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007ec8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
inc eax
push dword [eax]
pop word [ebp - 4]
cmp dword [ebp - 4], 0xc25e
je 0x10007efd
cmp dword [ebp - 4], 0xc35e
je 0x10007efd
jmp 0x10007f00
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10007ee2
cmp dword [ebp - 4], 0xc25e
jne 0x10007f62
push eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp - 8]
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
nop
nop
pop eax
push 0x9090c35e
pop dword [eax]
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push 4
push dword [ebp - 8]
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
nop
nop
mov esp, ebp
pop ebp
ret 4

Function at 0x1000dfab
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x1000dfe3
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x1000dfd1
mov al, 1
jmp 0x1000e02d
cmp dword [ebx + 0x54], ecx
jne 0x1000dfda
mov al, 2
jmp 0x1000e02d
cmp dword [ebx + 0x7c], ecx
jne 0x1000e02d
mov al, 3
jmp 0x1000e02d
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x1000dff8
mov al, 4
jmp 0x1000e02d
cmp ecx, 5
jne 0x1000e018
cmp ebx, 0
jne 0x1000e006
mov al, 5
jmp 0x1000e02d
cmp ebx, 1
jne 0x1000e00f
mov al, 6
jmp 0x1000e02d
cmp ebx, 2
jne 0x1000e018
mov al, 7
jmp 0x1000e02d
cmp ecx, 6
jne 0x1000e024
cmp ebx, 0
jne 0x1000e026
mov al, 8
jmp 0x1000e02d
cmp ebx, 1
jne 0x1000e02d
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ee2a
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, 0x1009f744
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000ee81
push ebx
call fcn.1008e8db
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.1008f1f0
add esp, 0x1c
mov dword [ebp - 0x24], eax
push 0
push 0
push 3
push 0
push dword [ebp - 0x24]
push 0
push dword [ebp - 4]
call dword [0x100b039f]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000eef2
mov eax, 0
jmp 0x1000f010
mov dword [ebp - 0xc], 0x400
push 0x80000301
push 0
push 0xc
push 1
mov ebx, 0x1bc
call fcn.1008f240
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000ef2e
push ebx
call fcn.1008e8db
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.1008f240
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000ef65
push ebx
call fcn.1008e8db
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000ef78
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000ef83
add eax, 8
push eax
call dword [0x100b03a7]
nop
nop
nop
nop
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000efa0
add eax, 8
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000efab
add eax, 8
push eax
call dword [0x100b03a7]
nop
nop
nop
nop
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x28]
push 0xc
push dword [ebp - 0x24]
push 0x2d1400
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
nop
nop
nop
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x1000effb
lea eax, [ebp - 0x14]
push eax
call fcn.1000f046
mov dword [ebp - 0x20], eax
push dword [ebp - 8]
call dword [0x100b03a3]
nop
nop
nop
nop
mov eax, dword [ebp - 0x20]
jmp 0x1000f010
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000f021
push ebx
call fcn.1008e8db
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000f031
push ebx
call fcn.1008e8db
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000f041
push ebx
call fcn.1008e8db
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x1008f6c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1008f729
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.1008eef0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x10090090
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x100900ae
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x100900a3
pop esi
ret

Function at 0x100900d0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x100900fb
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x10090123
mov byte [esp + 0xc], al
jmp 0x10090123
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x10090141
mov byte [eax], 0x5c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x10090153
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.1008eef0
mov edx, eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x100901d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10090262
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10090254
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1009024c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10090215
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x100018f4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100017b0
Function at 0x10022f80
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x420
call fcn.10022f94
Function at 0x10031cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov esi, 0x200
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 2
cmp esi, 0x201
jae 0x10031d50
jmp 0x10031d3e
jbe 0x10031dc0
cmp esi, 0x201
jae 0x10031d50
mov dword [ebp - 0x20], 0x200
lea edi, [ebp - 0x434]
mov ebx, esi
jmp 0x10031d7a
mov ebx, dword [ebp - 0x24]
sub esi, ebx
je 0x10031d6e
mov edx, ebx
lea ecx, [ebp - 0x18]
push esi
call fcn.1001d240
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push ebx
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov esi, eax
test eax, eax
jne 0x10031d97
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10031e10
cmp esi, ebx
jne 0x10031d30
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x10031e2e
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x10031d3e
jmp 0x10031d50
mov eax, dword [ebp - 0x20]
cmp esi, eax
ja 0x10031e44
lea eax, [ebp - 0x34]
push esi
push edi
push eax
call fcn.1003eaf0
add esp, 0xc
movsd xmm0, qword [ebp - 0x34]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x2c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10031e02
add eax, eax
push 2
push eax
push dword [ebp - 0x14]
call fcn.10004ab0
add esp, 0xc
mov eax, dword [ebp + 8]
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x10031df2
jmp 0x10031e02
push 0x100c8580
push 0x28
push str.internal_error:_entered_unreachable_code_L_f
call fcn.10089e60
add esp, 0xc
jmp 0x10031e53
push 0x100c8570
push eax
push esi
call fcn.1008f7f0
add esp, 0xc
ud2
Function at 0x10045570
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call fcn.1007ed90
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x100455e7
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x10045613
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x10045633
jmp 0x1004563f
mov ecx, dword [0x100c6d30]
mov edx, dword [0x100c6d34]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x1004563f
push 1
push eax
push dword [ebp - 0x1c]
call fcn.10004ab0
add esp, 0x40
jmp 0x10045642
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x1004563f
push 1
push ebx
push edi
call fcn.10004ab0
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10046050
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.100a0110
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x100503f0
push eax
push 0x1000
push ebx
mov dword [ebp - 0x10], edi
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x10046175
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x100460ae
cmp dword [ebp - 0x18], 0
jne 0x1004617c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1004617c
cmp ebx, 0x1000
ja 0x100461a6
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x10046195
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x100503f0
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x10046177
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x10046120
cmp dword [ebp - 0x18], 0
jne 0x1004617c
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x100460e0
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x100503f0
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x100460ae
jmp 0x10046177
call sub.KERNEL32.dll_GetLastError
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100c7efc
push ebx
push edi
call fcn.1008f850
add esp, 0xc
jmp 0x100461b9
push 0x100c7efc
push 0x1000
push ebx
call fcn.1008f7f0
add esp, 0xc
ud2
Function at 0x1004af20
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.10057760
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x1004af74
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.10059ac0
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x1004af81
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 sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x1004af99
mov byte [esi], 4
test edi, edi
jne 0x1004afa8
jmp 0x1004af79
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x1004af79
add edi, edi
push 2
push edi
push ebx
call fcn.10004ab0
add esp, 0x30
jmp 0x1004af7c

Function at 0x1004b390
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.10057760
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x1004b3e8
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.10059ac0
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x1004b3f7
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 sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x1004b40d
mov byte [esi], 4
test edi, edi
jne 0x1004b41c
jmp 0x1004b3ed
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x1004b3ed
add edi, edi
push 2
push edi
push ebx
call fcn.10004ab0
add esp, 0xc
jmp 0x1004b3ed
Function at 0x1004d810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x1004d854
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1004d85a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1004d88d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x1004d89d
mov dword [esi + 4], 0
jmp 0x1004d8af
cmp eax, 0x103
je 0x1004d8c8
test eax, eax
js 0x1004d8ba
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 sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1004d8b2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100c7c28
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call fcn.1003c6c0
add esp, 0xc
mov ecx, esi
call fcn.100100d0
mov ecx, 7
int 0x29
ud2

Function at 0x1004d930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x1004d974
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1004d97a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1004d9b4
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x1004d9d5
test eax, eax
js 0x1004d9c0
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x1004d9c8
xor ebx, ebx
push eax
call sub.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 + 0x18], 0x100c7c28
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call fcn.1003c6c0
add esp, 0xc
mov ecx, esi
call fcn.100100d0
mov ecx, 7
int 0x29
ud2
Function at 0x1004dea0
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, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x1004dee4
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x1004def7
cmp eax, 0x2739
jne 0x1004df20
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x1004df28
mov edi, eax
push 0
push 1
push eax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x1004df38
mov dword [esi + 4], edi
jmp 0x1004deda
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1004dedd
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x1004dedd
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.WS2_32.dll_closesocket
jmp 0x1004dedd
Function at 0x10050050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea edi, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], ecx
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, esi
add ecx, esi
push 0x100503f0
push edi
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x100500c3
nop word cs:[eax + eax]
nop
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x100500a0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x100500e3
mov ecx, edi
call fcn.10057080
cmp al, 0xb
jne 0x100500d5
jmp 0x100500f4
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, edi
call fcn.10057080
cmp al, 0xb
je 0x100500f4
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x100500fa
add esi, dword [ebp - 0x14]
mov dword [ebx + 8], esi
mov eax, dword [ebx + 0xc]
cmp eax, esi
cmova esi, eax
mov dword [ebx + 0xc], esi
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10050710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [edx], 0
mov edi, edx
jne 0x100507f1
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x100507cd
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x2c], 0
lea ebx, [ebp - 0x2c]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x10050770
mov eax, dword [ebp - 0x2c]
mov ecx, 2
test eax, eax
je 0x1005079c
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
jmp 0x100507c5
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x100507a3
cmp eax, 0x6d
jne 0x100507bc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jne 0x1005075b
jmp 0x100507b5
mov word [esi], 4
jmp 0x100507c5
lea eax, [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jne 0x1005075b
mov ecx, 1
jmp 0x10050764
mov dword [esi], 0
mov dword [esi + 4], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
test edx, edx
mov ecx, 0x10
mov eax, 1
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.1001d370
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x10050736
lea edx, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x2c], 0
call fcn.10018300
nop word cs:[eax + eax]
nop dword [eax]