joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd2d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405856
xor ebx, ebx
cmp dword [0x412b30], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40ce03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40cee3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f548
push edi
call esi
cmp eax, ebx
je 0x40cee3
push eax
call fcn.004057e8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x412b30], eax
call esi
push eax
call fcn.004057e8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x412b34], eax
call esi
push eax
call fcn.004057e8
mov dword [0x412b38], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040764a
test eax, eax
pop ecx
pop ecx
je 0x40cdd1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404b6e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40ce03
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004057e8
cmp eax, ebx
pop ecx
mov dword [0x412b40], eax
je 0x40ce03
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004057e8
pop ecx
mov dword [0x412b3c], eax
mov eax, dword [0x412b3c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40ce88
cmp dword [0x412b40], ecx
je 0x40ce88
push eax
call fcn.0040585f
push dword [0x412b40]
mov esi, eax
call fcn.0040585f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40ce88
cmp edi, ebx
je 0x40ce88
call esi
cmp eax, ebx
je 0x40ce55
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ce55
test byte [ebp - 0x18], 1
jne 0x40ce88
lea eax, [ebp - 0x10]
push eax
call fcn.00407681
test eax, eax
pop ecx
je 0x40ce70
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404b6e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40ce7f
or dword [ebp + 0x10], 0x200000
jmp 0x40cec3
or dword [ebp + 0x10], 0x40000
jmp 0x40cec3
mov eax, dword [0x412b34]
cmp eax, dword [ebp - 8]
je 0x40cec3
push eax
call fcn.0040585f
cmp eax, ebx
pop ecx
je 0x40cec3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40cec3
mov eax, dword [0x412b38]
cmp eax, dword [ebp - 8]
je 0x40cec3
push eax
call fcn.0040585f
cmp eax, ebx
pop ecx
je 0x40cec3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412b30]
call fcn.0040585f
cmp eax, ebx
pop ecx
je 0x40cee3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cee5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403918
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x766008], 0x8088405
inc edx
mov dword [ebx + 0x766008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd10
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd41
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd29
add dl, dl
jne 0x41cd4c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd9d
xor eax, eax
add dl, dl
jne 0x41cd59
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce3a
add dl, dl
jne 0x41cd68
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd73
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd89
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd93
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd38
mov eax, 1
add dl, dl
jne 0x41cdab
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdb6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cda2
sub eax, ebx
mov ebx, 1
jne 0x41cde9
mov ecx, 1
add dl, dl
jne 0x41cdcf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cdda
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdc6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd38
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce00
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce0b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd38
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce5b
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 0x41cd38
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d968
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d97b
add esp, 0xfffffff0
call fcn.00404100
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403e7c
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d9a1
cmp dword [esi + 0x58], 0x40
jb 0x41db87
jmp 0x41d9a7
jl 0x41db87
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.004072cc
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041d590
cmp word [ebx + 0xc], 0x5a4d
jne 0x41db87
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41db87
cmp ecx, 0x10000
jge 0x41db87
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41da02
cmp eax, dword [esi + 0x58]
ja 0x41db87
jmp 0x41da08
jg 0x41db87
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.004072cc
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041d590
cmp dword [ebx + 0x4c], 0x4550
jne 0x41db87
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.004072cc
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041d590
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41dabf
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41da83
cmp eax, dword [esi + 0x58]
ja 0x41db10
jmp 0x41da89
jg 0x41db10
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.004072cc
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041d590
mov byte [ebx + 4], 1
jmp 0x41db10
cmp ax, 0x14c
jne 0x41db10
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41dae0
cmp eax, dword [esi + 0x58]
ja 0x41db10
jmp 0x41dae2
jg 0x41db10
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.004072cc
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041d590
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41db87
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41db41
cmp eax, dword [esi + 0x58]
ja 0x41db87
jmp 0x41db43
jg 0x41db87
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x7514a8]
call fcn.00405f20
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041d590
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41db9e
call fcn.00404158
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e828
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x752ce7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e8d9
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e8c2
test esi, esi
jbe 0x41e8d9
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408d5c
test eax, eax
jne 0x41e8b4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e8d9
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e891
jmp 0x41e8d9
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e8d9
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x752cee
ret
Function at 0x41f128
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x7536d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00405060
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41f163
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f17c
lea eax, [ebp - 0x10]
mov edx, dword [0x76818c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004050c0
jmp 0x41f18f
lea eax, [ebp - 0x10]
mov edx, dword [0x76818c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.004050c0
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f19b
adc edx, 0
mov edx, dword [edx*4 + 0x766cac]
call fcn.004052b0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00405294
push eax
call fcn.00406f48
mov esi, eax
cmp esi, 0xffffffff
je 0x41f2a9
mov eax, 0x40
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00407188
test eax, eax
je 0x41f29c
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f29c
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.004071e0
mov eax, edi
call fcn.004035ec
mov eax, 0x18
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00407188
test eax, eax
je 0x41f29c
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f29c
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f29c
cmp dx, 0x150
ja 0x41f29c
mov eax, edi
call fcn.004035ec
mov eax, 0xe0
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00407188
test eax, eax
je 0x41f29c
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f29c
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.0040509c
mov eax, edi
call fcn.004035ec
push esi
call fcn.00406f00
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.004053c0
jne 0x41f2c1
inc ebx
cmp ebx, 0x19
jne 0x41f155
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7536de
lea eax, [ebp - 0x10]
call fcn.00405060
ret
Function at 0x41f5b8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.004071e0
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.00407188
test eax, eax
je 0x41f655
cmp word [esi], 0x5a4d
jne 0x41f655
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.004071e0
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00407188
test eax, eax
je 0x41f655
cmp dword [ebp - 0x1c], 0x4550
jne 0x41f655
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.004072c4
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x41f655
cmp ax, 0x150
ja 0x41f655
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.00407188
test eax, eax
je 0x41f655
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426824
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x42682d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
call fcn.00405528
xor eax, eax
push ebp
push 0x75b4cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.004267d8
mov eax, dword [ebp + 8]
add dword [eax], 4
Function at 0x4029c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029fd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a1d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404b04
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404894
test esi, esi
jne 0x402bba
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404984
jmp 0x402bd8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a98
mov edi, eax
test esi, esi
je 0x402bd8
cmp dword [ebx], 0
je 0x402bd8
dec esi
jmp 0x402bc1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4bd020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403988
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403968
xor eax, eax
push ebp
push 0x403961
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4039a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403968
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4bd020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4bd020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404718
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c004c], 0
je 0x404779
cmp word [0x4c0220], 0xd7b2
jne 0x404741
cmp dword [0x4c0228], 0
jbe 0x404741
mov eax, 0x4c021c
call dword [0x4c0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bd090
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 0x4047a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bd030], 0
jne 0x404795
push 0
push 0x4bd088
push 0x4bd090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ef4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406124
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406124
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406140
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406000
xor eax, eax
push ebp
push 0x405ff9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d3c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405fde
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406160
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405fde
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406000
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40611a
cmp byte [ebp - 0xd], 0
jne 0x406047
cmp byte [ebp - 0x12], 0
je 0x40611a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406060
dec ebx
cmp byte [ebx], 0x2e
je 0x40606f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40605f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40611a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4060ac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40611a
cmp byte [ebp - 0xd], 0
je 0x40611a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40611a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40683c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4068a2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404b04
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403358
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40688c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068a9
lea eax, [ebp - 0x10]
call fcn.00404894
ret

Function at 0x40984c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404d54
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40986e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c624
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c65d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404984
jmp 0x40c666
mov eax, ebx
mov edx, esi
call fcn.004048e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c670
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c691
mov al, byte [esp]
jmp 0x40c693
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cd18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb90
mov eax, dword [0x4bf97c]
cmp byte [eax], 0
je 0x40cd94
mov eax, dword [0x4bf734]
call fcn.00402ff0
call fcn.00402914
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409c34
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cddc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cdca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bf6cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c0668]
call fcn.00405d00
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret