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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00407b54
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41d63b
test esi, 0x400
jne 0x41d5d0
test esi, 0x10
setne bl
jmp 0x41d65a
cmp byte [esp], 0
je 0x41d604
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d65a
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41d65a
test esi, 0x10
je 0x41d610
mov bl, 1
jmp 0x41d65a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d637
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41d65a
mov bl, 1
jmp 0x41d65a
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41d654
cmp eax, 3
je 0x41d654
cmp eax, 0x7b
je 0x41d654
cmp eax, 0x35
jne 0x41d658
xor ebx, ebx
jmp 0x41d65a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d664
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00407b54
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41d6b9
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d6b3
test ah, 4
je 0x41d6b3
test al, 0x10
je 0x41d6b3
mov eax, esi
call fcn.00407b54
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41d6b9
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4226a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4226e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407164
jmp 0x4226ea
mov eax, ebx
mov edx, esi
call fcn.004073bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4226f4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x422716
movzx eax, word [esp]
jmp 0x422718
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4233ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x423511
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004231f4
mov esi, eax
mov eax, dword [0x556ab0]
cmp byte [eax], 0
je 0x4234b9
mov eax, dword [0x556364]
call fcn.00404dbc
call fcn.00404a30
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4233bc]
call fcn.00408d8c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42352c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4234f5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x556268]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x559c50]
call fcn.00408e50
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423518
lea eax, [ebp - 4]
mov edx, dword [0x4233bc]
call fcn.00408d98
ret

Function at 0x425110
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004074d8
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a9c0
mov edi, eax
cmp edi, 0x104
jbe 0x4250b7
mov eax, edi
add eax, eax
call fcn.0040486c
mov esi, eax
jmp 0x4250b9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a9c0
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4250f4
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4250de
mov eax, esp
cmp esi, eax
je 0x425101
mov eax, esi
call fcn.00404888
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42513c
cmp bl, 0
je 0x425138
cmp bl, 0x41
jl 0x425133
cmp bl, 0x5a
jg 0x425133
or bl, 0x20
xor al, bl
inc esi
jmp 0x425117
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x425078
Function at 0x425264
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0xa
push 0x4252d4
push ebx
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x4252cb
push eax
push ebx
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4252cb
xor eax, eax
push ebp
push 0x4252c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4252cb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
ret
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42547c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4255c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406ffc
mov byte [ebp - 9], 1
mov dl, 1
mov eax, ebx
call fcn.0040a04c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42551b
push ebx
call sub.kernel32.dll_GetModuleHandleW_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4254d6
push 2
push 0
push ebx
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 4], eax
jmp 0x4254da
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
jne 0x42551b
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0xa
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x20]
call fcn.0042260c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x55639c]
mov dl, 1
mov eax, dword [0x41a0b8]
call fcn.00423760
call fcn.00406658
xor edx, edx
push ebp
push 0x4255ab
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xa
push 0x4255d8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x42558e
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42558e
xor eax, eax
push ebp
push 0x425587
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
call fcn.00407bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42558e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4255b2
cmp byte [ebp - 9], 0
je 0x4255aa
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret

Function at 0x425ca8
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407c00
add esp, 0x800
pop ebx
ret
Function at 0x426158
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00406ffc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00407b54
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42619d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00407164
jmp 0x4261b6
mov edx, ebx
dec edx
mov eax, esi
call fcn.00407cd8
push ebx
mov eax, dword [esi]
call fcn.00407b54
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x44d7f8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44d896
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44d85a
cmp byte [ebx + 0x10], 0
jne 0x44d85a
cmp byte [ebx + 0x3c], 0
jne 0x44d85a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x44d87b
lea edx, [ebp - 4]
mov eax, dword [0x5569a0]
call fcn.0040a92c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43bca8]
call fcn.0042355c
call fcn.00406658
jmp 0x44d87b
lea edx, [ebp - 8]
mov eax, dword [0x5569a0]
call fcn.0040a92c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43bca8]
call fcn.0042355c
call fcn.00406658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d89d
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040705c
ret

Function at 0x44e198
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x44e1e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0044d730
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44e1ff
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44e208
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0044d730
dec esi
jne 0x44e22a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x452f68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x452fba
test eax, edx
je 0x452fbd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x452f7d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x452fa3
add ecx, 4
js 0x452f93
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x452fa0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x452fc9
test edx, edx
jne 0x452f70
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x46d11c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46d187
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0x14]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, 7
call fcn.00407c00
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0041cf6c
mov word [ebp - 6], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d18e
lea eax, [ebp - 0x18]
call fcn.00406ffc
ret

Function at 0x46f8e8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x46f8fa
add esp, 0xfffffff0
call fcn.004058e4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004052bc
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp + 8]
call fcn.004073bc
mov eax, dword [ebp + 8]
call fcn.00407b54
push eax
xor eax, eax
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateMutexW
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x46f959
mov ecx, dword [0x556bf0]
mov dl, 1
mov eax, dword [0x46f3d0]
call fcn.00465228
call fcn.00406658
call sub.kernel32.dll_GetLastError_2
cmp eax, 0xb7
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x46f984
call fcn.0040593c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x472538
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x47254a
add esp, 0xfffffff0
call fcn.004058e4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004052bc
movzx edx, word [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.0041d368
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0xffffffff
jne 0x47257d
call fcn.004255f0
mov ax, word [ebp + 8]
and ax, 0xf
cmp ax, 2
jne 0x47259b
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x14], 1
jmp 0x4725a9
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x14], 4
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4725ef
mov eax, dword [ebp - 4]
call fcn.004726d8
mov ecx, dword [0x556670]
mov dl, 1
mov eax, dword [0x47222c]
call fcn.00465228
call fcn.00406658
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47262d
mov eax, dword [ebp - 4]
call fcn.004726d8
mov ecx, dword [0x556c34]
mov dl, 1
mov eax, dword [0x4722e4]
call fcn.00465228
call fcn.00406658
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x47266c
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
call fcn.004726d8
mov ecx, dword [0x5569fc]
mov dl, 1
mov eax, dword [0x4722e4]
call fcn.00465228
call fcn.00406658
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00444fa0
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x472692
call fcn.0040593c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x472946
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x47293b
test byte [ebp - 0xc], 0x10
je 0x47293f
xor eax, eax
jmp 0x472941
mov al, 1
mov byte [ebp - 5], al
jmp 0x47294a
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x47300c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4730cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4730b9
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00407cd8
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4730b9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4730e0
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4730b9
cmp dword [ebp - 0x14], 0x34
jne 0x4730b9
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4730d6
lea eax, [ebp - 0x1c]
call fcn.00406ffc
ret

Function at 0x473150
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x473162
add esp, 0xfffffff0
call fcn.004058e4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00472914
test al, al
jne 0x47319e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x5563a0]
mov dl, 1
mov eax, dword [0x47137c]
call fcn.00423760
call fcn.00406658
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4731d5
mov ecx, dword [0x5565f0]
mov dl, 1
mov eax, dword [0x47137c]
call fcn.00423690
call fcn.00406658
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00407870
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00407858
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.00425694
mov eax, dword [ebp - 4]
call fcn.00473b88
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x47322c
call fcn.0040593c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x478b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x478c34
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.00407cd8
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407b54
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00407cd8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00407b54
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x478c1e
lea eax, [ebp - 0x10]
call fcn.0046dc94
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004073bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478c3b
lea eax, [ebp - 0x10]
call fcn.00406ffc
ret

Function at 0x478c7c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x478c96
xor edx, edx
mov dword [eax], edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407cd8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00407b54
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 0xa]
cmp byte [ebp - 0xa], 0
jne 0x478cee
mov eax, dword [ebp - 8]
call fcn.00406ffc
jmp 0x478d07
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407cd8
cmp byte [ebp - 9], 0
je 0x478d07
mov eax, dword [ebp - 8]
call fcn.00478b90
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x478d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ffc
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x478d5a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407cd8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, dword [ebp - 4]
call fcn.0046dc94
pop ecx
pop ecx
pop ebp
ret
Function at 0x478d60
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x101
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407cd8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x478d9d
mov eax, dword [ebp - 4]
call fcn.0046dc94
jmp 0x478da5
mov eax, dword [ebp - 4]
call fcn.00406ffc
pop ecx
pop ecx
pop ebp
ret

Function at 0x47986c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
push 0x4798cc
call sub.kernel32.dll_GetModuleHandleW_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4798bb
push 0x4798e8
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040c4f4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4798b0
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x10]
mov byte [ebp - 5], 1
jmp 0x4798c4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
jmp 0x4798c4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret