joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509be0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x509cc3
push esi
mov esi, dword [esp + 0x14]
inc esi
lea ebx, [ebx]
movzx edx, byte [esi - 1]
cmp edi, 3
jl 0x509c5d
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], dl
jmp 0x509cae
shl edx, 0x10
cmp edi, 2
jne 0x509c6d
movzx eax, byte [esi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
cmp edi, 1
jne 0x509c9a
lea edx, [edi + 0x3c]
jmp 0x509ca7
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub edi, 3
add ecx, 4
add ebp, 4
add esi, 3
test edi, edi
jg 0x509c00
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x50b110
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.00461520
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x50b12a
xor eax, eax
pop edi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x50b1ce
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x50b19a
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
call fcn.004b8fa0
add esp, 8
test eax, eax
jne 0x50b1bb
mov ecx, 0x5ab198
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x50b184
test dl, dl
je 0x50b180
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x50b184
add eax, 2
add ecx, 2
test dl, dl
jne 0x50b164
xor eax, eax
jmp 0x50b189
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x50b19a
push edi
call sub.MSVCR100.dll_getenv
add esp, 4
test eax, eax
jne 0x50b1be
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], edi
call fcn.004b8fa0
add esp, 8
test eax, eax
je 0x50b1c5
mov eax, dword [eax + 8]
pop esi
pop ebx
pop edi
add esp, 0xc
ret
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret
push edi
call sub.MSVCR100.dll_getenv
add esp, 4
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x53eaf7
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.00461520
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
je 0x53ec5a
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 4]
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 7]
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 8
mov byte [edi], dl
mov byte [ebp], al
call fcn.004f4150
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004f4220
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0051a300
push ebp
call fcn.004f4150
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004f4220
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0051a300
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ebx
shr edx, 0x10
mov byte [eax + 2], dl
mov edx, dword [esp + 0x44]
shr ebx, 0x18
mov byte [eax + 3], bl
mov ebx, edx
add esp, 0x30
mov byte [eax + 4], dl
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax + 6], bl
mov byte [eax + 7], dl
mov eax, ebp
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
dec dword [esp + 0x18]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
jne 0x53eb13
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.004610a0
add esp, 0xa0
ret
Function at 0x548f50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x548f69
mov esi, edi
mov edi, eax
jmp 0x548f6b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x548f7b
mov eax, ebx
jmp 0x548f85
push eax
push ebx
call fcn.004aed90
add esp, 8
test eax, eax
jne 0x548f8d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x548fa9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x548f94
cmp eax, dword [esi + 4]
jge 0x548fc0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x548fb0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x548fe1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x548fde
dec eax
test eax, eax
jg 0x548fd0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x55e5ef
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a87c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5d6c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
and dword [eax], 0
mov eax, dword [ebp - 0x28]
and dword [eax + 4], 0
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
add ecx, 8
call fcn.00428c0d
and dword [ebp - 4], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xc
call fcn.00404b10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 0x28]
and dword [eax + 0x30], 0
mov eax, dword [ebp - 0x28]
mov cl, byte [ebp + 0x14]
mov byte [eax + 0x34], cl
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x35], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0x28]
add ecx, 8
call fcn.00428c63
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x55e691
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax + 4]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x2c], eax
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp + 0x14]
neg eax
sbb al, al
inc al
movzx eax, al
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x2c]
mov eax, dword [ebp - 0x28]
add eax, 0xc
push eax
call fcn.004315e0
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x55e731
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x55e731
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x55e731
mov eax, dword [ebp - 0x28]
push dword [eax + 0x2c]
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x55e731
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.00431672
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.00431672
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x28]
add ecx, 8
call fcn.00428c79
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 0x10
Function at 0x55f265
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56810d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5d6c64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x3c], 0
je 0x55f2a9
mov eax, dword [ebp - 0x34]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x55f31d
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0055f17b
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 8
jb 0x55f2d5
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
jmp 0x55f2db
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push connect
push dword [ebp - 0x3c]
push str.static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x3c], eax
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406660
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x55f356
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x55f352
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Installer__CreateSilentWnd_failed__d_
push 4
call fcn.0041b5a4
add esp, 0xc
xor al, al
jmp 0x55f3b3
push 0x55ed2a
push 0xfffffffffffffffc
mov eax, dword [ebp - 0x34]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 0x34]
push 0xffffffffffffffeb
mov eax, dword [ebp - 0x34]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
mov eax, dword [ebp - 0x34]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x34]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x55f3b1
push str._Installer__CreateSilentWnd_success
push 0
call fcn.0041b5a4
pop ecx
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004610a0
leave
ret
Function at 0x55f3ca
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x55f413
push 0x7b
mov eax, dword [ebp - 8]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0xffffffffffffffeb
mov eax, dword [ebp - 8]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp - 8]
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 8]
and dword [eax + 0x3c], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
je 0x55f45b
push 0
mov eax, dword [ebp - 8]
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x55f45b
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 4]
mov eax, dword [ebp - 8]
push dword [eax + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 8]
and dword [eax + 0x40], 0
mov al, 1
leave
ret
Function at 0x402a80
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.004041e8
test esi, esi
jne 0x402ab6
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.004042d8
jmp 0x402ad4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402994
mov edi, eax
test esi, esi
je 0x402ad4
cmp dword [ebx], 0
je 0x402ad4
dec esi
jmp 0x402abd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x471020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40323c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40321c
xor eax, eax
push ebp
push 0x403215
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 0x403258
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 0x40321c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x471020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x471020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fe8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47304c], 0
je 0x404049
cmp word [0x473220], 0xd7b2
jne 0x404011
cmp dword [0x473228], 0
jbe 0x404011
mov eax, 0x47321c
call dword [0x473238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47106c
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 0x404070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x471030], 0
jne 0x404065
push 0
push 0x471064
push 0x47106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40419c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402758
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404164
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40593c
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 0x405b6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059bf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4059bf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405b88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a48
xor eax, eax
push ebp
push 0x405a41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405784
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 0x405a26
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ba8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a26
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 0x405a48
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 0x405b62
cmp byte [ebp - 0xd], 0
jne 0x405a8f
cmp byte [ebp - 0x12], 0
je 0x405b62
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405aa8
dec ebx
cmp byte [ebx], 0x2e
je 0x405ab7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405aa7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405b62
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405af4
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 0x405b62
cmp byte [ebp - 0xd], 0
je 0x405b62
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 0x405b62
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 0x406278
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 0x4062de
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.00404458
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d68
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062c8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062e5
lea eax, [ebp - 0x10]
call fcn.004041e8
ret

Function at 0x408cb8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408cd1
test al, 0x10
jne 0x408cd5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b760
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 0x40b799
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d8
jmp 0x40b7a2
mov eax, ebx
mov edx, esi
call fcn.0040423c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b7ac
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 0x40b7cd
mov al, byte [esp]
jmp 0x40b7cf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40be54
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bccc
mov eax, dword [0x4724bc]
cmp byte [eax], 0
je 0x40bed0
mov eax, dword [0x472250]
call fcn.00402b98
call fcn.004028c0
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.00408ee0
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 0x40bf18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bf06
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4721fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x473668]
call fcn.00405748
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
Function at 0x40c7b4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c88a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404280
lea eax, [ebp - 8]
call fcn.004046f8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c874
mov eax, ebx
call fcn.00402758
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c86d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c857
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c89c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c857
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c874
mov eax, dword [ebp - 0x10]
call fcn.00402778
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c891
lea eax, [ebp - 8]
call fcn.004041e8
ret

Function at 0x40cde0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ce44
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404458
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408918
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce4b
lea eax, [ebp - 0xc]
call fcn.004041e8
ret

Function at 0x41ed0c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041eb64
dec esi
jne 0x41ed2e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret