joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469a80
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [esp + 8], edi
cmp dword [ebx + 0x38], edi
je 0x469aab
mov eax, dword [ebx + 0x44]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x38]
push ecx
call fcn.00407f4f
add esp, 4
mov dword [ebx + 0x38], edi
push edi
push esi
call fcn.00408562
add esp, 8
test eax, eax
je 0x469ac1
pop edi
xor eax, eax
pop esi
add esp, 8
ret
push ebp
push edi
push 0x80
push 3
push edi
push edi
push DirectSoundCreate
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push edx
push 0xe
mov ebp, eax
push ebx
push ebp
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 0x28
lea esi, [ebx + 0x10]
push esi
push ebp
call edi
movzx eax, word [ebx + 0x1e]
mov edx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
lea ecx, [eax - 1]
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edi
cmp ecx, 0x1f
ja case.0x469b1b.2
movzx ecx, byte [ecx + 0x469c2c]
jmp dword [ecx*4 + 0x469c18]
mov dword [ebx + 0x54], 2
jmp case.0x469b1b.2
mov dword [ebx + 0x54], 0x10
jmp case.0x469b1b.2
mov dword [ebx + 0x54], 0x100
jmp case.0x469b1b.2
mov dword [ebx + 0x54], 0
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x469b4e
mov ecx, dword [ebx + 0x54]
imul eax, edx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, edi
add eax, eax
add eax, eax
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x10], ecx
test eax, eax
je 0x469bb1
lea edx, [eax*4 + 0x28]
push edx
call fcn.004082ac
add esp, 4
mov edi, eax
mov dword [ebx + 0x38], eax
push 0
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x38]
lea edx, [ecx*4]
push edx
add eax, 0x28
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x469bc7
push 0x28
call fcn.004082ac
mov ecx, 0xa
mov edi, eax
mov dword [ebx + 0x38], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x10]
push 0
push 0
lea esi, [ebx + 0x40]
push esi
push 0
push eax
add ecx, eax
push 0
mov dword [ebx + 0x3c], ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp dword [ebx + 0x20], 0
mov dword [ebx + 0x44], eax
jne 0x469c03
mov eax, dword [ebx + 0x50]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x469c50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
push edi
push str.GetPicture
mov esi, ecx
call fcn.00401050
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x469c71
pop edi
pop esi
add esp, 0x14
ret 4
push ebp
push esi
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x24]
mov ebp, eax
push 0
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push ebp
call edi
test eax, eax
jne 0x469e34
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalLock]
push ecx
call esi
mov edx, dword [esp + 0xc]
mov edi, eax
push edx
mov dword [esp + 0x28], edi
call esi
lea ebp, [ebx + 0x10]
mov esi, edi
mov ecx, 0xa
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
mov dword [esp + 0x14], eax
movzx eax, word [ebx + 0x1e]
lea edx, [eax - 1]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x4c], esi
cmp edx, 0x1f
ja case.0x469d03.2
movzx edx, byte [edx + 0x469e5c]
jmp dword [edx*4 + 0x469e48]
mov dword [ebx + 0x54], 0x10
jmp 0x469d33
mov dword [ebx + 0x54], 0x100
jmp 0x469d33
mov dword [ebx + 0x54], 0
jmp 0x469d33
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x54], 2
imul eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, esi
add eax, eax
add eax, eax
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x469d9b
lea eax, [eax*4 + 0x28]
push eax
call fcn.004082ac
mov ecx, 0xa
mov esi, ebp
mov edi, eax
mov dword [ebx + 0x38], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x30]
add esp, 4
test ecx, ecx
jne 0x469d7d
mov ecx, dword [ebx + 0x54]
test ecx, ecx
jle 0x469db3
mov eax, 0x28
mov esi, dword [esp + 0x24]
mov esi, dword [eax + esi]
mov edx, dword [ebx + 0x38]
mov dword [eax + edx], esi
add eax, 4
sub ecx, 1
jne 0x469d84
jmp 0x469db3
push 0x28
call fcn.004082ac
mov ecx, 0xa
mov esi, ebp
mov edi, eax
mov dword [ebx + 0x38], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebp]
push 0
push 0
lea esi, [ebx + 0x40]
push esi
push 0
push eax
add ecx, eax
push 0
mov dword [ebx + 0x3c], ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edx, dword [ebx + 0x50]
mov ecx, dword [esi]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.00413980
mov esi, dword [sym.imp.KERNEL32.dll_LocalUnlock]
add esp, 0xc
mov edi, edi
mov edx, dword [esp + 0x10]
push edx
call esi
test eax, eax
jne 0x469df0
jmp 0x469e00
mov eax, dword [esp + 0xc]
push eax
call esi
test eax, eax
jne 0x469e00
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
Function at 0x100069a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0xc281c48], 0
jne 0x10006a45
xor ecx, ecx
nop
mov eax, ecx
shr eax, 1
test cl, 1
je 0x100069be
xor eax, 0xedb88320
test al, 1
je 0x100069cb
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069cd
shr eax, 1
test al, 1
je 0x100069da
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069dc
shr eax, 1
test al, 1
je 0x100069e9
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069eb
shr eax, 1
test al, 1
je 0x100069f8
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069fa
shr eax, 1
test al, 1
je 0x10006a07
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a09
shr eax, 1
test al, 1
je 0x10006a16
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a18
shr eax, 1
test al, 1
je 0x10006a25
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a27
shr eax, 1
mov dword [ecx*4 + 0xc281c50], eax
inc ecx
cmp ecx, 0x100
jl 0x100069b0
mov dword [0xc281c48], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x10006a72
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0xc281c50]
dec edx
jne 0x10006a56
pop esi
ret
Function at 0x4068d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068fc
xor eax, eax
test eax, eax
je 0x40690f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40690f
xor ecx, ecx
jmp 0x406912
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a35
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5dec], 0
push esi
jne 0x406a6c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a46
mov dword [ecx*4 + 0x7a5de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a41
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a9d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a5de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a7f
pop edi
not eax
pop esi
ret 0xc

Function at 0x5e40e1
Capabilities:
Encode data using xor

Disassembly:
push 0x31
dec ecx
cmp al, 0xd4
push es
xchg esp, eax
add dword [edi - 0x76], 0xaafd89ff
movsd dword es:[edi], dword [esi]
adc al, 0x3e
mov esp, 0x68d43c21
sub dh, byte [edi]
cmp eax, 0x977d5f4c
or bh, al
invalid
Function at 0x401b5e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x14
call edi
mov esi, eax
pop ecx
test esi, esi
je 0x401cf5
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
and dword [esi + 0xc], 0
push 0x8000
push ebx
mov dword [esi], eax
call dword [sym.imp.MSVCRT.dll__open]
pop ecx
mov dword [esi + 4], eax
test eax, eax
pop ecx
jl 0x401bf1
lea ecx, [ebp - 0x1c]
push 0x1c
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0x1c
jne 0x401bf1
push 8
lea eax, [ebp - 0x1c]
push str.nazgul
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401bf1
call fcn.00401e10
test dword [ebp - 0xc], eax
jne 0x401c0d
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push ebx
push str.Natural_Language_Catalog_System
add eax, 0x40
push str._s:__s_has_the_wrong_byte_order._n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_free]
test eax, eax
je 0x401c02
push eax
call edi
pop ecx
push esi
call edi
pop ecx
xor eax, eax
jmp 0x401d30
cmp dword [ebp - 0x14], 1
je 0x401c37
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 1
push dword [ebp - 0x14]
add eax, 0x40
push ebx
push str.Natural_Language_Catalog_System
push str._s:__s_is_version__d__we_need__d._n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x18
jmp 0x401bf1
mov eax, dword [ebp - 8]
test eax, eax
jg 0x401c5e
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push ebx
push str.Natural_Language_Catalog_System
add eax, 0x40
push str._s:__s_has__d_sets__n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x14
jmp 0x401bf1
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
imul eax, eax, 0x1c
push eax
call edi
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x401ce0
cmp dword [esi + 8], ebx
mov edi, dword [ebp - 4]
jle 0x401d1b
mov dword [ebp + 0xc], ebx
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x401bf1
mov edi, dword [esi + 0xc]
push 0x1c
add edi, dword [ebp + 0xc]
push edi
push dword [esi + 4]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0x1c
jne 0x401bf1
cmp dword [edi + 0x18], 0
je 0x401cc5
dec ebx
sub dword [ebp + 0xc], eax
jmp 0x401d0a
cmp dword [esi], 1
jne 0x401d06
push edi
push esi
call fcn.00401d35
pop ecx
test eax, eax
pop ecx
jg 0x401d0a
cmp eax, 0xffffffff
jne 0x401bf1
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_free]
test eax, eax
je 0x401cf1
push eax
call edi
pop ecx
push esi
call edi
pop ecx
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x1c
or eax, 0xffffffff
jmp 0x401d30
or dword [edi + 0x18], 0xffffffff
add dword [ebp + 0xc], 0x1c
mov edi, dword [edi + 4]
inc ebx
cmp ebx, dword [esi + 8]
jl 0x401c83
cmp dword [esi], 1
jne 0x401d2e
push dword [esi + 4]
call dword [sym.imp.MSVCRT.dll__close]
or dword [esi + 4], 0xffffffff
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d35
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__lseek]
push 0
push dword [esi + 0xc]
push dword [ebx + 4]
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x401e0c
push dword [esi + 0x10]
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [esi + 0xc], eax
je 0x401db3
push dword [esi + 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, dword [esi + 0x10]
jne 0x401e0c
push 0
push dword [esi + 8]
push dword [ebx + 4]
call edi
add esp, 0xc
cmp eax, 0xffffffff
je 0x401e0c
mov eax, dword [esi + 0x14]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [esi + 8], eax
xor ecx, ecx
cmp eax, ecx
jne 0x401db8
or eax, 0xffffffff
jmp 0x401e07
cmp dword [esi + 0x14], ecx
mov dword [ebp + 8], ecx
jle 0x401e00
mov dword [ebp + 0xc], ecx
mov edi, dword [esi + 8]
push 0xc
add edi, dword [ebp + 0xc]
push edi
push dword [ebx + 4]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0xc
jne 0x401e0c
cmp dword [edi + 8], 0
je 0x401deb
dec dword [ebp + 8]
sub dword [ebp + 0xc], eax
jmp 0x401df1
mov eax, dword [esi + 0xc]
add dword [edi + 4], eax
inc dword [ebp + 8]
add dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x14]
jl 0x401dc3
and dword [esi + 0x18], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x401e07
Function at 0x403650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov dword [0xa445c624], eax
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.00403268
push eax
push esi
push dword [ebp + 8]
call fcn.0040321d
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403268
push eax
push esi
push dword [ebp + 8]
call fcn.0040321d
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403258
fisttp dword [esi + eax + 0x7c9d88fe]
invalid

Function at 0x40580a
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x480a8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004681a7
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x480ac6
xor eax, eax
jmp 0x480af2
cmp esi, dword [ebp - 4]
je 0x480aef
cmp dword [ebp + 0xc], 0
je 0x480aef
push dword [edi + 0x9c]
call fcn.0048069c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00465be2
pop ecx
pop ecx
cmp esi, eax
je 0x480ac2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1a9f09d9
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6f630a77
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x403670
Capabilities:
Query or enumerate registry value

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

Function at 0x404514
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f048], 0
je 0x404575
cmp word [0x45f21c], 0xd7b2
jne 0x40453d
cmp dword [0x45f224], 0
jbe 0x40453d
mov eax, 0x45f218
call dword [0x45f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x40459c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d02c], 0
jne 0x404591
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b3c
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 0x405d6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405bbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c48
xor eax, eax
push ebp
push 0x405c41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405978
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 0x405c26
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405da8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c26
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 0x405c48
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 0x405d62
cmp byte [ebp - 0xd], 0
jne 0x405c8f
cmp byte [ebp - 0x12], 0
je 0x405d62
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ca8
dec ebx
cmp byte [ebx], 0x2e
je 0x405cb7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ca7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d62
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405cf4
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 0x405d62
cmp byte [ebp - 0xd], 0
je 0x405d62
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 0x405d62
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 0x408160
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081f0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081f0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081a3
test edx, 3
jne 0x408192
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40819d
jmp 0x4081a3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081a3
cmp dword [ecx - 8], 1
je 0x4081ad
mov edx, ebx
or edx, 3
call fcn.00404de0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081bf
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404694

Function at 0x4081fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40828c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40828c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40823f
test edx, 3
jne 0x40822e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408239
jmp 0x40823f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40823f
cmp dword [ecx - 8], 1
je 0x408249
mov edx, ebx
or edx, 3
call fcn.00404de0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40825b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404694

Function at 0x40b4f0
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 0x40b529
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404784
jmp 0x40b532
mov eax, ebx
mov edx, esi
call fcn.004046e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b53c
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 0x40b55e
movzx eax, byte [esp]
jmp 0x40b560
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret