joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac20
Capabilities:
Get disk size

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x18]
sub esp, 0x28
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test byte [0x423020], 8
jne 0x40acd8
mov eax, dword [0x423164]
or eax, dword [0x423344]
jne 0x40acc9
mov eax, dword [0x434580]
test eax, eax
je 0x40ad20
mov edx, dword [0x4231c4]
mov eax, dword [0x4231c0]
call sym._WCMD_filesize64
mov dword [esp], str._n_____Total_files_listed:_n_1_8d__files_2_25s__bytes_n
mov dword [esp + 8], eax
mov eax, dword [0x42334c]
mov dword [esp + 4], eax
call sym._WCMD_output
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call sym._WCMD_filesize64
mov dword [esp], str._1_8d__directories__2_18s__bytes_free_n_n
mov dword [esp + 8], eax
mov eax, dword [0x423338]
mov dword [esp + 4], eax
call sym._WCMD_output
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov esi, eax
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Writing_trailer_for__s_gave__d__ld__n
mov dword [esp + 8], str.WCMD_dir_trailer
mov dword [esp + 4], 0x423020
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40ac62
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call sym._WCMD_filesize64
mov dword [esp], str.__1_18s__bytes_free_n_n
mov dword [esp + 4], eax
call sym._WCMD_output
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
Function at 0x412a50
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x118
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_skip_leading_spaces
cmp word [eax], 0
je 0x412ad8
mov esi, eax
mov ebx, 0x438320
xor edi, edi
jmp 0x412a89
inc edi
add ebx, 0x14
cmp edi, 0x2f
je 0x412ae8
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1001
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x412a80
mov dword [esp], edi
call sym._WCMD_LoadMessage
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._WCMD_output_asis
mov dword [esp], 0x3e8
jmp 0x412ac1
mov ebx, str.ATTRIB
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1001
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
je 0x412b4d
add ebx, 0x14
cmp ebx, 0x4382dc
jne 0x412aed
mov dword [esp], 0x3f5
call sym._WCMD_LoadMessage
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._WCMD_output
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea ecx, [ebp - 0x10c]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x412b58
cmp word [ebp - 0x10c], 0
mov edx, ecx
je 0x412b81
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x412b78
xor eax, eax
mov ebx, 0x20
jmp 0x412b97
movzx ebx, word [eax + 0x436408]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x412b90
mov dword [esp + 4], 0
mov dword [esp], ecx
call sym._WCMD_run_program
jmp 0x412b45
Function at 0x417300
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov eax, 0xfffffff5
mov ebp, esp
mov edx, dword [ebp + 8]
pop ebp
jmp sym._WCMD_output_asis_handle

Function at 0x417320
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x824
mov dword [ebp - 0x818], edx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x820], eax
call eax
mov dword [ebp - 0x81c], eax
mov eax, dword [0x424544]
sub esp, 4
test eax, eax
jne 0x417398
cmp word [edi], 0
mov edx, edi
je 0x4174e2
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x417368
sub edx, dword [ebp - 0x818]
sar edx, 1
mov ecx, dword [ebp - 0x81c]
mov eax, dword [ebp - 0x818]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._WCMD_output_asis_len
mov eax, dword [ebp - 0x818]
movzx edx, word [eax]
test dx, dx
je 0x41745d
lea esi, [esi]
cmp dx, 0xa
je 0x41745d
mov edi, dword [0x4234ec]
mov ecx, dword [0x424504]
xor eax, eax
mov ebx, dword [ebp - 0x818]
jmp 0x4173f1
movzx edx, word [ebx + 2]
add ebx, 2
inc ecx
test dx, dx
setne byte [ebp - 0x811]
cmp dx, 0xa
setne al
and al, byte [ebp - 0x811]
je 0x4173f9
cmp ecx, edi
jl 0x4173d0
test al, al
je 0x4173ff
mov dword [0x424504], ecx
cmp dx, 0xa
lea eax, [ebx + 2]
mov ecx, dword [ebp - 0x81c]
cmove ebx, eax
mov eax, dword [ebp - 0x818]
mov edx, ebx
sub edx, eax
sar edx, 1
call sym._WCMD_output_asis_len
mov eax, dword [0x42344c]
mov edi, dword [0x4234e4]
mov dword [0x424504], 0
inc eax
lea edx, [edi - 1]
mov dword [0x42344c], eax
cmp eax, edx
jge 0x417468
movzx edx, word [ebx]
test dx, dx
je 0x4174da
mov dword [ebp - 0x818], ebx
test dx, dx
jne 0x4173b0
mov ebx, dword [ebp - 0x818]
jmp 0x4173ff
mov eax, dword [0x42453c]
mov dword [0x42344c], 0
cmp word [eax], 0
je 0x4174e9
mov edx, eax
nop
add edx, 2
cmp word [edx], 0
jne 0x417480
sub edx, eax
sar edx, 1
mov ecx, dword [ebp - 0x81c]
lea edi, [ebp - 0x810]
call sym._WCMD_output_asis_len
mov dword [esp], 0xfffffff6
mov eax, dword [ebp - 0x820]
call eax
lea edx, [ebp - 0x80c]
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x400
mov dword [esp], eax
call sym._WCMD_ReadFile
movzx edx, word [ebx]
test dx, dx
jne 0x41744e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
jmp 0x417379
xor edx, edx
jmp 0x41748d
Function at 0x4174f0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov dword [ebp - 0x14], 0
test edx, edx
jne 0x417510
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov esi, eax
mov ebx, edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
jne 0x417504
mov eax, dword [0x4346e0]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
test eax, eax
jne 0x4175d0
mov eax, dword [0x424528]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x417600
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x18], 0x437076
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0xffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub esp, 0x20
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
jmp 0x417504
add ebx, ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], ecx
mov dword [esp], 0xffff
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x417627
mov eax, dword [ebp - 0x18]
mov dword [0x424528], eax
jmp 0x417561
test byte [0x423030], 2
jne 0x41763d
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xalloc
mov dword [esp + 4], 0x423030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x417630

Function at 0x417670
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov eax, 0xfffffff4
mov ebp, esp
mov edx, dword [ebp + 8]
pop ebp
jmp sym._WCMD_output_asis_handle
Function at 0x4191d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x419210
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._WCMD_print_error
mov edi, dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [esp + 4], 0x14
mov dword [esp], 0
call edi
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x800
mov dword [esp], 0
call edi
sub esp, 8
mov edi, eax
test esi, esi
je 0x4192e8
test eax, eax
je 0x4192e8
xor eax, eax
mov edx, 0x2f
jmp 0x419267
movzx edx, word [eax + 0x4366e2]
mov word [eax + 0x430580], dx
add eax, 2
test dx, dx
jne 0x419260
mov dword [esp + 4], edi
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [0x423344], 0
sub esp, 8
mov dword [esp], ebx
call sym._WCMD_setshow_default
mov eax, dword [0x423344]
test eax, eax
jne 0x4192d0
mov edx, dword [0x430568]
mov dword [esi + 8], edi
mov eax, 1
mov dword [esi], edx
test edx, edx
je 0x4192bd
mov eax, dword [edx + 4]
inc eax
mov dword [esi + 4], eax
mov dword [0x430568], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esp], esi
call ebx
sub esp, 4
mov dword [esp], edi
call ebx
sub esp, 4
jmp 0x4192c6
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esp], esi
call ebx
push edx
mov dword [esp], edi
call ebx
push ecx
test byte [0x423010], 2
je 0x4192c6
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.WCMD_pushd
mov dword [esp + 4], 0x423010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4192c6
Function at 0x41be90
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, dword [0x4231c8]
test eax, eax
je 0x41c000
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x21c
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], str.ENABLEDELAYEDEXPANSION
mov dword [esp], 0x428560
call ebx
test eax, eax
jne 0x41bfb0
mov edi, 1
test byte [0x423010], 8
jne 0x41bf80
mov dword [esp + 4], 0x14
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
sub esp, 8
mov ebx, eax
test eax, eax
je 0x41c028
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x41bfe8
call sym._WCMD_dupenv.part.0
mov dword [ebx + 8], eax
test eax, eax
je 0x41bfef
mov eax, dword [0x4231c8]
mov eax, dword [eax + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [0x434584]
mov dword [0x434584], ebx
mov dword [ebx], eax
mov eax, dword [0x42332c]
mov dword [0x42332c], edi
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x214]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
movzx eax, word [ebp - 0x214]
sub esp, 8
mov word [ebx + 4], ax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Setting_delayed_expansion_to__d_n
mov dword [esp + 8], str.WCMD_setlocal
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41beda
mov dword [esp + 4], str.ENABLEDELAYEDEXPANSION
mov dword [esp], 0x42c560
call ebx
test eax, eax
je 0x41bec8
mov dword [esp + 4], str.DISABLEDELAYEDEXPANSION
mov dword [esp], 0x428560
call ebx
test eax, eax
jne 0x41c008
xor edi, edi
jmp 0x41becd
mov dword [ebx + 8], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x41bf67
ret
mov dword [esp + 4], str.DISABLEDELAYEDEXPANSION
mov dword [esp], 0x42c560
call ebx
test eax, eax
je 0x41bfde
mov edi, dword [0x42332c]
jmp 0x41becd
test byte [0x423010], 2
je 0x41bf73
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.WCMD_setlocal
mov dword [esp + 4], 0x423010
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x41bf73
Function at 0x41d590
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x80c
movzx edx, word [0x428560]
mov eax, dword [ebp + 8]
or dx, word [0x42c560]
je 0x41d5e8
cmp word [eax], 0x3d
lea edx, [eax + 2]
mov dword [esp], 0x4367bc
cmove eax, edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
sub esp, 8
test eax, eax
je 0x41d5d8
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, dword [ebp - 4]
leave
jmp sym._WCMD_print_error
lea ebx, [ebp - 0x804]
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], 0x4367bc
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
je 0x41d630
mov dword [esp], 0x4367c6
call sym._WCMD_output_asis
mov dword [esp], ebx
call sym._WCMD_output_asis
mov dword [esp], 0x4350b4
call sym._WCMD_output_asis
jmp 0x41d5cf
mov dword [esp], 0x406
call sym._WCMD_LoadMessage
mov dword [esp], eax
call sym._WCMD_output_stderr
jmp 0x41d5cf

Function at 0x41d650
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 8
movzx eax, word [0x428560]
test ax, ax
je 0x41d6a4
cmp ax, 0x20
sete cl
cmp ax, 0x3d
sete dl
or cl, dl
mov edx, 0x428560
jne 0x41d680
cmp ax, 9
jne 0x41d6c8
movzx eax, word [edx + 2]
add edx, 2
cmp ax, 0x3d
sete bl
cmp ax, 0x20
sete cl
or bl, cl
jne 0x41d680
cmp ax, 9
je 0x41d680
test ax, ax
jne 0x41d6c8
mov dword [esp + 4], 0
mov dword [esp], 0x4367d2
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret
mov dword [esp + 4], edx
mov dword [esp], 0x4367d2
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, dword [ebp - 4]
sub esp, 8
leave
ret
Function at 0x4202a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4202f8
cmp byte [esi + ebx - 1], 0xa
je 0x4202cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x430560], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x422740
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x4227b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x4227c8
leave
ret
test byte [0x423030], 2
jne 0x4227de
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory_n
mov dword [esp + 8], str.xalloc
mov dword [esp + 4], 0x423030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x4227d1
Function at 0x4067c4
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 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
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 0x406927
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x40695e
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 0x406938
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
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 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40109b
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x419878]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x41987c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x419880]
mov ebx, dword [esi + 4]
push edi
mov edi, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [0x419884]
mov dword [ebp - 0x18], esi
mov esi, 0xc6ef3720
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x20
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [esi + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [esi + ebx]
xor ecx, eax
lea esi, [esi + 0x61c88647]
sub edi, ecx
sub dword [ebp - 4], 1
jne 0x4010da
mov esi, dword [ebp - 0x18]
mov dword [esi], edi
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x895474]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447909
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00449060
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408bc7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x458570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408c10
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408bf4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408bf0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408c60
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408c50
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4