joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 0xc]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp esi, 0x735
jg 0x4733a5
cmp esi, 0x692
je 0x4733bc
cmp esi, 0x6e4
jne 0x4733cf
mov esi, 0x5ea4d0
jmp 0x4733c8
cmp esi, 0x736
je 0x4733c3
cmp esi, 0xb0e
jne 0x4733cf
mov esi, 0x5ea4d8
jmp 0x4733c8
mov esi, 0x5ea4cc
jmp 0x4733c8
mov esi, 0x5ea4d4
call fcn.0046e300
mov esi, dword [esi]
mov edi, dword [0x616ac0]
test edi, edi
je 0x473403
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push esi
mov esi, dword [ebp + 8]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005685a0
add esi, dword [eax + 0x18]
mov edi, dword [0x6073c0]
mov eax, esi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4734b6
mov ebx, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4734b6
mov dword [ebp - 0x20], edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4734b6
mov edi, eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setg cl
and esi, 0xf
je 0x47347e
test eax, eax
jle 0x47347e
mov edx, edi
add edx, eax
dec esi
movzx eax, word [edi]
lea edi, [edi + eax*2]
add edi, 2
cmp edi, edx
setb cl
add esi, 0xffffffff
jae 0x47347e
cmp edi, edx
jb 0x473467
xor eax, eax
mov edx, 0
mov esi, 0
test cl, cl
je 0x4734bc
movzx ebx, word [edi]
xor eax, eax
test ebx, ebx
je 0x4734b8
mov edx, 0
mov esi, 0
test edi, edi
je 0x4734bc
add edi, 2
cmp bx, 5
jae 0x4734d8
lea esi, [ebp - 0x1c]
mov byte [esi + 0xb], bl
jmp 0x4734fb
xor eax, eax
xor edx, edx
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, edi
jmp 0x4733fb
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.0050397a
add esp, 4
mov dword [ebp - 0x1c], eax
or esi, 0x80000000
mov dword [ebp - 0x14], esi
mov esi, eax
mov dword [ebp - 0x18], ebx
lea eax, [ebx + ebx]
push eax
push edi
push esi
call fcn.00506d50
add esp, 0xc
mov word [esi + ebx*2], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
jmp 0x4734bc
Function at 0x473f50
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x208
mov esi, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
call fcn.00472ee0
test al, al
je 0x474066
mov edi, dword [ebp + 0xc]
push esi
call fcn.00474090
add esp, 4
test al, al
je 0x473fb1
call fcn.0046e300
mov eax, dword [eax + 4]
mov ecx, edi
mov edx, esi
push 0
push dword [eax + 8]
call fcn.00476d10
add esp, 8
test al, al
jne 0x474066
lea ebx, [ebp - 0x210]
push 0x200
push 0xff
push ebx
call fcn.005072d0
add esp, 0xc
lea eax, [ebp - 0x214]
mov dword [eax], 0x100
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x47402c
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x47402c
mov ecx, esi
push eax
call fcn.0044a9c0
mov ecx, esi
push 0x2e
push 1
call fcn.0044aeb0
mov eax, dword [ebp - 0x214]
dec eax
mov ecx, esi
push eax
push ebx
call fcn.004de0e0
call fcn.0046e300
mov eax, dword [eax + 4]
mov ecx, edi
mov edx, esi
push 0
push dword [eax + 8]
call fcn.00476d10
add esp, 8
test al, al
jne 0x474066
cmp byte [esi + 0xb], 0
jns 0x47407d
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
call fcn.0046e300
mov eax, dword [eax + 4]
mov ecx, edi
mov edx, esi
push 0
push dword [eax + 8]
call fcn.00476d10
add esp, 8
test al, al
jne 0x474066
push esi
call fcn.00474090
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
add esp, 0x208
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0x474040
Function at 0x4808c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x618bd4]
mov ecx, dword [0x6072f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48090d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, 0x618bd0
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x618bd4
call fcn.00503a17
add esp, 4
cmp dword [0x618bd4], 0xffffffff
jne 0x4808f3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.005072d0
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.0050397a
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x618c04]
mov ecx, dword [0x6072f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4809b6
mov ecx, esi
push ebx
push 0x618be0
push edi
call fcn.00480ad0
mov dword [0x618bd0], esi
push 0x618bd4
call fcn.00503a8d
add esp, 4
jmp 0x4808f3
push 0x618c04
call fcn.00503a17
add esp, 4
cmp dword [0x618c04], 0xffffffff
jne 0x480990
xorps xmm0, xmm0
movups xmmword [0x618bf0], xmm0
movups xmmword [0x618be0], xmm0
mov dword [0x618c00], 0
push 0x618be0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x618c04
call fcn.00503a8d
add esp, 4
jmp 0x480990

Function at 0x480a20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x618c04]
mov ecx, dword [0x6072f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x480a52
movzx ecx, word [0x618be0]
cmp cx, 9
jne 0x480a9d
xor eax, eax
inc eax
pop ebp
ret
push 0x618c04
call fcn.00503a17
add esp, 4
cmp dword [0x618c04], 0xffffffff
jne 0x480a40
xorps xmm0, xmm0
movups xmmword [0x618bf0], xmm0
movups xmmword [0x618be0], xmm0
mov dword [0x618c00], 0
push 0x618be0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x618c04
call fcn.00503a8d
add esp, 4
jmp 0x480a40
xor eax, eax
test cx, cx
je 0x480a50
cmp cx, 6
jne 0x480ab1
mov eax, 2
jmp 0x480a50
cmp cx, 0xc
jne 0x480abe
mov eax, 3
jmp 0x480a50
mov eax, 4
jmp 0x480a50
Function at 0x482da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
jne 0x482e79
cmp dword [esi], 0
jne 0x482e79
cmp dword [esi + 0xc], 0
jne 0x482e79
xor eax, eax
cmp dword [esi + 4], 0
jne 0x482e79
mov ebx, dword [edi]
cmp eax, ebx
je 0x482e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x482e49
lea eax, [ebx + 1]
cmp eax, 2
jb 0x482df9
mov dword [esi], ebx
call fcn.004e0f80
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp dword [esi + 4], ebx
je 0x482e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x482e60
lea eax, [ebx + 1]
cmp eax, 2
jb 0x482e2c
mov dword [esi + 4], ebx
call fcn.004e0f80
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004e0f80
push dword [esi]
call fcn.004e9ae0
add esp, 4
mov dword [esi], 0
jmp 0x482dea
call fcn.004e0f80
push dword [esi + 4]
call fcn.004e9ae0
add esp, 4
mov dword [esi + 4], 0
jmp 0x482e1c
mov ecx, esi
call fcn.00574d40
mov eax, dword [esi]
jmp 0x482dd4
Function at 0x487b40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp + 0x10]
mov edx, dword [0x603024]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], 0
test cl, cl
jne 0x487bf4
lea ecx, [ebp - 0x14]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x487c4a
mov esi, dword [ebp - 0x14]
xor ebx, ebx
test esi, esi
je 0x487ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x487bf0
call fcn.004e0f80
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, esi
mov esi, dword [ebp + 8]
mov byte [esi], 1
mov dword [esi + 4], 0
cmp ebx, 0xffffffff
je 0x487bbd
test ebx, ebx
je 0x487bdc
call fcn.004e0f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x487bd5
mov dword [esi + 4], ebx
call fcn.004e0f80
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x487b99
lea esi, [ebp - 0x14]
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x487c4a
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x18]
mov dword [edi], 0
mov ecx, edi
push eax
call fcn.004d5360
push esi
push 1
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x487c52
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 2
jb 0x487b7e
call fcn.004e0f80
push dword [ebp - 0x18]
call fcn.004e9ae0
add esp, 4
jmp 0x487b7e
mov esi, dword [ebp + 8]
mov byte [esi], 0
jmp 0x487bdc
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 2
jb 0x487c71
call fcn.004e0f80
push dword [ebp - 0x18]
call fcn.004e9ae0
add esp, 4
mov esi, dword [ebp + 8]
jmp 0x487bdc
Function at 0x48b7b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x48b7d2
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x48b807
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48b820
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0048b8d0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x48b832
xor ebx, ebx
jmp 0x48b809
call fcn.0055df20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x265
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0055e050
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.005364d0
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x48b874
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x48b899
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x48b8bb
push dword [ebp - 0xc4]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.0055e0b0
jmp 0x48b82e
Function at 0x48b8d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x48b8f2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48b91f
mov bl, 1
test al, 0x10
je 0x48b9c7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.004e0f90
add esp, 4
test al, al
je 0x48b9d5
call fcn.0055df20
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x250
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0055e050
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.005364d0
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x48b973
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x48b998
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x48b9ba
push dword [ebp - 0xc4]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.0055e0b0
jmp 0x48b9d5
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x48b9dc
xor ebx, ebx
jmp 0x48b908
lea ecx, [ebp - 0xb8]
push 2
push 0x254
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0045d3f0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.005364d0
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x48ba18
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.004e66c0
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x48ba3d
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.005364d0
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.005364d0
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x48ba6f
push dword [ebp - 0xc4]
call fcn.005039aa
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.0045d7d0
jmp 0x48b9d5
Function at 0x48cce0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.0048bab0
mov eax, dword [esi]
test eax, eax
je 0x48cd33
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
xor esi, esi
cmp ebx, edi
jne 0x48cd3a
lea ecx, [ebp - 0x14]
call fcn.0048c4f0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x48cd15
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x50], 0
je 0x48cd52
add ebx, 0x58
cmp ebx, edi
je 0x48cd15
jmp 0x48cd43
cmp byte [ebx + 0x1b], 0
jns 0x48cd5d
mov eax, dword [ebx + 0x10]
jmp 0x48cd60
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x48cd49
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x48cd93
mov edx, ecx
mov ecx, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.0048d560
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x48cd49
mov ecx, dword [ebp + 8]
push ebx
call fcn.00581c80
jmp 0x48cd49

Function at 0x48cda0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.0048bab0
mov eax, dword [esi]
test eax, eax
je 0x48cdf3
mov ebx, dword [eax + 0x28]
mov edi, dword [eax + 0x2c]
xor esi, esi
cmp ebx, edi
jne 0x48cdfa
lea ecx, [ebp - 0x14]
call fcn.0048c4f0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, 3
jmp 0x48cdd5
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x50], 2
jne 0x48ce48
cmp byte [ebx + 0x1b], 0
jns 0x48ce14
mov eax, dword [ebx + 0x10]
jmp 0x48ce17
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x48ce48
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x48ce51
mov edx, ecx
mov ecx, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.0048d560
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
add ebx, 0x58
cmp ebx, edi
je 0x48cdd5
jmp 0x48ce03
mov ecx, dword [ebp + 8]
push ebx
call fcn.00581c80
jmp 0x48ce48
Function at 0x48d6e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x603024]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x48d704
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x1c]
push ecx
push eax
push esi
call fcn.004e6b90
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x48d71e
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x28]
push ebx
push dword [ebp + 8]
push edi
call fcn.004e6b90
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x48d737
mov edi, dword [ebp - 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x1d], 0
jns 0x48d752
push dword [ebp - 0x28]
call fcn.005039aa
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x48d763
push dword [ebp - 0x1c]
call fcn.005039aa
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x48d7f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.004e6b90
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x48d81e
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x48d83c
push dword [ebp - 0x1c]
call fcn.005039aa
add esp, 4
cmp dword [ebp + 8], 0
je 0x48d8d4
test esi, esi
je 0x48d8d4
xor eax, eax
dec eax
mov ecx, esi
add ecx, esi
cmovb ecx, eax
push ecx
call fcn.005039d3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.004e6b90
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x48d87e
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x48d898
push dword [ebp - 0x1c]
call fcn.005039aa
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x48d8ed
push edi
call fcn.00520e34
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.004e66c0
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x48d8f0
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.005039dc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.005039aa
add esp, 4
jmp 0x48d8bc
Function at 0x48f810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x603024]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x48f840
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x48f930
push 0
push eax
push 0x48f7f0
push 0x618dac
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x48f91f
cmp dword [0x618db0], 0
jne 0x48f82c
push dword [0x618db4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f82c
mov esi, eax
mov eax, 0x618db8
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ebx, dword [0x618dbc]
mov edi, dword [0x618dc0]
mov eax, dword [0x618dc4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x618dc8]
mov dword [ebp - 0x1c], eax
mov eax, 0x618db8
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
je 0x48f8cc
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov ecx, ebx
call dword [section..00cfg]
push dword [ebp - 0x20]
call ebx
add esp, 4
test edi, edi
je 0x48f8e1
mov ebx, dword [esi + 4]
mov ecx, edi
call dword [section..00cfg]
push ebx
call edi
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x48f8f9
mov edi, dword [esi + 8]
mov ecx, dword [ebp - 0x18]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x48f911
mov edi, dword [esi + 0xc]
mov ecx, dword [ebp - 0x1c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
push esi
call fcn.004ee770
add esp, 4
jmp 0x48f82c
call fcn.00518ff0
int3
Function at 0x48ff50
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x1c]
test edi, edi
jne 0x49001e
lea edi, [esi + 0x18]
mov ebx, dword [esi + 0x18]
test ebx, ebx
jne 0x49003a
push edi
push 0x5f1a90
push 0x17
push 0
push 0x5ba194
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [edi]
test eax, eax
js 0x490053
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebx]
test edi, edi
jne 0x490065
mov eax, dword [ecx]
mov edi, ecx
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push ebx
push edi
call ecx
test eax, eax
js 0x490084
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x48ffe3
cmp byte [esi + 0xb], 0
movzx edx, byte [eax + 0xb]
js 0x49000a
test dl, dl
jns 0x48fffa
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.0044ae10
add esi, 0xc
mov ecx, esi
push edi
call fcn.0045b820
mov al, 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esi], xmm0
jmp 0x48ffe3
test dl, dl
jns 0x490013
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, esi
push edx
push eax
call fcn.0044ad00
jmp 0x48ffe3
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [edi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push edi
call ecx
jmp 0x48ff6c
mov dword [edi], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
call ecx
jmp 0x48ff7a
test ecx, ecx
je 0x4900a1
mov eax, ecx
mov dword [edi], 0
mov esi, ecx
mov eax, dword [eax]
jmp 0x490095
mov dword [ebx], 0
mov eax, dword [edi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push edi
call ecx
mov ecx, dword [ebp - 0x14]
jmp 0x48ffa6
mov esi, dword [ebx]
test esi, esi
je 0x4900a1
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push esi
call ecx
xor eax, eax
jmp 0x48fff0