joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x103
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4013f0
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401427
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 8]
mov byte [edx + esi], 0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x401760
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push 0
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00401210
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x401820
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0x30c
mov edx, ecx
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x218]
mov ebp, dword [esp + 0x324]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x118]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebp
call fcn.00401eb0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jl 0x4019a0
push ebx
lea edx, [esp + 0x21c]
push ebp
push edx
call fcn.00402480
mov esi, dword [esp + 0x32c]
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push esi
push 0x104
push eax
push 0x40a534
push ecx
push str.defines
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x14]
test al, al
jne 0x4018f4
lea edx, [esp + 0x14]
push 0x104
lea eax, [esp + 0x11c]
push edx
push eax
call fcn.00401a40
add esp, 0xc
test eax, eax
jge 0x401948
push esi
lea ecx, [esp + 0x18]
push 0x104
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.00401c30
add esp, 0x10
cmp eax, 0xfffffffe
je 0x401a02
jmp 0x401948
push 0
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00401eb0
add esp, 0xc
test eax, eax
jl 0x401948
lea ecx, [esp + 0x14]
push 0x104
lea edx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.00401820
add esp, 0x10
test eax, eax
jge 0x401948
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [ebx + ebp]
push eax
push ecx
push edx
call fcn.00402270
add esp, 0xc
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, edx
and ecx, 3
add eax, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
lea edx, [esp + 0x10]
add ebp, eax
push ecx
push edx
push ebp
call fcn.00401eb0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jge 0x40186c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x328]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x30c
ret
Function at 0x401a40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x40a534
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebp, 0x408ca8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp], 0
je 0x401bbf
lea edx, [ebp + 4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
push ecx
push edi
push edx
call fcn.004060f0
add esp, 0xc
test eax, eax
jne 0x401b9c
mov eax, dword [ebp]
mov dword [esp + 0x10], 1
add eax, 0xfffffff5
cmp eax, 0x12
ja case.0x401ac7.21
xor ecx, ecx
mov cl, byte [eax + 0x401c10]
jmp dword [ecx*4 + 0x401be4]
mov edx, dword [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x401b9c
mov eax, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x401b9c
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x401b9c
mov edi, 0x40a944
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401b9c
push ebx
call fcn.00401760
add esp, 4
jmp 0x401b9c
push ebx
call fcn.00401f40
add esp, 4
jmp 0x401b9c
push ebx
call fcn.00401f50
add esp, 4
jmp 0x401b9c
push ebx
call fcn.00401f60
add esp, 4
jmp 0x401b9c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401b9c
mov edi, 0x409b18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401b9c
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
add ebp, 0x108
test eax, eax
je 0x401a78
push ebx
call fcn.00401210
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401bd8
push ebx
call fcn.00401210
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
Function at 0x401fc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
mov esi, dword [esp + 0x210]
push edi
push esi
push 0x104
push eax
push 0x40a534
push str.uninstall
push str.regs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402093
lea ecx, [esp + 8]
push 0x2c
push ecx
call fcn.004023c0
add esp, 8
test eax, eax
je 0x402093
lea edx, [esp + 8]
mov byte [eax], 0
push edx
call fcn.00401620
lea eax, [esp + 0xc]
push 0x104
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call fcn.00401820
lea edx, [esp + 0x1c]
lea eax, [esp + 0x120]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str._s_s
push eax
call fcn.00402100
mov esi, dword [esp + 0x23c]
lea ecx, [esp + 0x130]
push esi
push str.InstallPath
push ecx
push 0x80000002
call fcn.004013b0
add esp, 0x34
test eax, eax
je 0x402093
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402093
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret

Function at 0x4020a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
push edi
push ebx
push ebp
push esi
push 0x40a534
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4020e0
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
push ebp
push esi
push ebx
call fcn.00401a20
add esp, 0xc
xor edx, edx
test eax, eax
setge dl
pop edi
dec edx
pop esi
pop ebp
mov eax, edx
pop ebx
ret
Function at 0x404289
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409fe8
cmp edx, dword [eax]
je 0x4042ab
add eax, 8
inc ecx
cmp eax, 0x40a078
jl 0x40429c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409fe8]
jne 0x4043d9
mov eax, dword [0x40aa68]
cmp eax, 1
je 0x4043b3
test eax, eax
jne 0x4042dc
cmp dword [0x409b94], 1
je 0x4043b3
cmp edx, 0xfc
je 0x4043d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404313
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405850
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403760
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404356
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403760
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407474
push edi
call fcn.00402270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405850
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405860
lea eax, [ebp - 0xa0]
push 0x407454
push eax
call fcn.00405860
push dword [esi + 0x409fec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405860
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405940
add esp, 0x2c
pop edi
jmp 0x4043d9
lea eax, [ebp + 8]
lea esi, [esi + 0x409fec]
push 0
push eax
push dword [esi]
call fcn.00403760
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40166c
Capabilities:
Get graphical window text

Disassembly:
push ebx
call fcn.00421500
push 0xce0001
mov eax, str.Global_metadata_Helper_by_Tutankamon
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
call fcn.00419bab
and eax, eax
je 0x40199d
mov eax, str.Select_Files
push eax
push 0xaa
push 0x208
push 0xa
push 0xa
push 5
call fcn.00417f86
mov eax, str.File_metadata:
push eax
push 0x1e
push 0x64
push 0x28
push 0x14
push 0xc
call fcn.00419312
push 1
call fcn.00420a25
push eax
push 0xc
call fcn.00418bea
mov eax, 0x43902e
push eax
push 0x1e
push 0x172
push 0x28
push 0x6e
push 0xa
call fcn.00419017
mov eax, str.File_Global_metadata.dat
push eax
push 1
push 0x1501
push 0xa
call fcn.004180ea
push eax
call sub.USER32.dll_SendMessageW
mov eax, 0x439204
push eax
push 0x1e
push 0x28
push 0x28
push 0x1e0
push 2
call fcn.0041716b
mov eax, str.Localized_file:
push eax
push 0x1e
push 0x64
push 0x50
push 0x14
push 0xd
call fcn.00419312
push 1
call fcn.00420a25
push eax
push 0xd
call fcn.00418bea
mov eax, 0x43902e
push eax
push 0x1e
push 0x172
push 0x50
push 0x6e
push 0xb
call fcn.00419017
mov eax, str.File_to_import__usually_LOC.global.metadata.dat
push eax
push 1
push 0x1501
push 0xb
call fcn.004180ea
push eax
call sub.USER32.dll_SendMessageW
mov eax, 0x439204
push eax
push 0x1e
push 0x28
push 0x50
push 0x1e0
push 1
call fcn.0041716b
mov eax, str.Export
push eax
push 0x28
push 0xb4
push 0x82
push 0x3c
push 0
call fcn.0041716b
push 2
call fcn.00420a25
push eax
push 0
call fcn.00418bea
mov eax, str.Import
push eax
push 0x28
push 0xb4
push 0x82
push 0x12c
push 3
call fcn.0041716b
push 2
call fcn.00420a25
push eax
push 3
call fcn.00418bea
mov eax, 0x439450
push eax
push 0xd2
push 0x21c
push 0xbe
push 0
push 6
call fcn.00417f86
push 0x10000800
push 0xbe
push 0x21c
push 0xd2
push 0
push 4
call fcn.004175ef
push 1
push 0x80
push 0
push 0
call fcn.0041cf07
push eax
mov eax, 0x439170
push eax
push 0x18
push 0x10e
push 0x19a
push 0x96
push 8
call fcn.00418725
push 0xff
push 0x80
push 0
call fcn.0041cf07
push eax
push 1
push 8
call fcn.00418bbf
push 0
call fcn.00420a25
push eax
push 8
call fcn.00418bea
mov eax, str.Join_our_Discord_server
push eax
push 8
call fcn.00418106
mov eax, str.Progress...
push eax
push 0x32
push 0x21c
push 0x1b8
push 0
push 7
call fcn.00417f86
push 1
push 0x64
push 0
push 0x14
push 0x208
push 0x1cc
push 0xa
push 9
call fcn.0041888d
mov eax, 1
jmp 0x40199f
xor eax, eax
pop ebx
ret 0x10

Function at 0x4047c5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404804
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404804
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404804
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404804
cmp dword [ecx + 0x74], 0xe
jbe 0x404804
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408d08
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x42cd84
push str.FlsAlloc
push 0x1f
call fcn.00408bd0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408d3c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c37c]
call esi
jmp 0x408d42
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408d86
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x42cda8
push str.FlsGetValue
push 0x21
call fcn.00408bd0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408dbd
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c37c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408dc5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x42cdbc
push str.FlsSetValue
push 0x22
call fcn.00408bd0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408dff
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42c37c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40a835
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 0x40a8d2
push ebx
push esi
call fcn.0040a7fe
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.0040a792
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a87f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a8d1
push edi
push eax
call fcn.00407b21
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a89f
call fcn.00407ae7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a8d0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a792
add esp, 0x20
test eax, eax
jne 0x40a8be
push edi
call fcn.00407ae7
jmp 0x40a8c6
push ebx
call fcn.00407ae7
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 0x40d61b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004085a0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d68a
cmp esi, dword [ebp - 4]
je 0x40d685
cmp dword [ebp + 0xc], 0
je 0x40d685
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40d662
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040d16d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40d68c
xor eax, eax
inc eax
jmp 0x40d68c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40d6f1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4398e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004085a0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004085a0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40d768
cmp word [ecx], dx
je 0x40d768
mov eax, dword [0x42e064]
push edi
dec eax
push eax
push 0x42df50
call fcn.0040d690
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40d7db
cmp word [eax], dx
je 0x40d7db
mov eax, dword [edi]
test eax, eax
je 0x40d78c
cmp word [eax], dx
je 0x40d78c
lea eax, [ebp - 0x10]
push eax
call fcn.0040d073
jmp 0x40d795
lea eax, [ebp - 0x10]
push eax
call fcn.0040d10e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40d805
mov eax, dword [0x42df4c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42dc40
call fcn.0040d690
add esp, 0xc
test al, al
je 0x40d805
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40d7d0
cmp word [eax], di
je 0x40d7d0
lea eax, [ebp - 0x10]
push eax
call fcn.0040d073
pop ecx
jmp 0x40d807
lea eax, [ebp - 0x10]
push eax
call fcn.0040d10e
jmp 0x40d7cd
mov eax, dword [edi]
test eax, eax
je 0x40d7f2
cmp word [eax], dx
je 0x40d7f2
lea eax, [ebp - 0x10]
push eax
call fcn.0040d028
pop ecx
jmp 0x40d805
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40d8d0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040d515
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40d8d0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40d8d0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40d8d0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d85d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00408f05
test ebx, ebx
je 0x40d8cb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00408f05
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d8d0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40d8d0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0040f7f8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40d8d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404af5
leave
ret
Function at 0x4118e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43a9b8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411923
cmp byte [ebx], 0xa
jne 0x411923
or byte [edi + eax + 0x28], 4
jmp 0x411928
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x411a27
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411a0a
inc eax
cmp dl, 0xd
je 0x411954
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41197a
cmp eax, ecx
jae 0x411988
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41193c
jmp 0x411a27
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411a05
cmp dword [ebp - 0x10], 0
je 0x411a05
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43a9b8]
test byte [eax + edi + 0x28], 0x48
je 0x4119df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4119ca
mov byte [esi], dl
jmp 0x4119db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43a9b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411a27
cmp byte [ebp - 1], 0xa
jne 0x4119ee
cmp esi, ebx
jne 0x4119ee
mov byte [esi], 0xa
jmp 0x411a26
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411720
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411a27
mov byte [esi], 0xd
jmp 0x411a26
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43a9b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411a24
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411a27
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret