joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49fd18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004787b0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00478820
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00478b00
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004787d0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x478be8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49fd18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004787b0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00478820
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00478b00
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004787d0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x478ef0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x49fd90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004787b0
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.004787b0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.00478820
cmp dword [esp + 0x40], ebx
jne 0x478f78
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.004787d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004787d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.00478e30
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.00478c50
cmp eax, esi
jb 0x478ffb
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0xb33b3c
lea ecx, [esp + 0x1c]
call fcn.00478bd0
cmp eax, 1
jne 0x478fed
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00478970
push ebx
lea ecx, [esp + 0x20]
call fcn.0043ef20
push eax
call fcn.00481aa2
add esp, 8
test eax, eax
jge 0x478fed
push ebx
lea ecx, [esp + 0x20]
call fcn.00478cc0
push eax
call edi
test eax, eax
je 0x479030
lea ecx, [esp + 0xc]
inc esi
call fcn.00478c50
cmp esi, eax
jbe 0x478f9d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004787d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004787d0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004787d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004787d0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x47b510
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x47b51b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x47b61e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0xb106dc]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xb106dc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xb106dc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xb106dc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xb106dc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xb106dc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xb106dc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xb106dc]
xor eax, edx
inc ecx
dec edi
jne 0x47b536
pop edi
test esi, esi
je 0x47b640
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xb106dc]
xor eax, edx
inc ecx
dec esi
jne 0x47b622
pop esi
pop ebx
not eax
ret

Function at 0x47be90
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x47bed1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47bec6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x47bee4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x47ce20
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x47ced5
cmp dword [ebp + 4], 0xffffffff
jne 0x47ced5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0xb33dc4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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 ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x47ce9d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x47ce9d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.0047bc20
add esp, 0x10
test eax, eax
jne 0x47cec0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.0047c160
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x47d330
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x47d3f8
mov al, byte [ecx]
test al, al
je 0x47d3f8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x47d35b
cmp al, 0x5c
jne 0x47d35d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x47d353
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x47d394
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.00481cda
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.0047d330
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
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
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x481aa2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x481ac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004812da
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x481ae5
test byte [esp + 8], 2
je 0x481ae5
call fcn.0048134d
mov dword [eax], 0xd
call fcn.00481356
mov dword [eax], 5
jmp 0x481abe
xor eax, eax
ret

Function at 0x492984
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4929bc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00490a3b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00490a13
jmp 0x4929c8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x494079
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4940bb
call fcn.00499d30
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4940bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4940b2
xor eax, eax
jmp 0x4940c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004940c9
pop edi
pop esi
pop ebx
ret 4

Function at 0x49a260
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49a28e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a2ac
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a1c6
jmp 0x49a2ac
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a2ac
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a1c6
test edi, edi
mov eax, edi
jne 0x49a296
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
je 0x1000111e
mov ecx, dword [esp + 0x120]
push ebp
push edi
push edi
push edi
push edi
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
je 0x1000110b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
push ebx
rep stosd dword es:[edi], eax
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
push eax
push 5
push ebp
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x100010ff
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
mov ebx, eax
mov dword [esp + 0x20], 0
lea edi, [ebx + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 8
test esi, esi
je 0x100010fb
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100010f2
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x100010f2
mov eax, dword [esp + 0x134]
test eax, eax
jbe 0x100010f2
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x14]
pop ebx
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop ebp
pop edi
pop esi
add esp, 0x114
ret
mov eax, edi
pop edi
pop esi
add esp, 0x114
ret
Function at 0x4061c0
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.004065a4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40634a
test edi, edi
je 0x40634a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40628a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406265
cmp edi, 0xffffffff
je 0x406225
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406225
mov byte [esp], 0
jmp 0x40634a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406265
test ebx, ebx
jne 0x406257
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406257
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40634a
lea eax, [esp + 0xc]
call fcn.00405ea0
dec ebp
test ebp, ebp
jg 0x40620a
cmp edi, 0xffffffff
je 0x40628a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406288
mov byte [esp], 0
jmp 0x40634a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4061ce
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40628a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004063b8
mov edx, eax
mov ebx, dword [0x6348fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4062ee
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4062ec
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4062ee
xor edi, edi
cmp byte [esp], 0
je 0x406314
mov ebx, dword [esi]
test bl, 1
jne 0x40632a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4062f4
mov byte [esp + 1], 1
jmp 0x40632a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406314
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4062a1
cmp byte [esp], 0
je 0x40634a
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 0x4070f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63405c], 0
je 0x407157
cmp word [0x634348], 0xd7b2
jne 0x407119
cmp dword [0x634350], 0
jbe 0x407119
mov eax, 0x634344
call dword [0x634360]
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, 0x407184
call fcn.00407e84
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x62c032], 0
jne 0x407173
push 0
push 0x62c9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407320
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 [0x62c034], 0
je 0x40734b
mov edx, edi
mov eax, esi
call dword [0x62c034]
mov ebx, eax
jmp 0x40735c
mov eax, 8
call fcn.00404db4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x63405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4072e8
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 0x40738c
mov eax, ebx
call fcn.00404dd0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x409e58
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 0x409fbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407460
cmp si, word [0x62ca00]
jb 0x409ef0
cmp si, word [0x62cc00]
ja 0x409ef0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409ef0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x62ca00]
jae 0x409eca
mov edi, ebx
dec edi
jmp 0x409eeb
cmp si, word [ebx*8 + 0x62ca00]
jbe 0x409eda
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409eeb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x62ca04]
call fcn.00409d78
jmp 0x409ef0
cmp edi, dword [ebp - 8]
jae 0x409eb4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409f9f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409f9f
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.00408374
push dword [ebp - 0x160]
push 0x409fd8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408374
push dword [ebp - 0x164]
push 0x409fe8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408374
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004085ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fc4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004074c0
ret
Function at 0x40a170
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 0x40a274
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x636b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x636ba4]
jne 0x40a1bc
mov eax, esi
mov edx, 0x636ba6
mov ecx, 0x55
call fcn.00408374
push 0x636b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a25e
push 0x636b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407460
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a22b
cmp byte [0x636b88], 0
je 0x40a1f0
mov edx, esi
mov eax, ebx
call fcn.0040a054
jmp 0x40a22b
mov edx, esi
mov eax, ebx
call fcn.00409e58
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a22b
cmp dword [esi], 0
je 0x40a214
mov eax, esi
mov edx, 0x40a28c
call fcn.004084cc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409e58
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004084cc
push 0x636b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x636ba4], bx
mov eax, dword [esi]
call fcn.004082b8
mov ecx, eax
mov eax, 0x636ba6
mov edx, 0xaa
call fcn.00409cd8
push 0x636b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a27b
lea eax, [ebp - 4]
call fcn.00407460
ret
Function at 0x40a4a4
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.00407544
xor eax, eax
push ebp
push 0x40a6c9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a4e4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a4fe
mov eax, dword [ebp - 4]
call fcn.004082b8
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409cd8
cmp word [ebp - 0x21a], 0
je 0x40a6b3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a6d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a5cd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a6d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a5cd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a714
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a5cd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a714
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a5cd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a748
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a5cd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a77c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a6b3
xor eax, eax
push ebp
push 0x40a6ac
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a2b4
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 0x40a63c
mov eax, dword [ebp - 0x10]
call fcn.00404db4
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.00408320
jmp 0x40a687
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a7bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a687
mov eax, dword [ebp - 0x10]
call fcn.00404db4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a7bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00408320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a6b3
cmp dword [ebp - 8], 0
je 0x40a6a2
mov eax, dword [ebp - 8]
call fcn.00404dd0
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 0x40a6d0
lea eax, [ebp - 4]
call fcn.00407460
ret