joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0
jne 0x4b1f5b
mov dword [ebp - 0x14], 1
jmp 0x4b1f62
mov dword [ebp - 0x14], 0
movzx ecx, byte [ebp - 0x14]
test ecx, ecx
je 0x4b1f7e
push 0x74
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov edx, dword [ebp - 0x10]
add edx, 0x1c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 8
jb 0x4b1fa0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x4b1fa6
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4b1ff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, 2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x13
ja case.0x4b1fdb.2
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x4b2004]
jmp dword [edx*4 + 0x4b1ffc]
xor al, al
jmp 0x4b1ff7
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4b203b
mov dword [ebp - 0x10], 1
jmp 0x4b2042
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x4b2061
push 0x8a
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov edx, dword [ebp - 0xc]
add edx, 0x1c
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 8
jb 0x4b2083
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x4b2089
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4b20c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 5
je 0x4b20ad
jmp 0x4b20b1
xor al, al
jmp 0x4b20c2
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4b20d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4b20eb
mov dword [ebp - 0x10], 1
jmp 0x4b20f2
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x4b2111
push 0x9d
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov edx, dword [ebp - 0xc]
add edx, 0x1c
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 8
jb 0x4b2133
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x4b2139
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4b215b
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
mov ecx, dword [ebp - 0x14]
and ecx, 1
jne 0x4b216c
mov dword [ebp - 0x18], 1
jmp 0x4b2173
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4b229b
mov dword [ebp - 0x10], 1
jmp 0x4b22a2
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x4b22c1
push 0xb5
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov edx, dword [ebp - 0xc]
add edx, 0x1c
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 8
jb 0x4b22e3
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x4b22e9
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4b230b
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
mov ecx, dword [ebp - 0x14]
and ecx, 0x10
je 0x4b231c
mov dword [ebp - 0x18], 1
jmp 0x4b2323
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x4b2620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4b263b
mov dword [ebp - 0x10], 1
jmp 0x4b2642
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x4b2661
push 0xe3
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov edx, dword [ebp - 0xc]
add edx, 0x1c
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 8
jb 0x4b2683
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x4b2689
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4b26ab
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
mov ecx, dword [ebp - 0x14]
and ecx, 2
je 0x4b26bc
mov dword [ebp - 0x18], 1
jmp 0x4b26c3
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov esp, ebp
pop ebp
ret

Function at 0x4b2b70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x4b2b8b
mov dword [ebp - 0x1c], 1
jmp 0x4b2b92
mov dword [ebp - 0x1c], 0
movzx ecx, byte [ebp - 0x1c]
test ecx, ecx
je 0x4b2bb1
push 0x130
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 0x1c
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 8
jb 0x4b2bd3
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
jmp 0x4b2bd9
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4b2bfb
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x4b2c0e
mov edx, dword [ebp - 4]
and edx, 0xfffffffe
mov dword [ebp - 4], edx
jmp 0x4b2c17
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 0x1c
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x14], 8
jb 0x4b2c39
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
jmp 0x4b2c3f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4b2c60
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2c80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc8d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
jne 0x4b2cb0
mov dword [ebp - 0x20], 1
jmp 0x4b2cb7
mov dword [ebp - 0x20], 0
movzx ecx, byte [ebp - 0x20]
test ecx, ecx
je 0x4b2cd6
push 0x146
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.0046b5e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b56b0
add esp, 8
cmp dword [ebp - 0x2c], 8
jb 0x4b2d1b
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
jmp 0x4b2d21
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1c
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 8
jb 0x4b2d43
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
jmp 0x4b2d49
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4b2d85
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x74]
call fcn.004b1be0
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x74]
call fcn.004b2b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004b1d80
jmp 0x4b2d94
mov ecx, dword [ebp - 0x1c]
add ecx, 4
push ecx
call fcn.004b3130
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0046b5e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2dc0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc8e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
jne 0x4b2df0
mov dword [ebp - 0x20], 1
jmp 0x4b2df7
mov dword [ebp - 0x20], 0
movzx ecx, byte [ebp - 0x20]
test ecx, ecx
je 0x4b2e16
push 0x155
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.0046b5e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b56b0
add esp, 8
cmp dword [ebp - 0x2c], 8
jb 0x4b2e5b
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
jmp 0x4b2e61
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1c
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 8
jb 0x4b2e83
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
jmp 0x4b2e89
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4b2eaa
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0046b5e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2ed0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4b2eeb
mov dword [ebp - 0x18], 1
jmp 0x4b2ef2
mov dword [ebp - 0x18], 0
movzx ecx, byte [ebp - 0x18]
test ecx, ecx
je 0x4b2f11
push 0x160
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.004b2280
movzx edx, al
test edx, edx
je 0x4b2f67
mov eax, dword [ebp - 4]
add eax, 0x1c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], 8
jb 0x4b2f42
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
jmp 0x4b2f48
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4b2f65
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.004b3130
add esp, 4
jmp 0x4b2fac
mov edx, dword [ebp - 4]
add edx, 0x1c
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x4b2f89
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x4b2f8f
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b2fac
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.004b3130
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4b3080
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4b309b
mov dword [ebp - 0x10], 1
jmp 0x4b30a2
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x4b30c1
push 0x183
push str.c:usersdevdocuments_visual_studio_2013projectspoco_1.4.6p4_all_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004ad0f0
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.004b1f40
movzx edx, al
test edx, edx
je 0x4b30e3
mov ecx, dword [ebp - 4]
call fcn.004b2280
movzx eax, al
test eax, eax
je 0x4b30e3
xor al, al
jmp 0x4b312c
mov ecx, dword [ebp - 4]
add ecx, 0x1c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 8
jb 0x4b3105
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
jmp 0x4b310b
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b312a
mov edx, dword [ebp - 4]
add edx, 4
push edx
call fcn.004b3130
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4bc0b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd172
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
call fcn.004b47c0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x150]
push ecx
push 0x7f
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x150]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x1c], 0x100
jbe 0x4bc11b
mov dword [ebp - 0x18], pe_nt_image_headers32
jmp 0x4bc121
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
lea edx, [ebp + ecx*2 - 0x150]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jae 0x4bc1fc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.0046b5e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
jae 0x4bc191
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x4bc191
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx]
mov word [ebp - 0x12], dx
movzx eax, word [ebp - 0x12]
push eax
push 1
lea ecx, [ebp - 0x50]
call fcn.00478f40
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x4bc15b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.004769f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004b5a60
add esp, 8
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004b51b0
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.004769f0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.0046b5e0
jmp 0x4bc12e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4c02a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0
push 0
lea ecx, [ebp - 0x4c]
call fcn.0046b5e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b56b0
add esp, 8
cmp dword [ebp - 0x38], 8
jb 0x4c030a
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jmp 0x4c0310
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4c0349
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x98]
call fcn.004a49e0
push 0x542e78
lea ecx, [ebp - 0x98]
push ecx
call fcn.004d0a2b
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a012a
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x38], 8
jb 0x4c0392
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
jmp 0x4c0398
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push 0
push 0
lea ecx, [ebp - 0x68]
call fcn.004769f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x10]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004b5b60
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004769f0
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.00475b10
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.004769f0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ce339
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0046b5e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4c0470
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd43a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.0046b5e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b56b0
add esp, 8
cmp dword [ebp - 0x24], 8
jb 0x4c04d0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
jmp 0x4c04d6
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x4c04f6
mov dword [ebp - 0x18], 1
jmp 0x4c04fd
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.0046b5e0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4c0530
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd45c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.0046b5e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.0046b5e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b56b0
add esp, 8
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004b56b0
add esp, 8
cmp dword [ebp - 0x30], 8
jb 0x4c05c1
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x14], edx
jmp 0x4c05c7
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 8
jb 0x4c05db
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
jmp 0x4c05e1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x4c064a
push str.cannot_set_environment_variable:
lea ecx, [ebp - 0x64]
call fcn.004763c0
mov byte [ebp - 4], 2
mov eax, dword [0x5319c8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00475a20
push 0
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x90]
call fcn.004a5010
push 0x548710
lea eax, [ebp - 0x90]
push eax
call fcn.004d0a2b
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.004769f0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0046b5e0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0046b5e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret