joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404937
Capabilities:
Get file version info

Disassembly:
mov eax, 0x40a618
call fcn.00409f88
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString_3
cmp esi, ebx
mov byte [ebp - 4], 1
jne 0x404975
or esi, 0xffffffff
jmp 0x404a01
lea eax, [esi + 2]
push edi
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push eax
push esi
push ebx
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f3d8
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x14]
push 0x64
xor edx, edx
pop ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, eax
mov edi, ecx
and eax, 0xffff
push dword [ebp - 0x10]
shr edi, 0x10
mov dword [ebp - 0x2c], eax
mov eax, edi
div ebx
and ecx, 0xffff
shr esi, 0x10
mov dword [ebp - 0x20], ecx
mov ebx, eax
imul eax, eax, 0x64
sub edi, eax
call sub.MFC42.DLL_operatordelete
imul esi, esi, 0x64
add esi, dword [ebp - 0x2c]
pop ecx
lea eax, [esi + esi*4]
lea esi, [ebx + eax*2]
imul esi, esi, 0x64
add esi, edi
pop edi
imul esi, esi, 0x64
add esi, dword [ebp - 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406c84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406ce0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4079c3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x407a29
cmp byte [ebp + edx - 0x104], 0x2f
lea ecx, [ebp + edx - 0x104]
jne 0x407a24
mov byte [ecx], 0x5c
inc edx
cmp edx, eax
jl 0x407a10
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea esi, [ebp - 0x104]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
je 0x407a8b
mov bl, byte [eax + 1]
lea esi, [eax + 1]
test bl, bl
je 0x407a99
and byte [esi], 0
lea eax, [ebp - 0x104]
push eax
push 0x40f684
call edi
pop ecx
test eax, eax
pop ecx
je 0x407a87
lea eax, [ebp - 0x104]
push eax
push 0x40f680
call edi
pop ecx
test eax, eax
pop ecx
je 0x407a87
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
mov byte [esi], bl
jmp 0x407a35
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407fa0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x40fad8]
sub esp, 0x208
cmp dword [eax + 0x1c], 0x2710
ja 0x40801a
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x40facc]
pop edi
test eax, eax
jne 0x407fda
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push str._s....configDynamicInfo.ini
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [0x40fad8]
add esp, 0x10
lea edx, [esp]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
push str.LastQQUin
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [0x40fad8]
mov dword [edx + 0x1c], eax
add esp, 0x208
ret
Function at 0x408740
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x408886
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x40f7a4]
mov dx, word [0x40f7a8]
mov dword [esp + 0x18], eax
mov al, byte [0x40f7aa]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x40885e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.004088c0
cmp eax, 1
jne 0x40887a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x408867
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.004088c0
jmp 0x40887a
cmp dword [esp + 0x14], 0xc
je 0x408833
jmp 0x408873
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x40887a
mov ecx, ebx
call fcn.00408910
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x4089b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x40fb2c], ecx
mov ecx, esi
call fcn.00408cf0
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x408a00
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x409060
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x409096
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x4090bd
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x409130
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x409166
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x409190
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x414d34
Capabilities:
Change the wallpaper

Disassembly:
push ebx
push esi
push edi
mov edi, edx
sub ecx, 0
je 0x414de0
sub ecx, 1
je 0x414dd2
sub ecx, 1
je 0x414dc4
sub ecx, 1
je 0x414d91
sub ecx, 1
jne 0x414e22
push 1
sub esp, 0x18
mov ecx, esp
push 0x4595d0
call fcn.00402178
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.0040d202
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x4595cc
jmp 0x414e0e
push 1
sub esp, 0x18
mov ecx, esp
push 0x45ef10
call fcn.00402178
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.0040d202
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x4595d0
jmp 0x414e0e
push 1
sub esp, 0x18
mov ecx, esp
push 0x45f27c
jmp 0x414d9d
push 1
sub esp, 0x18
mov ecx, esp
push 0x4595b8
jmp 0x414d9d
push 1
sub esp, 0x18
mov ebx, 0x4595d0
mov ecx, esp
push ebx
call fcn.00402178
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.0040d202
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00402178
push str.TileWallpaper
mov edx, esi
call fcn.0040d202
add esp, 0x20
push 3
push edi
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop edi
pop esi
pop ebx
ret

Function at 0x4150dd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov bl, cl
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [0x467a18]
test bl, bl
mov dword [0x467a34], eax
pop ebx
jne 0x415105
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
push 1
call fcn.00433e83
push eax
push 0x45f640
push str.CONOUT_
call fcn.004377e9
add esp, 0x10
push 0x4e4
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
call fcn.0041509a
push 0x64
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0042ec50
lea edi, [ebp - 0x64]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415145
mov esi, str._n_tRemcos_v
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x64]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41515b
mov esi, str.5.0.0_Light
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x64]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41516f
push 6
pop ecx
mov esi, 0x45f748
lea eax, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00413936
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a394
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x41a3bf
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x41a3bf
cmp al, 0xc0
je 0x41a3bf
cmp al, 0xcc
je 0x41a3bf
add edx, 2
cmp dx, cx
jb 0x41a3a4
pop esi
ret
Function at 0x4095c9
Capabilities:
Read file on windows

Disassembly:
push 0x54
mov eax, 0x416a1f
call fcn.00414056
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x50], ecx
jb 0x4095e5
mov eax, dword [ebx]
jmp 0x4095e7
mov eax, ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.msvcr100.dll__stat64i32]
pop ecx
pop ecx
test eax, eax
je 0x409602
xor al, al
call fcn.004140a0
ret 4
cmp dword [ebx + 0x14], 0x10
jb 0x40960c
mov eax, dword [ebx]
jmp 0x40960e
mov eax, ebx
push 0x4198fc
push eax
call dword [sym.imp.msvcr100.dll_fopen]
xor esi, esi
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
cmp eax, esi
je 0x4095f8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
inc eax
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call fcn.0040a1a1
mov edi, dword [ebp - 0x60]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x48], esi
jbe 0x409674
mov eax, dword [ebp - 0x5c]
sub eax, edi
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
sub eax, esi
push eax
lea eax, [edi + esi]
push 1
push eax
call dword [sym.imp.msvcr100.dll_fread]
add esp, 0x10
test eax, eax
je 0x409696
add esi, eax
cmp esi, dword [ebp - 0x48]
jb 0x409651
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_fclose]
pop ecx
mov byte [edi + esi], 0
mov eax, edi
mov ecx, dword [ebp - 0x50]
push eax
push ebx
call fcn.0040930e
test eax, eax
jne 0x409684
mov bl, 1
jmp 0x4096d4
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_ferror]
pop ecx
test eax, eax
je 0x409674
cmp dword [ebx + 0x14], 0x10
jb 0x4096ac
mov ebx, dword [ebx]
call dword [sym.imp.msvcr100.dll__errno]
push dword [eax]
call dword [sym.imp.msvcr100.dll_strerror]
push eax
push ebx
push str.Failed_to_read_file__s:__s_n
call fcn.004115c7
push dword [ebp - 0x44]
call dword [sym.imp.msvcr100.dll_fclose]
add esp, 0x14
xor bl, bl
lea ecx, [ebp - 0x60]
call fcn.00409d10
mov al, bl
jmp 0x4095fa
Function at 0x40a1a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40a1b0
pop dword [ebp - 0x4c]
mov eax, 0x8b65d141
add eax, 0x74dad06f
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xbd9e9068
add dword [ebp - 0x5c], 0x90b3b4e3
mov dword [ebp - 0x58], 0x6a7f487a
sub dword [ebp - 0x58], 0x384bfc35
mov dword [ebp - 0x54], 0x9e7f9b98
add dword [ebp - 0x54], 0xadcca896
mov dword [ebp - 0x50], 0xf540dd4d
sub dword [ebp - 0x50], 0xf540dd4d
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xc0c8403a
sub eax, 0xc086bf56
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xe66ef30e
sub dword [ebp - 0x5c], 0x71fc89b8
mov dword [ebp - 0x58], 0x7d8bd169
sub dword [ebp - 0x58], 0x3c1f6ff4
mov dword [ebp - 0x54], 0x267d1008
sub dword [ebp - 0x54], 0xc30da39c
mov dword [ebp - 0x50], 0xc382c2f0
sub dword [ebp - 0x50], 0xc382c2f0
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xa73446f5
sub eax, 0xa6f2c61d
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x38123
push 0
call eax
mov ecx, 0x4648
mov edx, eax
mov esi, 0xdfed59
add esi, 0xff62a8a7
add esi, dword [ebp - 0x4c]
mov ebx, 0x365e0d8
add ebx, 0x59a80810
xor dword [ebp - 0x24], 0xf752a5c5
mov edi, dword [esi]
xor dword [ebp - 0x18], 0x860f05ae
xor edi, ebx
add dword [ebp - 0x18], ecx
mov dword [edx], edi
xor dword [ebp - 0x24], esi
add edx, 0x35b3d043
sub edx, 0x35b3d03f
add esi, 0xb69ad021
sub esi, 0xb69ad01d
loop 0x40a2cc
add eax, 0x10bf3
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x40a8ce
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call sub.msvcr100.dll_memset
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x40a96e
cmp eax, edi
ja 0x40a96e
push esi
lea eax, [ebp + 0x89]
push ebx
push eax
mov byte [ebp + 0x88], bl
call sub.msvcr100.dll_memset
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push 0x4199fc
lea eax, [ebp + 0x88]
push esi
push eax
call dword [sym.imp.msvcr100.dll__snprintf]
add esp, 0x20
cmp eax, ebx
jle 0x40a96e
mov byte [ebp + eax + 0x88], bl
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
jmp 0x40a970
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413fde
add ebp, 0x190
leave
ret
Function at 0x7691b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00769140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00769140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00769140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00769140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x769bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x769c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x77b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x769c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x769c52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1bd046db
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x327c7a31
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40288e
pop dword [ebp - 8]
mov eax, 0x453bccf8
sub eax, 0x44fba46a
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x3fe77438
add dword [ebp - 0x18], 0xe6ad113
mov dword [ebp - 0x14], 0x55275e6b
sub dword [ebp - 0x14], 0x22f41226
mov dword [ebp - 0x10], 0xa0faf879
add dword [ebp - 0x10], 0xab514bb5
mov dword [ebp - 0xc], 0x1b7d3246
add dword [ebp - 0xc], 0xe482cdba
lea eax, [ebp - 0x18]
push eax
mov eax, 0x589c22f3
add eax, 0xa7a45d99
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xe128f97
add dword [ebp - 0x18], 0x665fd9bf
mov dword [ebp - 0x14], 0x7de1922d
add dword [ebp - 0x14], 0xc38acf48
mov dword [ebp - 0x10], 0xabd24b7d
sub dword [ebp - 0x10], 0x4862df11
mov dword [ebp - 0xc], 0x581c7673
sub dword [ebp - 0xc], 0x581c7673
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x3e96ddb9
add eax, 0xc1a9a31b
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3b8ae
push 0
call eax
mov ecx, 0x5bc9
mov edx, eax
mov edi, 0x411000
add edi, dword [ebp - 8]
mov esi, 0x42441d7d
mov ebx, dword [edi]
sub dword [ebp - 4], esi
add ebx, esi
xor dword [ebp - 4], eax
mov dword [edx], ebx
add dword [ebp - 4], 0xbfaaba4e
add edx, 4
add edi, 4
loop 0x40299e
add eax, 0xb023958b
sub eax, 0xb0223394
mov ebx, eax
add eax, 0xaaef8daf
add eax, 0x55107256
mov ecx, 0x61d3b979
sub ecx, 0x6193b979
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x8d9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8d91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8d907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d906a
add dl, dl
jne 0x8d9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d90dc
xor eax, eax
add dl, dl
jne 0x8d9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8d917d
add dl, dl
jne 0x8d90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8d90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8d9075
mov eax, 1
add dl, dl
jne 0x8d90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8d90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d90e1
sub eax, ebx
mov ebx, 1
jne 0x8d9128
mov ecx, 1
add dl, dl
jne 0x8d910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8d913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8d914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8d9136
cmp eax, 0x7d00
jae 0x8d916d
cmp eax, 0x500
jb 0x8d9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d9075
cmp eax, 0x7f
ja 0x8d9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8d9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8d919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8d9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10