joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7ad0
Capabilities:
Create udp socket

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
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 dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4c7b14
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x4c7b28
cmp eax, 0x2739
jne 0x4c7b53
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4c7b5b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4c7b6c
mov dword [esi + 4], edi
jmp 0x4c7b0b
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4c7b0e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x4c7b0e
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 0x4c7b0e
Function at 0x4ca120
Capabilities:
Check if file exists
Create process on windows
Encode data using base64
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x178
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4ccf60
mov edx, dword [ebp + 0xc]
call fcn.004ca145

Function at 0x4cc760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push dword [esp + 0x40]
call fcn.004d6ff0
add esp, 4
mov eax, dword [esp + 0xc]
cmp eax, 0x80000000
jne 0x4cc7a3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], connect
jmp 0x4cc7d2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ecx, esp
push eax
push ecx
call fcn.004c6e50
add esp, 8
mov edi, dword [esp]
cmp edi, 0x80000000
jne 0x4cc7e9
mov ecx, esp
call fcn.004c2f20
mov dword [esi], connect
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cc807
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x4cc7df
test edi, edi
mov dword [esi], connect
je 0x4cc7df
add edi, edi
push 2
push edi
push ebx
call fcn.00402cf0
add esp, 0xc
jmp 0x4cc7df

Function at 0x4cdb90
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 0x4cdbd4
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 0x4cdbda
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 dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4cdc16
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x4cdc3b
test eax, eax
js 0x4cdc25
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4cdc31
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x566cc0
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 edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.004c7980
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00419350
mov ecx, 7
int 0x29
ud2
Function at 0x4d3980
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1044
call fcn.004fce90
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4d4820
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x1050]
push 0x1000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
lea esi, [ebp - 0x50]
xorps xmm0, xmm0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], eax
push 0x4ce770
push esi
push 0x1000
lea eax, [ebp - 0x1050]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x4d3a40
nop word cs:[eax + eax]
push 1
push 0xffffffffffffffff
call edi
cmp dword [ebp - 0x38], 0
je 0x4d3a10
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4d3b00
mov ebx, eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x2c], 0
jmp 0x4d3a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x2c], 0
mov ebx, eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x2c]
call fcn.00403230
cmp al, 0xb
mov ecx, ebx
je 0x4d3b65
movzx eax, byte [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
cmp al, 4
jne 0x4d3b19
test ecx, ecx
je 0x4d3b65
cmp ecx, 0x1000
ja 0x4d3ba3
xor ebx, ebx
nop word cs:[eax + eax]
mov eax, ecx
sub eax, ebx
jb 0x4d3b89
xorps xmm0, xmm0
lea edx, [ebp - 0x38]
lea ecx, [ebp + ebx - 0x1050]
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], edx
push 0x4ce770
push esi
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x4d3b5f
nop
push 1
push 0xffffffffffffffff
call edi
cmp dword [ebp - 0x38], 0
je 0x4d3ad0
cmp dword [ebp - 0x34], 0
jne 0x4d3b65
add ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
cmp ebx, ecx
jne 0x4d3a90
jmp 0x4d39d3
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x2c], 4
movzx eax, byte [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
cmp al, 4
je 0x4d3a70
cmp al, 3
jb 0x4d3b65
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x3c], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4d3b4e
push dword [ecx + 8]
push eax
push dword [ebp - 0x3c]
call fcn.00402cf0
add esp, 0xc
push 4
push 0xc
push dword [ebp - 0x20]
call fcn.00402cf0
add esp, 0xc
jmp 0x4d3b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1044
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x567e74
push dword [ebp - 0x20]
push ebx
call fcn.00500450
add esp, 0xc
jmp 0x4d3bbd
mov dword [ebp - 0x10], 0
push 0x567e74
push 0x1000
push ecx
call fcn.00500430
add esp, 0xc
ud2
Function at 0x4d5880
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b8
mov eax, dword [esp + 0x1d0]
mov esi, dword [esp + 0x1cc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov word [esp + 2], ax
mov eax, dword [0x5781dc]
cmp eax, 3
jne 0x4d5979
lea eax, [esp + 2]
cmp ebx, 0x17f
mov dword [esp + 8], eax
ja 0x4d599a
lea ebp, [esp + 0x38]
push ebx
push edi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + ebx + 0x38], 0
inc ebx
lea eax, [esp + 0xc]
push ebx
push ebp
push eax
call fcn.004e7ea0
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x4d590f
mov eax, dword [0x568180]
mov ecx, dword [0x568184]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4d59ac
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
lea ecx, [esp + 4]
mov dword [esp + 4], 0
lea edx, [esp + 0x18]
movups xmmword [esp + 0x18], xmm0
movups xmmword [esp + 0x28], xmm0
mov dword [esp + 0x20], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4d5960
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x4d59ac
mov eax, dword [esp + 4]
movzx ecx, word [esp + 2]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x4d59ac
push 0x5781dc
call fcn.004ffb70
add esp, 4
lea eax, [esp + 2]
cmp ebx, 0x17f
mov dword [esp + 8], eax
jbe 0x4d58c8
lea eax, [esp + 8]
mov ecx, esi
mov edx, edi
push eax
push ebx
call fcn.004ffd30
add esp, 8
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d59c0
Capabilities:
Connect socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x4d5a23
mov ebx, dword [eax + 4]
mov eax, dword [0x5781dc]
cmp eax, 3
jne 0x4d5ad8
lea eax, [esp + 4]
push 1
push ebx
push eax
call fcn.004c7ad0
add esp, 0xc
movzx eax, byte [esp + 4]
cmp al, 4
jne 0x4d5a3f
mov edi, dword [esp + 8]
cmp word [ebx], 0
je 0x4d5a6c
movups xmm0, xmmword [ebx + 4]
mov edx, dword [ebx + 0x18]
lea eax, [ebx + 0x14]
add ebx, 0x1c
mov ecx, 0x1c
mov bp, 0x17
jmp 0x4d5a7e
mov edx, dword [eax + 4]
movzx edi, word [eax + 1]
movzx eax, byte [eax + 3]
mov byte [esi], cl
mov word [esi + 1], di
mov byte [esi + 3], al
mov dword [esi + 4], edx
jmp 0x4d5ace
movzx ecx, byte [esp + 7]
mov byte [esi], al
mov byte [esp + 2], cl
movzx ecx, word [esp + 5]
movzx edx, byte [esp + 2]
mov word [esp], cx
mov ecx, dword [esp + 8]
movzx eax, word [esp]
mov byte [esi + 3], dl
mov word [esi + 1], ax
mov dword [esi + 4], ecx
jmp 0x4d5ace
lea eax, [ebx + 2]
add ebx, 6
mov ecx, 0x10
mov bp, 2
xorps xmm0, xmm0
movzx ebx, word [ebx]
mov eax, dword [eax]
mov word [esp + 4], bp
rol bx, 8
mov word [esp + 6], bx
mov dword [esp + 8], eax
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], edx
push ecx
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4d5ab8
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4d5ace
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5781dc
call fcn.004ffb70
add esp, 4
jmp 0x4d59e8
Function at 0x4d6140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea edx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov eax, dword [eax]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4d61e4
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x4d61fd
cmp ecx, 0x17
jne 0x4d621d
cmp eax, 0x1b
jbe 0x4d6235
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
jmp 0x4d622d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x4d6228
cmp eax, 0xf
jbe 0x4d6246
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
jmp 0x4d622d
mov byte [esi + 4], 2
mov dword [esi + 8], 0x5682b8
mov word [esi], 2
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x568298
push 0x43
push 0x568254
call fcn.005005f0
push 0x568244
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_sys_common_net.rs
call fcn.005005f0
int3
Function at 0x4d71c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4d9620
mov esi, 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 esi, 0x201
jae 0x4d7250
jmp 0x4d723e
jbe 0x4d72d6
cmp esi, 0x201
jae 0x4d7250
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x454]
mov edi, esi
jmp 0x4d7281
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x4d7275
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.004ffc50
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x4d72a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d7343
cmp esi, edi
jne 0x4d7230
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d7362
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x4d723e
jmp 0x4d7250
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x4d737f
lea eax, [ebp - 0x44]
push esi
push ebx
push eax
call fcn.004d19c0
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov esi, dword [ebp + 8]
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4d732d
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x448
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], connect
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4d731d
jmp 0x4d732d
mov dword [ebp - 0x10], 0
push 0x5685a4
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.005005f0
add esp, 0xc
jmp 0x4d738e
push 0x56856c
push eax
push esi
call fcn.00500430
add esp, 0xc
ud2
Function at 0x4d73c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4d9630
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp esi, 0x201
jae 0x4d7450
jmp 0x4d743e
jbe 0x4d74d9
cmp esi, 0x201
jae 0x4d7450
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x458]
mov edi, esi
jmp 0x4d7481
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x4d7475
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.004ffc50
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x4d74a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d7546
cmp esi, edi
jne 0x4d7430
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d7565
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x4d743e
jmp 0x4d7450
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x4d7582
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.004d19c0
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
movsd xmm1, qword [ebp - 0x40]
mov esi, dword [ebp + 8]
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4d7530
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x44c
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], connect
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4d7520
jmp 0x4d7530
mov dword [ebp - 0x10], 0
push 0x5685a4
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.005005f0
add esp, 0xc
jmp 0x4d7591
push 0x56856c
push eax
push esi
call fcn.00500430
add esp, 0xc
ud2
Function at 0x4d8140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4d9680
lea eax, [ebp - 0x18]
mov ebx, 0x200
xor edi, edi
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 ebx, 0x201
jae 0x4d81d0
jmp 0x4d81ae
jbe 0x4d8255
cmp ebx, 0x201
jae 0x4d81d0
lea eax, [ebp - 0x434]
mov esi, ebx
mov dword [ebp - 0x30], 0x200
mov ebx, eax
jmp 0x4d81fd
sub ebx, edi
je 0x4d81f2
mov dword [ebp - 0x10], 0
push ebx
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.004ffc50
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov esi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov dword [ebp - 0x34], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
test eax, eax
jne 0x4d8220
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d8292
cmp ebx, esi
jne 0x4d81a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d82fd
lea ebx, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x4d81ae
jmp 0x4d81d0
mov eax, dword [ebp - 0x30]
cmp ebx, eax
ja 0x4d831a
test ebx, ebx
je 0x4d82b1
cmp ebx, 0x40000000
jae 0x4d8332
movzx eax, byte [0x5781b1]
mov esi, ebx
add esi, ebx
push 2
push esi
call fcn.00402ce0
add esp, 8
test eax, eax
je 0x4d8340
mov edi, eax
jmp 0x4d82b8
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], connect
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4d82d7
jmp 0x4d82e7
mov edi, 2
xor esi, esi
push esi
push dword [ebp - 0x34]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4d82e7
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x5685a4
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.005005f0
add esp, 0xc
jmp 0x4d8352
mov dword [ebp - 0x10], 0
push 0x56856c
push eax
push ebx
call fcn.00500430
add esp, 0xc
jmp 0x4d8352
mov dword [ebp - 0x10], 0
call fcn.004e3430
jmp 0x4d8352
mov dword [ebp - 0x10], 0
push esi
push 2
call fcn.00500210
add esp, 8
ud2
Function at 0x4d96c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4dbee0
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 [0x5781b1]
push 4
push 0x1ec
call fcn.00402ce0
add esp, 8
test eax, eax
je 0x4d988a
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, 0xb
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
ja 0x4d9896
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
inc esi
sub eax, esi
cmp eax, edi
jne 0x4d98af
mov edx, dword [ebx + ecx + 0xc]
mov ecx, dword [ebx + ecx + 8]
lea eax, [ebx + 0xb4]
add eax, esi
mov dword [ebp - 0x30], edx
lea edx, [esi + esi*8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x28]
lea edx, [edx + edx*2]
add eax, edx
lea edx, [edi + edi*8]
lea edx, [edx + edx*2]
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 word [ebx + 0x1ea], ax
mov dword [ecx + 0x2c], ebx
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x38]
movsd qword [ebp - 0x74], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0x6c], xmm1
mov edx, dword [ebp - 0x5c]
movsd xmm1, qword [ebp - 0x6c]
mov eax, dword [eax + 4]
movsd qword [ebp - 0x64], xmm0
movsd xmm0, qword [ebp - 0x74]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x18], edx
movsd qword [ecx], xmm0
movsd xmm0, qword [ebp - 0x64]
mov edx, dword [ebp - 0x2c]
movsd qword [ecx + 8], xmm1
movsd qword [ecx + 0x10], xmm0
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, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1ec
push 4
call fcn.00500210
mov dword [ebp - 0x10], 0
push 0x5688cc
push 0xb
push edi
call fcn.00500430
add esp, 0xc
jmp 0x4d98ca
mov dword [ebp - 0x10], 0
push 0x5688bc
push 0x28
push str.assertion_failed:_src.len____dst.len__D
call fcn.005005f0
add esp, 0xc
ud2