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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41d8c7
call fcn.00426be3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41d8c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41d8e3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d3fa
mov esi, eax
test edi, edi
je 0x41d8e1
test ebx, ebx
je 0x41d8e1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e7dd
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44d41b
call fcn.00439d63
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41e802
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41e848
lea ecx, [ebp - 0x10]
call fcn.0040a01e
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041df96
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040a004
mov eax, esi
call fcn.00439e3b
ret 8

Function at 0x4203d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42041b
call fcn.00426be3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42041b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42045e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x420447
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x420447
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42045b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x421b93
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x421bb7
cmp dword [edi + 0x54], 0
jne 0x421bb7
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00426be3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00421b54
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4363af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x470600]
jne 0x4363b9
repz ret
jmp fcn.0043d54f

Function at 0x44a07a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043d7d2
and dword [ebp - 4], 0
cmp dword [0x4749cc], 0
mov ebx, eax
jne 0x44a12b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44a1dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x459588
push edi
call esi
test eax, eax
je 0x44a1dc
push eax
call fcn.0043d760
mov dword [esp], 0x459578
push edi
mov dword [0x4749cc], eax
call esi
push eax
call fcn.0043d760
mov dword [esp], 0x459564
push edi
mov dword [0x4749d0], eax
call esi
push eax
call fcn.0043d760
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4749d4], eax
call esi
push eax
call fcn.0043d760
pop ecx
mov dword [0x4749dc], eax
test eax, eax
je 0x44a12b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043d760
pop ecx
mov dword [0x4749d8], eax
mov eax, dword [0x4749d8]
cmp eax, ebx
je 0x44a183
cmp dword [0x4749dc], ebx
je 0x44a183
push eax
call fcn.0043d7db
push dword [0x4749dc]
mov esi, eax
call fcn.0043d7db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44a183
test edi, edi
je 0x44a183
call esi
test eax, eax
je 0x44a17a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44a17a
test byte [ebp - 0xc], 1
jne 0x44a183
or dword [ebp + 0x10], 0x200000
jmp 0x44a1bc
mov eax, dword [0x4749d0]
cmp eax, ebx
je 0x44a1bc
push eax
call fcn.0043d7db
pop ecx
test eax, eax
je 0x44a1bc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44a1bc
mov eax, dword [0x4749d4]
cmp eax, ebx
je 0x44a1bc
push eax
call fcn.0043d7db
pop ecx
test eax, eax
je 0x44a1bc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4749cc]
call fcn.0043d7db
pop ecx
test eax, eax
je 0x44a1dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44a1de
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40455c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004069d4
test esi, esi
jne 0x404594
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.00406b10
jmp 0x4045b2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044a0
mov edi, eax
test esi, esi
je 0x4045b2
cmp dword [ebx], 0
je 0x4045b2
dec esi
jmp 0x40459b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ddc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ae050], 0
je 0x405e3d
cmp word [0x4ae32c], 0xd7b2
jne 0x405e05
cmp dword [0x4ae334], 0
jbe 0x405e05
mov eax, 0x4ae328
call dword [0x4ae344]
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
push 0x405e68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ab030], 0
jne 0x405e59
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fc8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4ab034], 0
je 0x405fee
mov edx, esi
mov eax, ebx
call dword [0x4ab034]
jmp 0x405ffd
mov eax, 8
call fcn.004041e8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ae051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f90
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40879c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408903
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004069d4
cmp si, word [0x4ab7dc]
jb 0x408836
cmp si, word [0x4ab9dc]
ja 0x408836
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408836
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ab7dc]
jae 0x408810
mov edi, ebx
dec edi
jmp 0x408831
cmp si, word [ebx*8 + 0x4ab7dc]
jbe 0x408820
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408831
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ab7e0]
call fcn.004086ac
jmp 0x408836
cmp edi, dword [ebp - 0xc]
jae 0x4087fa
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4088e5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088e5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406bbc
push dword [ebp - 0x164]
push 0x408920
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406bbc
push dword [ebp - 0x168]
push 0x408930
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406bbc
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406f74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40890a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004069cc
ret
Function at 0x408abc
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 0x408bc1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b0b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b0b70]
jne 0x408b08
mov eax, esi
mov edx, 0x4b0b74
mov ecx, 0x55
call fcn.00406bbc
push 0x4b0b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408bab
push 0x4b0b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004069d4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b79
cmp byte [0x4b0b54], 0
je 0x408b3e
mov edx, esi
mov eax, ebx
call fcn.0040899c
jmp 0x408b79
mov edx, esi
mov eax, ebx
call fcn.0040879c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408b79
cmp dword [esi], 0
je 0x408b62
mov eax, esi
mov edx, 0x408bdc
call fcn.00406dd0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040879c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406dd0
push 0x4b0b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b0b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406a60
push eax
push 0x4b0b74
call sub.kernel32.dll_lstrcpynW
push 0x4b0b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bc8
lea eax, [ebp - 4]
call fcn.004069c4
ret
Function at 0x408e00
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.004069bc
xor eax, eax
push ebp
push 0x408fe5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408e40
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408e5a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406a60
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408fcf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ff4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ee9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ff4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ee9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409028
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ee9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40905c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408fcf
xor eax, eax
push ebp
push 0x408fc8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408c04
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 0x408f58
mov eax, dword [ebp - 0x10]
call fcn.004041e8
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.00406b80
jmp 0x408fa3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40909c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408fa3
mov eax, dword [ebp - 0x10]
call fcn.004041e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40909c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fcf
cmp dword [ebp - 8], 0
je 0x408fbe
mov eax, dword [ebp - 8]
call fcn.00404204
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 0x408fec
lea eax, [ebp - 4]
call fcn.004069c4
ret
Function at 0x4092b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004069bc
mov eax, dword [ebp - 0x21c]
call fcn.004069bc
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40944f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004069d4
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406a60
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409350
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409362
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40934d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40941b
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40938b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408e00
cmp dword [ebp - 0x220], 0
je 0x4093c3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004091a4
pop ecx
mov ebx, eax
jmp 0x40941b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408abc
mov eax, dword [ebp - 0x224]
call fcn.004091a4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40940e
cmp byte [0x4b0b54], 0
jne 0x40940e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408abc
mov eax, dword [ebp - 0x228]
call fcn.004091a4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40941b
push ebp
call fcn.00409254
pop ecx
mov ebx, eax
test bl, bl
je 0x409431
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409456
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004069cc
ret

Function at 0x409bc8
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 0x40ca8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b0c4c
push 0xa
push 0x40cb20
mov eax, dword [0x4b0c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cab0
call fcn.004174fc
push ebx
mov eax, dword [0x4b0c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cac7
call fcn.004174fc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cad9
call fcn.004174fc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b0c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b0c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b0c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b0c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b0c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b0c64], edx
pop esi
pop ebx
ret

Function at 0x4103d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410479
test eax, edx
je 0x41047c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4103f9
push edx
mov edx, eax
mov eax, esp
call fcn.00406bd8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41040f
push eax
lea eax, [esp + 8]
call fcn.00406bd8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41041e
movzx eax, word [eax]
sub eax, ecx
jmp 0x410445
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 0x41045f
add ecx, 4
js 0x410436
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x41045c
push eax
mov eax, ecx
mov edx, 2
call fcn.00406068
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410443
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410445
xor eax, eax
ret
test eax, eax
je 0x41048c
test edx, edx
jne 0x4103e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4149cc
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 0x414a05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b10
jmp 0x414a0e
mov eax, ebx
mov edx, esi
call fcn.004069d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414a18
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 0x414a3a
movzx eax, word [esp]
jmp 0x414a3c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4151cc
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 0x4152f1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414fdc
mov esi, eax
mov eax, dword [0x4ad208]
cmp byte [eax], 0
je 0x415299
mov eax, dword [0x4acfd0]
call fcn.00404690
call fcn.00404350
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 [0x4151a4]
call fcn.00408198
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 0x41530c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4152d5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4acf6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0c3c]
call fcn.0040828c
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 0x4152f8
lea eax, [ebp - 4]
mov edx, dword [0x4151a4]
call fcn.004081a4
ret

Function at 0x4164a8
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 0x41657e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406a28
lea eax, [ebp - 4]
call fcn.004073c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406a60
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x416568
mov eax, ebx
call fcn.004041e8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x416561
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.00406a60
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41654b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x416590
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41654b
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 0x416568
mov eax, dword [ebp - 0x10]
call fcn.00404204
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416585
lea eax, [ebp - 4]
call fcn.004069c4
ret