joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7963
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x4b7991
cmp eax, edi
jge 0x4b7985
push esi
call fcn.004b3339
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x4b79b4
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4b799a
mov dword [esi + 8], edx
jmp 0x4b79c9
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4b79bf
xor dl, dl
jmp 0x4b79c4
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4b79b4
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4b7a03
push str.zlib_corrupt
call fcn.004b3264
add esp, 4
jmp 0x4b7a43
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4b7a13
push str.read_past_buffer
jmp 0x4b79f9
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4b7a2d
push edi
push ecx
push esi
call fcn.004ba4e4
add esp, 0xc
test eax, eax
je 0x4b7a43
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004c0b40
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4d7c1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d7a9b

Function at 0x425e78
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x425e7e
ret

Function at 0x45bf6c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45bf9a
mov eax, ebx
call fcn.0045ca24
cmp dword [ebx + 0x3c], 0
je 0x45bf93
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45c00b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x45bffd
cmp dword [ebx + 8], 0
je 0x45bfbc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x45bfce
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45bffd
cmp dword [ebx + 8], 0
je 0x45bfaf
cmp eax, 3
je 0x45bfe1
dec eax
jne 0x45bfaf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45bfaf
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x45bfaf
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45c029
cmp dword [ebx + 0x10], 0xcc
je 0x45c029
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045c034
pop ebx
ret
Function at 0x50e246
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50e27e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0050c2d4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050c2ac
jmp 0x50e28a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50f939
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50f97b
call fcn.005153b9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50f97b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50f972
xor eax, eax
jmp 0x50f983
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050f989
pop edi
pop esi
pop ebx
ret 4
Function at 0x1006b49
Capabilities:
Get session user name

Disassembly:
push 0x11c
mov eax, 0x101fd2f
call fcn.01017678
mov esi, dword [ebp + 8]
and dword [ebp - 0x114], 0
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x124], ax
lea edi, [ebp - 0x122]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetLocalTime]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x110]
mov edi, 0x80
push eax
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1006c39
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x1006c41
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
lea edx, [ebp - 0x110]
push edx
push eax
call dword [ecx + 0x28]
mov esi, eax
test esi, esi
jl 0x1006c41
movzx eax, word [ebp - 0x118]
push eax
movzx eax, word [ebp - 0x11a]
push eax
movzx eax, word [ebp - 0x11c]
push eax
movzx eax, word [ebp - 0x11e]
push eax
movzx eax, word [ebp - 0x122]
push eax
movzx eax, word [ebp - 0x124]
push eax
push 0x10016c0
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.01003e97
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
add esp, 0x24
lea edx, [ebp - 0x110]
push edx
push eax
call dword [ecx + 0x38]
jmp 0x1006c3f
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0100629d
mov eax, esi
call fcn.010176cc
ret 4
Function at 0x1008dbe
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_GetFileSizeEx]
test eax, eax
jne 0x1008e01
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jle 0x1008f5a
and eax, 0xffff
or eax, 0x80070000
jmp 0x1008f5a
cmp dword [ebp - 0x10], ebx
je 0x1008e10
mov eax, 0x8007000e
jmp 0x1008f5a
cmp dword [ebp - 0x14], ebx
jne 0x1008e1f
mov eax, 0x80070057
jmp 0x1008f5a
push esi
xor esi, esi
inc esi
test byte [ebp - 0x14], 1
mov dword [ebp - 4], ebx
je 0x1008e2e
xor esi, esi
mov edi, dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_ReadFile]
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
je 0x1008edd
cmp dword [ebp - 4], 2
jne 0x1008e60
mov eax, 0xfeff
cmp word [ebp - 0xc], ax
je 0x1008e62
xor esi, esi
cmp esi, ebx
je 0x1008ecc
mov esi, dword [ebp - 0x14]
shr esi, 1
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010171e8
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1008ef8
push 0
lea ecx, [ebp - 4]
push ecx
lea ebx, [esi + esi]
push ebx
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1008ea2
push dword [ebp - 8]
jmp 0x1008f11
lea eax, [esi + esi - 2]
cmp dword [ebp - 4], eax
je 0x1008eb3
push dword [ebp - 8]
jmp 0x1008f35
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
mov word [ebx + esi - 2], ax
call fcn.0100690e
push esi
jmp 0x1008f4f
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1008ee7
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jmp 0x1008f1f
mov esi, dword [ebp - 0x14]
inc esi
push esi
call fcn.010171e8
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1008eff
mov eax, 0x8007000e
jmp 0x1008f59
push 0
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [ebp + 8]
call edi
push ebx
test eax, eax
jne 0x1008f2d
call fcn.010171f8
pop ecx
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jle 0x1008f59
and eax, 0xffff
or eax, 0x80070000
jmp 0x1008f59
lea eax, [esi - 1]
cmp dword [ebp - 4], eax
je 0x1008f41
call fcn.010171f8
mov eax, 0x80004005
jmp 0x1008f58
mov ecx, dword [ebp + 0xc]
mov byte [ebx + esi - 1], 0
call fcn.01008075
push ebx
mov edi, eax
call fcn.010171f8
mov eax, edi
pop ecx
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x100b018
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1029c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0x21
push 0x400
call dword [sym.imp.API_MS_Win_Core_Localization_L1_1_0.dll_GetLocaleInfoW]
test eax, eax
je 0x100b074
movzx eax, word [ebp - 0x104]
sub eax, 0x30
je 0x100b06f
dec eax
je 0x100b06a
dec eax
je 0x100b065
xor eax, eax
inc eax
jmp 0x100b076
push 2
pop eax
jmp 0x100b071
xor eax, eax
inc eax
jmp 0x100b071
xor eax, eax
mov word [esi], ax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010175b3
leave
ret 4
Function at 0x100e274
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1029c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x3f6
push eax
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x404], eax
lea eax, [ebp - 0x3fa]
xor ecx, ecx
push eax
mov word [ebp - 0x3fc], cx
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
call fcn.0101c4a3
test eax, eax
jne 0x100e338
mov ebx, 0x1fc
push ebx
push 0x1001b68
lea eax, [ebp - 0x3fc]
push eax
call fcn.01018bde
test edi, edi
je 0x100e338
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x100e32a
movzx eax, ax
cmp ax, 0x5c
jne 0x100e306
inc ecx
inc ecx
movzx eax, word [ecx]
inc dword [ebp - 0x400]
test ax, ax
jne 0x100e2f0
cmp word [ebp - 0x400], 2
jne 0x100e320
push ebx
push edi
lea eax, [ebp - 0x3fc]
push eax
call fcn.01018bde
jmp 0x100e338
cmp word [ebp - 0x400], 0
jne 0x100e338
push ebx
push edi
lea eax, [ebp - 0x3fc]
push eax
call fcn.01018c21
xor edi, edi
inc edi
push edi
push 0
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenSCManagerW]
mov dword [ebp - 0x400], eax
test eax, eax
jne 0x100e35e
mov dword [esi], edi
xor eax, eax
jmp 0x100e43c
push 0x14
push 0x1001b54
push eax
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x100e382
push dword [ebp - 0x400]
mov dword [esi], edi
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
jmp 0x100e357
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.API_MS_WIN_Service_winsvc_L1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x100e3a9
mov dword [esi], edi
push dword [ebp - 0x400]
mov esi, dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x100e357
cmp dword [ebp - 0x41c], 4
je 0x100e427
cmp dword [ebp + 0x10], 0
je 0x100e429
push 0xce
call fcn.01019fbc
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01018c64
lea eax, [ebp - 0x404]
push eax
call fcn.01007b43
cmp eax, edi
jne 0x100e3e9
mov dword [esi], 2
jmp 0x100e396
xor eax, eax
cmp dword [ebp - 0x404], eax
je 0x100e3fb
mov dword [esi], 3
jmp 0x100e396
push eax
push eax
push ebx
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_StartServiceW]
test eax, eax
je 0x100e394
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.API_MS_WIN_Service_winsvc_L1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x100e425
cmp dword [ebp - 0x41c], 4
jne 0x100e408
jmp 0x100e429
mov dword [esi], edi
xor edi, edi
push dword [ebp - 0x400]
mov esi, dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010175b3
leave
ret 0xc
Function at 0x10131fe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
mov eax, dword [ebp - 4]
add eax, 0xa
push eax
call fcn.01018440
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x1013247
push 0xe
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x101326f
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.010187dc
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x10175a4
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1021b80
call fcn.01017924
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x102a368
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10173b9
cmp eax, esi
jne 0x10173ac
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10173bc
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1017393
xor esi, esi
inc esi
mov eax, dword [0x102a364]
cmp eax, esi
jne 0x10173cf
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101740a
mov eax, dword [0x102a364]
test eax, eax
jne 0x1017404
mov dword [0x102a364], esi
push 0x100134c
push 0x1001340
call fcn.01017310
pop ecx
pop ecx
test eax, eax
je 0x101740a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10174d4
mov dword [0x1029e80], esi
mov eax, dword [0x102a364]
cmp eax, esi
jne 0x101742e
push 0x100133c
push 0x1001308
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x102a364], 2
cmp dword [ebp - 0x1c], ebx
jne 0x101743b
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x102a36c], ebx
je 0x101745c
push 0x102a36c
call fcn.01017899
pop ecx
test eax, eax
je 0x101745c
push ebx
push 2
push ebx
call dword [0x102a36c]
push dword [0x1029e68]
push dword [0x1029e6c]
push dword [0x1029e64]
call fcn.01013b7e
add esp, 0xc
mov dword [0x1029e7c], eax
cmp dword [0x1029e70], ebx
jne 0x10174ba
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1029e80], ebx
jne 0x10174c8
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1029e7c]
call fcn.01017969
ret
call fcn.01017b0f
jmp 0x1017371
Function at 0x101c12a
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa08
mov eax, dword [0x1029c7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x9e4], eax
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0xa04]
mov dword [ebp - 0xa08], esi
mov dword [ebp - 0x9e8], edx
mov dword [ebp - 0x9e0], esi
mov dword [ebp - 0x9dc], esi
rep stosd dword es:[edi], eax
mov word [ebp - 0x46], ax
cmp dword [ebp - 0x9e4], esi
je 0x101c2ae
cmp ebx, esi
je 0x101c2ae
mov eax, dword [ebx]
cmp eax, esi
je 0x101c1a7
cmp eax, 2
jb 0x101c2ae
cmp edx, esi
je 0x101c2ae
cmp dword [0x102a1cc], esi
jne 0x101c1db
lea eax, [ebp - 0x9d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x101c1d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x101c2ba
mov dword [0x102a1cc], 1
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0xa08]
push eax
push esi
push dword [ebp - 0x9e4]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x101c2c0
mov esi, dword [ebp - 0x9dc]
xor edi, edi
jmp 0x101c248
push 4
xor eax, eax
mov word [ebp - 0x848], ax
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x401
lea eax, [ebp - 0x848]
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, edi
je 0x101c24e
cmp eax, 0x2afc
jne 0x101c245
cmp word [ebp - 0x848], di
jne 0x101c24e
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x101c208
jmp 0x101c29a
lea esi, [ebp - 0x848]
cmp dword [ebp + 0x14], edi
jne 0x101c26b
mov eax, esi
push 0x1001fc0
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
mov esi, eax
push edi
push esi
call fcn.010181d0
mov ecx, dword [ebx]
inc eax
cmp ecx, eax
jae 0x101c287
mov dword [ebx], eax
mov dword [ebp - 0x9e0], 1
jmp 0x101c29a
push ecx
push esi
push dword [ebp - 0x9e8]
call fcn.01018bde
mov dword [ebp - 0x9e0], eax
push dword [ebp - 0x9dc]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [ebp - 0x9e0]
jmp 0x101c2c2
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jne 0x101c2c0
push 0x57
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010175b3
leave
ret 0x10
Function at 0x101c6dc
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x101c837
push esi
call fcn.0101c4a3
cmp eax, 1
je 0x101c837
push esi
mov dword [ebp + 8], esi
call fcn.0101c031
cmp eax, 1
jne 0x101c716
add esi, 4
mov dword [ebp + 8], esi
push dword [ebp + 8]
call fcn.0101c60a
test eax, eax
jne 0x101c732
call fcn.01017fa1
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
jmp 0x101c86b
cmp dword [ebp + 0x14], ebx
je 0x101c75b
push dword [ebp + 0x14]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_lstrlenW]
test eax, eax
je 0x101c75b
push dword [ebp + 0x14]
push dword [ebp + 8]
push 0x1001fe0
push 2
call fcn.01019429
add esp, 0x10
jmp 0x101c76d
push dword [ebp + 8]
push 0x1001fc4
push 1
call fcn.01019429
add esp, 0xc
test eax, eax
jne 0x101c790
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jne 0x101c783
push 8
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
call fcn.01017fa1
push 8
pop eax
jmp 0x101c86b
call fcn.01017f0e
cmp eax, ebx
jne 0x101c7a2
push 0x12
call fcn.01017e9d
jmp 0x101c7ac
push ebx
push ebx
push eax
push 0x12
call fcn.01019138
mov edx, eax
cmp edx, ebx
je 0x101c771
push edi
push 8
pop ecx
push ebx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
pop edi
cmp esi, ebx
je 0x101c7fd
cmp esi, 0x4b8
je 0x101c7f6
push esi
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
call fcn.01017fa1
jmp 0x101c865
call fcn.010194bb
jmp 0x101c865
push ebx
xor esi, esi
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
push dword [ebp + 8]
call fcn.0101c2d8
push eax
call fcn.010180e9
test eax, eax
jne 0x101c865
push dword [ebp + 8]
call fcn.0101c6bf
push 0x1580
call fcn.01019fbc
push eax
call fcn.01017f3a
mov esi, 0x4b8
jmp 0x101c865
cmp dword [ebp + 0xc], ebx
je 0x101c869
push dword [ebp + 0xc]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_lstrlenW]
test eax, eax
je 0x101c869
push 0x157e
call fcn.01019fbc
push eax
call fcn.01017f3a
mov esi, 0xa0010001
push esi
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
mov eax, esi
jmp 0x101c86b
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x101c897
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
push esi
push edi
push 0
call ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x101ca21
push 0
push edi
call fcn.010181d0
test eax, eax
je 0x101ca21
xor esi, esi
inc esi
cmp dword [ebp + 0x1c], esi
jne 0x101c900
cmp dword [ebp + 0xc], 0
je 0x101c8e6
cmp dword [ebp + 0x10], 2
jb 0x101c8e6
cmp dword [ebp + 0x14], 0
je 0x101c8e6
cmp dword [ebp + 0x18], 2
jae 0x101c900
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jne 0x101c8f4
push 0x57
call ebx
call fcn.01017fa1
xor eax, eax
jmp 0x101ca24
push edi
mov dword [ebp - 4], edi
call fcn.0101c031
cmp eax, esi
jne 0x101c913
lea eax, [edi + 4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], esi
jne 0x101c944
cmp dword [ebp + 0x14], 0
je 0x101c944
push 0
push esi
push 0x10014e4
push dword [ebp + 0x14]
call fcn.010181f1
test eax, eax
jne 0x101c944
push dword [ebp - 4]
call fcn.0101c60a
test eax, eax
jne 0x101ca38
jmp 0x101c8f4
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.0101c60a
test eax, eax
je 0x101c8f4
cmp dword [ebp + 0xc], 0
je 0x101c989
push dword [ebp + 0xc]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_lstrlenW]
test eax, eax
je 0x101c989
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0101c876
mov edi, eax
cmp dword [ebp + 0x1c], esi
jne 0x101c998
mov dword [ebp - 8], esi
jmp 0x101c998
push 0
push 0
push edi
mov dword [ebp - 8], esi
call fcn.0101c876
mov edi, eax
cmp edi, 0x55
jne 0x101c9a8
push 0x50010001
call ebx
mov eax, esi
jmp 0x101ca24
test edi, edi
jne 0x101c9b4
cmp dword [ebp - 8], esi
je 0x101c99d
push edi
jmp 0x101c9a2
mov eax, 0x4c3
cmp edi, eax
ja 0x101c9e1
je 0x101c9de
cmp edi, 0x34
je 0x101cad0
cmp edi, 0x56
je 0x101ca2b
cmp edi, 0x4be
je 0x101cad0
jmp 0x101c8f4
push eax
jmp 0x101c9a2
cmp edi, 0x4cf
jb 0x101c8f4
cmp edi, 0x4d1
jbe 0x101cad0
cmp edi, 0x52e
je 0x101ca2b
mov esi, 0xa0010001
cmp edi, esi
jne 0x101c8f4
push 0x157e
call fcn.01019fbc
push eax
call fcn.01017f3a
push esi
call ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x18
cmp dword [ebp + 0x1c], 0
je 0x101c8f9
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_lstrlenW]
test eax, eax
jne 0x101ca5b
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 2
call sub.SspiCli.dll_GetUserNameExW
test al, al
je 0x101c8f4
push dword [ebp + 0xc]
push 0x157d
call fcn.01019fbc
push eax
push esi
push esi
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.01019e69
add esp, 0x14
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01018ec9
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0101c876
mov edi, eax
test edi, edi
je 0x101c9a4
cmp edi, 0x34
je 0x101cad0
cmp edi, 0x4be
je 0x101cad0
mov eax, 0x4c3
cmp edi, eax
je 0x101c9de
cmp edi, 0x4ce
jbe 0x101c8f4
cmp edi, 0x4d1
ja 0x101ca01
push 0x4c6
call ebx
call fcn.01017fa1
push edi
call ebx
jmp 0x101c8f9
Function at 0x101dedf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
push edi
mov edi, 0x20a
push edi
mov esi, ecx
call fcn.010171e8
pop ecx
push eax
mov ecx, esi
call fcn.0101dd09
push edi
push 0
push dword [esi]
call sub.msvcrt.dll_memset
mov esi, dword [esi]
add esp, 0xc
push 0x105
push esi
push 0x1002430
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
pop edi
pop esi
test eax, eax
jne 0x101df34
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jle 0x101df36
and eax, 0xffff
or eax, 0x80070000
ret
xor eax, eax
ret