joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e728
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41e7fb
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407594
cmp byte [ebp - 9], 0
je 0x41e7b9
mov eax, ebx
call fcn.00407e4c
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x41e7b9
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0041ce90
test al, al
je 0x41e7b9
mov eax, dword [ebp - 8]
call fcn.0041ed7c
test al, al
je 0x41e7ae
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0041eafc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00426030
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.004080a8
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407594
push edi
mov eax, dword [ebp - 4]
call fcn.00407e4c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x41e7d3
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e802
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004071cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004071cc
ret

Function at 0x41e924
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.00407e4c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41e979
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e973
test ah, 4
je 0x41e973
test al, 0x10
je 0x41e973
mov eax, esi
call fcn.00407e4c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41e979
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x423ca0
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 0x423cd9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004072f4
jmp 0x423ce2
mov eax, ebx
mov edx, esi
call fcn.0040754c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423cec
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 0x423d0e
movzx eax, word [esp]
jmp 0x423d10
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4249e4
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 0x424b09
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004247ec
mov esi, eax
mov eax, dword [0x5c19e8]
cmp byte [eax], 0
je 0x424ab1
mov eax, dword [0x5c121c]
call fcn.00404efc
call fcn.00404a50
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 [0x4249b4]
call fcn.004090b4
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 0x424b24
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x424aed
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5c10f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5c4c50]
call fcn.00409178
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 0x424b10
lea eax, [ebp - 4]
mov edx, dword [0x4249b4]
call fcn.004090c0
ret

Function at 0x426758
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.00407668
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ae28
mov edi, eax
cmp edi, 0x104
jbe 0x4266ff
mov eax, edi
add eax, eax
call fcn.0040488c
mov esi, eax
jmp 0x426701
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ae28
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42673c
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 0x426726
mov eax, esp
cmp esi, eax
je 0x426749
mov eax, esi
call fcn.004048a8
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 0x426784
cmp bl, 0
je 0x426780
cmp bl, 0x41
jl 0x42677b
cmp bl, 0x5a
jg 0x42677b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42675f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4266c0
Function at 0x4268ac
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 0x42691c
push ebx
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x426913
push eax
push ebx
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x426913
xor eax, eax
push ebp
push 0x42690c
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 0x426913
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 0x426ac4
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 0x426c10
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040716c
mov byte [ebp - 9], 1
mov dl, 1
mov eax, ebx
call fcn.0040a374
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x426b63
push ebx
call sub.kernel32.dll_GetModuleHandleW_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x426b1e
push 2
push 0
push ebx
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 4], eax
jmp 0x426b22
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
jne 0x426b63
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0xa
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x20]
call fcn.00423c04
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 [0x5c1258]
mov dl, 1
mov eax, dword [0x41a9fc]
call fcn.00424d58
call fcn.004067c8
xor edx, edx
push ebp
push 0x426bf3
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xa
push 0x426c20
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x426bd6
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 0x426bd6
xor eax, eax
push ebp
push 0x426bcf
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.00407ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426bd6
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 0x426bfa
cmp byte [ebp - 9], 0
je 0x426bf2
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret

Function at 0x4272f0
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.00407ef8
add esp, 0x800
pop ebx
ret
Function at 0x4277a0
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.0040716c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00407e4c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4277e5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004072f4
jmp 0x4277fe
mov edx, ebx
dec edx
mov eax, esi
call fcn.00407fd0
push ebx
mov eax, dword [esi]
call fcn.00407e4c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x44ee30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44eece
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44ee92
cmp byte [ebx + 0x10], 0
jne 0x44ee92
cmp byte [ebx + 0x3c], 0
jne 0x44ee92
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 0x44eeb3
lea edx, [ebp - 4]
mov eax, dword [0x5c18d8]
call fcn.0040ad94
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43d2e0]
call fcn.00424b54
call fcn.004067c8
jmp 0x44eeb3
lea edx, [ebp - 8]
mov eax, dword [0x5c18d8]
call fcn.0040ad94
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43d2e0]
call fcn.00424b54
call fcn.004067c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44eed5
lea eax, [ebp - 8]
mov edx, 2
call fcn.004071cc
ret

Function at 0x44f7d0
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 0x44f81e
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.0044ed68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44f837
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44f840
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.0044ed68
dec esi
jne 0x44f862
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x454694
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4546e6
test eax, edx
je 0x4546e9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4546a9
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 0x4546cf
add ecx, 4
js 0x4546bf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4546cc
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 0x4546f5
test edx, edx
jne 0x45469c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x46f27c
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 0x46f2e7
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.00407ef8
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0041ddf0
mov word [ebp - 6], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f2ee
lea eax, [ebp - 0x18]
call fcn.0040716c
ret

Function at 0x471a48
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x471a5a
add esp, 0xfffffff0
call fcn.00405a54
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.0040542c
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp + 8]
call fcn.0040754c
mov eax, dword [ebp + 8]
call fcn.00407e4c
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 0x471ab9
mov ecx, dword [0x5c1b44]
mov dl, 1
mov eax, dword [0x471530]
call fcn.00467388
call fcn.004067c8
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 0x471ae4
call fcn.00405aac
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x474698
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x4746aa
add esp, 0xfffffff0
call fcn.00405a54
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.0040542c
movzx edx, word [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.0041e1ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0xffffffff
jne 0x4746dd
call fcn.00426c38
mov ax, word [ebp + 8]
and ax, 0xf
cmp ax, 2
jne 0x4746fb
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x14], 1
jmp 0x474709
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 0x47474f
mov eax, dword [ebp - 4]
call fcn.00474838
mov ecx, dword [0x5c156c]
mov dl, 1
mov eax, dword [0x47438c]
call fcn.00467388
call fcn.004067c8
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 0x47478d
mov eax, dword [ebp - 4]
call fcn.00474838
mov ecx, dword [0x5c1b90]
mov dl, 1
mov eax, dword [0x474444]
call fcn.00467388
call fcn.004067c8
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 0x4747cc
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
call fcn.00474838
mov ecx, dword [0x5c1934]
mov dl, 1
mov eax, dword [0x474444]
call fcn.00467388
call fcn.004067c8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004465d8
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4747f2
call fcn.00405aac
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x474a74
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 0x474aa6
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x474a9b
test byte [ebp - 0xc], 0x10
je 0x474a9f
xor eax, eax
jmp 0x474aa1
mov al, 1
mov byte [ebp - 5], al
jmp 0x474aaa
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x47516c
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 0x47522f
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.00407e4c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x475219
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00407fd0
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.00407e4c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x475219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x475240
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x475219
cmp dword [ebp - 0x14], 0x34
jne 0x475219
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 0x475236
lea eax, [ebp - 0x1c]
call fcn.0040716c
ret

Function at 0x4752b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x4752c2
add esp, 0xfffffff0
call fcn.00405a54
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00474a74
test al, al
jne 0x4752fe
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 [0x5c125c]
mov dl, 1
mov eax, dword [0x4734dc]
call fcn.00424d58
call fcn.004067c8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407e4c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x475335
mov ecx, dword [0x5c14e8]
mov dl, 1
mov eax, dword [0x4734dc]
call fcn.00424c88
call fcn.004067c8
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00407b68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00407b04
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407e4c
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.00426cdc
mov eax, dword [ebp - 4]
call fcn.00475ce8
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x47538c
call fcn.00405aac
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x47acf0
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 0x47ad94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.00407fd0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407e4c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407e4c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00407fd0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00407e4c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407e4c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x47ad7e
lea eax, [ebp - 0x10]
call fcn.0046fdf4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.0040754c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ad9b
lea eax, [ebp - 0x10]
call fcn.0040716c
ret

Function at 0x47addc
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 0x47adf6
xor edx, edx
mov dword [eax], edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407e4c
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407fd0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00407e4c
push eax
mov eax, dword [ebp - 4]
call fcn.00407e4c
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 0x47ae4e
mov eax, dword [ebp - 8]
call fcn.0040716c
jmp 0x47ae67
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407fd0
cmp byte [ebp - 9], 0
je 0x47ae67
mov eax, dword [ebp - 8]
call fcn.0047acf0
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x47ae70
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.0040716c
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47aeba
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407fd0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407e4c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW_1
mov eax, dword [ebp - 4]
call fcn.0046fdf4
pop ecx
pop ecx
pop ebp
ret
Function at 0x47aec0
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.00407fd0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407e4c
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x47aefd
mov eax, dword [ebp - 4]
call fcn.0046fdf4
jmp 0x47af05
mov eax, dword [ebp - 4]
call fcn.0040716c
pop ecx
pop ecx
pop ebp
ret

Function at 0x47b9cc
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 0x47ba2c
call sub.kernel32.dll_GetModuleHandleW_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47ba1b
push 0x47ba48
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040cb2c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47ba10
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x10]
mov byte [ebp - 5], 1
jmp 0x47ba24
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
jmp 0x47ba24
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret