joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430a8a
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x10c]
lea eax, [esp + 4]
push edx
push 0x487d45
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x430ade
pop esi
add esp, 0x104
ret 8
lea eax, [esp + 4]
mov ecx, esi
push eax
push reloc.OLEAUT32.dll_VariantClear
call fcn.00430a30
mov eax, 1
pop esi
add esp, 0x104
ret 8

Function at 0x430b0a
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x10c]
lea eax, [esp + 4]
push edx
push 0x487d45
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
mov ecx, esi
push 0
push 0
push edx
call fcn.0042c950
test eax, eax
jne 0x430b61
pop esi
add esp, 0x104
ret 8
lea eax, [esp + 4]
push eax
call fcn.0043683f
add esp, 4
test eax, eax
je 0x430b7e
xor eax, eax
pop esi
add esp, 0x104
ret 8
lea ecx, [esp + 4]
push ecx
push reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, esi
call fcn.00430a30
mov eax, 1
pop esi
add esp, 0x104
ret 8

Function at 0x430bbb
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44b9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.004340b5
mov edi, dword [esp + 0x140]
push 0
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0
call fcn.00434178
test eax, eax
lea ecx, [esp + 8]
jne 0x430c0e
call fcn.0043412e
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.004340f2
xor eax, eax
jmp 0x430ca5
call fcn.0043412e
mov eax, dword [esp + 0x144]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x138]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x30]
push str._s_s_s.lnk
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push edi
call fcn.00430d40
test eax, eax
jne 0x430c7b
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.004340f2
xor eax, eax
jmp 0x430ca5
lea ecx, [esp + 0x24]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.00430a30
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.004340f2
mov eax, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret 0x10
Function at 0x430cca
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x104
push esi
mov esi, ecx
push 0
lea ecx, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
push edx
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s_s.lnk
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x430d1e
pop esi
add esp, 0x104
ret 0xc
lea ecx, [esp + 4]
push ecx
push reloc.WS2_32.dll_connect
mov ecx, esi
call fcn.00430a30
mov eax, 1
pop esi
add esp, 0x104
ret 0xc

Function at 0x430d40
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x458fc8
push 1
push 0
push 0x458fb8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x430d6e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x458fd8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x430da2
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8
Function at 0x432d70
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x432d98
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
push ebx
push ebp
push esi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
push 8
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ebp, ebp
jge 0x432de4
xor ebp, ebp
mov ecx, dword [esp + 0x24]
test ecx, ecx
jge 0x432df4
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x10]
cmp ebx, ecx
jle 0x432dfe
mov ebx, ecx
cmp edi, eax
jle 0x432e04
mov edi, eax
mov edx, dword [esp + 0x24]
sub ebx, ebp
sub edi, edx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
push 0xcc0020
push edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov eax, dword [esp + 0x28]
pop esi
sub eax, 0
pop ebp
pop ebx
je 0x432e8c
dec eax
jne 0x432ea3
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x432ea3
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 4]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 8], 1
jmp 0x432ea3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.00432fa0
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 8]
pop edi
add esp, 0x10
ret 0xc
Function at 0x432ec0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x432edc
xor eax, eax
pop edi
add esp, 8
ret 4
push ebx
push ebp
push esi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
push 8
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ebp, ebp
jge 0x432f28
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jge 0x432f38
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
jle 0x432f42
mov ebx, ecx
cmp edi, eax
jle 0x432f48
mov edi, eax
mov edx, dword [esp + 0x1c]
sub ebx, ebp
sub edi, edx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 4
Function at 0x444c15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x44be94
call fcn.00436e14
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0044a097
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x444c54
call fcn.0044a097
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x444c62
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x444c70
or eax, 0xffffffff
jmp 0x444d58
mov ecx, esi
call fcn.00444b8b
mov dword [ebp - 0x14], eax
call fcn.00445f92
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x444ca7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x444ca7
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00445f46
push dword [ebp - 0x14]
call fcn.00445a78
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00444923
cmp eax, edi
je 0x444d1a
test byte [esi + 0x24], 0x10
je 0x444ce8
push 4
mov ecx, esi
pop ebx
call fcn.00445478
test ah, 1
je 0x444ce0
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00447a5a
cmp dword [esi + 0x1c], edi
je 0x444d1a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004454ac
jmp 0x444d1a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x444d2e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x444d47
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x444d47
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00444bc5
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x447908
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x44794a
call fcn.0044a097
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44794a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x447941
xor eax, eax
jmp 0x447952
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00447958
pop edi
pop esi
pop ebx
ret 4
Function at 0x1001cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100985e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x100985e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x100985ef
pop dword [ebp - 0x10]
mov eax, 0x8f988b52
sub eax, 0x7f8f0563
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x4cdf6693
add dword [ebp - 0x20], 0x172deb8
mov dword [ebp - 0x1c], 0x6e45750e
add dword [ebp - 0x1c], 0xc3edd737
mov dword [ebp - 0x18], 0xb81426c6
sub dword [ebp - 0x18], 0x6bc7e298
mov dword [ebp - 0x14], 0xaef6ab81
add dword [ebp - 0x14], 0x5109547f
lea eax, [ebp - 0x20]
push eax
mov eax, 0xb7372f2e
sub eax, 0xa72bbe4e
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x99f487a
sub dword [ebp - 0x20], 0x952cdf24
mov dword [ebp - 0x1c], 0xf9a82cfb
add dword [ebp - 0x1c], 0x47c4347a
mov dword [ebp - 0x18], 0x4331ac60
sub dword [ebp - 0x18], 0xdfc23ff4
mov dword [ebp - 0x14], 0x15dbf216
add dword [ebp - 0x14], 0xea240dea
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x493fe1bc
add eax, 0xc6cb8ee0
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x6046f
push 0
call eax
mov ecx, 0x507c
mov edx, eax
mov ebx, 0x8d169b6e
sub ebx, 0x7d07676e
add ebx, dword [ebp - 0x10]
mov esi, 0x3320a9ad
sub dword [ebp - 0xc], ecx
mov edi, dword [ebx]
sub dword [ebp - 0xc], 0xe66add03
xor edi, esi
sub dword [ebp - 8], ebx
mov dword [edx], edi
add edx, 0xe6fc5ae2
sub edx, 0xe6fc5ade
add ebx, 4
loop 0x10098705
add eax, 0x134c3
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x402cb4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
call dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
call dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
mov eax, dword fs:[eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
cmp eax, dword [ecx + 0x1c]
jne 0x402d11
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x1c], ecx
jmp 0x402d1e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
inc eax
jne 0x402cf6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
call dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
add esp, 0x18
push 0x4000
push 0
push dword [esp - 0xc]
push dword [eax]
jmp dword [esp - 0x20]
Function at 0x40336e
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
and word [ebp - 0x14], 0
call fcn.00402c95
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xd], 0
call 0x40338b
pop eax
and eax, 0xfffff000
add eax, 0x1230
mov dword [ebp - 8], eax
sldt word [ebp - 0x14]
call 0x4033a2
pop eax
add eax, 0x40
push eax
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0xd]
mov eax, dword [esp]
mov dword fs:[0], eax
add esp, 8
jmp 0x4033f1
push dword [ebp - 8]
call fcn.00402c30
pop ecx
mov dword [ebp - 4], 0x184
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call fcn.00402f51
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.004038e0
pop ecx
pop ecx
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.00403a5a
add esp, 0xc
push dword [ebp - 0x18]
call fcn.00402f66
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x120]
and eax, 2
je 0x403460
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x403458
movzx eax, word [ebp - 0x14]
test eax, eax
je 0x403460
push 0
mov eax, dword [ebp - 0x1c]
call dword [eax + 0x10]
call fcn.00402d47
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x164], 0
je 0x4034b6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
push 0x10
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x1c]
lea eax, [eax + ecx + 0x1f0]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x13c
push eax
call fcn.00403a5a
add esp, 0xc
pop ebx
leave
ret
Function at 0x4034b9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402c95
mov esi, eax
mov dword [ebp - 8], esi
call fcn.00402c76
push dword [esi + 0x1c]
mov edi, eax
call fcn.00403a50
and dword [ebp - 0xc], 0
mov ebx, eax
mov eax, dword [edi + 0x138]
mov dword [ebx + 0x8c], eax
mov eax, dword [edi + 0x134]
mov dword [ebx + 0x88], eax
movzx eax, word [ebx + 0x14]
lea esi, [eax + ebx + 0x18]
movzx eax, word [ebx + 6]
sub eax, dword [edi + 0x128]
pop ecx
je 0x40361e
mov eax, dword [esi + 0x10]
and dword [ebp - 0x10], 0
test eax, eax
je 0x403605
cmp dword [esi + 0x14], 0
je 0x403605
test al, 0x20
jne 0x403605
test dword [esi + 0x24], 0x10000000
je 0x403549
test byte [edi + 0x120], 1
jne 0x403605
push eax
call fcn.00402f51
push ebx
push esi
push 2
mov dword [ebp - 4], eax
call fcn.00403a20
add esp, 0x10
test eax, eax
je 0x403569
mov dword [ebp - 0x10], 1
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 8]
push dword [esi + 0x10]
add eax, dword [ecx + 0x1c]
push eax
push dword [ebp - 4]
call fcn.00403a5a
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0xc]
add eax, dword [ecx + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ecx + 0x20]
push eax
lea eax, [edi + 0x20]
push 0x100
push eax
call fcn.004038e5
mov eax, dword [esi + 0x10]
add esp, 0x18
test dword [esi + 0x24], 0x10000000
je 0x4035c5
push 0x10
push dword [ebp - 4]
call fcn.00403b56
cmp eax, dword [edi + 0x140]
pop ecx
pop ecx
jne 0x4035fc
mov eax, dword [edi + 0x144]
mov ecx, dword [ebp - 8]
add ecx, 0x20
push ecx
push eax
push dword [ebp - 4]
call fcn.0040395c
xor eax, eax
add esp, 0xc
cmp dword [edi + 0x158], eax
jne 0x4035ea
cmp dword [edi + 0x150], eax
je 0x4035ef
cmp dword [ebp - 0x10], eax
je 0x4035fc
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.004038e0
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00402f66
pop ecx
movzx eax, word [ebx + 6]
sub eax, dword [edi + 0x128]
add esi, 0x28
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jb 0x403512
mov edi, dword [edi + 0x164]
test edi, edi
je 0x403642
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x13c]
mov eax, dword [eax + 0x1c]
push 0x10
push ecx
add eax, edi
push eax
call fcn.00403a5a
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038e0
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x403b90
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00403c13
jae 0x403b9e
xor ecx, ecx
call fcn.00403c13
jae 0x403bcd
xor eax, eax
call fcn.00403c13
jae 0x403bdd
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00403c13
adc al, al
jae 0x403bbf
jne 0x403c09
stosb byte es:[edi], al
jmp 0x403ba1
call fcn.00403c1f
sub ecx, ebx
jne 0x403be6
call fcn.00403c1d
jmp 0x403c05
lodsb al, byte [esi]
shr eax, 1
je 0x403c2f
adc ecx, ecx
jmp 0x403c02
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00403c1d
cmp eax, 0x7d00
jae 0x403c02
cmp ah, 5
jae 0x403c03
cmp eax, 0x7f
ja 0x403c04
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x403ba1
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4038e5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor edx, edx
xor eax, eax
mov ecx, edi
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4038f5
mov byte [edi + 0x100], dl
mov byte [edi + 0x101], dl
xor ecx, ecx
mov esi, edi
mov dword [ebp - 4], 0x100
mov ebx, dword [ebp + 8]
movzx eax, dl
mov dl, byte [esi]
movzx ebx, byte [eax + ebx]
mov byte [ebp + 0x13], dl
movzx edx, dl
add ebx, ecx
add edx, ebx
mov ecx, edx
and ecx, 0x800000ff
jns 0x40393e
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov dl, byte [ecx + edi]
mov byte [esi], dl
mov dl, byte [ebp + 0x13]
inc eax
mov byte [ecx + edi], dl
cdq
idiv dword [ebp + 0xc]
inc esi
dec dword [ebp - 4]
jne 0x403916
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40395c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
jbe 0x403a12
push ebx
push esi
push edi
movzx esi, cl
movzx edi, dl
jmp 0x40398d
mov edi, dword [ebp - 8]
lea ecx, [esi + 1]
and ecx, 0x800000ff
jns 0x4039a0
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
mov dl, byte [esi + eax]
mov byte [ebp + 0x13], dl
movzx edx, dl
add edx, edi
and edx, 0x800000ff
jns 0x4039be
dec edx
or edx, 0xffffff00
inc edx
movzx edi, dl
mov bl, byte [edi + eax]
mov byte [esi + eax], bl
mov bl, byte [ebp + 0x13]
mov byte [edi + eax], bl
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
add ebx, edi
movzx edi, byte [esi + eax]
mov dword [ebp - 0xc], ebx
movzx ebx, byte [ebp + 0x13]
add ebx, edi
and ebx, 0x800000ff
jns 0x4039f5
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edi, bl
mov bl, byte [edi + eax]
mov edi, dword [ebp - 0xc]
xor byte [edi], bl
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
cmp edi, dword [ebp + 0xc]
jb 0x40398a
pop edi
pop esi
pop ebx
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
leave
ret
Function at 0x403ae2
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
mov dl, al
sub dl, 0x55
xor byte [eax + ecx], dl
inc eax
cmp byte [eax + ecx], 0
jne 0x403ae8
ret

Function at 0x403b56
Capabilities:
Hash data with crc32

Disassembly:
push ebp
push esi
push edi
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
movzx ecx, byte ds:[edi]
add edi, 1
mov esi, 8
mov edx, ecx
xor edx, eax
shr eax, 1
test dl, 1
je 0x403b80
xor eax, 0xedb88320
shr ecx, 1
sub esi, 1
jne 0x403b70
sub ebp, 1
jne 0x403b64
pop edi
pop esi
pop ebp
ret