joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f30d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40f3a8
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40f35b
jmp 0x40f3a0
push 0x414845
push dword [ebp + 0x10]
call fcn.00401df8
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401e4c
mov dword [ebp - 0x810], eax
push 0
push dword [ebp - 0x810]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f178
push dword [ebp - 0x810]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40f330
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc

Function at 0x40f3ac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40f452
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x7ff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
je 0x40f3fe
jmp 0x40f44a
push 0x414845
push dword [ebp + 0x10]
call fcn.00401df8
mov edx, eax
lea eax, [ebp - 0x80c]
push eax
push edx
call fcn.00401e4c
push dword [ebp + 0x14]
push eax
call fcn.00401e4c
mov dword [ebp - 0x810], eax
push dword [ebp - 0x810]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f30d
push dword [ebp - 0x810]
call fcn.004018b8
inc dword [ebp - 8]
jmp 0x40f3d3
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 0x10

Function at 0x40f984
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push edi
push ebp
mov ebp, esp
pop ebp
push 0x40f999
clc
jb 0x40f998
ret
inc edi
inc ebp
cld
add byte [eax], al
add byte [eax], al
mov edi, 0x417215
push dword [ebp + 8]
pop dword [0x4173a1]
mov eax, dword fs:[0x30]
cmp byte [eax + 2], 0
je 0x40f9c2
push dword [ebp + 8]
call fcn.00401021
jmp 0x40fa7f
call fcn.0040240a
push dword [ebp + 8]
call fcn.00401522
mov dword [0x41739d], eax
push dword fs:[0]
mov eax, esp
push dword fs:[0]
push ebp
push eax
push 0x40fa75
push 0x40fa2e
push eax
mov dword fs:[0], esp
push dword [ebp + 8]
call dword [edi]
cmp dword [edi], 0x4045fd
je 0x40fa29
cmp eax, 0x10
je 0x40fa18
mov dword [ebp - 4], 1
jmp 0x40fa29
push dword [0x41739d]
push dword [0x4173a1]
call fcn.004012dc
add esp, 0x18
jmp 0x40fa75
pop dword fs:[0]
add edi, 4
cmp dword [edi], 0
jne 0x40f9c7
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x410065
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebp
mov ebp, esp
pop ebp
push 0x410079
clc
jb 0x410078
ret
dec dword [ebx - 0x6f36742e]
push 0x105
call fcn.004018cf
nop
mov edx, edx
mov ecx, ecx
nop
mov dword [ebp - 0x14], eax
nop
call sub.KERNEL32.DLL_GetTickCount
push eax
push str._d.bat
push dword [ebp - 0x14]
call sub.user32.dll_wsprintfA
add esp, 0xc
push 0x105
call fcn.004018cf
nop
mov edx, edx
mov ecx, ecx
nop
mov dword [ebp - 4], eax
mov edx, edx
mov ecx, ecx
nop
push 0x105
call fcn.004018cf
nop
mov edx, edx
mov ecx, ecx
mov dword [ebp - 0x10], eax
nop
push 0x105
call fcn.004018cf
mov edx, edx
mov ecx, ecx
nop
mov edx, edx
mov ecx, ecx
mov dword [ebp - 8], eax
mov ecx, ecx
mov edx, edx
mov edx, edx
mov ecx, ecx
nop
push 0x104
push dword [ebp - 4]
push dword [0x4173ca]
call sub.KERNEL32.DLL_GetModuleFileNameA
nop
mov edx, edx
mov ecx, ecx
mov edx, edx
mov ecx, ecx
push dword [ebp - 0x10]
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
or eax, eax
je 0x41012f
mov ecx, ecx
mov edx, edx
nop
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_lstrcatA
mov edx, edx
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CreateFileA
mov ecx, ecx
mov dword [ebp - 0xc], eax
mov ecx, ecx
inc eax
or eax, eax
jne 0x410196
push dword [ebp - 4]
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_lstrcpyA
push 0x5c
push 0
push dword [ebp - 0x10]
call sub.shlwapi.dll_StrRChrIA
or eax, eax
je 0x410179
inc eax
push dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
inc eax
je 0x410201
push str._r_n_t_t_r_n_r_n_t___:ktk____r_n_r_n_r_n_____del_____t__1___r_n_tif___t_t_exist__t____1___t__goto__t_r_ktk_r_n_del__t___0
call sub.KERNEL32.DLL_lstrlenA
push eax
push str._r_n_t_t_r_n_r_n_t___:ktk____r_n_r_n_r_n_____del_____t__1___r_n_tif___t_t_exist__t____1___t__goto__t_r_ktk_r_n_del__t___0
push dword [ebp - 0xc]
call fcn.00401422
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
pop eax
or eax, eax
jne 0x4101be
jmp 0x410201
push dword [ebp - 4]
push str.________s_
push dword [ebp - 8]
call sub.user32.dll_wsprintfA
add esp, 0xc
push 0x417461
call sub.KERNEL32.DLL_LoadLibraryA
or eax, eax
je 0x410201
push 0x4173f4
push eax
call sub.KERNEL32.DLL_GetProcAddress
or eax, eax
je 0x410201
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x10]
push str.open
push 0
call eax
push dword [ebp - 0x14]
call fcn.004018b8
push dword [ebp - 4]
call fcn.004018b8
push dword [ebp - 0x10]
call fcn.004018b8
push dword [ebp - 8]
call fcn.004018b8
leave
ret
Function at 0x41032d
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push edi
push ebp
mov ebp, esp
pop ebp
push 0x410343
clc
jb 0x410342
ret
inc dword [ebx + 0x414b2b3d]
add byte [eax], al
je 0x410355
cmp dword [0x414b37], 0
jne 0x41035b
sub eax, eax
pop edi
pop ebx
leave
ret
mov ebx, dword [0x4173a5]
jmp 0x4104f7
call fcn.00402bca
cmp dword [0x4173a9], 0
je 0x41038b
push dword [ebx + 4]
push dword [0x4173a9]
call sub.KERNEL32.DLL_lstrcmpiA
or eax, eax
jne 0x41038b
jmp 0x4104f5
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push dword [ebx + 4]
push 0
push dword [ebx + 4]
call dword [0x414b37]
or eax, eax
je 0x4103b1
jmp 0x41043a
push dword [ebx + 4]
call fcn.00402a1d
mov dword [ebp - 8], eax
push dword [ebx + 4]
call sub.KERNEL32.DLL_lstrlenA
push eax
push dword [ebp - 8]
push eax
push dword [ebx + 4]
push 0x100
push 0x400
call sub.KERNEL32.DLL_LCMapStringA
or eax, eax
je 0x41040a
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push dword [ebp - 8]
push 0
push dword [ebx + 4]
call dword [0x414b37]
or eax, eax
je 0x41040a
push dword [ebp - 8]
call fcn.004018b8
jmp 0x41043a
push dword [ebp - 8]
call fcn.004018b8
mov edi, str.123456
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push edi
push 0
push dword [ebx + 4]
call dword [0x414b37]
or eax, eax
je 0x4104e3
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], 1
push dword [ebx + 4]
pop dword [ebp - 0x20]
push dword [ebx + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call sub.userenv.dll_LoadUserProfileA
or eax, eax
je 0x410498
cmp dword [ebp - 0xc], 0
je 0x41048f
push dword [ebp - 0xc]
pop dword [0x414869]
mov dword [ebp - 0x2c], 1
jmp 0x41049f
mov dword [ebp - 0x2c], 0
push dword [ebp - 4]
call dword [0x414b2b]
or eax, eax
je 0x4104ca
call fcn.0040fd60
cmp dword [0x414b23], 0
je 0x4104c0
call dword [0x414b23]
mov dword [0x414869], 0x80000001
cmp dword [ebp - 0x2c], 0
je 0x4104db
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.userenv.dll_UnloadUserProfile
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
cld
xor eax, eax
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp byte [edi], al
jne 0x410417
mov ebx, dword [ebx]
or ebx, ebx
jne 0x410366
mov eax, 1
pop edi
pop ebx
leave
ret
Function at 0x411f00
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
xor ebx, ebx
movzx esi, byte [ebx + str.80_]
mov eax, esi
sar eax, 3
movzx eax, byte [eax + edx]
mov ecx, esi
and ecx, 7
movzx ecx, word [ecx + ecx + 0x417608]
test eax, ecx
setne cl
movzx eax, cl
mov byte [ebp + ebx - 0x38], al
inc ebx
cmp ebx, 0x38
jl 0x411f11
xor edx, edx
cmp word [ebp + 0xc], 1
jne 0x411f53
mov eax, edx
neg eax
lea ecx, [eax + eax + 0x1e]
jmp 0x411f56
lea ecx, [edx + edx]
lea edi, [ecx + 1]
and dword [ebp + edi*4 - 0xf0], 0
and dword [ebp + ecx*4 - 0xf0], 0
xor ebx, ebx
movzx eax, byte [edx + 0x4176b0]
lea esi, [eax + ebx]
cmp esi, 0x1c
jge 0x411f84
mov al, byte [ebp + esi - 0x38]
mov byte [ebp + ebx - 0x70], al
jmp 0x411f8c
mov al, byte [ebp + esi - 0x54]
mov byte [ebp + ebx - 0x70], al
inc ebx
cmp ebx, 0x1c
jl 0x411f6b
mov ebx, 0x1c
movzx eax, byte [edx + 0x4176b0]
lea esi, [eax + ebx]
cmp esi, 0x38
jge 0x411fb0
mov al, byte [ebp + esi - 0x38]
mov byte [ebp + ebx - 0x70], al
jmp 0x411fb8
mov al, byte [ebp + esi - 0x54]
mov byte [ebp + ebx - 0x70], al
inc ebx
cmp ebx, 0x38
jl 0x411f97
xor ebx, ebx
movzx eax, byte [ebx + 0x4176c0]
cmp byte [ebp + eax - 0x70], 0
je 0x411fdc
mov eax, dword [ebx*4 + 0x417618]
or dword [ebp + ecx*4 - 0xf0], eax
movzx eax, byte [ebx + 0x4176d8]
cmp byte [ebp + eax - 0x70], 0
je 0x411ff8
mov eax, dword [ebx*4 + 0x417618]
or dword [ebp + edi*4 - 0xf0], eax
inc ebx
cmp ebx, 0x18
jl 0x411fc0
inc edx
cmp edx, 0x10
jl 0x411f42
lea eax, [ebp - 0xf0]
push eax
call fcn.0041201d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4129f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
push eax
push ebx
push esi
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor ecx, ecx
mov al, byte [ecx + edx]
mov byte [ebp + ecx - 8], al
mov al, byte [ecx + edx]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, 8
jl 0x412a08
push ebx
push edx
call fcn.004124ce
xor edx, edx
lea ecx, [edx + ebx]
mov al, byte [edx + esi]
xor al, byte [ecx]
mov byte [ecx], al
inc edx
cmp edx, 8
jl 0x412a24
xor edx, edx
mov al, byte [ebp + edx - 8]
mov byte [edx + esi], al
inc edx
cmp edx, 8
jl 0x412a36
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x412590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4125aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4125b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4125a0
mov eax, 1
add ebx, ebx
jne 0x4125c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4125b8
jne 0x4125d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4125b8
xor ecx, ecx
sub eax, 3
jb 0x4125e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41265a
mov ebp, eax
add ebx, ebx
jne 0x4125f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412624
inc ecx
add ebx, ebx
jne 0x412610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412605
jne 0x412621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412605
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412644
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412635
jmp 0x4125a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412644
add edi, ecx
jmp 0x4125a6
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4126ac
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12708]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x127c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412661
mov ecx, edi
jns 0x412690
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x127cc]
or eax, eax
je 0x4126a6
mov dword [ebx], eax
add ebx, 4
jmp 0x41267e
call dword [esi + 0x127c8]
mov ebp, dword [esi + 0x127d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4126e0
sub esp, 0xffffff80
jmp 0x403ac6
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x7daa18ac
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x543f1b73
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x405c91
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 0x405ca8
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405cdd
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405cd9
cmp edi, eax
jae 0x405cdd
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405ccb
cmp edi, eax
jb 0x405ce1
xor eax, eax
jmp 0x405ceb
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405ee2
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 0x405f70
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 0x405f19
cmp dword [ebp - 8], 2
jne 0x405f6f
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405b5b
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405a5c
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 0x405f57
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 0x405f67
push eax
call fcn.0048b4d5
pop ecx
mov edx, esi
call fcn.00405a23
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4060c4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4a70f7
call fcn.004a5218
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405b9b
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40610f
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040592b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4060f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4060f0
lea ecx, [ebp - 0x10]
call fcn.00428261
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x406146
xor esi, esi
jmp 0x4060f3
push eax
call fcn.004060c4
test eax, eax
pop ecx
je 0x406142
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4060f0
call edi
cmp eax, ebx
jne 0x406142
jmp 0x4060f0
Function at 0x40836e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a8020
call fcn.004a5218
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.0048ac30
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x4083b9
xor eax, eax
jmp 0x40847d
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.0048ac30
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00408a69
test edi, edi
jle 0x40847a
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 0x408472
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405b9b
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.00408a0e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040592b
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405b9b
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00408a0e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040592b
add ebx, 8
dec dword [ebp - 0x10]
jne 0x4083ff
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 0x4084b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x408535
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x408535
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 0x408530
cmp dword [esi + 4], ebx
je 0x408530
cmp dword [esi + 8], ebx
je 0x408530
cmp dword [esi + 0xc], ebx
je 0x408530
cmp eax, ebx
je 0x408530
xor eax, eax
inc eax
jmp 0x408532
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x408664
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4a6dca
call fcn.004a5218
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.0048ac30
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00406319
push 0x4b6504
push eax
mov dword [ebp - 4], esi
call fcn.004054b1
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.0040592b
test bl, bl
je 0x40883a
mov ebx, str.___
push ebx
call fcn.0048b4d5
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.0048b4d5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406319
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.004054b1
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.0040592b
test bl, bl
je 0x408753
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.004062c9
mov dword [ebp - 4], 2
call fcn.00404ed3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x408809
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406319
push esi
push eax
mov dword [ebp - 4], 3
call fcn.004054b1
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.0040592b
test bl, bl
je 0x408811
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.004062c9
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405b9b
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00406355
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ed3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040592b
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040592b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040592b
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x408824
mov esi, edi
call fcn.00405b5b
jmp 0x408841
cmp ecx, 1
jge 0x408833
push 0x80070057
call fcn.00405a44
cmp word [eax + 2], 0x3a
jne 0x40881b
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 0x408853
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 0x40887d
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 0x409183
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x4091b1
push dword [esp + 0xc]
call fcn.0048b4d5
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 0x4091b1
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x4091cb
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 0x409254
push ebx
call fcn.00487915
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 0x409245
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b6504
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 0x409245
cmp dword [ebp - 0xc], ebx
je 0x409245
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 0x409254
push dword [ebp - 4]
call fcn.0048ac27
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x409324
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a6625
call fcn.004a5218
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4d6fec
mov dword [ebp - 0x10], edi
call fcn.00405bde
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.0048ac30
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.00405db6
push esi
call fcn.00409290
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret