joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ffc
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x426dc8], 0x55004e
mov dword [0x426dcc], 0x4c
mov edi, 0x400
mov ebp, 0x426dc8
je 0x406052
push 1
push 0
push esi
call fcn.00405ea2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406171
cmp eax, edi
jg 0x406171
mov esi, 0x4275c8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406171
cmp eax, edi
jg 0x406171
push esi
push ebp
push 0x40a5a0
push 0x4269c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a254]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004063d2
push 4
push 0xc0000000
push esi
call fcn.00405ea2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406171
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40616a
push edi
push esi
push ebp
call fcn.00405f25
test eax, eax
je 0x40616a
push 0x40a594
push esi
call fcn.00405e07
test eax, eax
jne 0x406108
lea eax, [esi + edi]
push 0x40a594
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40613d
add eax, 0xa
push 0x40a590
push eax
call fcn.00405e07
mov ebp, eax
test ebp, ebp
je 0x406139
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40612a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406124
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40613f
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269c8
push eax
call fcn.00405e5d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405f54
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406176
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406199
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ffc
pop ecx
pop ecx
inc dword [0x42a2f0]
ret 8
Function at 0x40671a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40673e
xor eax, eax
test eax, eax
je 0x406751
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406751
xor ecx, ecx
jmp 0x406754
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push 0x40a5c0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4045f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406bf8
test esi, esi
jne 0x404630
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406d34
jmp 0x40464e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044dc
mov edi, eax
test esi, esi
je 0x40464e
cmp dword [ebx], 0
je 0x40464e
dec esi
jmp 0x404637
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x530008], 0x8088405
inc edx
mov dword [ebx + 0x530008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405eac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x534054], 0
je 0x405f0d
cmp word [0x534330], 0xd7b2
jne 0x405ed5
cmp dword [0x534338], 0
jbe 0x405ed5
mov eax, 0x53432c
call dword [0x534348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405f38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x530030], 0
jne 0x405f29
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406098
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x530034], 0
je 0x4060be
mov edx, esi
mov eax, ebx
call dword [0x530034]
jmp 0x4060cd
mov eax, 8
call fcn.004041ec
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x534055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406060
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408bc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408d2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406bf8
cmp si, word [0x5307dc]
jb 0x408c62
cmp si, word [0x5309dc]
ja 0x408c62
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408c62
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5307dc]
jae 0x408c3c
mov edi, ebx
dec edi
jmp 0x408c5d
cmp si, word [ebx*8 + 0x5307dc]
jbe 0x408c4c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408c5d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5307e0]
call fcn.00408ad8
jmp 0x408c62
cmp edi, dword [ebp - 0xc]
jae 0x408c26
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408d11
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d11
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406de0
push dword [ebp - 0x164]
push 0x408d4c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406de0
push dword [ebp - 0x168]
push 0x408d5c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406de0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d36
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406bf0
ret
Function at 0x408ee8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408fed
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x536b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x536b74]
jne 0x408f34
mov eax, esi
mov edx, 0x536b78
mov ecx, 0x55
call fcn.00406de0
push 0x536b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408fd7
push 0x536b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406bf8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408fa5
cmp byte [0x536b58], 0
je 0x408f6a
mov edx, esi
mov eax, ebx
call fcn.00408dc8
jmp 0x408fa5
mov edx, esi
mov eax, ebx
call fcn.00408bc8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408fa5
cmp dword [esi], 0
je 0x408f8e
mov eax, esi
mov edx, 0x409008
call fcn.00406ff4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408bc8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406ff4
push 0x536b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x536b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406c84
push eax
push 0x536b78
call sub.kernel32.dll_lstrcpynW
push 0x536b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ff4
lea eax, [ebp - 4]
call fcn.00406be8
ret
Function at 0x40922c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406be0
xor eax, eax
push ebp
push 0x409411
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40926c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409286
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406c84
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4093fb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409420
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409315
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409420
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409315
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409454
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409315
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409488
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4093fb
xor eax, eax
push ebp
push 0x4093f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409030
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409384
mov eax, dword [ebp - 0x10]
call fcn.004041ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406da4
jmp 0x4093cf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4094c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4093cf
mov eax, dword [ebp - 0x10]
call fcn.004041ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4094c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093fb
cmp dword [ebp - 8], 0
je 0x4093ea
mov eax, dword [ebp - 8]
call fcn.00404208
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409418
lea eax, [ebp - 4]
call fcn.00406be8
ret
Function at 0x4096dc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406be0
mov eax, dword [ebp - 0x21c]
call fcn.00406be0
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40987b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406bf8
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406c84
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x40977c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40978e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409779
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409847
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x4097b7
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.0040922c
cmp dword [ebp - 0x220], 0
je 0x4097ef
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004095d0
pop ecx
mov ebx, eax
jmp 0x409847
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408ee8
mov eax, dword [ebp - 0x224]
call fcn.004095d0
pop ecx
mov ebx, eax
test bl, bl
jne 0x40983a
cmp byte [0x536b58], 0
jne 0x40983a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408ee8
mov eax, dword [ebp - 0x228]
call fcn.004095d0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409847
push ebp
call fcn.00409680
pop ecx
mov ebx, eax
test bl, bl
je 0x40985d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406de0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409882
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406bf0
ret

Function at 0x409ff4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40d858
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x536c58
push 0xa
push 0x40d8ec
mov eax, dword [0x536c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d87c
call fcn.0041a3fc
push ebx
mov eax, dword [0x536c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d893
call fcn.0041a3fc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d8a5
call fcn.0041a3fc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x536c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x536c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x536c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x536c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x536c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x536c70], edx
pop esi
pop ebx
ret

Function at 0x412528
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4125d1
test eax, edx
je 0x4125d4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412551
push edx
mov edx, eax
mov eax, esp
call fcn.00406dfc
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412567
push eax
lea eax, [esp + 8]
call fcn.00406dfc
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412576
movzx eax, word [eax]
sub eax, ecx
jmp 0x41259d
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4125b7
add ecx, 4
js 0x41258e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4125b4
push eax
mov eax, ecx
mov edx, 2
call fcn.00406138
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41259b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41259d
xor eax, eax
ret
test eax, eax
je 0x4125e4
test edx, edx
jne 0x412538
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406c84
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413b56
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413b77
cmp ebx, 3
je 0x413b77
cmp ebx, 0x7b
je 0x413b77
mov eax, esi
call fcn.00413af8
test al, al
jne 0x413b7b
xor eax, eax
jmp 0x413b7d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406c84
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413b99
test al, 0x10
jne 0x413b9d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x413ba4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406c84
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x413bc6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4174e0
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 0x417519
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406d34
jmp 0x417522
mov eax, ebx
mov edx, esi
call fcn.00406bf8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41752c
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 0x41754e
movzx eax, word [esp]
jmp 0x417550
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417ce0
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 0x417e05
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417af0
mov esi, eax
mov eax, dword [0x533058]
cmp byte [eax], 0
je 0x417dad
mov eax, dword [0x532da0]
call fcn.00404748
call fcn.00404354
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 [0x417cb8]
call fcn.004085c4
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 0x417e20
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417de9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x532d2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x536c40]
call fcn.004086b8
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 0x417e0c
lea eax, [ebp - 4]
mov edx, dword [0x417cb8]
call fcn.004085d0
ret
Function at 0x418fbc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419092
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406c4c
lea eax, [ebp - 4]
call fcn.004075e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406c84
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41907c
mov eax, ebx
call fcn.004041ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x419075
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406c84
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41905f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4190a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41905f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41907c
mov eax, dword [ebp - 0x10]
call fcn.00404208
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419099
lea eax, [ebp - 4]
call fcn.00406be8
ret

Function at 0x41a2a4
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.0040646c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41a24e
mov eax, edi
add eax, eax
call fcn.004041ec
mov esi, eax
jmp 0x41a250
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41a289
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 0x41a273
mov eax, esp
cmp esi, eax
je 0x41a296
mov eax, esi
call fcn.00404208
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 0x41a2d0
cmp bl, 0
je 0x41a2cc
cmp bl, 0x41
jl 0x41a2c7
cmp bl, 0x5a
jg 0x41a2c7
or bl, 0x20
xor al, bl
inc esi
jmp 0x41a2ab
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41a210