joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcfbc90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8a0000]
push edi
jmp 0xcfbcaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcfbcb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcfbca0
mov eax, 1
add ebx, ebx
jne 0xcfbcc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcfbcd4
jne 0xcfbcf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcfbcf3
dec eax
add ebx, ebx
jne 0xcfbce0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xcfbcb8
add ebx, ebx
jne 0xcfbcef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xcfbd45
xor ecx, ecx
sub eax, 3
jb 0xcfbd0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcfbd7a
sar eax, 1
mov ebp, eax
jmp 0xcfbd16
add ebx, ebx
jne 0xcfbd16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcfbce4
inc ecx
add ebx, ebx
jne 0xcfbd24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcfbce4
add ebx, ebx
jne 0xcfbd31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcfbd26
jne 0xcfbd42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcfbd26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcfbd64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcfbd56
jmp 0xcfbca6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcfbd64
add edi, ecx
jmp 0xcfbca6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcfbd82
cmp byte [edi], 0x11
jne 0xcfbd82
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 al, bl
loop 0xcfbd87
lea edi, [esi + 0x8f4000]
mov eax, dword [edi]
or eax, eax
je 0xcfbdff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x111133c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11114b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcfbdb4
mov ecx, edi
jns 0xcfbde3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11114bc]
or eax, eax
je 0xcfbdf9
mov dword [ebx], eax
add ebx, 4
jmp 0xcfbdd1
call dword [esi + 0x11114cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xcfbe30
cmp al, 0xef
ja 0xcfbe23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xcfbe05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xcfbe12
mov ebp, dword [esi + str.W:4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xcfbe64
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x10014db4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10014dc3
pop dword [ebp - 0x18]
mov eax, 0x2c748d7c
add eax, 0xe38cc047
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x583ff682
add dword [ebp - 0x28], 0xf6124ec9
mov dword [ebp - 0x24], 0x9dcd900d
add dword [ebp - 0x24], 0x9465bc38
mov dword [ebp - 0x20], 0xf51364ae
add dword [ebp - 0x20], 0x5738df80
mov dword [ebp - 0x1c], 0x14949dbd
sub dword [ebp - 0x1c], 0x14949dbd
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x66c6c2ff
add dword [ebp - 0x28], 0xdaba657
mov dword [ebp - 0x24], 0xf482d342
sub dword [ebp - 0x24], 0xb31671cd
mov dword [ebp - 0x20], 0x8acb59a2
sub dword [ebp - 0x20], 0x275bed36
mov dword [ebp - 0x1c], 0xcc81e0cf
add dword [ebp - 0x1c], 0x337e1f31
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38d95
push 0
call eax
mov ecx, 0x3d8d
mov edi, eax
mov edx, 0x9880c47b
add edx, 0x77824785
add edx, dword [ebp - 0x18]
mov esi, 0x70ed3b00
sub esi, 0xa9f19f6e
sub dword [ebp - 4], eax
mov ebx, dword [edx]
add dword [ebp - 0xc], 0xba707b5
xor ebx, esi
mov dword [ebp - 0xc], 0xe31f7fbe
mov dword [edi], ebx
xor dword [ebp - 0x10], esi
add edi, 4
add edx, 0x1e8c15d0
add edx, 0xe173ea34
loop 0x10014ed5
add eax, 0x576159ee
sub eax, 0x576070e7
mov ebx, eax
add eax, 0x99fbfe04
add eax, 0x66040201
mov ecx, 0x848d5cc7
sub ecx, 0x748d5cc7
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10014db4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10014db4
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10014db4
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10014db4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10

Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10014db4
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8
Function at 0x401166
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a008]
jne 0x401170
repz ret
jmp fcn.00401631

Function at 0x403e35
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004017a9
and dword [ebp - 4], 0
cmp dword [0x40b6ac], 0
mov ebx, eax
jne 0x403ee6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403f97
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403f97
push eax
call fcn.00401737
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b6ac], eax
call esi
push eax
call fcn.00401737
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b6b0], eax
call esi
push eax
call fcn.00401737
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b6b4], eax
call esi
push eax
call fcn.00401737
pop ecx
mov dword [0x40b6bc], eax
test eax, eax
je 0x403ee6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401737
pop ecx
mov dword [0x40b6b8], eax
mov eax, dword [0x40b6b8]
cmp eax, ebx
je 0x403f3e
cmp dword [0x40b6bc], ebx
je 0x403f3e
push eax
call fcn.004017b2
push dword [0x40b6bc]
mov esi, eax
call fcn.004017b2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x403f3e
test edi, edi
je 0x403f3e
call esi
test eax, eax
je 0x403f35
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403f35
test byte [ebp - 0xc], 1
jne 0x403f3e
or dword [ebp + 0x10], 0x200000
jmp 0x403f77
mov eax, dword [0x40b6b0]
cmp eax, ebx
je 0x403f77
push eax
call fcn.004017b2
pop ecx
test eax, eax
je 0x403f77
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403f77
mov eax, dword [0x40b6b4]
cmp eax, ebx
je 0x403f77
push eax
call fcn.004017b2
pop ecx
test eax, eax
je 0x403f77
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b6ac]
call fcn.004017b2
pop ecx
test eax, eax
je 0x403f97
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403f99
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4044d4
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.0040667c
test esi, esi
jne 0x40450c
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.004067b8
jmp 0x40452a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404418
mov edi, eax
test esi, esi
je 0x40452a
cmp dword [ebx], 0
je 0x40452a
dec esi
jmp 0x404513
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405cac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43f04c], 0
je 0x405d0d
cmp word [0x43f328], 0xd7b2
jne 0x405cd5
cmp dword [0x43f330], 0
jbe 0x405cd5
mov eax, 0x43f324
call dword [0x43f340]
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 0x405d38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43d030], 0
jne 0x405d29
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4081ac
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 0x408313
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040667c
cmp si, word [0x43d7d0]
jb 0x408246
cmp si, word [0x43d9d0]
ja 0x408246
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408246
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43d7d0]
jae 0x408220
mov edi, ebx
dec edi
jmp 0x408241
cmp si, word [ebx*8 + 0x43d7d0]
jbe 0x408230
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408241
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43d7d4]
call fcn.004080bc
jmp 0x408246
cmp edi, dword [ebp - 0xc]
jae 0x40820a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4082f5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4082f5
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.00406864
push dword [ebp - 0x164]
push 0x408330
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406864
push dword [ebp - 0x168]
push 0x408340
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406864
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40831a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406674
ret
Function at 0x4084cc
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 0x4085d1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x441b54
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x441b6c]
jne 0x408518
mov eax, esi
mov edx, 0x441b70
mov ecx, 0x55
call fcn.00406864
push 0x441b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4085bb
push 0x441b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040667c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408589
cmp byte [0x441b50], 0
je 0x40854e
mov edx, esi
mov eax, ebx
call fcn.004083ac
jmp 0x408589
mov edx, esi
mov eax, ebx
call fcn.004081ac
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408589
cmp dword [esi], 0
je 0x408572
mov eax, esi
mov edx, 0x4085ec
call fcn.00406a6c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004081ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406a6c
push 0x441b54
call sub.kernel32.dll_EnterCriticalSection
mov word [0x441b6c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406708
push eax
push 0x441b70
call sub.kernel32.dll_lstrcpynW
push 0x441b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4085d8
lea eax, [ebp - 4]
call fcn.0040666c
ret
Function at 0x408810
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.00406664
xor eax, eax
push ebp
push 0x4089f5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408850
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40886a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406708
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4089df
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408a04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4088f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408a04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4088f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408a38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4088f9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408a6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4089df
xor eax, eax
push ebp
push 0x4089d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408614
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 0x408968
mov eax, dword [ebp - 0x10]
call fcn.00404180
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.00406828
jmp 0x4089b3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408aac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4089b3
mov eax, dword [ebp - 0x10]
call fcn.00404180
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408aac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089df
cmp dword [ebp - 8], 0
je 0x4089ce
mov eax, dword [ebp - 8]
call fcn.0040419c
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 0x4089fc
lea eax, [ebp - 4]
call fcn.0040666c
ret
Function at 0x408cc0
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.00406664
mov eax, dword [ebp - 0x21c]
call fcn.00406664
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x408e5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040667c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406708
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 0x408d60
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408d72
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x408d5d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x408e2b
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 0x408d9b
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.00408810
cmp dword [ebp - 0x220], 0
je 0x408dd3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408bb4
pop ecx
mov ebx, eax
jmp 0x408e2b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004084cc
mov eax, dword [ebp - 0x224]
call fcn.00408bb4
pop ecx
mov ebx, eax
test bl, bl
jne 0x408e1e
cmp byte [0x441b50], 0
jne 0x408e1e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004084cc
mov eax, dword [ebp - 0x228]
call fcn.00408bb4
pop ecx
mov ebx, eax
test bl, bl
jne 0x408e2b
push ebp
call fcn.00408c64
pop ecx
mov ebx, eax
test bl, bl
je 0x408e41
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e66
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406674
ret

Function at 0x4095a8
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 0x40a614
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x441c48
push 0xa
push 0x40a6a8
mov eax, dword [0x441c38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a638
call fcn.004152dc
push ebx
mov eax, dword [0x441c38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a64f
call fcn.004152dc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a661
call fcn.004152dc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x441c4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x441c50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x441c54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x441c58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x441c5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x441c60], edx
pop esi
pop ebx
ret

Function at 0x40e058
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e101
test eax, edx
je 0x40e104
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e081
push edx
mov edx, eax
mov eax, esp
call fcn.00406880
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e097
push eax
lea eax, [esp + 8]
call fcn.00406880
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e0a6
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e0cd
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 0x40e0e7
add ecx, 4
js 0x40e0be
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e0e4
push eax
mov eax, ecx
mov edx, 2
call fcn.00405e84
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e0cb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e0cd
xor eax, eax
ret
test eax, eax
je 0x40e114
test edx, edx
jne 0x40e068
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406708
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40f1de
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40f1ff
cmp ebx, 3
je 0x40f1ff
cmp ebx, 0x7b
je 0x40f1ff
mov eax, esi
call fcn.0040f180
test al, al
jne 0x40f203
xor eax, eax
jmp 0x40f205
mov al, 1
pop esi
pop ebx
ret

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

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