joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473a00
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x5c98e8
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call fcn.0045ecd0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x473a5d
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x473a7b
cmp esi, ebx
je 0x473a7b
cmp esi, 0x8000
ja 0x473a7b
cmp esi, ebx
jb 0x473a74
push 0x5c98e8
push 0x2d
push esi
push edi
call fcn.0045ecd0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x473a20
push 0x5c98e8
push 0x2f
push ebp
call fcn.0045eb60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x5c98e8
push 0x3a
push edi
call fcn.0045eb60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d3a65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x648ce4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x4d3a8a
xor eax, eax
jmp 0x4d3ae6
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4d3ab7
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x4d3ab7
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x4d3b6b
cmp dword [edi + 0x4c], 0
je 0x4d3ae0
mov ecx, edi
call fcn.004d3930
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4d3af6
push dword [edi + 0x4c]
push ebx
call fcn.004d335d
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x4d3ae5
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d4b64
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x5c03e4]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x4d3ae0
cmp eax, 1
jle 0x4d3b3e
cmp eax, 3
jne 0x4d3ae0
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4d3ad2
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4d3b5b
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004e0f56
add esp, 0x10
cmp esi, eax
jne 0x4d3ae0
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x4d3ae0
mov ax, bx
jmp 0x4d3ae5

Function at 0x4f0cb5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f0978

Function at 0x4f0cc0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f0af9

Function at 0x4f59d9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f5699

Function at 0x56cb60
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x56cb74
mov dword [esp + 0x18], fcn.0056b340
jmp fcn.005646a0
mov dword [esp + 0x18], fcn.0056a5e0
jmp fcn.005643a0
Function at 0x406b1c
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.00408e5c
test esi, esi
jne 0x406b52
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.00408fe4
jmp 0x406b70
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a00
mov edi, eax
test esi, esi
je 0x406b70
cmp dword [ebx], 0
je 0x406b70
dec esi
jmp 0x406b59
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x407b88
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.00407f6c
mov byte [esp], al
cmp byte [esp], 0
jne 0x407d12
test edi, edi
je 0x407d12
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407c52
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407c2d
cmp edi, 0xffffffff
je 0x407bed
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407bed
mov byte [esp], 0
jmp 0x407d12
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407c2d
test ebx, ebx
jne 0x407c1f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407c1f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407d12
lea eax, [esp + 0xc]
call fcn.00407868
dec ebp
test ebp, ebp
jg 0x407bd2
cmp edi, 0xffffffff
je 0x407c52
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407c50
mov byte [esp], 0
jmp 0x407d12
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407b96
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407c52
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407d80
mov edx, eax
mov ebx, dword [0x67b8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407cb6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407cb4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407cb6
xor edi, edi
cmp byte [esp], 0
je 0x407cdc
mov ebx, dword [esi]
test bl, 1
jne 0x407cf2
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407cbc
mov byte [esp + 1], 1
jmp 0x407cf2
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407cdc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407c69
cmp byte [esp], 0
je 0x407d12
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 0x408af8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x67b05c], 0
je 0x408b5f
cmp word [0x67b348], 0xd7b2
jne 0x408b21
cmp dword [0x67b350], 0
jbe 0x408b21
mov eax, 0x67b344
call dword [0x67b360]
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, 0x408b8c
call fcn.004098a4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x660034], 0
jne 0x408b7b
push 0
push 0x6609ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408d1c
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 [0x660038], 0
je 0x408d47
mov edx, edi
mov eax, esi
call dword [0x660038]
mov ebx, eax
jmp 0x408d58
mov eax, 8
call fcn.0040673c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x67b05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408ce4
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 0x408d88
mov eax, ebx
call fcn.00406758
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40ba10
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 0x40bb75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408e5c
cmp si, word [0x660a08]
jb 0x40baa8
cmp si, word [0x660c08]
ja 0x40baa8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40baa8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x660a08]
jae 0x40ba82
mov edi, ebx
dec edi
jmp 0x40baa3
cmp si, word [ebx*8 + 0x660a08]
jbe 0x40ba92
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40baa3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x660a0c]
call fcn.0040b930
jmp 0x40baa8
cmp edi, dword [ebp - 8]
jae 0x40ba6c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bb57
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bb57
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.00409d0c
push dword [ebp - 0x160]
push 0x40bb90
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409d0c
push dword [ebp - 0x164]
push 0x40bba0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d0c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409f44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb7c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408ebc
ret
Function at 0x40bd28
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 0x40be2c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x67db8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x67dba4]
jne 0x40bd74
mov eax, esi
mov edx, 0x67dba6
mov ecx, 0x55
call fcn.00409d0c
push 0x67db8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40be16
push 0x67db8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408e5c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bde3
cmp byte [0x67db88], 0
je 0x40bda8
mov edx, esi
mov eax, ebx
call fcn.0040bc0c
jmp 0x40bde3
mov edx, esi
mov eax, ebx
call fcn.0040ba10
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bde3
cmp dword [esi], 0
je 0x40bdcc
mov eax, esi
mov edx, 0x40be44
call fcn.00409e64
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ba10
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409e64
push 0x67db8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x67dba4], bx
mov eax, dword [esi]
call fcn.00409c50
mov ecx, eax
mov eax, 0x67dba6
mov edx, 0xaa
call fcn.0040b890
push 0x67db8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be33
lea eax, [ebp - 4]
call fcn.00408e5c
ret
Function at 0x40c05c
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.00408f40
xor eax, eax
push ebp
push 0x40c281
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c09c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c0b6
mov eax, dword [ebp - 4]
call fcn.00409c50
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b890
cmp word [ebp - 0x21a], 0
je 0x40c26b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c290
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c185
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c290
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c185
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c185
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c185
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c300
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c185
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c334
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c26b
xor eax, eax
push ebp
push 0x40c264
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be6c
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 0x40c1f4
mov eax, dword [ebp - 0x10]
call fcn.0040673c
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.00409cb8
jmp 0x40c23f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c374
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c23f
mov eax, dword [ebp - 0x10]
call fcn.0040673c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c374
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409cb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c26b
cmp dword [ebp - 8], 0
je 0x40c25a
mov eax, dword [ebp - 8]
call fcn.00406758
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 0x40c288
lea eax, [ebp - 4]
call fcn.00408e5c
ret
Function at 0x40c570
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.00408f40
xor eax, eax
push ebp
push 0x40c630
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.00409d0c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409ebc
mov eax, dword [ebx]
call fcn.0040c438
test al, al
jne 0x40c60d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d0c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409ebc
mov eax, dword [ebx]
call fcn.0040c438
test al, al
jne 0x40c60d
mov eax, ebx
call fcn.00408e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c637
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408ebc
lea eax, [ebp - 4]
call fcn.00408e5c
ret

Function at 0x41efe8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41f041
test eax, edx
je 0x41f044
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41efff
movzx eax, word [eax]
sub eax, ecx
jmp 0x41f026
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 0x41f027
add ecx, 4
js 0x41f017
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41f024
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41f026
xor eax, eax
ret
test eax, eax
je 0x41f050
test edx, edx
jne 0x41eff0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4201f0
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 0x42021d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4202f0
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.00409c50
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42035a
test ah, 4
je 0x420353
test bl, bl
jne 0x420318
mov al, 1
jmp 0x420381
test al, 0x10
je 0x420320
xor eax, eax
jmp 0x420381
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420344
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x420381
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x420381
test al, 0x10
sete al
jmp 0x420381
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x42037b
cmp ebx, 3
je 0x42037b
cmp ebx, 0x7b
je 0x42037b
mov eax, esi
call fcn.004202b0
test al, al
jne 0x42037f
xor eax, eax
jmp 0x420381
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x420388
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.00409c50
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42042f
test esi, 0x400
jne 0x4203c4
test esi, 0x10
setne bl
jmp 0x42045f
cmp byte [esp], 0
je 0x4203f8
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42045f
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x42045f
test esi, 0x10
je 0x420404
mov bl, 1
jmp 0x42045f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42042b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x42045f
mov bl, 1
jmp 0x42045f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x420459
cmp eax, 3
je 0x420459
cmp eax, 0xa1
je 0x420459
cmp eax, 0x7b
je 0x420459
cmp eax, 0x35
je 0x420459
cmp eax, 0x15
je 0x420459
cmp eax, 0x43
jne 0x42045d
xor ebx, ebx
jmp 0x42045f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420698
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.00409c50
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4206ed
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4206e7
test ah, 4
je 0x4206e7
test al, 0x10
je 0x4206e7
mov eax, esi
call fcn.00409c50
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4206ed
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x425a44
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 0x425a7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408fe4
jmp 0x425a86
mov eax, ebx
mov edx, esi
call fcn.0040923c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x426a54
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 0x426b79
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042685c
mov esi, eax
mov eax, dword [0x67a6c0]
cmp byte [eax], 0
je 0x426b21
mov eax, dword [0x67a2b8]
call fcn.00406d30
call fcn.004068b0
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 [0x426a24]
call fcn.0040b1e4
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 0x426b94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x426b5d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x67a214]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x67dc54]
call fcn.0040b530
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 0x426b80
lea eax, [ebp - 4]
mov edx, dword [0x426a24]
call fcn.0040b308
ret
Function at 0x4277fc
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 0x4278d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409284
lea eax, [ebp - 4]
call fcn.00409424
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409c50
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4278bc
mov eax, ebx
call fcn.0040673c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4278b5
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.00409c50
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42789f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4278e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42789f
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 0x4278bc
mov eax, dword [ebp - 0x10]
call fcn.00406758
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4278d9
lea eax, [ebp - 4]
call fcn.00408e5c
ret