joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407830
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0xff
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
call fcn.00407a9f
add esp, 4
mov dword [ebp - 8], eax
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x400
call fcn.00407a9f
mov ebx, dword [ebp - 8]
add esp, 4
mov esi, eax
push edi
nop dword [eax]
push 0xff
call fcn.00407a9f
mov edi, eax
mov ecx, 0xf
mov edx, edi
call fcn.00407550
push dword [ebp - 0xc]
push edi
push ebx
push str._s_s._s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00407a5c
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4078b2
test al, 0x10
je 0x407870
mov ebx, dword [ebp - 0x10]
mov ecx, esi
mov byte [ebp - 1], 0
pop edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4078c0
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, dword [ebp + 8]
ja 0x4078e8
sub ebx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ebx + esi - 1], al
test al, al
jne 0x4078d3
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4081ea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408229
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408229
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408229
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408229
cmp dword [ecx + 0x74], 0xe
jbe 0x408229
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41103d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c5b4
push 0x41c5ac
push str.FlsAlloc
push 0x1e
call fcn.00410f5b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411071
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a1a8]
call esi
jmp 0x411077
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4110bb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c5c4
push 0x41c5bc
push str.FlsGetValue
push 0x20
call fcn.00410f5b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4110f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a1a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x412cd0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x412d6d
push ebx
push esi
call fcn.00412c99
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00410c22
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x412d1a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412d6c
push edi
push eax
call fcn.0040efac
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x412d3a
call fcn.0040ef72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412d6b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00410c22
add esp, 0x20
test eax, eax
jne 0x412d59
push edi
call fcn.0040ef72
jmp 0x412d61
push ebx
call fcn.0040ef72
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x419610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41963d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41963d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
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.00409cb8
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.00409e40
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 0x408950
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.00408ddc
mov byte [esp], al
cmp byte [esp], 0
jne 0x408ad9
test edi, edi
je 0x408ad9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408a19
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089f4
cmp edi, 0xffffffff
je 0x4089b5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089b5
mov byte [esp], 0
jmp 0x408ad9
cmp dword [esi], 1
jg 0x4089f4
cmp dword [esi], 0
jne 0x4089e6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089e6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408ad9
lea eax, [esp + 0xc]
call fcn.0040860c
dec ebp
test ebp, ebp
jg 0x40899a
cmp edi, 0xffffffff
je 0x408a19
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408a17
mov byte [esp], 0
jmp 0x408ad9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40895e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a19
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b48
mov edx, eax
mov ebx, dword [0x6048fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a7b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a7d
xor edi, edi
cmp byte [esp], 0
je 0x408aa3
mov ebx, dword [esi]
test bl, 1
jne 0x408ab9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a83
mov byte [esp + 1], 1
jmp 0x408ab9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408aa3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a30
cmp byte [esp], 0
je 0x408ad9
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 0x409950
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60405c], 0
je 0x4099b7
cmp word [0x604348], 0xd7b2
jne 0x409979
cmp dword [0x604350], 0
jbe 0x409979
mov eax, 0x604344
call dword [0x604360]
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, 0x4099e4
call fcn.0040a490
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5fe032], 0
jne 0x4099d3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b78
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 [0x5fe034], 0
je 0x409ba3
mov edx, edi
mov eax, esi
call dword [0x5fe034]
mov ebx, eax
jmp 0x409bb4
mov eax, 8
call fcn.00406e70
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x60405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b40
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 0x409be4
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 0x40c88c
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 0x40c9f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409cb8
cmp si, word [0x5fea00]
jb 0x40c924
cmp si, word [0x5fec00]
ja 0x40c924
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c924
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5fea00]
jae 0x40c8fe
mov edi, ebx
dec edi
jmp 0x40c91f
cmp si, word [ebx*8 + 0x5fea00]
jbe 0x40c90e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c91f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5fea04]
call fcn.0040c7ac
jmp 0x40c924
cmp edi, dword [ebp - 8]
jae 0x40c8e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c9d3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c9d3
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.0040a830
push dword [ebp - 0x160]
push 0x40ca0c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a830
push dword [ebp - 0x164]
push 0x40ca1c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a830
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aa68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9f8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d18
ret
Function at 0x40cba4
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 0x40cca8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x606c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x606c2c]
jne 0x40cbf0
mov eax, esi
mov edx, 0x606c2e
mov ecx, 0x55
call fcn.0040a830
push 0x606c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc92
push 0x606c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409cb8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc5f
cmp byte [0x606c10], 0
je 0x40cc24
mov edx, esi
mov eax, ebx
call fcn.0040ca88
jmp 0x40cc5f
mov edx, esi
mov eax, ebx
call fcn.0040c88c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc5f
cmp dword [esi], 0
je 0x40cc48
mov eax, esi
mov edx, 0x40ccc0
call fcn.0040a988
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c88c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a988
push 0x606c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x606c2c], bx
mov eax, dword [esi]
call fcn.0040a78c
mov ecx, eax
mov eax, 0x606c2e
mov edx, 0xaa
call fcn.0040c70c
push 0x606c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccaf
lea eax, [ebp - 4]
call fcn.00409cb8
ret
Function at 0x40ced8
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.00409d9c
xor eax, eax
push ebp
push 0x40d0fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cf18
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cf32
mov eax, dword [ebp - 4]
call fcn.0040a78c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c70c
cmp word [ebp - 0x21a], 0
je 0x40d0e7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d10c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d10c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d148
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d148
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d17c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d001
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d0e7
xor eax, eax
push ebp
push 0x40d0e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cce8
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 0x40d070
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.0040a7f4
jmp 0x40d0bb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d1f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d0bb
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 0x40d1f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a7f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0e7
cmp dword [ebp - 8], 0
je 0x40d0d6
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 0x40d104
lea eax, [ebp - 4]
call fcn.00409cb8
ret
Function at 0x40d3ec
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.00409d9c
xor eax, eax
push ebp
push 0x40d4ac
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.0040a830
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a9e0
mov eax, dword [ebx]
call fcn.0040d2b4
test al, al
jne 0x40d489
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a830
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a9e0
mov eax, dword [ebx]
call fcn.0040d2b4
test al, al
jne 0x40d489
mov eax, ebx
call fcn.00409cb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4b3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409d18
lea eax, [ebp - 4]
call fcn.00409cb8
ret

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

Disassembly:
cmp eax, edx
je 0x4225a1
test eax, edx
je 0x4225a4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42255f
movzx eax, word [eax]
sub eax, ecx
jmp 0x422586
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 0x422587
add ecx, 4
js 0x422577
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422584
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422586
xor eax, eax
ret
test eax, eax
je 0x4225b0
test edx, edx
jne 0x422550
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Function at 0x42398c
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.0040a78c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x423a33
test esi, 0x400
jne 0x4239c8
test esi, 0x10
setne bl
jmp 0x423a63
cmp byte [esp], 0
je 0x4239fc
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423a63
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x423a63
test esi, 0x10
je 0x423a08
mov bl, 1
jmp 0x423a63
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423a2f
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x423a63
mov bl, 1
jmp 0x423a63
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x423a5d
cmp eax, 3
je 0x423a5d
cmp eax, 0xa1
je 0x423a5d
cmp eax, 0x7b
je 0x423a5d
cmp eax, 0x35
je 0x423a5d
cmp eax, 0x15
je 0x423a5d
cmp eax, 0x43
jne 0x423a61
xor ebx, ebx
jmp 0x423a63
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427784
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 0x4277bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409e40
jmp 0x4277c6
mov eax, ebx
mov edx, esi
call fcn.0040a098
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4277d0
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 0x4277f2
movzx eax, word [esp]
jmp 0x4277f4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x428af0
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 0x428c15
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004288f8
mov esi, eax
mov eax, dword [0x60333c]
cmp byte [eax], 0
je 0x428bbd
mov eax, dword [0x602ff8]
call fcn.004077a4
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 [0x428ac0]
call fcn.0040bf90
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 0x428c30
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428bf9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x602f6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x607634]
call fcn.0040c3b0
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 0x428c1c
lea eax, [ebp - 4]
mov edx, dword [0x428ac0]
call fcn.0040c0b4
ret
Function at 0x429cd4
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 0x429daa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a0e0
lea eax, [ebp - 4]
call fcn.0040a1fc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a78c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x429d94
mov eax, ebx
call fcn.00406e70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x429d8d
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.0040a78c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x429d77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429dbc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x429d77
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 0x429d94
mov eax, dword [ebp - 0x10]
call fcn.00406e8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429db1
lea eax, [ebp - 4]
call fcn.00409cb8
ret

Function at 0x429dc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x429ec0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a0e0
lea eax, [ebp - 4]
call fcn.0040a1fc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a78c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x429eaa
mov eax, ebx
call fcn.00406e70
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x429ea3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a78c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x429e8d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429ed4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x429e8d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429eaa
mov eax, dword [ebp - 0x10]
call fcn.00406e8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429ec7
lea eax, [ebp - 4]
call fcn.00409cb8
ret