joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ebd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044e780
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044e800
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044e800
lea ecx, [esi + 0xc]
call fcn.00463411
lea ecx, [esi + 0x10]
call fcn.00463411
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00451030
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00451030
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00451030
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00463486
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00463486
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44f878
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x471da8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44f888
call fcn.0044fda0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44f96b
cmp byte [edi], 0
je 0x44f96b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44f8ad
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044e5a0
test eax, eax
jne 0x44f8cd
push 0x5c04b8
lea ecx, [esi + 0x38]
call fcn.004635c3
jmp 0x44f96b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044e5f0
test eax, eax
jne 0x44f8fc
mov ecx, esi
call fcn.0044e6f0
push edi
add esi, 0x38
push 0x5c0494
push esi
call fcn.0046128a
add esp, 0xc
jmp 0x44f96b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00450620
test eax, eax
je 0x44f964
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044fa40
test eax, eax
jne 0x44f980
push edi
lea eax, [esi + 0x38]
push 0x5c0470
push eax
call fcn.0046128a
add esp, 0xc
mov ecx, esi
call fcn.0044fda0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44fa28
mov ecx, dword [0x5c0784]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0046128a
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044e6a0
test eax, eax
jne 0x44f9ea
push 0x5c0454
lea ecx, [esi + 0x38]
call fcn.004635c3
jmp 0x44f9fa
push 0xfa
mov ecx, esi
call fcn.00450620
test eax, eax
jne 0x44fa17
mov ecx, esi
call fcn.0044fda0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00463486
jmp 0x44f96b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00463486
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46582a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465862
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004638e1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004638b9
jmp 0x46586e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466f1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466f5e
call fcn.0046ca94
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466f5e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466f55
xor eax, eax
jmp 0x466f66
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466f6c
pop edi
pop esi
pop ebx
ret 4

Function at 0x46cfc4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46cff2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d010
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046cf2a
jmp 0x46d010
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d010
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046cf2a
test edi, edi
mov eax, edi
jne 0x46cffa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42312c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x42313b
pop dword [ebp - 0x44]
mov eax, 0x42313b
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x41503
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x48122399
add ecx, 0xb7ee322a
mov edi, eax
mov ebx, 0x435400
add ebx, dword [ebp - 0x44]
mov esi, 0x5c2d162a
add esi, 0x50810657
mov dword [ebp - 0x24], 0xba973bad
mov edx, dword [ebx]
xor dword [ebp - 0x18], ecx
add edx, esi
xor dword [ebp - 0x10], 0x2df064d
mov dword [edi], edx
add dword [ebp - 0x20], ecx
add edi, 0x6891a850
sub edi, 0x6891a84c
add ebx, 4
loop 0x42318a
add eax, 0x53b00c93
add eax, 0xac513d4c
xor ebx, ebx
add ebx, eax
add eax, 0x8077904f
add eax, 0x7f886fb6
mov ecx, 0x33a9ea0f
sub ecx, 0x3369ea0f
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x6136cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x615168
sub eax, eax
test esi, esi
je 0x6137a4
sub eax, 1
test ecx, ecx
je 0x6137a2
test esi, 3
je 0x61370a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x6136ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x613789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x613714
mov ecx, edx
test ecx, ecx
je 0x6137a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x61378f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x6137ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0061382f
jae 0x6137ba
xor ecx, ecx
call fcn.0061382f
jae 0x6137e9
xor eax, eax
call fcn.0061382f
jae 0x6137f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0061382f
adc al, al
jae 0x6137db
jne 0x613825
stosb byte es:[edi], al
jmp 0x6137bd
call fcn.0061383b
sub ecx, ebx
jne 0x613802
call fcn.00613839
jmp 0x613821
lodsb al, byte [esi]
shr eax, 1
je 0x61384b
adc ecx, ecx
jmp 0x61381e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00613839
cmp eax, 0x7d00
jae 0x61381e
cmp ah, 5
jae 0x61381f
cmp eax, 0x7f
ja 0x613820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6137bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x404578
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004070d8
test esi, esi
jne 0x4045b0
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.00407214
jmp 0x4045ce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044bc
mov edi, eax
test esi, esi
je 0x4045ce
cmp dword [ebx], 0
je 0x4045ce
dec esi
jmp 0x4045b7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4064a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b5050], 0
je 0x406505
cmp word [0x4b532c], 0xd7b2
jne 0x4064cd
cmp dword [0x4b5334], 0
jbe 0x4064cd
mov eax, 0x4b5328
call dword [0x4b5344]
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 0x406530
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b2030], 0
jne 0x406521
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406690
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b2038], 0
je 0x4066b6
mov edx, esi
mov eax, ebx
call dword [0x4b2038]
jmp 0x4066c5
mov eax, 8
call fcn.00404204
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b5051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406658
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408f48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4090af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004070d8
cmp si, word [0x4b27e0]
jb 0x408fe2
cmp si, word [0x4b29e0]
ja 0x408fe2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408fe2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b27e0]
jae 0x408fbc
mov edi, ebx
dec edi
jmp 0x408fdd
cmp si, word [ebx*8 + 0x4b27e0]
jbe 0x408fcc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408fdd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4b27e4]
call fcn.00408e58
jmp 0x408fe2
cmp edi, dword [ebp - 0xc]
jae 0x408fa6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409091
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409091
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004072c0
push dword [ebp - 0x164]
push 0x4090cc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004072c0
push dword [ebp - 0x168]
push 0x4090dc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004072c0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407678
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090b6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004070d0
ret
Function at 0x409268
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 0x40936d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b7b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b7b70]
jne 0x4092b4
mov eax, esi
mov edx, 0x4b7b74
mov ecx, 0x55
call fcn.004072c0
push 0x4b7b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409357
push 0x4b7b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004070d8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409325
cmp byte [0x4b7b54], 0
je 0x4092ea
mov edx, esi
mov eax, ebx
call fcn.00409148
jmp 0x409325
mov edx, esi
mov eax, ebx
call fcn.00408f48
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409325
cmp dword [esi], 0
je 0x40930e
mov eax, esi
mov edx, 0x409388
call fcn.004074d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408f48
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074d4
push 0x4b7b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b7b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407164
push eax
push 0x4b7b74
call sub.kernel32.dll_lstrcpynW
push 0x4b7b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409374
lea eax, [ebp - 4]
call fcn.004070c8
ret
Function at 0x4095ac
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.004070c0
xor eax, eax
push ebp
push 0x409791
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4095ec
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409606
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407164
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40977b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409695
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409695
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409695
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409808
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40977b
xor eax, eax
push ebp
push 0x409774
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004093b0
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 0x409704
mov eax, dword [ebp - 0x10]
call fcn.00404204
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.00407284
jmp 0x40974f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409848
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40974f
mov eax, dword [ebp - 0x10]
call fcn.00404204
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409848
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40977b
cmp dword [ebp - 8], 0
je 0x40976a
mov eax, dword [ebp - 8]
call fcn.00404220
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 0x409798
lea eax, [ebp - 4]
call fcn.004070c8
ret
Function at 0x409a5c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004070c0
mov eax, dword [ebp - 0x21c]
call fcn.004070c0
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409bfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004070d8
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407164
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409afc
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409b0e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409af9
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409bc7
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409b37
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004095ac
cmp dword [ebp - 0x220], 0
je 0x409b6f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409950
pop ecx
mov ebx, eax
jmp 0x409bc7
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409268
mov eax, dword [ebp - 0x224]
call fcn.00409950
pop ecx
mov ebx, eax
test bl, bl
jne 0x409bba
cmp byte [0x4b7b54], 0
jne 0x409bba
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409268
mov eax, dword [ebp - 0x228]
call fcn.00409950
pop ecx
mov ebx, eax
test bl, bl
jne 0x409bc7
push ebp
call fcn.00409a00
pop ecx
mov ebx, eax
test bl, bl
je 0x409bdd
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004072c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c02
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004070d0
ret

Function at 0x40a374
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40d2a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b7c4c
push 0xa
push 0x40d338
mov eax, dword [0x4b7c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d2c8
call fcn.0041810c
push ebx
mov eax, dword [0x4b7c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d2df
call fcn.0041810c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d2f1
call fcn.0041810c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b7c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b7c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b7c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b7c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b7c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b7c64], edx
pop esi
pop ebx
ret

Function at 0x410be8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410c91
test eax, edx
je 0x410c94
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410c11
push edx
mov edx, eax
mov eax, esp
call fcn.004072dc
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410c27
push eax
lea eax, [esp + 8]
call fcn.004072dc
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410c36
movzx eax, word [eax]
sub eax, ecx
jmp 0x410c5d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x410c77
add ecx, 4
js 0x410c4e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410c74
push eax
mov eax, ecx
mov edx, 2
call fcn.00406730
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410c5b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410c5d
xor eax, eax
ret
test eax, eax
je 0x410ca4
test edx, edx
jne 0x410bf8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407164
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411d82
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x411da3
cmp ebx, 3
je 0x411da3
cmp ebx, 0x7b
je 0x411da3
mov eax, esi
call fcn.00411d24
test al, al
jne 0x411da7
xor eax, eax
jmp 0x411da9
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407164
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411dc5
test al, 0x10
jne 0x411dc9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret