joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fe5c
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 8], 0
jne 0x44fe7e
mov eax, dword [esi]
push 0x4923c4
push dword [eax + 8]
call fcn.00454c57
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x44fe7e
or eax, 0xffffffff
ret
push edi
push dword [esi + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00455371
mov edi, eax
add esp, 0x10
cmp edi, dword [esp + 0xc]
je 0x44feaf
push dword [esi + 8]
call fcn.00454cdc
mov eax, dword [esi]
and dword [esi + 8], 0
mov eax, dword [eax]
pop ecx
mov dword [esi], eax
mov eax, edi
pop edi
ret

Function at 0x45037e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004502bd
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.00451930
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 0x4503cd
cmp dword [ebp - 0x1c], 5
jb 0x4503e5
jmp 0x4503e1
cmp dword [ebp - 0x10], 1
jne 0x4503e5
cmp dword [ebp - 0x1c], 4
ja 0x4503e1
jne 0x4503e5
cmp dword [ebp - 0x18], 0
jbe 0x4503e5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x488618
call fcn.0042740b
test eax, eax
jge 0x450406
mov byte [0x4aa2a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00451a25
add ebp, 0x78
leave
ret

Function at 0x451a25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5294]
jne 0x451a2f
repz ret
jmp fcn.0045c877

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x45482e
call fcn.0045900c
mov dword [eax], esi
call fcn.00458ff9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00453ef6
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x45480a
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45485d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0045901f
pop ecx
call fcn.00458ff9
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x454884
test al, 1
je 0x454884
test byte [esp + 0xc], 2
je 0x454884
call fcn.0045900c
mov dword [eax], 5
call fcn.00458ff9
mov dword [eax], 0xd
jmp 0x454854
xor eax, eax
pop esi
ret
Function at 0x4550d5
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 0x455112
cmp dword [ebp + 0x14], edi
je 0x455112
cmp ecx, edi
jne 0x455119
call fcn.00458ff9
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00453ef6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45512d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x45514e
cmp ebx, 0xffffffff
je 0x45513d
push ebx
push edi
push ecx
call fcn.00451930
add esp, 0xc
cmp esi, edi
je 0x4550fa
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4550fa
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x45516a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x455171
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x455262
test word [esi + 0xc], 0x10c
je 0x4551c5
mov eax, dword [esi + 4]
test eax, eax
je 0x4551c5
jl 0x4552c3
cmp ebx, eax
mov edi, ebx
jb 0x455196
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x45526a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004519aa
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 0x45525a
cmp ebx, dword [ebp - 0xc]
jb 0x455232
cmp dword [ebp - 0xc], 0
je 0x4551ef
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4551e4
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4551eb
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4551fa
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4551fa
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x455296
push eax
push dword [ebp - 8]
push esi
call fcn.004603d5
pop ecx
push eax
call fcn.00461749
add esp, 0xc
test eax, eax
je 0x4552d5
cmp eax, 0xffffffff
je 0x4552c3
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x45525a
push esi
call fcn.00461068
cmp eax, 0xffffffff
pop ecx
je 0x4552c7
cmp dword [ebp - 4], 0
je 0x455296
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 0x455179
mov eax, dword [ebp + 0x14]
jmp 0x455114
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x455281
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00451930
add esp, 0xc
call fcn.00458ff9
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x45510a
cmp dword [ebp + 0xc], 0xffffffff
je 0x4552ac
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00451930
add esp, 0xc
call fcn.00458ff9
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x45510a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x455114
or dword [esi + 0xc], 0x10
jmp 0x4552c7
Function at 0x45d52f
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 + 0x4a5ac8]
je 0x45d54a
inc edi
cmp edi, 0x17
jb 0x45d53b
cmp edi, 0x17
jae 0x45d6ca
push ebp
push 3
call fcn.00467fc3
cmp eax, 1
pop ecx
je 0x45d696
push 3
call fcn.00467fc3
test eax, eax
pop ecx
jne 0x45d57e
cmp dword [0x4a50f0], 1
je 0x45d696
cmp ebx, 0xfc
je 0x45d6c9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a8de8
push ebp
call fcn.00456b91
add esp, 0xc
test eax, eax
je 0x45d5b4
push esi
push esi
push esi
push esi
push esi
call fcn.00453dfa
add esp, 0x14
push 0x104
mov esi, 0x4a8e01
push esi
push 0
mov byte [0x4a8f05], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x45d5f8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00456b91
add esp, 0xc
test eax, eax
je 0x45d5f8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00453dfa
add esp, 0x14
push esi
call fcn.00452390
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45d63d
push esi
call fcn.00452390
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a90fc
push 0x489e8c
sub ecx, eax
push ecx
push eax
call fcn.00459a19
add esp, 0x14
test eax, eax
je 0x45d63d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00453dfa
add esp, 0x14
jmp 0x45d63f
xor esi, esi
push 0x489e88
push ebx
push ebp
call fcn.0045bcbe
add esp, 0xc
test eax, eax
je 0x45d65f
push esi
push esi
push esi
push esi
push esi
call fcn.00453dfa
add esp, 0x14
push dword [edi*8 + 0x4a5acc]
push ebx
push ebp
call fcn.0045bcbe
add esp, 0xc
test eax, eax
je 0x45d681
push esi
push esi
push esi
push esi
push esi
call fcn.00453dfa
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00467e06
add esp, 0xc
jmp 0x45d6c9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45d6c9
cmp ebp, 0xffffffff
je 0x45d6c9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a5acc]
push dword [esi]
call fcn.00452390
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 0x467e06
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045b082
xor ebx, ebx
cmp dword [0x4a9454], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x467edc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x467fbc
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x467fbc
push eax
call fcn.0045b014
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a9454], eax
call esi
push eax
call fcn.0045b014
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a9458], eax
call esi
push eax
call fcn.0045b014
mov dword [0x4a945c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045ad35
test eax, eax
pop ecx
pop ecx
je 0x467eaa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00453dfa
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x467edc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045b014
cmp eax, ebx
pop ecx
mov dword [0x4a9464], eax
je 0x467edc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045b014
pop ecx
mov dword [0x4a9460], eax
mov eax, dword [0x4a9460]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x467f61
cmp dword [0x4a9464], ecx
je 0x467f61
push eax
call fcn.0045b08b
push dword [0x4a9464]
mov esi, eax
call fcn.0045b08b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x467f61
cmp edi, ebx
je 0x467f61
call esi
cmp eax, ebx
je 0x467f2e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x467f2e
test byte [ebp - 0x18], 1
jne 0x467f61
lea eax, [ebp - 0x10]
push eax
call fcn.0045ad6c
test eax, eax
pop ecx
je 0x467f49
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00453dfa
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x467f58
or dword [ebp + 0x10], 0x200000
jmp 0x467f9c
or dword [ebp + 0x10], 0x40000
jmp 0x467f9c
mov eax, dword [0x4a9458]
cmp eax, dword [ebp - 8]
je 0x467f9c
push eax
call fcn.0045b08b
cmp eax, ebx
pop ecx
je 0x467f9c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x467f9c
mov eax, dword [0x4a945c]
cmp eax, dword [ebp - 8]
je 0x467f9c
push eax
call fcn.0045b08b
cmp eax, ebx
pop ecx
je 0x467f9c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a9454]
call fcn.0045b08b
cmp eax, ebx
pop ecx
je 0x467fbc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x467fbe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x471390
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x60], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x64], 0
pop ebp
ret
Function at 0x472570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x49cd38
push 0x4592b0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x4a5294]
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 0x4725ca
cmp dword [ebp + 0xc], 0
je 0x4725ca
cmp dword [ebp + 0x10], 1
jae 0x4725cf
jmp 0x4726ad
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 0x4725f1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4725f6
jmp 0x4726ad
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.0044ffdc
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x472631
mov dword [ebp - 4], 0xfffffffe
jmp 0x4726ad
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00451930
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 0x47268d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x47268d
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.004567b2
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4726ad
cmp dword [ebp - 0x20], 0
je 0x4726cc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00451709
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 0x472740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
call fcn.00401b84
movzx eax, al
test eax, eax
je 0x47276a
xor eax, eax
jmp 0x4729d2
mov word [ebp - 0x218], 0
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00451930
add esp, 0xc
push 0x48bcec
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.004279cd
cmp eax, 0xffffffff
je 0x4727db
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x48bd10
call fcn.00472570
add esp, 0xc
test eax, eax
jne 0x4727c1
xor eax, eax
jmp 0x4729d2
lea eax, [ebp - 0x218]
push eax
push 0x48bd34
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426cb8
jmp 0x4729c1
push 0x48bd58
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.004279cd
cmp eax, 0xffffffff
je 0x47282d
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x48bd6c
call fcn.00472570
add esp, 0xc
test eax, eax
jne 0x472813
xor eax, eax
jmp 0x4729d2
lea eax, [ebp - 0x218]
push eax
push 0x48bd80
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426cb8
jmp 0x4729c1
push 0x48bd94
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.004279cd
cmp eax, 0xffffffff
je 0x47287f
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x48bda4
call fcn.00472570
add esp, 0xc
test eax, eax
jne 0x472865
xor eax, eax
jmp 0x4729d2
lea eax, [ebp - 0x218]
push eax
push 0x48bdb4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426cb8
jmp 0x4729c1
push 0x48bdc4
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.004279cd
cmp eax, 0xffffffff
je 0x4728ca
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
ja 0x4728b0
xor eax, eax
jmp 0x4729d2
lea eax, [ebp - 0x218]
push eax
push 0x48bdd8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426cb8
jmp 0x4729c1
push 0x48bdec
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.004279cd
cmp eax, 0xffffffff
je 0x472915
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4728fb
xor eax, eax
jmp 0x4729d2
lea eax, [ebp - 0x218]
push eax
push 0x48be00
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426cb8
jmp 0x4729c1
push 0x48be14
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.004279cd
cmp eax, 0xffffffff
je 0x472977
push 0x20a
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.00451930
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 0x48be28
mov eax, dword [ebp + 8]
push eax
call fcn.00426cb8
jmp 0x4729c1
push 0x48be3c
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.004279cd
cmp eax, 0xffffffff
je 0x4729c1
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x48be58
call fcn.00472570
add esp, 0xc
test eax, eax
jne 0x4729ac
xor eax, eax
jmp 0x4729d2
lea edx, [ebp - 0x218]
push edx
push str._Systemroot_
mov eax, dword [ebp + 8]
push eax
call fcn.00426cb8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004726f0
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451a25
mov esp, ebp
pop ebp
ret
Function at 0x472ce0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4a5294]
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.00451930
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 0x472d36
jmp 0x472de3
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x472d5e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 1
jae 0x472de3
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.00451930
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004567b2
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x4a85c4]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.00459673
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472dde
mov byte [ebp - 1], 1
jmp 0x472de3
jmp 0x472d4f
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00451a25
mov esp, ebp
pop ebp
ret

Function at 0x472e00
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 0xd], 0
push 0x288
call fcn.00451a99
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x472e27
xor al, al
jmp 0x472f11
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 0x472e8a
mov edx, dword [ebp - 0x14]
push edx
call fcn.00451b5c
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00451a99
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x472e7a
xor al, al
jmp 0x472f11
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 0x472eee
cmp dword [ebp - 0x14], 0
je 0x472eee
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x190], 3
ja 0x472eb2
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x472e96
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x194]
cmp edx, 0x52
jne 0x472ee4
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x195]
cmp ecx, 0x54
jne 0x472ee4
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x196]
test eax, eax
jne 0x472ee4
mov byte [ebp - 0xd], 1
jmp 0x472eee
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x472e96
cmp dword [ebp - 8], 0
je 0x472f0e
mov eax, dword [ebp - 8]
push eax
call fcn.00451b5c
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 0x472f20
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 0x472f60
mov byte [ebp - 9], 0
jmp 0x472fdd
push 0x80
call fcn.00451a99
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 0x472fa9
mov byte [ebp - 9], 0
jmp 0x472fc1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00431f00
add esp, 8
test eax, eax
je 0x472fc1
mov byte [ebp - 9], 1
cmp dword [ebp - 0x18], 0
je 0x472fd3
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00451b5c
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 0x4730c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4a5294]
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.00451930
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 0x473116
jmp 0x4731c3
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x47313e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 5
jae 0x4731c3
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.00451930
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004567b2
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x4a859c]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.00459673
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4731be
mov byte [ebp - 1], 1
jmp 0x4731c3
jmp 0x47312f
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00451a25
mov esp, ebp
pop ebp
ret
Function at 0x4731e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x23d], 0
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.00451930
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x47324a
jmp 0x473299
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x473299
lea eax, [ebp - 0x214]
push eax
push str.vmusrvc.exe
call fcn.0045189f
add esp, 8
test eax, eax
jne 0x473282
mov byte [ebp - 0x23d], 1
jmp 0x473299
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x473261
cmp dword [ebp - 0x23c], 0
je 0x4732b9
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x23c], 0
mov al, byte [ebp - 0x23d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451a25
mov esp, ebp
pop ebp
ret