joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c8c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
or eax, 0xffffffff
push esi
cmp edx, 0x10
jb 0x50ca43
movsx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 1]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 2]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 3]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 4]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 5]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 6]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 7]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 8]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 9]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 0xa]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 0xb]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 0xc]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 0xd]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 0xe]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
movsx esi, byte [ecx + 0xf]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
add ecx, 0x10
sub edx, 0x10
cmp edx, 0x10
jae 0x50c8d5
test edx, edx
je 0x50ca6b
jmp 0x50ca50
movsx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x6d9428]
inc ecx
sub edx, 1
jne 0x50ca50
not eax
pop esi
ret

Function at 0x50caf0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor eax, eax
mov esi, 0x20
mov ebx, edx
shr ebx, 5
mov ebp, edx
shl ebp, 4
xor ebx, ebp
add ebx, edx
mov ebp, eax
and ebp, 3
mov ebp, dword [edi + ebp*4]
add ebp, eax
xor ebx, ebp
add ecx, ebx
mov ebx, ecx
shr ebx, 5
mov ebp, ecx
shl ebp, 4
xor ebx, ebp
sub eax, 0x61c88647
mov ebp, eax
shr ebp, 0xb
and ebp, 3
mov ebp, dword [edi + ebp*4]
add ebx, ecx
add ebp, eax
xor ebx, ebp
dec esi
add edx, ebx
test esi, esi
ja 0x50cb07
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
ret
Function at 0x50cb60
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, 0xc6ef3720
mov esi, 0x20
lea ebx, [ebx]
mov ebx, edx
shr ebx, 5
mov ebp, edx
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
mov ebp, dword [edi + ebp*4]
add ebp, eax
add ebx, edx
xor ebx, ebp
sub ecx, ebx
mov ebx, ecx
shr ebx, 5
mov ebp, ecx
shl ebp, 4
xor ebx, ebp
add eax, 0x61c88647
mov ebp, eax
and ebp, 3
mov ebp, dword [edi + ebp*4]
add ebx, ecx
add ebp, eax
xor ebx, ebp
dec esi
sub edx, ebx
test esi, esi
ja 0x50cb80
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
ret

Function at 0x50fd80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x60c3fc
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [0x6d983c]
lea ecx, [esi + 4]
mov dword [ecx], eax
mov edx, dword [0x6d983c]
lea edi, [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [edi], edx
mov eax, dword [0x6d983c]
lea ebp, [esi + 0xc]
mov dword [ebp], eax
mov edx, dword [0x6d983c]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x28]
or eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x24]
push edx
mov byte [esp + 0x20], 3
mov dword [esi], eax
call fcn.0050d6d0
mov eax, dword [esp + 0x2c]
push eax
mov ecx, edi
call fcn.0050d6d0
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.0050d6d0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
mov byte [esi + 0x18], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0x18
Function at 0x512cf0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x512d41
call fcn.00517840
test eax, eax
je 0x512d2c
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Couldnt_terminate_thread
call eax
push eax
call fcn.00525ae0
add esp, 4
mov eax, 5
pop esi
ret
mov eax, str.Couldnt_terminate_thread
push eax
call fcn.00525ae0
add esp, 4
mov eax, 5
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x512d56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
xor eax, eax
pop esi
ret

Function at 0x512d60
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x512db2
call fcn.00517840
test eax, eax
je 0x512d9c
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Can_not_resume_thread__x
call eax
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.00525ae0
add esp, 8
xor al, al
pop esi
ret
mov ecx, dword [esi + 4]
mov eax, str.Can_not_resume_thread__x
push ecx
push eax
call fcn.00525ae0
add esp, 8
xor al, al
pop esi
ret
cmp dword [esi + 8], 4
mov eax, 1
je 0x512dc0
mov dword [esi + 8], eax
pop esi
ret

Function at 0x512ee0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6d9994], eax
cmp eax, 0xffffffff
jne 0x512f26
call fcn.00517840
test eax, eax
je 0x512f15
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Thread_module_initialization_failed:_impossible_to_allocate_index_in_thread_local_storage
call eax
push eax
call fcn.00525ae0
add esp, 4
xor al, al
ret
mov eax, str.Thread_module_initialization_failed:_impossible_to_allocate_index_in_thread_local_storage
push eax
call fcn.00525ae0
add esp, 4
xor al, al
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x512f80
mov ecx, dword [0x6d9994]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x6d9994], 0xffffffff
call fcn.00517840
test eax, eax
je 0x512f6f
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push 0x63c358
call eax
push eax
call fcn.00525ae0
add esp, 4
xor al, al
ret
mov eax, 0x63c358
push eax
call fcn.00525ae0
add esp, 4
xor al, al
ret
push 0x18
call fcn.005b29ce
add esp, 4
test eax, eax
je 0x512f97
mov ecx, eax
call fcn.00512950
jmp 0x512f99
xor eax, eax
push 0x18
mov dword [0x6f0d18], eax
call fcn.005b29ce
add esp, 4
test eax, eax
je 0x512fb5
mov ecx, eax
call fcn.00512950
jmp 0x512fb7
xor eax, eax
mov ecx, eax
mov dword [0x6f0d14], eax
call fcn.00512970
push 0x18
call fcn.005b29ce
add esp, 4
test eax, eax
je 0x512feb
mov ecx, eax
call fcn.00512950
mov dword [0x6f0d1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x6f0d10], eax
mov al, 1
ret
xor eax, eax
mov dword [0x6f0d1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x6f0d10], eax
mov al, 1
ret
Function at 0x513450
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x20]
push fcn.00512c00
push eax
call fcn.00513420
add esp, 0xc
mov ecx, dword [0x6d9994]
push esi
or edi, 0xffffffff
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x5134ec
call fcn.00517840
test eax, eax
je 0x5134ce
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Can_not_start_thread:_error_writing_TLS.
call eax
jmp 0x5134d3
mov eax, str.Can_not_start_thread:_error_writing_TLS.
push eax
call fcn.00525ae0
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], edi
call fcn.00513110
mov eax, edi
jmp 0x513520
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov esi, eax
jmp 0x513512
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 4], edi
call fcn.00513110
mov eax, esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x513640
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esi + 0x10]
push eax
push 4
push ecx
push 0x513540
push edx
push 0
call fcn.005bae55
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x5136a5
call fcn.00517840
test eax, eax
je 0x513691
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Cant_create_thread
call eax
push eax
call fcn.00525ae0
add esp, 4
xor al, al
pop esi
ret 8
mov eax, str.Cant_create_thread
push eax
call fcn.00525ae0
add esp, 4
xor al, al
pop esi
ret 8
mov eax, dword [esi + 0xc]
cmp eax, 0x32
je 0x5136b5
push eax
mov ecx, esi
call fcn.00512c60
mov al, 1
pop esi
ret 8

Function at 0x516310
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x6d9d18]
cmp eax, 0xffffffff
jne 0x516382
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.005b57c0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x516378
jne 0x516374
mov eax, dword [esp + 8]
test eax, eax
ja 0x516378
jne 0x516374
cmp word [esp + 0x114], 4
jae 0x516378
xor eax, eax
jmp 0x51637d
mov eax, 1
mov dword [0x6d9d18], eax
mov ecx, dword [esp + 0x11c]
xor edx, edx
cmp eax, 1
sete dl
xor ecx, esp
mov al, dl
call fcn.005b8641
add esp, 0x120
ret
Function at 0x51bea0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x60c2b9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov esi, dword [esp + 0x1c]
mov eax, dword [0x6d983c]
mov dword [esi], eax
push str.TMPDIR
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
call fcn.005bbfad
add esp, 4
push eax
mov ecx, esi
call fcn.0050dec0
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x51bf34
push 0x63ea80
call fcn.005bbfad
add esp, 4
push eax
mov ecx, esi
call fcn.0050dec0
mov edx, dword [esi]
cmp dword [edx - 8], 0
jne 0x51bf34
push str.TEMP
call fcn.005bbfad
add esp, 4
push eax
mov ecx, esi
call fcn.0050dec0
mov eax, dword [esi]
cmp dword [eax - 8], 0
jne 0x51bf6c
push 0x105
mov ecx, esi
call fcn.0050d8a0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
call fcn.0050df10
mov ecx, dword [esi]
cmp dword [ecx - 8], 0
jne 0x51bf6c
push 0x2e
mov ecx, esi
call fcn.0050dea0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x51d8c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60d140
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x6d983c]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push edi
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x34], 0
call fcn.0051c480
add esp, 0x1c
test esi, esi
je 0x51d961
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
mov edx, edi
call fcn.0051c7c0
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.00510460
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x18], 0
cmp eax, 0xffffffff
je 0x51d961
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51d961
call fcn.0050ccc0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x18], 0xffffffff
cmp eax, 0xffffffff
je 0x51d984
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51d984
call fcn.0050ccc0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x51d9a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60d168
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push edi
mov eax, edx
call fcn.0051b820
add esp, 4
test al, al
je 0x51da3d
mov eax, dword [0x6d983c]
mov ecx, dword [0x63bb88]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
mov edx, dword [eax - 8]
dec edx
cmp edx, ecx
jae 0x51d9f6
mov ecx, edx
push ecx
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.0050dd90
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.0051c8e0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x14], 0xffffffff
cmp eax, 0xffffffff
je 0x51da46
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51da46
call fcn.0050ccc0
jmp 0x51da46
push edi
push edx
mov ecx, esi
call fcn.0051c8e0
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0050d6d0
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esi + 0x18]
call fcn.0050d6d0
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esi + 0x14]
call fcn.0050d6d0
mov dl, byte [esp + 0x2c]
mov byte [esi + 0x1d], dl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x18
Function at 0x51da90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60d1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x6d983c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x40], 3
call fcn.0051c480
mov eax, dword [esp + 0x4c]
add esp, 0x1c
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0051d9a0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 2
cmp eax, 0xffffffff
je 0x51db45
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51db45
call fcn.0050ccc0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 1
cmp eax, 0xffffffff
je 0x51db65
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51db65
call fcn.0050ccc0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov byte [esp + 0x24], 0
cmp eax, 0xffffffff
je 0x51db85
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51db85
call fcn.0050ccc0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x24], 0xffffffff
cmp eax, 0xffffffff
je 0x51dba8
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51dba8
call fcn.0050ccc0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x51e950
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x60d318
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [0x6d983c]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0050e840
push 1
push 0x63ebb8
push 0x63ebb4
lea ecx, [esp + 0x10]
call fcn.0050f0b0
push 1
push 0x684f40
push 0x63ebb0
lea ecx, [esp + 0x10]
call fcn.0050f0b0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x10], 0xffffffff
cmp eax, 0xffffffff
je 0x51e9ed
add eax, 0xffffffff
mov dword [ecx], eax
jne 0x51e9ed
call fcn.0050ccc0
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x51fbd0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x60d442
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd4]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [0x6d983c]
mov dword [esp + 0x18], ebp
mov dword [ebp], eax
push edi
push edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0x1c], 1
mov esi, 0x63ed30
call fcn.005bd8f0
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x51fc62
test cl, cl
je 0x51fc5e
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x51fc62
add eax, 2
add esi, 2
test cl, cl
jne 0x51fc42
xor eax, eax
jmp 0x51fc67
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x51fd82
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 0x51
lea ecx, [esp + 0x20]
push ecx
push 0x1f
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51fd82
xor esi, esi
lea ebx, [esp + 0x1c]
movzx eax, word [ebx]
cmp ax, di
jne 0x51fca1
inc esi
add ebx, 2
jmp 0x51fc93
movzx ecx, ax
add ecx, 0xffffffb3
cmp ecx, 0x2c
ja case.0x51fcb3.78
movzx edx, byte [ecx + 0x51fdb4]
jmp dword [edx*4 + 0x51fdac]
movzx edi, ax
mov esi, 1
jmp 0x51fd74
test esi, esi
je 0x51fd4e
movzx eax, di
cmp eax, 0x4d
je 0x51fd21
cmp eax, 0x64
je 0x51fcfd
cmp eax, 0x79
jne case.default.0x51fd29
test esi, esi
jbe case.default.0x51fd29
cmp esi, 2
jbe 0x51fcf6
cmp esi, 4
jne case.default.0x51fd29
push 0x63ed28
jmp 0x51fd43
push 0x63ed20
jmp 0x51fd43
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x51fd29
jmp dword [eax*4 + 0x51fde4]
push 0x63ed18
jmp 0x51fd43
push 0x63ec78
jmp 0x51fd43
push 0x63ec70
jmp 0x51fd43
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x51fd29
jmp dword [eax*4 + 0x51fdf4]
push 0x63ed10
jmp 0x51fd43
push 0x63ec68
jmp 0x51fd43
push 0x63ec60
mov ecx, ebp
call fcn.00510410
xor edi, edi
xor esi, esi
movzx eax, word [ebx]
test ax, ax
je 0x51fd82
cmp ax, 0x25
jne 0x51fd67
push 0x25
push 1
mov ecx, ebp
call fcn.0050de40
movzx eax, word [ebx]
push eax
push 1
mov ecx, ebp
call fcn.0050de40
cmp word [ebx], 0
je 0x51fd82
add ebx, 2
jmp 0x51fc93
mov eax, ebp
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.005b8641
add esp, 0xbc
ret
Function at 0x520900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov ebx, ecx
test ebp, ebp
jne 0x520922
call fcn.0051f5f0
mov ebp, eax
sub ebp, 7
neg ebp
sbb ebp, ebp
add ebp, 2
mov esi, dword [esp + 0x78]
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.0051f900
mov ecx, dword [esp + 0x2c]
push 0
push ecx
call fcn.005201e0
movzx eax, al
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + edx*4]
mov dx, word [ecx*2 + 0x63ebec]
add dx, word [esp + 0x2c]
add esp, 8
movzx eax, dx
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esp + 0x7c], eax
call fcn.0051f900
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x520980
mov ecx, esi
call fcn.0051ebc0
movzx edi, word [esi + 0x18]
xor esi, esi
push esi
lea ecx, [esp + 0x14]
call fcn.0051ef10
push esi
lea ecx, [esp + 0x7c]
call fcn.0051ef10
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.0051f900
mov eax, dword [eax + 0x10]
push esi
push esi
push esi
push esi
push eax
push esi
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00520440
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1c]
call fcn.0051f900
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x5209ea
mov ecx, esi
call fcn.0051ebc0
movzx esi, word [esi + 0x18]
cmp ebp, 2
jne 0x520a29
movzx ecx, word [esp + 0x74]
sub ecx, edi
add ecx, 7
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 3
je 0x520a1e
cmp esi, 4
jne 0x520b1d
pop edi
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x60
ret 8
test esi, esi
jne 0x520a34
mov esi, 6
jmp 0x520a35
dec esi
test edi, edi
jne 0x520a40
mov edi, 6
jmp 0x520a41
dec edi
cmp esi, 4
jge 0x520a8c
movzx eax, word [esp + 0x74]
sub eax, edi
lea esi, [eax + esi + 6]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x35
jne 0x520b1d
movzx ecx, word [esp + 0x24]
sub ecx, edi
cmp ecx, 0x1c
jle 0x520b1d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret 8
cmp dword [esp + 0x28], 0
jne 0x520aff
movzx eax, word [esp + 0x24]
mov edx, 8
sub edx, esi
cmp eax, edx
jge 0x520aff
push 0
lea ecx, [esp + 0x7c]
call fcn.0051ef10
push 0
lea ecx, [esp + 0x78]
call fcn.0051ef10
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, ebx
call fcn.0051f900
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x78]
push ecx
push 1
push 0
push 0
push 0
push 0
dec eax
push eax
push 0xb
push 0x1f
lea ecx, [esp + 0x38]
call fcn.005206d0
mov ecx, eax
call fcn.00520900
pop edi
pop esi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x60
ret 8
movzx edx, word [esp + 0x74]
sub edx, edi
lea ecx, [edx + esi - 1]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8