joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x401120
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push str._ACDELTREE_BF493F10_9A20_44E3_987D_F32EBC0562BC
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x401162
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x7c], 3
mov ecx, 0x614
mov word [ebp - 0x70], cx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0x1c4]
mov ecx, dword [eax + edx]
push ecx
push 0x208
lea edx, [ebp - 0x54]
push edx
call section..text
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0x208
jae 0x4011b8
jmp 0x4011bd
call fcn.0040131b
xor eax, eax
mov ecx, dword [ebp - 0x5c]
mov word [ebp + ecx - 0x54], ax
lea edx, [ebp - 0x54]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x60], eax
xor eax, eax
mov ecx, dword [ebp + 0x1b4]
xor ecx, ebp
call fcn.004013f5
add ebp, 0x1b8
mov esp, ebp
pop ebp
ret

Function at 0x406220
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00405ece
Function at 0x4071f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409cfc
test esi, esi
jne 0x407226
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.00409e84
jmp 0x407244
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407134
mov edi, eax
test esi, esi
je 0x407244
cmp dword [ebx], 0
je 0x407244
dec esi
jmp 0x40722d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408914
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408da0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a9d
test edi, edi
je 0x408a9d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089b8
cmp edi, 0xffffffff
je 0x408979
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408979
mov byte [esp], 0
jmp 0x408a9d
cmp dword [esi], 1
jg 0x4089b8
cmp dword [esi], 0
jne 0x4089aa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089aa
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a9d
lea eax, [esp + 0xc]
call fcn.004085d0
dec ebp
test ebp, ebp
jg 0x40895e
cmp edi, 0xffffffff
je 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089db
mov byte [esp], 0
jmp 0x408a9d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408922
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b0c
mov edx, eax
mov ebx, dword [0x6588fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a41
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a3f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a41
xor edi, edi
cmp byte [esp], 0
je 0x408a67
mov ebx, dword [esi]
test bl, 1
jne 0x408a7d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a47
mov byte [esp + 1], 1
jmp 0x408a7d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a67
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4089f4
cmp byte [esp], 0
je 0x408a9d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4096e0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x65ab9c
cmp dword [ebp + 0xc], 2
jl 0x4096f4
mov ebx, 0x65abcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40972c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405130
mov dword [0x65801c], eax
mov eax, 0x405138
mov dword [0x658020], eax
mov eax, ebx
call fcn.004095c4
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409761
cmp al, 3
jge 0x409761
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409772
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40977d
call dword [ecx + eax*4]
cmp dword [0x658040], 0
jne 0x409793
mov byte [0x658048], 1
fnstcw word [0x652028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409a2c
call fcn.00409674
ret 4

Function at 0x409994
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65805c], 0
je 0x4099fb
cmp word [0x658348], 0xd7b2
jne 0x4099bd
cmp dword [0x658350], 0
jbe 0x4099bd
mov eax, 0x658344
call dword [0x658360]
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
mov eax, 0x409a28
call fcn.0040a4fc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x652032], 0
jne 0x409a17
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409bbc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x652034], 0
je 0x409be7
mov edx, edi
mov eax, esi
call dword [0x652034]
mov ebx, eax
jmp 0x409bf8
mov eax, 8
call fcn.00406e70
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x65805d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b84
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409c28
mov eax, ebx
call fcn.00406e8c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c9ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40cb51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409cfc
cmp si, word [0x652a00]
jb 0x40ca84
cmp si, word [0x652c00]
ja 0x40ca84
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ca84
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x652a00]
jae 0x40ca5e
mov edi, ebx
dec edi
jmp 0x40ca7f
cmp si, word [ebx*8 + 0x652a00]
jbe 0x40ca6e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ca7f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x652a04]
call fcn.0040c90c
jmp 0x40ca84
cmp edi, dword [ebp - 8]
jae 0x40ca48
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40cb33
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cb33
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a910
push dword [ebp - 0x160]
push 0x40cb6c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a910
push dword [ebp - 0x164]
push 0x40cb7c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a910
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ab48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb58
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d5c
ret
Function at 0x40cd04
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 0x40ce08
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x65ac14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x65ac2c]
jne 0x40cd50
mov eax, esi
mov edx, 0x65ac2e
mov ecx, 0x55
call fcn.0040a910
push 0x65ac14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cdf2
push 0x65ac14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409cfc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cdbf
cmp byte [0x65ac10], 0
je 0x40cd84
mov edx, esi
mov eax, ebx
call fcn.0040cbe8
jmp 0x40cdbf
mov edx, esi
mov eax, ebx
call fcn.0040c9ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cdbf
cmp dword [esi], 0
je 0x40cda8
mov eax, esi
mov edx, 0x40ce20
call fcn.0040aa68
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c9ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aa68
push 0x65ac14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x65ac2c], bx
mov eax, dword [esi]
call fcn.0040a86c
mov ecx, eax
mov eax, 0x65ac2e
mov edx, 0xaa
call fcn.0040c86c
push 0x65ac14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce0f
lea eax, [ebp - 4]
call fcn.00409cfc
ret
Function at 0x40d038
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.00409de0
xor eax, eax
push ebp
push 0x40d25d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d078
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d092
mov eax, dword [ebp - 4]
call fcn.0040a86c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c86c
cmp word [ebp - 0x21a], 0
je 0x40d247
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d26c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d161
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d26c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d161
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d2a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d161
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d2a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d161
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d2dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d161
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d247
xor eax, eax
push ebp
push 0x40d240
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040ce48
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 0x40d1d0
mov eax, dword [ebp - 0x10]
call fcn.00406e70
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.0040a8d4
jmp 0x40d21b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d350
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d21b
mov eax, dword [ebp - 0x10]
call fcn.00406e70
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d350
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a8d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d247
cmp dword [ebp - 8], 0
je 0x40d236
mov eax, dword [ebp - 8]
call fcn.00406e8c
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 0x40d264
lea eax, [ebp - 4]
call fcn.00409cfc
ret
Function at 0x40d54c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409de0
xor eax, eax
push ebp
push 0x40d60c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a910
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aac0
mov eax, dword [ebx]
call fcn.0040d414
test al, al
jne 0x40d5e9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a910
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aac0
mov eax, dword [ebx]
call fcn.0040d414
test al, al
jne 0x40d5e9
mov eax, ebx
call fcn.00409cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d613
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409d5c
lea eax, [ebp - 4]
call fcn.00409cfc
ret

Function at 0x40f33c
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 0x422404
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42245d
test eax, edx
je 0x422460
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42241b
movzx eax, word [eax]
sub eax, ecx
jmp 0x422442
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 0x422443
add ecx, 4
js 0x422433
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422440
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422442
xor eax, eax
ret
test eax, eax
je 0x42246c
test edx, edx
jne 0x42240c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x423818
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x423845
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a86c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x423982
test ah, 4
je 0x42397b
test bl, bl
jne 0x423940
mov al, 1
jmp 0x4239a9
test al, 0x10
je 0x423948
xor eax, eax
jmp 0x4239a9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42396c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4239a9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4239a9
test al, 0x10
sete al
jmp 0x4239a9
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4239a3
cmp ebx, 3
je 0x4239a3
cmp ebx, 0x7b
je 0x4239a3
mov eax, esi
call fcn.004238d8
test al, al
jne 0x4239a7
xor eax, eax
jmp 0x4239a9
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4239b0
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.0040a86c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x423a57
test esi, 0x400
jne 0x4239ec
test esi, 0x10
setne bl
jmp 0x423a87
cmp byte [esp], 0
je 0x423a20
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423a87
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x423a87
test esi, 0x10
je 0x423a2c
mov bl, 1
jmp 0x423a87
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423a53
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x423a87
mov bl, 1
jmp 0x423a87
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x423a81
cmp eax, 3
je 0x423a81
cmp eax, 0xa1
je 0x423a81
cmp eax, 0x7b
je 0x423a81
cmp eax, 0x35
je 0x423a81
cmp eax, 0x15
je 0x423a81
cmp eax, 0x43
jne 0x423a85
xor ebx, ebx
jmp 0x423a87
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4277d4
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
test eax, eax
jle 0x42780d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409e84
jmp 0x427816
mov eax, ebx
mov edx, esi
call fcn.0040a0dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427820
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
test eax, eax
jle 0x427842
movzx eax, word [esp]
jmp 0x427844
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428b40
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 0x428c65
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428948
mov esi, eax
mov eax, dword [0x657784]
cmp byte [eax], 0
je 0x428c0d
mov eax, dword [0x6573e4]
call fcn.00407768
call fcn.00406fe4
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x428b10]
call fcn.0040c0f0
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x428c80
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428c49
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x657350]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x65b634]
call fcn.0040c510
push eax
call sub.user32.dll_LoadStringW
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 0x428c6c
lea eax, [ebp - 4]
mov edx, dword [0x428b10]
call fcn.0040c214
ret

Function at 0x429d24
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 0x429dfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a124
lea eax, [ebp - 4]
call fcn.0040a240
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a86c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x429de4
mov eax, ebx
call fcn.00406e70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x429ddd
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.0040a86c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x429dc7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429e0c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x429dc7
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 0x429de4
mov eax, dword [ebp - 0x10]
call fcn.00406e8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429e01
lea eax, [ebp - 4]
call fcn.00409cfc
ret