joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4956d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x50518c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004a258c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4956b5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x4956b5
lea edx, [esp]
push edx
call dword [0x50500c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a0fe3
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a0fe3
add esp, 0x108
ret
jmp 0x495650

Function at 0x4994de
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x50518c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049941d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0049c4d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49952d
cmp dword [ebp - 0x1c], 5
jb 0x499545
jmp 0x499541
cmp dword [ebp - 0x10], 1
jne 0x499545
cmp dword [ebp - 0x1c], 4
ja 0x499541
jne 0x499545
cmp dword [ebp - 0x18], 0
jbe 0x499545
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4da674
call fcn.0046a864
test eax, eax
jge 0x499566
mov byte [0x50c2b4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a0fe3
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x50a8b8], 0
push esi
jne 0x499921
call fcn.0049984c
test eax, eax
je 0x499964
mov eax, dword [0x50a8b8]
cmp eax, 1
jne 0x499942
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x499964
pop esi
ret
push eax
call dword [0x50a8c0]
test eax, eax
jne 0x4999ac
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x499968
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x50a8b8]
call dword [0x50a8c0]
mov edi, eax
test edi, edi
je 0x49998f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4999ab
lea edi, [esi + 0xff0]
push esi
push dword [0x50a8b8]
call dword [0x50a8bc]
add esi, 0x10
cmp esi, edi
jb 0x499995
mov eax, esi
pop edi
pop esi
ret
jmp 0x49990e
Function at 0x49c207
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x49c244
cmp dword [ebp + 0x14], edi
je 0x49c244
cmp ecx, edi
jne 0x49c24b
call fcn.004a2000
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0049bea1
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x49c25f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x49c280
cmp ebx, 0xffffffff
je 0x49c26f
push ebx
push edi
push ecx
call fcn.0049c4d0
add esp, 0xc
cmp esi, edi
je 0x49c22c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49c22c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x49c29c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x49c2a3
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x49c394
test word [esi + 0xc], 0x10c
je 0x49c2f7
mov eax, dword [esi + 4]
test eax, eax
je 0x49c2f7
jl 0x49c3f5
cmp ebx, eax
mov edi, ebx
jb 0x49c2c8
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x49c39c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0049b888
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x49c38c
cmp ebx, dword [ebp - 0xc]
jb 0x49c364
cmp dword [ebp - 0xc], 0
je 0x49c321
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x49c316
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x49c31d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x49c32c
mov eax, SysReAllocString
cmp ebx, eax
ja 0x49c32c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x49c3c8
push eax
push dword [ebp - 8]
push esi
call fcn.0049e440
pop ecx
push eax
call fcn.004a99a6
add esp, 0xc
test eax, eax
je 0x49c407
cmp eax, 0xffffffff
je 0x49c3f5
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x49c38c
push esi
call fcn.004a92c5
cmp eax, 0xffffffff
pop ecx
je 0x49c3f9
cmp dword [ebp - 4], 0
je 0x49c3c8
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x49c2ab
mov eax, dword [ebp + 0x14]
jmp 0x49c246
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x49c3b3
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049c4d0
add esp, 0xc
call fcn.004a2000
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49c23c
cmp dword [ebp + 0xc], 0xffffffff
je 0x49c3de
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049c4d0
add esp, 0xc
call fcn.004a2000
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49c23c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x49c246
or dword [esi + 0xc], 0x10
jmp 0x49c3f9
Function at 0x49fa4e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x49fa7b
call fcn.004a2013
mov dword [eax], esi
call fcn.004a2000
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0049bea1
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x49fa57
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49faaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a2026
pop ecx
call fcn.004a2000
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x49fad1
test al, 1
je 0x49fad1
test byte [esp + 0xc], 2
je 0x49fad1
call fcn.004a2013
mov dword [eax], 5
call fcn.004a2000
mov dword [eax], 0xd
jmp 0x49faa1
xor eax, eax
pop esi
ret

Function at 0x4a0fe3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50518c]
jne 0x4a0fed
repz ret
jmp fcn.004b107d

Function at 0x4a6e4f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x505ce8]
je 0x4a6e6a
inc edi
cmp edi, 0x17
jb 0x4a6e5b
cmp edi, 0x17
jae 0x4a6fea
push ebp
push 3
call fcn.004b415e
cmp eax, 1
pop ecx
je 0x4a6fb6
push 3
call fcn.004b415e
test eax, eax
pop ecx
jne 0x4a6e9e
cmp dword [0x505188], 1
je 0x4a6fb6
cmp ebx, 0xfc
je 0x4a6fe9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x50a9b8
push ebp
call fcn.0049fb50
add esp, 0xc
test eax, eax
je 0x4a6ed4
push esi
push esi
push esi
push esi
push esi
call fcn.0049bda5
add esp, 0x14
push 0x104
mov esi, 0x50a9d1
push esi
push 0
mov byte [0x50aad5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a6f18
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0049fb50
add esp, 0xc
test eax, eax
je 0x4a6f18
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049bda5
add esp, 0x14
push esi
call fcn.00499a40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a6f5d
push esi
call fcn.00499a40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x50accc
push 0x4dbb94
sub ecx, eax
push ecx
push eax
call fcn.004b258d
add esp, 0x14
test eax, eax
je 0x4a6f5d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049bda5
add esp, 0x14
jmp 0x4a6f5f
xor esi, esi
push 0x4dbb90
push ebx
push ebp
call fcn.004b31fd
add esp, 0xc
test eax, eax
je 0x4a6f7f
push esi
push esi
push esi
push esi
push esi
call fcn.0049bda5
add esp, 0x14
push dword [edi*8 + 0x505cec]
push ebx
push ebp
call fcn.004b31fd
add esp, 0xc
test eax, eax
je 0x4a6fa1
push esi
push esi
push esi
push esi
push esi
call fcn.0049bda5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b3fa1
add esp, 0xc
jmp 0x4a6fe9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4a6fe9
cmp ebp, 0xffffffff
je 0x4a6fe9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x505cec]
push dword [esi]
call fcn.00499a40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b3fa1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a68d0
xor ebx, ebx
cmp dword [0x50b468], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b4077
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b4157
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4b4157
push eax
call fcn.004a6862
mov dword [esp], 0x4dc778
push edi
mov dword [0x50b468], eax
call esi
push eax
call fcn.004a6862
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x50b46c], eax
call esi
push eax
call fcn.004a6862
mov dword [0x50b470], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a09f6
test eax, eax
pop ecx
pop ecx
je 0x4b4045
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049bda5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b4077
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a6862
cmp eax, ebx
pop ecx
mov dword [0x50b478], eax
je 0x4b4077
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a6862
pop ecx
mov dword [0x50b474], eax
mov eax, dword [0x50b474]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b40fc
cmp dword [0x50b478], ecx
je 0x4b40fc
push eax
call fcn.004a68d9
push dword [0x50b478]
mov esi, eax
call fcn.004a68d9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b40fc
cmp edi, ebx
je 0x4b40fc
call esi
cmp eax, ebx
je 0x4b40c9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b40c9
test byte [ebp - 0x18], 1
jne 0x4b40fc
lea eax, [ebp - 0x10]
push eax
call fcn.004a0a2d
test eax, eax
pop ecx
je 0x4b40e4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049bda5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b40f3
or dword [ebp + 0x10], 0x200000
jmp 0x4b4137
or dword [ebp + 0x10], 0x40000
jmp 0x4b4137
mov eax, dword [0x50b46c]
cmp eax, dword [ebp - 8]
je 0x4b4137
push eax
call fcn.004a68d9
cmp eax, ebx
pop ecx
je 0x4b4137
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b4137
mov eax, dword [0x50b470]
cmp eax, dword [ebp - 8]
je 0x4b4137
push eax
call fcn.004a68d9
cmp eax, ebx
pop ecx
je 0x4b4137
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50b468]
call fcn.004a68d9
cmp eax, ebx
pop ecx
je 0x4b4157
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b4159
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b9280
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f5848
push 0x4a52c0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x50518c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4b92da
cmp dword [ebp + 0xc], 0
je 0x4b92da
cmp dword [ebp + 0x10], 1
jae 0x4b92df
jmp 0x4b93bd
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4b9301
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4b9306
jmp 0x4b93bd
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499230
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4b9341
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b93bd
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.0049c4d0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4b939d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4b939d
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0049ffbc
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b93bd
cmp dword [ebp - 0x20], 0
je 0x4b93dc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049c4be
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x50518c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
call fcn.0040a8e2
movzx eax, al
test eax, eax
je 0x4b947a
xor eax, eax
jmp 0x4b96e2
mov word [ebp - 0x218], 0
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0049c4d0
add esp, 0xc
push 0x4dd82c
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040a3cf
cmp eax, 0xffffffff
je 0x4b94eb
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4dd850
call fcn.004b9280
add esp, 0xc
test eax, eax
jne 0x4b94d1
xor eax, eax
jmp 0x4b96e2
lea eax, [ebp - 0x218]
push eax
push 0x4dd874
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044b0d7
jmp 0x4b96d1
push 0x4dd898
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040a3cf
cmp eax, 0xffffffff
je 0x4b953d
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4dd8ac
call fcn.004b9280
add esp, 0xc
test eax, eax
jne 0x4b9523
xor eax, eax
jmp 0x4b96e2
lea eax, [ebp - 0x218]
push eax
push 0x4dd8c0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044b0d7
jmp 0x4b96d1
push 0x4dd8d4
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040a3cf
cmp eax, 0xffffffff
je 0x4b958f
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4dd8e4
call fcn.004b9280
add esp, 0xc
test eax, eax
jne 0x4b9575
xor eax, eax
jmp 0x4b96e2
lea eax, [ebp - 0x218]
push eax
push 0x4dd8f4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044b0d7
jmp 0x4b96d1
push 0x4dd904
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040a3cf
cmp eax, 0xffffffff
je 0x4b95da
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
ja 0x4b95c0
xor eax, eax
jmp 0x4b96e2
lea eax, [ebp - 0x218]
push eax
push 0x4dd918
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044b0d7
jmp 0x4b96d1
push 0x4dd92c
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040a3cf
cmp eax, 0xffffffff
je 0x4b9625
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
ja 0x4b960b
xor eax, eax
jmp 0x4b96e2
lea eax, [ebp - 0x218]
push eax
push 0x4dd940
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044b0d7
jmp 0x4b96d1
push 0x4dd954
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040a3cf
cmp eax, 0xffffffff
je 0x4b9687
push 0x20a
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.0049c4d0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
push 0x4dd968
mov eax, dword [ebp + 8]
push eax
call fcn.0044b0d7
jmp 0x4b96d1
push 0x4dd97c
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040a3cf
cmp eax, 0xffffffff
je 0x4b96d1
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4dd998
call fcn.004b9280
add esp, 0xc
test eax, eax
jne 0x4b96bc
xor eax, eax
jmp 0x4b96e2
lea edx, [ebp - 0x218]
push edx
push str._Systemroot_
mov eax, dword [ebp + 8]
push eax
call fcn.0044b0d7
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b9400
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0fe3
mov esp, ebp
pop ebp
ret
Function at 0x4b99f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x50518c]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0049c4d0
add esp, 0xc
mov byte [ebp - 1], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
ja 0x4b9a46
jmp 0x4b9af3
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x4b9a6e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 1
jae 0x4b9af3
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.0049c4d0
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.0049ffbc
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x50a55c]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004b8bdc
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b9aee
mov byte [ebp - 1], 1
jmp 0x4b9af3
jmp 0x4b9a5f
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a0fe3
mov esp, ebp
pop ebp
ret

Function at 0x4b9b10
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 0xd], 0
push 0x288
call fcn.0049ed66
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4b9b37
xor al, al
jmp 0x4b9c21
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x288
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jne 0x4b9b9a
mov edx, dword [ebp - 0x14]
push edx
call fcn.0049c179
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0049ed66
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4b9b8a
xor al, al
jmp 0x4b9c21
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x4b9bfe
cmp dword [ebp - 0x14], 0
je 0x4b9bfe
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x190], 3
ja 0x4b9bc2
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x4b9ba6
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x194]
cmp edx, 0x52
jne 0x4b9bf4
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x195]
cmp ecx, 0x54
jne 0x4b9bf4
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x196]
test eax, eax
jne 0x4b9bf4
mov byte [ebp - 0xd], 1
jmp 0x4b9bfe
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x4b9ba6
cmp dword [ebp - 8], 0
je 0x4b9c1e
mov eax, dword [ebp - 8]
push eax
call fcn.0049c179
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4b9c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b9c70
mov byte [ebp - 9], 0
jmp 0x4b9ced
push 0x80
call fcn.0049ed66
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x50
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4b9cb9
mov byte [ebp - 9], 0
jmp 0x4b9cd1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0047a560
add esp, 8
test eax, eax
je 0x4b9cd1
mov byte [ebp - 9], 1
cmp dword [ebp - 0x18], 0
je 0x4b9ce3
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0049c179
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x4b9dd0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x50518c]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0049c4d0
add esp, 0xc
mov byte [ebp - 1], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
ja 0x4b9e26
jmp 0x4b9ed3
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x4b9e4e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 5
jae 0x4b9ed3
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.0049c4d0
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.0049ffbc
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x50a534]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004b8bdc
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b9ece
mov byte [ebp - 1], 1
jmp 0x4b9ed3
jmp 0x4b9e3f
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a0fe3
mov esp, ebp
pop ebp
ret