joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011360
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x130
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x10011384
pop edi
pop esi
pop ebp
mov eax, 0xffffffee
pop ebx
add esp, 0x130
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
call esi
mov edi, eax
mov dword [esp + 0x10], edi
call esi
mov ecx, dword [0x10019160]
sub eax, edi
cmp eax, ecx
jae 0x100113bb
call esi
mov ecx, dword [0x10019160]
sub eax, edi
cmp eax, ecx
jb 0x100113ad
mov ebp, dword [esp + 0x14c]
mov ebx, dword [esp + 0x148]
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, ebp
mov edi, ebx
mov edx, ecx
mov byte [esp + 0x14], 6
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x144]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x1001a2d4]
lea ecx, [esp + 0x14]
and eax, 0xffff
push eax
push ecx
push edx
call sub.HID.DLL_HidD_GetFeature
test al, al
jne 0x10011430
call esi
mov edi, eax
call esi
mov ecx, dword [0x10019160]
sub eax, edi
cmp eax, ecx
jae 0x1001145e
call esi
mov ecx, dword [0x10019160]
sub eax, edi
cmp eax, ecx
jb 0x10011420
jmp 0x1001145e
cmp byte [esp + 0x14], 6
jne 0x100114ac
cmp byte [esp + 0x15], 0x60
jne 0x10011475
call esi
mov edi, eax
call esi
mov ecx, dword [0x10019160]
sub eax, edi
cmp eax, ecx
jae 0x1001145e
call esi
mov ecx, dword [0x10019160]
sub eax, edi
cmp eax, ecx
jb 0x10011450
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [0x1001915c]
sub eax, edx
cmp eax, ecx
jae 0x1001149a
jmp 0x100113c9
mov ecx, ebp
lea esi, [esp + 0x15]
mov eax, ecx
mov edi, ebx
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, 0x130
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xffffffef
pop ebx
add esp, 0x130
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x130
ret 0xc
Function at 0x10014b1e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100195a8
cmp edx, dword [eax]
je 0x10014b40
add eax, 8
inc ecx
cmp eax, 0x10019638
jl 0x10014b31
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100195a8]
jne 0x10014c6e
mov eax, dword [0x1001a2e4]
cmp eax, 1
je 0x10014c48
test eax, eax
jne 0x10014b71
cmp dword [0x1001a2e8], 1
je 0x10014c48
cmp edx, 0xfc
je 0x10014c6e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10014ba8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10011bb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100119d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10014beb
lea eax, [ebp - 0x1a4]
push eax
call fcn.100119d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100174b4
push edi
call fcn.10015990
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10011bb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10011bc0
lea eax, [ebp - 0xa0]
push 0x10017494
push eax
call fcn.10011bc0
push dword [esi + 0x100195ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.10011bc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100162e6
add esp, 0x2c
pop edi
jmp 0x10014c6e
lea eax, [ebp + 8]
lea esi, [esi + 0x100195ac]
push 0
push eax
push dword [esi]
call fcn.100119d0
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 0x40155f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
mov word [edi], ax
mov ax, word [esi]
lea ebx, [esi + 8]
add ax, word [ebx]
mov ecx, 0x200
add ax, cx
mov ecx, dword fs:[0x30]
mov word [edi + 2], ax
movzx eax, ax
push eax
push 0
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp byte [ebp + 8], 0
mov dword [edi + 4], eax
je 0x401609
xor edx, edx
mov dword [ebp + 8], str._r_n_r_n
cmp word [ebx], dx
jne 0x4015b5
mov dword [ebp + 8], 0x4041fc
mov ecx, dword [0x4064a8]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
push ebx
push dword [ebp + 8]
movzx ebx, byte [esi + 0x12]
shl ebx, 7
push esi
lea ebx, [ebx + ecx + 0x1860]
push ebx
lea ebx, [esi + 0x34]
push ebx
movzx ebx, byte [esi + 0x11]
add ebx, 0x43
shl ebx, 5
add ebx, ecx
push ebx
movzx ebx, byte [esi + 0x10]
add ebx, 3
shl ebx, 5
add ebx, ecx
push ebx
push dword [esi + 0x1c]
add esi, 0x4a
push dword [esi - 0x32]
lea ecx, [ebp - 4]
push esi
push str.Date_Time:__s_r_nSource:_PID__lu__TID__lu___s_s:_s__in_function__s__r_n_wZ_s_wZ_r_n
push edx
push ecx
push edx
jmp 0x40167a
mov ecx, dword [esi + 0xc]
mov edx, 0x4041fc
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x40161b
mov dword [ebp + 8], edx
cmp word [ebx], 0
je 0x401626
mov edx, 0x4046e8
push dword [ebp + 8]
mov ecx, dword [0x4064a8]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
push edx
movzx edx, byte [esi + 0x12]
shl edx, 7
push esi
lea edx, [edx + ecx + 0x1860]
push edx
lea edx, [esi + 0x34]
push edx
movzx edx, byte [esi + 0x11]
add edx, 0x43
shl edx, 5
add edx, ecx
push edx
movzx edx, byte [esi + 0x10]
add edx, 3
shl edx, 5
add edx, ecx
push edx
push dword [esi + 0x1c]
add esi, 0x4a
push dword [esi - 0x32]
lea ecx, [ebp - 4]
push esi
push str.__s__04lx:_04lx__s_s:_s___s____wZ_s_s_r_n
push 0
push ecx
push 0
movzx ecx, word [edi + 2]
push ecx
push eax
call fcn.00401034
add esp, 0x40
pop esi
pop ebx
cmp eax, 0x8007007a
jne 0x4016a3
mov ax, word [edi + 2]
sub ax, 2
mov word [edi], ax
mov eax, 0x80000005
leave
ret
test eax, eax
jns 0x4016b3
xor eax, eax
mov word [edi], ax
mov eax, 0xc000003e
leave
ret
mov ax, word [edi + 2]
sub ax, word [ebp - 4]
mov word [edi], ax
xor eax, eax
leave
ret

Function at 0x4016c2
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x406030
push 0x4019ff
push eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
ret
Function at 0x402716
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
sub esp, 0xc
push ebx
push esi
push dword [0x4064ac]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [0x4064ac], 0
push 0x79
push dword [0x4064c0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x7d
push dword [0x4064c0]
lea ebx, [eax + 1]
call esi
test eax, eax
jne 0x40277f
push 0x7b
push dword [0x4064c0]
call esi
test eax, eax
je 0x40277f
add ebx, 2
mov byte [ebp - 1], 1
jmp 0x402783
mov byte [ebp - 1], 0
push 0x7a
push dword [0x4064c0]
call esi
push 0x7b
mov byte [edi + 8], al
push dword [0x4064c0]
call esi
push 0x7c
mov byte [edi + 9], al
push dword [0x4064c0]
call esi
push 0x7d
mov byte [edi + 0xa], al
push dword [0x4064c0]
call esi
push 0x7e
mov byte [edi + 0xb], al
push dword [0x4064c0]
call esi
lea ecx, [ebx + ebx]
push ecx
mov byte [edi + 0xc], al
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
mov dword [ebp - 8], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [0x4064ac], eax
test eax, eax
je 0x40283f
movzx ecx, byte [ebp - 1]
add ecx, ecx
mov edx, ebx
sub edx, ecx
push edx
add ecx, eax
push ecx
push 0x79
push dword [0x4064c0]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp byte [ebp - 1], 0
mov eax, dword [0x4064ac]
je 0x402821
mov edx, dword [ebp - 8]
push 0x2a
pop ecx
mov word [eax], cx
mov word [eax + ebx*2 - 4], cx
xor ecx, ecx
mov word [edx + eax - 2], cx
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp byte [edi + 9], 0
je 0x40283f
cmp byte [edi + 8], 0
jne 0x40283f
push 0
push edi
push edi
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeString]
push 0x6e
pop ebx
push ebx
push dword [0x4064c0]
call esi
mov byte [edi + ebx - 0x61], al
inc ebx
cmp ebx, 0x73
jbe 0x402842
push 0x83
push dword [0x4064c0]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
push 0x1004
push eax
mov dword [ebp - 8], eax
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4028ae
push 0xf000
push 0
push ebx
push 0x10b5
push dword [ebp - 8]
call esi
push eax
push 0x102c
push dword [ebp - 8]
call esi
shr eax, 0xc
dec al
mov byte [edi + ebx + 0x13], al
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x402882
pop esi
pop ebx
leave
ret
Function at 0x402c5e
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x101f
push dword [0x4064b4]
mov esi, eax
call edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esi + 4]
lea eax, [ebp - 0x18]
push dword [esi]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x402d98
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push dword [0x4064b4]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x30]
push eax
push 0
push 0x1012
push dword [0x4064b4]
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x402d98
push 0x104
push dword [0x4064b4]
mov eax, esi
call fcn.004036b4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x402d98
push edi
call fcn.0040186d
pop ecx
test eax, eax
je 0x402d98
cmp esi, 0x106
sete cl
movzx ecx, cl
push ecx
lea edi, [ebp - 8]
call fcn.0040155f
pop ecx
test eax, eax
js 0x402d98
movzx eax, word [ebp - 8]
add eax, 2
push eax
push 2
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x402d98
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
movzx ecx, word [ebp - 8]
add ecx, 2
push ecx
push dword [ebp - 4]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push dword [0x4064b0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402d98
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push str.Text_copied_to_clipboard.
push dword [0x4064b8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
leave
ret
Function at 0x103f5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x103f51a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103f507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103f506a
add dl, dl
jne 0x103f5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103f50dc
xor eax, eax
add dl, dl
jne 0x103f5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103f517d
add dl, dl
jne 0x103f50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103f50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103f50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103f50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103f50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103f5075
mov eax, 1
add dl, dl
jne 0x103f50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103f50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103f50e1
sub eax, ebx
mov ebx, 1
jne 0x103f5128
mov ecx, 1
add dl, dl
jne 0x103f510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103f5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103f5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103f5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103f513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103f514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103f5136
cmp eax, 0x7d00
jae 0x103f516d
cmp eax, 0x500
jb 0x103f5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103f5075
cmp eax, 0x7f
ja 0x103f5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103f5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103f519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103f5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404708
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.00406910
test esi, esi
jne 0x40473e
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.00406a78
jmp 0x40475c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040464c
mov edi, eax
test esi, esi
je 0x40475c
cmp dword [ebx], 0
je 0x40475c
dec esi
jmp 0x404745
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a5c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057f9
test edi, edi
je 0x4057f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40570b
cmp edi, 0xffffffff
je 0x4056cf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056cf
mov byte [esp], 0
jmp 0x4057f9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40570b
test ebx, ebx
jne 0x405704
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040257c
test eax, eax
jne 0x405704
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057f9
pause
dec ebp
test ebp, ebp
jg 0x4056b4
cmp edi, 0xffffffff
je 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40572e
mov byte [esp], 0
jmp 0x4057f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40567e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040586c
mov edx, eax
mov ebx, dword [0x53a8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405797
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405795
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405797
xor edi, edi
cmp byte [esp], 0
je 0x4057c0
mov ebx, dword [esi]
test bl, 1
jne 0x4057d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x40579d
mov byte [esp + 1], 1
jmp 0x4057d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040257c
cmp ebx, eax
jne 0x4057c0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40574a
cmp byte [esp], 0
je 0x4057f9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406574
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53a050], 0
je 0x4065d5
cmp word [0x53a32c], 0xd7b2
jne 0x40659d
cmp dword [0x53a334], 0
jbe 0x40659d
mov eax, 0x53a328
call dword [0x53a344]
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 0x406600
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x534028], 0
jne 0x4065f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4067cc
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 [0x53402c], 0
je 0x4067f7
mov edx, edi
mov eax, esi
call dword [0x53402c]
mov ebx, eax
jmp 0x406808
mov eax, 8
call fcn.00404380
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x53a051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406794
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 0x40683d
mov edx, 8
mov eax, ebx
call fcn.0040439c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408a08
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 0x408b6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406910
cmp si, word [0x5347dc]
jb 0x408aa0
cmp si, word [0x5349dc]
ja 0x408aa0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408aa0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5347dc]
jae 0x408a7a
mov edi, ebx
dec edi
jmp 0x408a9b
cmp si, word [ebx*8 + 0x5347dc]
jbe 0x408a8a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a9b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5347e0]
call fcn.00408918
jmp 0x408aa0
cmp edi, dword [ebp - 8]
jae 0x408a64
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b4f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b4f
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.0040736c
push dword [ebp - 0x160]
push 0x408b88
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040736c
push dword [ebp - 0x164]
push 0x408b98
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040736c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004075a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b74
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406970
ret
Function at 0x408d20
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 0x408e23
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x53cb51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x53cb6a]
jne 0x408d6c
mov eax, esi
mov edx, 0x53cb6c
mov ecx, 0x55
call fcn.0040736c
push 0x53cb51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e0d
push 0x53cb51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406910
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ddb
cmp byte [0x53cb50], 0
je 0x408da0
mov edx, esi
mov eax, ebx
call fcn.00408c04
jmp 0x408ddb
mov edx, esi
mov eax, ebx
call fcn.00408a08
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408ddb
cmp dword [esi], 0
je 0x408dc4
mov eax, esi
mov edx, 0x408e3c
call fcn.004074c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a08
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074c4
push 0x53cb51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x53cb6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072d0
push eax
push 0x53cb6c
call sub.kernel32.dll_lstrcpynW
push 0x53cb51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e2a
lea eax, [ebp - 4]
call fcn.00406910
ret
Function at 0x409058
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.004069f4
xor eax, eax
push ebp
push 0x40927d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409098
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4090b2
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072d0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409267
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40928c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409181
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40928c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409181
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409181
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409181
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409181
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409330
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409267
xor eax, eax
push ebp
push 0x409260
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e64
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 0x4091f0
mov eax, dword [ebp - 0x10]
call fcn.00404380
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.00407330
jmp 0x40923b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409370
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40923b
mov eax, dword [ebp - 0x10]
call fcn.00404380
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409370
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407330
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409267
cmp dword [ebp - 8], 0
je 0x409256
mov eax, dword [ebp - 8]
call fcn.0040439c
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 0x409284
lea eax, [ebp - 4]
call fcn.00406910
ret