joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100052c5
Capabilities:
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x101
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.1000534a
mov esi, eax
cmp byte [esi + 8], 0
je 0x10005320
push 0x89f52b39
push 0x45a9b135
push 0
push 8
mov ecx, esi
call fcn.100011f2
add esp, 0x10
mov byte [esi + 8], 0
lea eax, [ebp - 0x108]
cmp eax, esi
pop esi
jne 0x1000533e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007c2b
leave
ret

Function at 0x1000555a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10005581
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10005584
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10005536
pop esi
leave
ret 8

Function at 0x10006d47
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10006d68
jl 0x10006d5f
test edi, edi
jne 0x10006d68
xor eax, eax
xor edx, edx
jmp 0x10006e29
cmp dword [ebx + 0x38], 0
je 0x10006d7d
push eax
push edi
push dword [ebp + 8]
call fcn.10006e2f
jmp 0x10006e29
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10006dc4
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10006dc4
cmp eax, edi
jb 0x10006d9e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.100096b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x10006dca
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10006e1e
mov ecx, ebx
call fcn.100065de
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10006e09
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1000fd21
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10006e1e
jmp 0x10006ddc
test edx, edx
je 0x10006e1e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1000fd21
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x10014f89
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027eb8
push 0x10027eb0
push str.FlsAlloc
push 0x1e
call fcn.10014e53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014fbd
push dword [ebp + 8]
mov ecx, esi
call dword [0x100241b0]
call esi
jmp 0x10014fc3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015007
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027ec8
push 0x10027ec0
push str.FlsGetValue
push 0x20
call fcn.10014e53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001503e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100241b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10017f3a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017dab

Function at 0x10018334
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10008ca0
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10016586
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10018376
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100184d2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10022a50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1007fc50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1001932b
mov ecx, dword [esi*4 + 0x1007fc50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100184cb
cmp eax, dword [edi + ecx + 0x24]
jne 0x100184cb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100184cb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001932b
add esp, 0x14
test edx, edx
jl 0x100184cb
jg 0x10018441
test eax, eax
jb 0x100184cb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100184cb
jl 0x1001845b
cmp dword [ebp - 0x1008], eax
ja 0x100184cb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10018479
test ebx, ebx
je 0x100184b2
cmp ecx, edi
jae 0x100184b2
mov al, byte [ecx]
cmp al, 0xd
jne 0x10018493
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001849f
cmp byte [ecx + 1], 0xa
jne 0x1001849f
inc ecx
jmp 0x1001849f
movzx eax, al
movsx eax, byte [eax + 0x1007e318]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10018479
cmp edx, ebx
jne 0x10018479
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100184d0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10007c2b
leave
ret
Function at 0x100187c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1007fc50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018809
cmp byte [ebx], 0xa
jne 0x10018809
or byte [eax + edi + 0x28], 4
jmp 0x1001880e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1001890c
mov al, byte [edx]
cmp al, 0x1a
je 0x100188ee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1001883d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10018862
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1001886c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1001881f
jmp 0x1001890c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100188e9
cmp dword [ebp - 0xc], 0
je 0x100188e9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1007fc50]
test byte [eax + edi + 0x28], 0x48
je 0x100188c3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100188ae
mov byte [esi], dl
jmp 0x100188bf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1007fc50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001890c
cmp byte [ebp - 1], 0xa
jne 0x100188d2
cmp esi, ebx
jne 0x100188d2
mov byte [esi], 0xa
jmp 0x1001890b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10019349
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001890c
mov byte [esi], 0xd
jmp 0x1001890b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1007fc50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018908
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001890c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10018915
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1007fc50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018958
cmp word [esi], dx
jne 0x10018958
or byte [edi + eax + 0x28], 4
jmp 0x1001895d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10018ab0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10018a90
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1001899f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100189d5
cmp eax, edx
jae 0x100189e1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10018977
jmp 0x10018ab0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018a8c
cmp dword [ebp - 0x14], 0
je 0x10018a8c
mov eax, dword [ebx*4 + 0x1007fc50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10018a64
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10018a2d
mov word [esi], cx
jmp 0x10018a60
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1007fc50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1007fc50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1007fc50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10018ab0
pop ebx
cmp word [ebp - 4], bx
jne 0x10018a75
cmp esi, dword [ebp + 0xc]
jne 0x10018a75
mov word [esi], bx
jmp 0x10018aad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10019349
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10018ab0
push 0xd
jmp 0x10018aa9
mov ecx, dword [ebx*4 + 0x1007fc50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018aa7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018ab0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001b83f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001b8dc
push ebx
push esi
call fcn.1001b808
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001a74d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001b889
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b8db
push edi
push eax
call fcn.10015751
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001b8a9
call fcn.10014b78
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b8da
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001a74d
add esp, 0x20
test eax, eax
jne 0x1001b8c8
push edi
call fcn.10014b78
jmp 0x1001b8d0
push ebx
call fcn.10014b78
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10022850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002287d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002287d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405c34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405c4b
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405c80
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405c7c
cmp edi, eax
jae 0x405c80
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405c6e
cmp edi, eax
jb 0x405c84
xor eax, eax
jmp 0x405c8e
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405df1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x405e7f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x405e28
cmp dword [ebp - 8], 2
jne 0x405e7e
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405afe
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004059ff
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x405e66
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x405e76
push eax
call fcn.004eecb4
pop ecx
mov edx, esi
call fcn.004059bb
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x406da7
Capabilities:
Get disk information

Disassembly:
mov eax, 0x50e392
call fcn.0050b948
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.004ee340
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x406df2
xor eax, eax
jmp 0x406eb6
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.004ee340
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.0040748f
test edi, edi
jle 0x406eb3
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x406eab
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405b3e
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.00407434
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058c3
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405b3e
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00407434
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058c3
add ebx, 8
dec dword [ebp - 0x10]
jne 0x406e38
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x406eed
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x406f6e
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x406f6e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x406f69
cmp dword [esi + 4], ebx
je 0x406f69
cmp dword [esi + 8], ebx
je 0x406f69
cmp dword [esi + 0xc], ebx
je 0x406f69
cmp eax, ebx
je 0x406f69
xor eax, eax
inc eax
jmp 0x406f6b
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x40709d
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x50d55d
call fcn.0050b948
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.004ee340
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040608d
push 0x53b6ec
push eax
mov dword [ebp - 4], esi
call fcn.0040543a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.004058c3
test bl, bl
je 0x407273
mov ebx, 0x53b834
push ebx
call fcn.004eecb4
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.004eecb4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040608d
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040543a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.004058c3
test bl, bl
je 0x40718c
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.0040603d
mov dword [ebp - 4], 2
call fcn.00404ead
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x407242
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040608d
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040543a
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.004058c3
test bl, bl
je 0x40724a
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.0040603d
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405b3e
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004060c9
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ead
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004058c3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004058c3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004058c3
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x40725d
mov esi, edi
call fcn.00405afe
jmp 0x40727a
cmp ecx, 1
jge 0x40726c
push 0x80070057
call fcn.004059e7
cmp word [eax + 2], 0x3a
jne 0x407254
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40728c
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4072b6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x407c17
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x407c45
push dword [esp + 0xc]
call fcn.004eecb4
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407c45
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x407c5f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x407ce8
push ebx
call fcn.004eafbb
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407cd9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x53b6ec
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407cd9
cmp dword [ebp - 0xc], ebx
je 0x407cd9
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x407ce8
push dword [ebp - 4]
call fcn.004ee335
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x407d24
Capabilities:
Get common file path

Disassembly:
mov eax, 0x50d1f0
call fcn.0050b948
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x55ba6c
mov dword [ebp - 0x10], edi
call fcn.00405b81
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.004ee340
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00405d59
push esi
call fcn.00408df2
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret