joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001776
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
mov eax, str.C:_bcdedit.exe
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000183c
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100017b6
push ebx
call fcn.10004dd3
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100017ca
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000002
push 0
push 1
push 0
push 0
push 0
push 0x80000004
push 0
push str.Patch_Guard_Disabled
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100017ff
mov eax, 0x1021a8f1
push eax
push 4
mov ebx, 0x148
call fcn.10005410
add esp, 0x34
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
mov eax, 0
setne al
jmp 0x10001826
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001837
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10003d2e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10003d71
push 0x19
push 0x4013bcf
push 6
call fcn.10004de5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003d88
mov eax, 0x1021a950
jmp 0x10003e37
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x1021a976]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.10001ad9
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.10005a70
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10003dd6
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10001d05
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10003e18
push 0x136
push 0x4013bcf
push 6
call fcn.10004de5
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x10003e32
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10004ddf
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10003e37
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10003e48
push ebx
call fcn.10004dd3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10004347
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x18], 0
je 0x10004382
mov dword [ebp - 4], 0x104
mov dword [ebp - 8], 0x105
jmp 0x10004390
mov dword [ebp - 4], 0x100
mov dword [ebp - 8], 0x101
mov dword [ebp - 0x10], esp
push 0
push dword [ebp + 0xc]
xor eax, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100043c1
push 0xb2
push 0x4013467
push 6
call fcn.10004de5
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 1
jle 0x100043dc
cmp dword [ebp + 0x10], 5
jg 0x100043dc
xor eax, eax
jmp 0x100043e1
mov eax, 1
test eax, eax
je 0x10004447
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push 1
call fcn.1000456c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push 0x102
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_PostMessageW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10004442
push 0x18c
push 0x4013467
push 6
call fcn.10004de5
add esp, 0xc
jmp 0x10004566
cmp dword [ebp + 0x10], 2
je 0x1000445f
cmp dword [ebp + 0x10], 3
je 0x1000445f
xor eax, eax
jmp 0x10004464
mov eax, 1
test eax, eax
je 0x100044c8
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push 1
call fcn.1000456c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_PostMessageW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100044c3
push 0x273
push 0x4013467
push 6
call fcn.10004de5
add esp, 0xc
jmp 0x10004566
cmp dword [ebp + 0x10], 4
jne 0x1000452e
push 1
push 1
push 0
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push 1
call fcn.1000456c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_PostMessageW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10004529
push 0x326
push 0x4013467
push 6
call fcn.10004de5
add esp, 0xc
jmp 0x10004566
cmp dword [ebp + 0x10], 5
jne 0x10004566
push 1
push dword [ebp + 0x18]
push 1
push 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004347
push 1
push dword [ebp + 0x18]
push 1
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004347
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000475b
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x100048f1
mov dword [ebp - 4], 0x400
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x1021a9df]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10001ad9
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 8]
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x100047f4
push 0xba
push 0x4013505
push 6
call fcn.10004de5
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1000482a
push 0xf3
push 0x4013505
push 6
call fcn.10004de5
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100048c5
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fsub qword [0x1021a9df]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10001ad9
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x100048c2
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.10004901
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + 8], eax
jne 0x100048ba
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x100048b0
push 0x1f4
push 0x4013505
push 6
call fcn.10004de5
add esp, 0xc
mov eax, 1
jmp 0x100048fb
pop ebx
pop ecx
pop edx
add ecx, 4
jmp 0x1000485d
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x100048f1
push 0x24f
push 0x4013505
push 6
call fcn.10004de5
add esp, 0xc
mov eax, 0
jmp 0x100048fb
mov esp, ebp
pop ebp
ret 4
Function at 0x10005220
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100052b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x100052a4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1000529c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10005265
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x10005333
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x10005301.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x10005301.2
jmp dword [eax*4 + 0x1000538c]
mov word [esp + 0x48], di
jmp 0x1000533a
mov word [esp + 0x48], 2
jmp 0x1000533a
mov word [esp + 0x48], 3
jmp 0x1000533a
mov word [esp + 0x48], 4
jmp 0x1000533a
mov word [esp + 0x48], 7
jmp 0x1000533a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x10005384
cmp dword [esp + 0x70], edi
je 0x10005370
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x1264610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f9000]
push edi
jmp 0x126462a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1264631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1264620
mov eax, 1
add ebx, ebx
jne 0x1264643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1264654
jne 0x1264673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1264673
dec eax
add ebx, ebx
jne 0x1264660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1264638
add ebx, ebx
jne 0x126466f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12646c5
xor ecx, ecx
sub eax, 3
jb 0x126468b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12646fa
sar eax, 1
mov ebp, eax
jmp 0x1264696
add ebx, ebx
jne 0x1264696
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1264664
inc ecx
add ebx, ebx
jne 0x12646a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1264664
add ebx, ebx
jne 0x12646b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12646a6
jne 0x12646c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12646a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12646e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12646d6
jmp 0x1264626
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12646e4
add edi, ecx
jmp 0x1264626
pop esi
mov edi, esi
mov ecx, 0x44c04f
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x126471f
cmp byte [edi], 0x82
jne 0x1264704
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1264702
lea edi, [esi + 0x9e3000]
mov eax, dword [edi]
or eax, eax
je 0x1264770
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa1ede8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa1ee24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1264725
mov ecx, edi
jns 0x1264754
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 + 0xa1ee28]
or eax, eax
je 0x126476a
mov dword [ebx], eax
add ebx, 4
jmp 0x1264742
call dword [esi + 0xa1ee38]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x12647a1
cmp al, 0xef
ja 0x1264794
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1264776
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1264783
mov ebp, dword [esi + 0xa1ee2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x12647d5
sub esp, 0xffffff80
jmp 0xc4c3e7
Function at 0x40479c
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.00406a60
test esi, esi
jne 0x4047d2
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.00406be8
jmp 0x4047f0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046e0
mov edi, eax
test esi, esi
je 0x4047f0
cmp dword [ebx], 0
je 0x4047f0
dec esi
jmp 0x4047d9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4057cc
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.00405bb8
mov byte [esp], al
cmp byte [esp], 0
jne 0x405955
test edi, edi
je 0x405955
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40588c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405867
cmp edi, 0xffffffff
je 0x40582b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40582b
mov byte [esp], 0
jmp 0x405955
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405867
test ebx, ebx
jne 0x405860
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402610
test eax, eax
jne 0x405860
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405955
pause
dec ebp
test ebp, ebp
jg 0x405810
cmp edi, 0xffffffff
je 0x40588c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40588a
mov byte [esp], 0
jmp 0x405955
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4057da
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402610
cmp ebx, eax
jne 0x40588c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004059c8
mov edx, eax
mov ebx, dword [0x5948cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4058f3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4058f1
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4058f3
xor edi, edi
cmp byte [esp], 0
je 0x40591c
mov ebx, dword [esi]
test bl, 1
jne 0x405935
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402610
cmp ebx, eax
jne 0x4058f9
mov byte [esp + 1], 1
jmp 0x405935
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402610
cmp ebx, eax
jne 0x40591c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4058a6
cmp byte [esp], 0
je 0x405955
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 0x406710
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x594054], 0
je 0x406771
cmp word [0x594330], 0xd7b2
jne 0x406739
cmp dword [0x594338], 0
jbe 0x406739
mov eax, 0x59432c
call dword [0x594348]
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 0x40679c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58b028], 0
jne 0x40678d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40691c
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 [0x58b02c], 0
je 0x406947
mov edx, edi
mov eax, esi
call dword [0x58b02c]
mov ebx, eax
jmp 0x406958
mov eax, 8
call fcn.00404414
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x594055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4068e4
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 0x40698d
mov edx, 8
mov eax, ebx
call fcn.00404430
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408fc4
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 0x409129
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406a60
cmp si, word [0x58b7dc]
jb 0x40905c
cmp si, word [0x58b9dc]
ja 0x40905c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40905c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x58b7dc]
jae 0x409036
mov edi, ebx
dec edi
jmp 0x409057
cmp si, word [ebx*8 + 0x58b7dc]
jbe 0x409046
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409057
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x58b7e0]
call fcn.00408ed4
jmp 0x40905c
cmp edi, dword [ebp - 8]
jae 0x409020
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40910b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40910b
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.00407668
push dword [ebp - 0x160]
push 0x409144
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407668
push dword [ebp - 0x164]
push 0x409154
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407668
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004078a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409130
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406ac0
ret
Function at 0x4092dc
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 0x4093df
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x596b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x596b6e]
jne 0x409328
mov eax, esi
mov edx, 0x596b70
mov ecx, 0x55
call fcn.00407668
push 0x596b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4093c9
push 0x596b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406a60
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409397
cmp byte [0x596b54], 0
je 0x40935c
mov edx, esi
mov eax, ebx
call fcn.004091c0
jmp 0x409397
mov edx, esi
mov eax, ebx
call fcn.00408fc4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409397
cmp dword [esi], 0
je 0x409380
mov eax, esi
mov edx, 0x4093f8
call fcn.004077c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408fc4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004077c0
push 0x596b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x596b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.004075c4
push eax
push 0x596b70
call sub.kernel32.dll_lstrcpynW
push 0x596b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093e6
lea eax, [ebp - 4]
call fcn.00406a60
ret
Function at 0x409614
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.00406b44
xor eax, eax
push ebp
push 0x409839
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409654
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40966e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409823
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409848
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40973d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409848
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40973d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409884
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40973d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409884
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40973d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40973d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409823
xor eax, eax
push ebp
push 0x40981c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409420
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 0x4097ac
mov eax, dword [ebp - 0x10]
call fcn.00404414
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.00407614
jmp 0x4097f7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40992c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4097f7
mov eax, dword [ebp - 0x10]
call fcn.00404414
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40992c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407614
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409823
cmp dword [ebp - 8], 0
je 0x409812
mov eax, dword [ebp - 8]
call fcn.00404430
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 0x409840
lea eax, [ebp - 4]
call fcn.00406a60
ret