joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d94
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
push edi
mov cl, byte [eax]
mov edi, dword [esp + 0xc]
test cl, cl
je 0x401db9
mov edx, edi
sub edx, eax
xor cl, 0xa
inc esi
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401daa
and byte [esi + edi], 0
pop edi
pop esi
ret

Function at 0x401e0b
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, 0x6400
push edi
push esi
call fcn.004028cb
push esi
call fcn.004028cb
mov ebx, dword [esp + 0x18]
push str._title_
push ebx
mov edi, eax
call fcn.004035f0
add esp, 0x10
test eax, eax
jne 0x401ea9
push ebx
mov esi, 0x40a82c
push str.String_producing_error:__s_n
push esi
call fcn.00402c09
push dword [0x40a828]
push esi
call fcn.00401016
push str.dCloneOrder
push ebx
call fcn.004035f0
add esp, 0x1c
test eax, eax
je 0x401ea5
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x50024
push str.Confirm
push str.All_of_the_licenses_have_been_used_for_this_particular_document._nPlease_press_the_Yes_button_to_be_directed_to_our_site_nwhere_you_can_purchase_additional_copies.
push 0
call esi
cmp eax, 7
jne 0x401e9e
push 0x50010
push str.Use_not_wanted
push str.You_have_chosen_not_to_authenticate_this_document._n_nThe_program_will_now_exit.
push 0
call esi
push 1
call fcn.00402b01
push ebx
call fcn.00402236
pop ecx
xor eax, eax
jmp 0x401ee9
push dword [esp + 0x14]
push eax
call fcn.004035f0
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x401ea5
push str.__title_
push esi
call fcn.004035f0
push eax
call fcn.00402ce0
push 0xfffffffffffffff7
pop ebx
push esi
sub ebx, eax
call fcn.00402ce0
add ebx, eax
add esi, 9
push ebx
push esi
push edi
call fcn.004034f0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4021ea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00403670
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.00403670
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop esi
neg eax
leave
ret

Function at 0x402236
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, 0x100
push edi
push esi
call fcn.004028cb
push esi
call fcn.004028cb
push 0x400
mov edi, eax
call fcn.004028cb
push 0x409abc
mov ebx, eax
push dword [esp + 0x20]
call fcn.004035f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4022ca
push ebp
push 0x409ab8
push esi
call fcn.004035f0
push eax
call fcn.00402ce0
push esi
mov ebp, eax
call fcn.00402ce0
sub eax, ebp
push eax
push esi
push edi
call fcn.004034f0
push edi
push str.rundll32.exe_url.dll_FileProtocolHandler_http:__articleworks.cadmus.com_s
push ebx
call fcn.00402c09
push ebx
call fcn.004021ea
add esp, 0x2c
test al, al
pop ebp
jne 0x4022c3
push 0xd
push 0x10
push str.Unable_to_start_Browser
push str.An_error_occurred_while_attempting_to_start_your_web_browser._Please_retry_the_operation_later.
call fcn.00401dc0
add esp, 0x10
push 0xffffffffffffffff
call fcn.00402b01
pop edi
pop esi
pop ebx
ret

Function at 0x4022ce
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00403670
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40233b
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
jne 0x40233b
push 0xffffffffffffffff
push eax
push str.Error
push str.Unable_to_determine_OS_version.
call fcn.00401dc0
add esp, 0x10
push 0xffffffffffffffff
call fcn.00402b01
push dword [ebp - 0x94]
mov esi, 0x40a82c
push dword [ebp - 0x98]
push str.Winmajor:__d._Winminor:__d._n
push esi
call fcn.00402c09
push dword [0x40a828]
push esi
call fcn.00401016
add esp, 0x18
cmp dword [ebp - 0x98], 5
jae 0x40238c
push 0xffffffffffffffff
push 0
push str.Unable_to_run_program
push str.This_program_requires_Windows_2000__Windows_XP__or_Windows_Vista_to_run.
call fcn.00401dc0
add esp, 0x10
push 0xffffffffffffffff
call fcn.00402b01
pop esi
leave
ret
Function at 0x406205
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a420
cmp edx, dword [eax]
je 0x406227
add eax, 8
inc ecx
cmp eax, 0x40a4b0
jl 0x406218
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a420]
jne 0x406355
mov eax, dword [0x42388c]
cmp eax, 1
je 0x40632f
test eax, eax
jne 0x406258
cmp dword [0x409ed4], 1
je 0x40632f
cmp edx, 0xfc
je 0x406355
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40628f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402fe0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402ce0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4062d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402ce0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408494
push edi
call fcn.004034f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402fe0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402ff0
lea eax, [ebp - 0xa0]
push 0x408474
push eax
call fcn.00402ff0
push dword [esi + 0x40a424]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402ff0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004078d0
add esp, 0x2c
pop edi
jmp 0x406355
lea eax, [ebp + 8]
lea esi, [esi + 0x40a424]
push 0
push eax
push dword [esi]
call fcn.00402ce0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x492110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49213d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49213d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402910
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x402969
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x402953
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x402953
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402933
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x402967
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x40297f
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jle 0x40297f
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402969
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
je 0x40299f
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jg 0x40299f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x40297f
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402a40
push 0x404004
push section..data
call fcn.00402a10
add esp, 8
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x4029d8
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x4029df
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x50], eax
call fcn.00402ab0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41a6ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439c20]
jne 0x41a6b7
repz ret
jmp fcn.0041ef6d

Function at 0x429a7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041f242
and dword [ebp - 4], 0
cmp dword [0x43dabc], 0
mov ebx, eax
jne 0x429b30
push 0x4316dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x429be1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4316d0
push edi
call esi
test eax, eax
je 0x429be1
push eax
call fcn.0041f1d0
mov dword [esp], 0x4316c0
push edi
mov dword [0x43dabc], eax
call esi
push eax
call fcn.0041f1d0
mov dword [esp], 0x4316ac
push edi
mov dword [0x43dac0], eax
call esi
push eax
call fcn.0041f1d0
mov dword [esp], 0x431690
push edi
mov dword [0x43dac4], eax
call esi
push eax
call fcn.0041f1d0
pop ecx
mov dword [0x43dacc], eax
test eax, eax
je 0x429b30
push 0x431678
push edi
call esi
push eax
call fcn.0041f1d0
pop ecx
mov dword [0x43dac8], eax
mov eax, dword [0x43dac8]
cmp eax, ebx
je 0x429b88
cmp dword [0x43dacc], ebx
je 0x429b88
push eax
call fcn.0041f24b
push dword [0x43dacc]
mov esi, eax
call fcn.0041f24b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x429b88
test edi, edi
je 0x429b88
call esi
test eax, eax
je 0x429b7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429b7f
test byte [ebp - 0xc], 1
jne 0x429b88
or dword [ebp + 0x10], 0x200000
jmp 0x429bc1
mov eax, dword [0x43dac0]
cmp eax, ebx
je 0x429bc1
push eax
call fcn.0041f24b
pop ecx
test eax, eax
je 0x429bc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x429bc1
mov eax, dword [0x43dac4]
cmp eax, ebx
je 0x429bc1
push eax
call fcn.0041f24b
pop ecx
test eax, eax
je 0x429bc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43dabc]
call fcn.0041f24b
pop ecx
test eax, eax
je 0x429be1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x429be3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408879
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4385a8]
jne 0x408883
repz ret
jmp fcn.0040bd8d

Function at 0x40a4e2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4385a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406bce
and dword [ebp - 0x14], 0
cmp dword [0x43c540], 0
mov dword [ebp - 0x18], eax
jne 0x40a595
push 0x403c10
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a63d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403c04
push ebx
call edi
test eax, eax
je 0x40a63d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403bf4
push ebx
mov dword [0x43c540], eax
call edi
push eax
call esi
push 0x403be0
push ebx
mov dword [0x43c544], eax
call edi
push eax
call esi
push 0x403bc4
push ebx
mov dword [0x43c548], eax
call edi
push eax
call esi
mov dword [0x43c550], eax
test eax, eax
je 0x40a595
push 0x403bac
push ebx
call edi
push eax
call esi
mov dword [0x43c54c], eax
mov eax, dword [0x43c54c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a5ee
cmp dword [0x43c550], ecx
je 0x40a5ee
push eax
call esi
push dword [0x43c550]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a5ee
test ebx, ebx
je 0x40a5ee
call edi
test eax, eax
je 0x40a5e5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a5e5
test byte [ebp - 8], 1
jne 0x40a5ee
or dword [ebp + 0x10], 0x200000
jmp 0x40a621
mov eax, dword [0x43c544]
cmp eax, dword [ebp - 0x18]
je 0x40a621
push eax
call esi
test eax, eax
je 0x40a621
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a621
mov eax, dword [0x43c548]
cmp eax, dword [ebp - 0x18]
je 0x40a621
push eax
call esi
test eax, eax
je 0x40a621
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43c540]
call esi
test eax, eax
je 0x40a63d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a63f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408879
leave
ret
Function at 0x421ad0
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1820
call fcn.0040ce30
cmp dword [0x7c15b8], 0x37
jne 0x421bc6
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x404548
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea ecx, [esp + 0x424]
push ecx
push 0x404584
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0xc24]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [esp + 8]
push edx
push 0x4045c8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x1024]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x404640
push 0x4046a4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x4046a8
push 0x4046bc
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edx, dword [0x7c15bc]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x44161c]
mov byte [edx + esi], cl
add esp, 0x1820
ret
Function at 0x421d30
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x7c15b8]
sub esp, 0x1cc
push ebx
push ebp
push esi
mov esi, dword [0x44161c]
shr eax, 3
push edi
test eax, eax
je 0x421ea7
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
jmp 0x421d64
mov esi, dword [esp + 0x1c]
cmp dword [0x7c15b8], 0x1c
jne 0x421d81
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edx, dword [0x439200]
mov ecx, dword [0x439204]
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x439208]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x43920c]
mov dword [esp + 0x18], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ebp, 0x20
jmp 0x421dc4
mov eax, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x28]
shl ecx, 4
add ecx, dword [esp + 0x2c]
add eax, edi
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x7c053c], 0
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x7c15b8], 0x1be
lea ebx, [edi + esi]
jne 0x421e19
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x30]
mov dword [0x7c0540], 0xff6b3619
xor eax, ebx
xor dword [esp + 0x14], eax
mov dword [0x7c0544], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
add edi, 0x61c88647
dec ebp
jne 0x421dc0
cmp dword [0x7c15b8], 0x8d4
jne 0x421e68
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [edi], edx
mov dword [edi + 4], esi
cmp dword [0x7c15b8], 0x17
jne 0x421e96
push 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x421d60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
Function at 0x421910
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, ecx
mov dword [esp + 8], esi
mov dword [edx], esi
push edi
test ebx, ebx
je 0x421a76
cmp word [ebx], 0
je 0x421a76
push 4
push 0x4dc310
push ebx
call fcn.004aa41d
add esp, 0xc
test eax, eax
je 0x421956
mov eax, ebx
mov edi, eax
jmp 0x42195f
lea eax, [ebx + 8]
mov edi, eax
test eax, eax
je 0x4219a1
movzx eax, word [eax]
test ax, ax
je 0x4219a1
mov esi, eax
nop dword [eax]
mov ecx, 0x4d4d88
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x4219e9
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x421980
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x421970
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 8]
mov edx, eax
test ecx, ecx
je 0x4219bb
and eax, ecx
cmp eax, ecx
jne 0x421a76
cmp edx, 0xffffffff
setne al
test al, al
je 0x421a76
mov ecx, dword [esp + 0xc]
call fcn.00482240
cmp word [ecx], 0
jne 0x421a7f
mov dword [ecx], 0x58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x421a76
cmp word [esp + 0x3c], 0x2e
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jne 0x421a3c
nop word [eax + eax]
mov ax, word [esp + 0x3e]
test ax, ax
je 0x421a28
cmp ax, 0x2e
jne 0x421a3c
cmp word [esp + 0x40], 0
jne 0x421a3c
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421a76
cmp word [esp + 0x3c], 0x2e
je 0x421a10
mov esi, dword [ebp + 8]
test esi, esi
je 0x421a66
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
je 0x421a66
nop dword [eax]
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421a76
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
jne 0x421a50
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
jmp 0x4219c9
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ab80
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44ab9d
mov eax, dword [esi]
test eax, eax
je 0x44acc1
cmp word [eax], 0
je 0x44acc1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44acc1
test al, 0x10
jne 0x44acc1
cmp dword [esi + 0x14], 8
jb 0x44abcf
mov esi, dword [esi]
push 0x462398
push esi
call fcn.00421683
mov esi, eax
add esp, 8
test esi, esi
je 0x44acc1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.00428cfb
push 2
push 0
push esi
call fcn.0042837c
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00428cfb
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00429232
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x44acb8
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.00427965
add esp, 0x10
test eax, eax
je 0x44acb8
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x44acb8
cmp dword [esp + 0x20], 0x48535844
jne 0x44acb8
cmp dword [esp + 0x24], 0x28
jne 0x44acb8
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.00421ac1
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x8c2119
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x8c1ea3
pop edx
add esi, 0x6cb27077
or ebx, ebx
call fcn.008c2150
and esi, ebx
xor dword [eax], edx
and ebx, ebx
inc eax
dec esi
cmp eax, edi
jne fcn.008c2119
add esi, 1
add esi, esi
ret
Function at 0x670849d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.670a4e70
mov eax, dword [edi + 0x1c]
movzx edx, si
lea ecx, [edx + edx*2]
lea esi, [eax + ecx*8]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x67084b20
shl edx, 6
add eax, edx
mov edx, dword [eax]
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [ebx + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [ebx + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x20], edx
mov edx, dword [eax + 0x24]
mov dword [ebx + 0x24], edx
mov edx, dword [eax + 0x28]
mov dword [ebx + 0x28], edx
mov edx, dword [eax + 0x2c]
mov dword [ebx + 0x2c], edx
mov edx, dword [eax + 0x30]
mov dword [ebx + 0x30], edx
mov edx, dword [eax + 0x34]
mov dword [ebx + 0x34], edx
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x38], edx
mov eax, dword [eax + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x44], eax
movzx edx, byte [esi + 4]
mov ecx, edx
and ecx, 3
jne 0x67084ae0
movzx ecx, byte [esi + 7]
mov edx, 8
shr cl, 7
shl edx, cl
mov ecx, edx
xor edx, edx
sar ecx, 3
div ecx
xor edx, edx
mov dword [ebx + 0x44], eax
movzx ecx, byte [esi + 4]
shr cl, 2
and ecx, 7
div ecx
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov esi, dword [ebp - 0x1c]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
movzx eax, word [esi + 0x30]
mov dword [ebx + 0x50], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.670a4e90
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp cl, 2
jne 0x67084aab
movzx ecx, byte [esi + 6]
shr dl, 2
and edx, 7
shr cl, 7
movzx edi, cl
movzx ecx, byte [esi + 7]
and ecx, 0x7f
add ecx, ecx
or ecx, edi
lea edi, [ecx + 0x16]
add ecx, 0x10
imul edi, edx
xor edx, edx
div edi
imul eax, ecx
add eax, eax
mov dword [ebx + 0x44], eax
jmp 0x67084aab
mov ecx, 0x10
mov edi, ebx
rep stosd dword es:[edi], eax
jmp 0x67084a69
Function at 0x67087010
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x67087030
pop ebp
movzx edx, dx
jmp fcn.670849d0
mov eax, 1
pop ebp
ret