joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x48e034
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea edi, [esi + 0x30]
push edi
call fcn.0047be9d
add esp, 4
test eax, eax
jne 0x48e0c5
lea eax, [esi + 0x14]
mov dword [esi + 0x28], 1
push eax
call fcn.0047be89
add esp, 4
test eax, eax
jne 0x48e0c5
lea eax, [esi + 0x18]
push eax
call fcn.0047be89
add esp, 4
test eax, eax
jne 0x48e0c5
lea eax, [esi + 0x1c]
push eax
call fcn.0047be89
add esp, 4
test eax, eax
jne 0x48e0c5
mov ebx, dword [ebp + 0x14]
lea eax, [esi + 0x20]
push ebx
push ebx
push eax
call fcn.0047bfa6
add esp, 0xc
test eax, eax
jne 0x48e0c5
push ebx
push eax
lea eax, [esi + 0x24]
push eax
call fcn.0047bfa6
add esp, 0xc
test eax, eax
jne 0x48e0c5
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
push dword [ebp + 0xc]
push eax
call fcn.0047c005
add esp, 0xc
test eax, eax
je 0x48e1bd
cmp dword [esi + 0x10], 0
mov ebx, edi
mov dword [ebp + 8], ebx
je 0x48e167
cmp dword [esi + 4], 0
mov eax, dword [esi + 0x48]
mov dword [ebp - 4], eax
jne 0x48e141
cmp dword [esi + 0x2c], 0
mov dword [esi + 0xc], 1
je 0x48e0fb
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x2c], 0
lea eax, [esi + 0x20]
push eax
call fcn.0047bfcf
push dword [esi + 0x1c]
call fcn.0047bf81
mov edi, dword [ebp - 4]
add esp, 8
cmp edi, dword [esi + 0x48]
je 0x48e13a
lea ebx, [esi + 0x20]
nop word [eax + eax]
push dword [esi + 0x24]
inc edi
call fcn.0047bf81
push ebx
call fcn.0047bfcf
add esp, 8
cmp edi, dword [esi + 0x48]
jne 0x48e120
mov ebx, dword [ebp + 8]
mov dword [esi + 4], 1
lea edi, [esi + 0x14]
mov dword [esi + 8], 1
push edi
call fcn.0047bf2d
push dword [esi + 0x10]
call fcn.0047bf81
lea eax, [esi + 0x10]
push eax
call fcn.0047bf5a
add esp, 0xc
jmp 0x48e16a
lea edi, [esi + 0x14]
cmp dword [esi + 0x28], 0
je 0x48e17e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi + 0x28], 0
push edi
call fcn.0047bf5a
lea eax, [esi + 0x18]
push eax
call fcn.0047bf5a
lea eax, [esi + 0x1c]
push eax
call fcn.0047bf5a
lea ecx, [esi + 0x20]
push ecx
call fcn.0047bf5a
lea ecx, [esi + 0x24]
push ecx
call fcn.0047bf5a
add esp, 0x14
mov dword [esi], 0
mov eax, 0xc
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov dword [esi], 1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48fd98
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4b95e5
Capabilities:
Read file on windows

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

Function at 0x4be4e4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004be1a4
Function at 0x406e50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406e92
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406eb2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040aad4
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4070a8
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.00409c0c
test esi, esi
jne 0x4070de
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.00409d94
jmp 0x4070fc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406fec
mov edi, eax
test esi, esi
je 0x4070fc
cmp dword [ebx], 0
je 0x4070fc
dec esi
jmp 0x4070e5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x816008], 0x8088405
inc edx
mov dword [ebx + 0x816008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x408818
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.00408c78
mov byte [esp], al
cmp byte [esp], 0
jne 0x4089a2
test edi, edi
je 0x4089a2
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4088e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4088bd
cmp edi, 0xffffffff
je 0x40887d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40887d
mov byte [esp], 0
jmp 0x4089a2
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4088bd
test ebx, ebx
jne 0x4088af
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4088af
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4089a2
lea eax, [esp + 0xc]
call fcn.004084f8
dec ebp
test ebp, ebp
jg 0x408862
cmp edi, 0xffffffff
je 0x4088e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088e0
mov byte [esp], 0
jmp 0x4089a2
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408826
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4088e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a10
mov edx, eax
mov ebx, dword [0x8288fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408946
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408944
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408946
xor edi, edi
cmp byte [esp], 0
je 0x40896c
mov ebx, dword [esi]
test bl, 1
jne 0x408982
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40894c
mov byte [esp + 1], 1
jmp 0x408982
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40896c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4088f9
cmp byte [esp], 0
je 0x4089a2
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 0x409860
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x82805c], 0
je 0x4098c7
cmp word [0x828348], 0xd7b2
jne 0x409889
cmp dword [0x828350], 0
jbe 0x409889
mov eax, 0x828344
call dword [0x828360]
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, 0x4098f4
call fcn.0040a4f4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x816032], 0
jne 0x4098e3
push 0
push 0x8169c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409acc
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 [0x816034], 0
je 0x409af7
mov edx, edi
mov eax, esi
call dword [0x816034]
mov ebx, eax
jmp 0x409b08
mov eax, 8
call fcn.00406c64
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x82805d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409a94
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 0x409b38
mov eax, ebx
call fcn.00406c80
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40cd1c
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 0x40ce81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c0c
cmp si, word [0x816a00]
jb 0x40cdb4
cmp si, word [0x816c00]
ja 0x40cdb4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40cdb4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x816a00]
jae 0x40cd8e
mov edi, ebx
dec edi
jmp 0x40cdaf
cmp si, word [ebx*8 + 0x816a00]
jbe 0x40cd9e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40cdaf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x816a04]
call fcn.0040cc3c
jmp 0x40cdb4
cmp edi, dword [ebp - 8]
jae 0x40cd78
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ce63
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ce63
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.0040aad4
push dword [ebp - 0x160]
push 0x40ce9c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aad4
push dword [ebp - 0x164]
push 0x40ceac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aad4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce88
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409c6c
ret
Function at 0x40d034
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 0x40d138
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x82ab8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x82aba4]
jne 0x40d080
mov eax, esi
mov edx, 0x82aba6
mov ecx, 0x55
call fcn.0040aad4
push 0x82ab8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d122
push 0x82ab8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c0c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d0ef
cmp byte [0x82ab88], 0
je 0x40d0b4
mov edx, esi
mov eax, ebx
call fcn.0040cf18
jmp 0x40d0ef
mov edx, esi
mov eax, ebx
call fcn.0040cd1c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d0ef
cmp dword [esi], 0
je 0x40d0d8
mov eax, esi
mov edx, 0x40d150
call fcn.0040ac2c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040cd1c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ac2c
push 0x82ab8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x82aba4], bx
mov eax, dword [esi]
call fcn.0040aa30
mov ecx, eax
mov eax, 0x82aba6
mov edx, 0xaa
call fcn.0040cb9c
push 0x82ab8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d13f
lea eax, [ebp - 4]
call fcn.00409c0c
ret
Function at 0x40d368
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.00409cf0
xor eax, eax
push ebp
push 0x40d58d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d3a8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d3c2
mov eax, dword [ebp - 4]
call fcn.0040aa30
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cb9c
cmp word [ebp - 0x21a], 0
je 0x40d577
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d59c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d491
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d59c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d491
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d5d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d491
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d5d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d491
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d60c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d491
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d640
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d577
xor eax, eax
push ebp
push 0x40d570
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d178
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 0x40d500
mov eax, dword [ebp - 0x10]
call fcn.00406c64
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.0040aa98
jmp 0x40d54b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d680
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d54b
mov eax, dword [ebp - 0x10]
call fcn.00406c64
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d680
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040aa98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d577
cmp dword [ebp - 8], 0
je 0x40d566
mov eax, dword [ebp - 8]
call fcn.00406c80
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 0x40d594
lea eax, [ebp - 4]
call fcn.00409c0c
ret
Function at 0x40d87c
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.00409cf0
xor eax, eax
push ebp
push 0x40d93c
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.0040aad4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac84
mov eax, dword [ebx]
call fcn.0040d744
test al, al
jne 0x40d919
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aad4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ac84
mov eax, dword [ebx]
call fcn.0040d744
test al, al
jne 0x40d919
mov eax, ebx
call fcn.00409c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d943
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409c6c
lea eax, [ebp - 4]
call fcn.00409c0c
ret
Function at 0x42376c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4237c5
test eax, edx
je 0x4237c8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x423783
movzx eax, word [eax]
sub eax, ecx
jmp 0x4237aa
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 0x4237ab
add ecx, 4
js 0x42379b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4237a8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4237aa
xor eax, eax
ret
test eax, eax
je 0x4237d4
test edx, edx
jne 0x423774
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x424c4c
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 0x424c79
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x424d4c
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.0040aa30
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x424db6
test ah, 4
je 0x424daf
test bl, bl
jne 0x424d74
mov al, 1
jmp 0x424ddd
test al, 0x10
je 0x424d7c
xor eax, eax
jmp 0x424ddd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x424da0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x424ddd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x424ddd
test al, 0x10
sete al
jmp 0x424ddd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x424dd7
cmp ebx, 3
je 0x424dd7
cmp ebx, 0x7b
je 0x424dd7
mov eax, esi
call fcn.00424d0c
test al, al
jne 0x424ddb
xor eax, eax
jmp 0x424ddd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x424de4
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.0040aa30
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x424e8b
test esi, 0x400
jne 0x424e20
test esi, 0x10
setne bl
jmp 0x424ebb
cmp byte [esp], 0
je 0x424e54
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x424ebb
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x424ebb
test esi, 0x10
je 0x424e60
mov bl, 1
jmp 0x424ebb
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x424e87
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x424ebb
mov bl, 1
jmp 0x424ebb
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x424eb5
cmp eax, 3
je 0x424eb5
cmp eax, 0xa1
je 0x424eb5
cmp eax, 0x7b
je 0x424eb5
cmp eax, 0x35
je 0x424eb5
cmp eax, 0x15
je 0x424eb5
cmp eax, 0x43
jne 0x424eb9
xor ebx, ebx
jmp 0x424ebb
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x429598
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 0x4295d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409d94
jmp 0x4295da
mov eax, ebx
mov edx, esi
call fcn.00409fec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4295e4
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 0x429606
movzx eax, word [esp]
jmp 0x429608
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42a900
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 0x42aa25
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042a708
mov esi, eax
mov eax, dword [0x826c90]
cmp byte [eax], 0
je 0x42a9cd
mov eax, dword [0x8265e0]
call fcn.00407748
call fcn.00406e20
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 [0x42a8d0]
call fcn.0040c2e0
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 0x42aa40
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x42aa09
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x8264dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x82ac54]
call fcn.0040c83c
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 0x42aa2c
lea eax, [ebp - 4]
mov edx, dword [0x42a8d0]
call fcn.0040c404
ret

Function at 0x42badc
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 0x42bbb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a034
lea eax, [ebp - 4]
call fcn.0040a1d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa30
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42bb9c
mov eax, ebx
call fcn.00406c64
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42bb95
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.0040aa30
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42bb7f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42bbc4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42bb7f
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 0x42bb9c
mov eax, dword [ebp - 0x10]
call fcn.00406c80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bbb9
lea eax, [ebp - 4]
call fcn.00409c0c
ret