joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003e46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1000e0e0
call fcn.1000d16f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x10003e9e
call fcn.10002819
mov esi, eax
jmp 0x10003fa8
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10003eb7
call fcn.10002819
jmp 0x10003f9a
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x10003ead
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x10003ef4
mov esi, 0x8007000e
jmp 0x10003f9c
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x10003f09
cmp eax, 0xffffffff
jbe 0x10003f13
push 0x80070216
call fcn.10001d2c
cmp eax, 0x400
jbe 0x10003f40
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10002d7d
jmp 0x10003f4c
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x10003eea
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x10003ead
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.10003ce6
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10003fc1
lea eax, [ebp - 0x418]
call fcn.10002d74
mov eax, esi
call fcn.1000d1cb
ret 0xc

Function at 0x10004309
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014020]
jne 0x10004313
repz ret
jmp fcn.1000673e
Function at 0x1000a46c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10014020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100074b2
and dword [ebp - 0x14], 0
cmp dword [0x10034774], 0
mov dword [ebp - 0x18], eax
jne 0x1000a51f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000a5c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000a5c7
mov esi, dword [0x10014b40]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10034774], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10034778], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1003477c], eax
call edi
push eax
call esi
mov dword [0x10034784], eax
test eax, eax
je 0x1000a51f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10034780], eax
mov eax, dword [0x10034780]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x10014b44]
cmp eax, ecx
je 0x1000a578
cmp dword [0x10034784], ecx
je 0x1000a578
push eax
call esi
push dword [0x10034784]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000a578
test ebx, ebx
je 0x1000a578
call edi
test eax, eax
je 0x1000a56f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000a56f
test byte [ebp - 8], 1
jne 0x1000a578
or dword [ebp + 0x10], 0x200000
jmp 0x1000a5ab
mov eax, dword [0x10034778]
cmp eax, dword [ebp - 0x18]
je 0x1000a5ab
push eax
call esi
test eax, eax
je 0x1000a5ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000a5ab
mov eax, dword [0x1003477c]
cmp eax, dword [ebp - 0x18]
je 0x1000a5ab
push eax
call esi
test eax, eax
je 0x1000a5ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10034774]
call esi
test eax, eax
je 0x1000a5c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000a5c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004309
leave
ret
Function at 0x406cc8
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.00408fc8
test esi, esi
jne 0x406cfe
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.00409150
jmp 0x406d1c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406c0c
mov edi, eax
test esi, esi
je 0x406d1c
cmp dword [ebx], 0
je 0x406d1c
dec esi
jmp 0x406d05
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407cf4
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.004080d8
mov byte [esp], al
cmp byte [esp], 0
jne 0x407e7e
test edi, edi
je 0x407e7e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407dbe
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407d99
cmp edi, 0xffffffff
je 0x407d59
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407d59
mov byte [esp], 0
jmp 0x407e7e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407d99
test ebx, ebx
jne 0x407d8b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407d8b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407e7e
lea eax, [esp + 0xc]
call fcn.004079d4
dec ebp
test ebp, ebp
jg 0x407d3e
cmp edi, 0xffffffff
je 0x407dbe
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407dbc
mov byte [esp], 0
jmp 0x407e7e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407d02
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407dbe
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407eec
mov edx, eax
mov ebx, dword [0x6988fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407e22
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407e20
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407e22
xor edi, edi
cmp byte [esp], 0
je 0x407e48
mov ebx, dword [esi]
test bl, 1
jne 0x407e5e
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407e28
mov byte [esp + 1], 1
jmp 0x407e5e
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407e48
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407dd5
cmp byte [esp], 0
je 0x407e7e
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 0x408c24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x69805c], 0
je 0x408c8b
cmp word [0x698348], 0xd7b2
jne 0x408c4d
cmp dword [0x698350], 0
jbe 0x408c4d
mov eax, 0x698344
call dword [0x698360]
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, 0x408cb8
call fcn.00409980
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x68e032], 0
jne 0x408ca7
push 0
push 0x68e9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408e88
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 [0x68e034], 0
je 0x408eb3
mov edx, edi
mov eax, esi
call dword [0x68e034]
mov ebx, eax
jmp 0x408ec4
mov eax, 8
call fcn.004068d8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x69805d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408e50
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 0x408ef4
mov eax, ebx
call fcn.004068f4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b850
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 0x40b9b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408fc8
cmp si, word [0x68ea00]
jb 0x40b8e8
cmp si, word [0x68ec00]
ja 0x40b8e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b8e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x68ea00]
jae 0x40b8c2
mov edi, ebx
dec edi
jmp 0x40b8e3
cmp si, word [ebx*8 + 0x68ea00]
jbe 0x40b8d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b8e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x68ea04]
call fcn.0040b770
jmp 0x40b8e8
cmp edi, dword [ebp - 8]
jae 0x40b8ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b997
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b997
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.00409d80
push dword [ebp - 0x160]
push 0x40b9d0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409d80
push dword [ebp - 0x164]
push 0x40b9e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409d80
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9bc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409028
ret
Function at 0x40bb68
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 0x40bc6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x69ab8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x69aba4]
jne 0x40bbb4
mov eax, esi
mov edx, 0x69aba6
mov ecx, 0x55
call fcn.00409d80
push 0x69ab8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bc56
push 0x69ab8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408fc8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc23
cmp byte [0x69ab88], 0
je 0x40bbe8
mov edx, esi
mov eax, ebx
call fcn.0040ba4c
jmp 0x40bc23
mov edx, esi
mov eax, ebx
call fcn.0040b850
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bc23
cmp dword [esi], 0
je 0x40bc0c
mov eax, esi
mov edx, 0x40bc84
call fcn.00409ed8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b850
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409ed8
push 0x69ab8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x69aba4], bx
mov eax, dword [esi]
call fcn.00409cc4
mov ecx, eax
mov eax, 0x69aba6
mov edx, 0xaa
call fcn.0040b6d0
push 0x69ab8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc73
lea eax, [ebp - 4]
call fcn.00408fc8
ret
Function at 0x40be9c
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.004090ac
xor eax, eax
push ebp
push 0x40c0c1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40bedc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40bef6
mov eax, dword [ebp - 4]
call fcn.00409cc4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b6d0
cmp word [ebp - 0x21a], 0
je 0x40c0ab
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c10c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c10c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c140
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfc5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c174
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c0ab
xor eax, eax
push ebp
push 0x40c0a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bcac
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 0x40c034
mov eax, dword [ebp - 0x10]
call fcn.004068d8
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.00409d2c
jmp 0x40c07f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c1b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c07f
mov eax, dword [ebp - 0x10]
call fcn.004068d8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c1b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409d2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0ab
cmp dword [ebp - 8], 0
je 0x40c09a
mov eax, dword [ebp - 8]
call fcn.004068f4
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 0x40c0c8
lea eax, [ebp - 4]
call fcn.00408fc8
ret
Function at 0x40c3b0
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.004090ac
xor eax, eax
push ebp
push 0x40c470
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.00409d80
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f30
mov eax, dword [ebx]
call fcn.0040c278
test al, al
jne 0x40c44d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409d80
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f30
mov eax, dword [ebx]
call fcn.0040c278
test al, al
jne 0x40c44d
mov eax, ebx
call fcn.00408fc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c477
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409028
lea eax, [ebp - 4]
call fcn.00408fc8
ret

Function at 0x421cc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421d21
test eax, edx
je 0x421d24
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421cdf
movzx eax, word [eax]
sub eax, ecx
jmp 0x421d06
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 0x421d07
add ecx, 4
js 0x421cf7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x421d04
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x421d06
xor eax, eax
ret
test eax, eax
je 0x421d30
test edx, edx
jne 0x421cd0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42304c
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 0x423079
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x42314c
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.00409cc4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4231b6
test ah, 4
je 0x4231af
test bl, bl
jne 0x423174
mov al, 1
jmp 0x4231dd
test al, 0x10
je 0x42317c
xor eax, eax
jmp 0x4231dd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4231a0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4231dd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4231dd
test al, 0x10
sete al
jmp 0x4231dd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4231d7
cmp ebx, 3
je 0x4231d7
cmp ebx, 0x7b
je 0x4231d7
mov eax, esi
call fcn.0042310c
test al, al
jne 0x4231db
xor eax, eax
jmp 0x4231dd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4231e4
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.00409cc4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42328b
test esi, 0x400
jne 0x423220
test esi, 0x10
setne bl
jmp 0x4232bb
cmp byte [esp], 0
je 0x423254
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x4232bb
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x4232bb
test esi, 0x10
je 0x423260
mov bl, 1
jmp 0x4232bb
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x423287
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x4232bb
mov bl, 1
jmp 0x4232bb
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4232b5
cmp eax, 3
je 0x4232b5
cmp eax, 0xa1
je 0x4232b5
cmp eax, 0x7b
je 0x4232b5
cmp eax, 0x35
je 0x4232b5
cmp eax, 0x15
je 0x4232b5
cmp eax, 0x43
jne 0x4232b9
xor ebx, ebx
jmp 0x4232bb
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4278e4
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 0x42791d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409150
jmp 0x427926
mov eax, ebx
mov edx, esi
call fcn.004093a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427930
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 0x427952
movzx eax, word [esp]
jmp 0x427954
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428914
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 0x428a39
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042871c
mov esi, eax
mov eax, dword [0x6979f0]
cmp byte [eax], 0
je 0x4289e1
mov eax, dword [0x697650]
call fcn.00406e9c
call fcn.00406abc
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 [0x4288e4]
call fcn.0040b164
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 0x428a54
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428a1d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6975d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x69ac54]
call fcn.0040b370
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 0x428a40
lea eax, [ebp - 4]
mov edx, dword [0x4288e4]
call fcn.0040b288
ret

Function at 0x429888
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 0x42995e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004093f0
lea eax, [ebp - 4]
call fcn.00409584
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409cc4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x429948
mov eax, ebx
call fcn.004068d8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x429941
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.00409cc4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42992b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429970
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42992b
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 0x429948
mov eax, dword [ebp - 0x10]
call fcn.004068f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429965
lea eax, [ebp - 4]
call fcn.00408fc8
ret
Function at 0x42ad1c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00408fc8
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00409cc4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42ad61
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00409150
jmp 0x42ad7a
mov edx, ebx
dec edx
mov eax, esi
call fcn.00409e58
push ebx
mov eax, dword [esi]
call fcn.00409cc4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret