joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ec1a0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe40], 0
jle 0x6ec1c5
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
jmp 0x6ec339
mov eax, dword [ebp - 4]
cmp byte [eax + 0x268], 0
je 0x6ec1da
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x6ec20f
mov eax, dword [ebp - 4]
test byte [eax + 0x5d], 1
jne 0x6ec1ff
mov eax, dword [ebp - 4]
call fcn.004958f8
test eax, eax
jne 0x6ec1ff
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049cbe0
jmp 0x6ec339
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004971cc
jmp 0x6ec339
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x6ec332
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00499e94
push eax
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.00492320
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.006ec1a0
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00499e94
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ec339
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f0], 0
jne 0x6ec362
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44a8], 0
jne 0x6ec362
mov eax, dword [ebp - 4]
inc dword [eax + 0x44a8]
mov eax, dword [ebp - 4]
call fcn.006ca7a4
mov esp, ebp
pop ebp
ret
Function at 0x702264
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x440f40]
call fcn.00406664
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x4bf5b4]
call fcn.00406664
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x702386
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.006fc7e4
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x702348
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x702337
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
call fcn.00404874
mov eax, dword [ebp - 0x1c]
push eax
movzx eax, word [0x7656e4]
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x70233e
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
Function at 0x702394
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7024a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005f3dc4
mov edx, dword [ebp - 0x10]
mov eax, 0x7024c0
call fcn.0040950c
test eax, eax
je 0x702490
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x7023f5
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x702490
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x70242a
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GlobalFree
jmp 0x702490
mov edx, 0x7024c8
mov eax, dword [ebp - 0x18]
call fcn.00422510
mov eax, dword [ebp - 0x10]
call fcn.00408f4c
mov edx, eax
mov eax, dword [ebp - 0x18]
call fcn.00422620
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.00499e94
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x70246f
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GlobalFree
jmp 0x702490
push 0x7024cc
call sub.user32.dll_RegisterClipboardFormatW
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x1a]
push eax
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7024ad
lea eax, [ebp - 0x10]
call fcn.0040830c
ret
Function at 0x722c90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x722cf1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x42], 0
jne 0x722cf1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + 0x23b8]
mov dword [edx + 0x40], ecx
mov ecx, dword [eax + 0x23bc]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x6c], 0
mov eax, dword [ebp - 8]
call fcn.0049a240
test al, al
je 0x722cf1
push 0
mov eax, dword [ebp - 8]
call fcn.00499e94
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ecx
pop ebp
ret
Function at 0x747870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
xor ecx, ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004083f0
xor eax, eax
push ebp
push 0x7479ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov eax, 2
call fcn.0072aebc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 0x14]
call fcn.0072aedc
mov dword [ebp - 0x10], eax
jmp 0x7479c6
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00408fe0
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.00422260
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.00420554
mov eax, dword [ebp - 0x244]
push eax
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 8]
call fcn.00420554
mov edx, dword [ebp - 0x250]
pop eax
call fcn.00409328
je 0x74799a
lea eax, [ebp - 0x258]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00408fe0
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x254]
call fcn.00420554
mov eax, dword [ebp - 0x254]
push eax
lea edx, [ebp - 0x25c]
mov eax, dword [ebp - 8]
call fcn.00420554
mov edx, dword [ebp - 0x25c]
pop eax
call fcn.00409328
jne 0x7479b5
push 0
mov eax, dword [ebp - 0x238]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 0x14]
call fcn.0072aefc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x7478f5
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x747a06
lea eax, [ebp - 0x25c]
mov edx, 7
call fcn.0040836c
lea eax, [ebp - 8]
call fcn.0040830c
ret
Function at 0x4e4760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x65000]
push edi
or ebp, 0xffffffff
jmp 0x4e4782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e4789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e4778
mov eax, 1
add ebx, ebx
jne 0x4e479b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e47ac
jne 0x4e47cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e47cb
dec eax
add ebx, ebx
jne 0x4e47b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e4790
add ebx, ebx
jne 0x4e47c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e481d
xor ecx, ecx
sub eax, 3
jb 0x4e47e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e4852
sar eax, 1
mov ebp, eax
jmp 0x4e47ee
add ebx, ebx
jne 0x4e47ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e47bc
inc ecx
add ebx, ebx
jne 0x4e47fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e47bc
add ebx, ebx
jne 0x4e4809
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e47fe
jne 0x4e481a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e47fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e483c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e482e
jmp 0x4e477e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e483c
add edi, ecx
jmp 0x4e477e
pop esi
mov edi, esi
mov ecx, 0x1da6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e485a
cmp byte [edi], 0x17
jne 0x4e485a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e485f
lea edi, [esi + 0xe1000]
mov eax, dword [edi]
or eax, eax
je 0x4e48d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe4000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe4160]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e488c
mov ecx, edi
jns 0x4e48bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe4168]
or eax, eax
je 0x4e48d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4e48a9
call dword [esi + 0xe4164]
mov ebp, dword [esi + 0xe416c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e490b
sub esp, 0xffffff80
jmp 0x42c323
Function at 0x404984
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.004075ec
test esi, esi
jne 0x4049ba
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.00407774
jmp 0x4049d8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404868
mov edi, eax
test esi, esi
je 0x4049d8
cmp dword [ebx], 0
je 0x4049d8
dec esi
jmp 0x4049c1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4062a4
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.0040669c
mov byte [esp], al
cmp byte [esp], 0
jne 0x406430
test edi, edi
je 0x406430
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406367
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406342
cmp edi, 0xffffffff
je 0x406303
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406303
mov byte [esp], 0
jmp 0x406430
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406342
test ebx, ebx
jne 0x406338
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004027e0
test eax, eax
jne 0x406338
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406430
call 0x4067c0
dec ebp
test ebp, ebp
jg 0x4062e8
cmp edi, 0xffffffff
je 0x406367
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406365
mov byte [esp], 0
jmp 0x406430
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4062b2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x406367
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004064a0
mov edx, eax
mov ebx, dword [reloc.oleaut32.dll_SetErrorInfo]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4063ce
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4063cc
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4063ce
xor edi, edi
cmp byte [esp], 0
je 0x4063f7
mov ebx, dword [esi]
test bl, 1
jne 0x406410
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x4063d4
mov byte [esp + 1], 1
jmp 0x406410
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004027e0
cmp ebx, eax
jne 0x4063f7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406381
cmp byte [esp], 0
je 0x406430
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 0x407284
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x537058], 0
je 0x4072eb
cmp word [0x537344], 0xd7b2
jne 0x4072ad
cmp dword [reloc.user32.dll_SetParent], 0
jbe 0x4072ad
mov eax, 0x537340
call dword [0x53735c]
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, 0x407318
call fcn.00407f3c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x532032], 0
jne 0x407307
push 0
push 0x5329ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4074a8
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 [0x532034], 0
je 0x4074d3
mov edx, edi
mov eax, esi
call dword [0x532034]
mov ebx, eax
jmp 0x4074e4
mov eax, 8
call fcn.004045a4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x537059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407470
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 0x407519
mov edx, 8
mov eax, ebx
call fcn.004045c0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409ce4
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 0x409e49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004075ec
cmp si, word [0x532a08]
jb 0x409d7c
cmp si, word [0x532c08]
ja 0x409d7c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409d7c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x532a08]
jae 0x409d56
mov edi, ebx
dec edi
jmp 0x409d77
cmp si, word [ebx*8 + 0x532a08]
jbe 0x409d66
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409d77
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x532a0c]
call fcn.00409bf4
jmp 0x409d7c
cmp edi, dword [ebp - 8]
jae 0x409d40
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409e2b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409e2b
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.00408368
push dword [ebp - 0x160]
push 0x409e64
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408368
push dword [ebp - 0x164]
push 0x409e74
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408368
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004085a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e50
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040764c
ret
Function at 0x409ffc
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 0x40a0ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x539b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x539ba0]
jne 0x40a048
mov eax, esi
mov edx, 0x539ba2
mov ecx, 0x55
call fcn.00408368
push 0x539b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a0e9
push 0x539b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004075ec
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a0b7
cmp byte [0x539b84], 0
je 0x40a07c
mov edx, esi
mov eax, ebx
call fcn.00409ee0
jmp 0x40a0b7
mov edx, esi
mov eax, ebx
call fcn.00409ce4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a0b7
cmp dword [esi], 0
je 0x40a0a0
mov eax, esi
mov edx, 0x40a118
call fcn.004084c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409ce4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004084c0
push 0x539b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x539ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.004082d4
push eax
push 0x539ba2
call sub.kernel32.dll_lstrcpynW
push 0x539b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a106
lea eax, [ebp - 4]
call fcn.004075ec
ret
Function at 0x40a334
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.004076d0
xor eax, eax
push ebp
push 0x40a559
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a374
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a38e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004082d4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a543
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a568
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a45d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a568
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a45d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a5a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a45d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a5a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a45d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a5d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a45d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a60c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a543
xor eax, eax
push ebp
push 0x40a53c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a140
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 0x40a4cc
mov eax, dword [ebp - 0x10]
call fcn.004045a4
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.0040832c
jmp 0x40a517
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a64c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a517
mov eax, dword [ebp - 0x10]
call fcn.004045a4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a64c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040832c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a543
cmp dword [ebp - 8], 0
je 0x40a532
mov eax, dword [ebp - 8]
call fcn.004045c0
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 0x40a560
lea eax, [ebp - 4]
call fcn.004075ec
ret