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

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.00438dd0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x494020]
mov esi, eax
add esp, 8
test esi, esi
je 0x477272
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x477172
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4771e3
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4771a0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x477215
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x48a83d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x48a83e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4771f0
push dword [esp + 0x30]
call fcn.00438dd0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x477240
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x494024]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x477340
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x477366
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x47739e
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.00438dd0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x4773f5
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x477404
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x477415
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x478050
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x47809c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x478061
pop ebx
pop edi
pop esi
ret
Function at 0x404260
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c4
call fcn.0040a020
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [str.nwBW]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x44b36c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404250
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x44b370]
mov edx, dword [0x44b374]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x452afc]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4042ec
mov dword [0x452af8], 0xedeb2e40
jmp 0x404307
cmp eax, 0x3eb
jne 0x404307
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x452588], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x452afc], 0x9e6
mov dword [0x452af4], 0xf4ea3dee
jne 0x404340
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x452afc], 0x213
jne 0x4043e4
push 0
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x14c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea ecx, [ebp - 0x8c4]
push ecx
push 0
push 0x403ed8
push 0x403f24
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x452afc], 0xc
jne 0x4043f8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4042c0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404450
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040a020
mov eax, dword [0x452afc]
mov ecx, dword [0x45258c]
shr eax, 3
test eax, eax
jbe 0x40456c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x452afc], 0x959
jne 0x404552
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404260
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a5f8]
jne 0x406f9a
repz ret
jmp fcn.0040bc2e

Function at 0x40b855
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.00408c04
and dword [ebp - 4], 0
cmp dword [0x450578], 0
mov ebx, eax
jne 0x40b906
push 0x401c4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c40
push edi
call esi
test eax, eax
je 0x40b9b7
push eax
call fcn.00408b92
mov dword [esp], 0x401c30
push edi
mov dword [0x450578], eax
call esi
push eax
call fcn.00408b92
mov dword [esp], 0x401c1c
push edi
mov dword [0x45057c], eax
call esi
push eax
call fcn.00408b92
mov dword [esp], 0x401c00
push edi
mov dword [0x450580], eax
call esi
push eax
call fcn.00408b92
pop ecx
mov dword [0x450588], eax
test eax, eax
je 0x40b906
push 0x401be8
push edi
call esi
push eax
call fcn.00408b92
pop ecx
mov dword [0x450584], eax
mov eax, dword [0x450584]
cmp eax, ebx
je 0x40b95e
cmp dword [0x450588], ebx
je 0x40b95e
push eax
call fcn.00408c0d
push dword [0x450588]
mov esi, eax
call fcn.00408c0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b95e
test edi, edi
je 0x40b95e
call esi
test eax, eax
je 0x40b955
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b955
test byte [ebp - 0xc], 1
jne 0x40b95e
or dword [ebp + 0x10], 0x200000
jmp 0x40b997
mov eax, dword [0x45057c]
cmp eax, ebx
je 0x40b997
push eax
call fcn.00408c0d
pop ecx
test eax, eax
je 0x40b997
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b997
mov eax, dword [0x450580]
cmp eax, ebx
je 0x40b997
push eax
call fcn.00408c0d
pop ecx
test eax, eax
je 0x40b997
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450578]
call fcn.00408c0d
pop ecx
test eax, eax
je 0x40b9b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xca00b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0xca0200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xca00d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca00c2
add dl, dl
jne 0xca00e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca0134
xor eax, eax
add dl, dl
jne 0xca00ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xca01d5
add dl, dl
jne 0xca00fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca0108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca0113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca011e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xca012a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xca00cd
mov eax, 1
add dl, dl
jne 0xca0142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xca014d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca0139
sub eax, ebx
mov ebx, 1
jne 0xca0180
mov ecx, 1
add dl, dl
jne 0xca0166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xca0171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca015d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca00cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xca0197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xca01a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xca018e
cmp eax, 0x7d00
jae 0xca01c5
cmp eax, 0x500
jb 0xca01c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca00cd
cmp eax, 0x7f
ja 0xca01c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xca00cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xca01f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xca00cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x4c
lea eax, [esp + 0x10]
mov dword [esp], 0x406064
mov byte [esp + 0x3c], 0
mov dword [esp + 0x10], 0x70326a57
mov dword [esp + 0x14], 0x77756a5e
mov dword [esp + 4], eax
mov dword [esp + 0x18], 0x4b534552
mov dword [esp + 0x1c], 0x643e4046
mov dword [esp + 0x20], 0x64525353
mov dword [esp + 0x24], 0x48574346
mov dword [esp + 0x28], 0x643e4046
mov dword [esp + 0x2c], 0x4b2e4246
mov dword [esp + 0x30], 0x723e4046
mov dword [esp + 0x34], 0x3f436949
mov dword [esp + 0x38], 0x3a525250
call sub.msvcrt.dll_printf
add esp, 0x4c
ret
Function at 0x402090
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4020db
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4020d4
test esi, esi
je 0x4020d4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020b0
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4022c0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4023e8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40234e
cmp eax, 4
jne 0x402370
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40235e
cmp edx, 4
je 0x40235e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004022c0
Function at 0x45231d
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0xc7
pop esp
jle 0x45238e
outsb dx, byte [esi]
mul dword [ebx - 9]
iretd
stc

Function at 0x45b704
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ebx], bh
lds esp, [ebp + edi*8 - 0x3a]
insb byte es:[edi], dx
dec esi
add eax, dword [edx - 0x15]
pop ebx
popal
wait
loope 0x45b723
cld
cmp dh, byte [edi]
mov edx, dword [eax + esi*2]
or byte [ecx], 0x98
xor ah, byte [edx + ecx*4]
mov ah, 0xe9
push 0xffffffffffffff8a
jo 0x45b70c
jne 0x45b711
cmp bl, byte [eax]
inc edi
insb byte es:[edi], dx
sub ah, dl
test al, 0xd2
out 0x64, al
pushfd
xor eax, 0x245163b2
pop ebp
fiadd dword [ebx + 0x4638d109]
cmp byte [esi + 0x27], al
cmp byte [esi + 0x27], al
mul dword [edi - 0x7a]
adc al, 0xfc
and al, 0x3e
inc esp
xchg byte [edi - 0x55], ch
stosd dword es:[edi], eax
loope 0x45b6c9
adc eax, 0x2f5f58a4
fidiv dword [edx + 0x64]
sub esp, dword [edi]
mov al, byte [0x379e0102]
aaa
pop ecx
invalid

Function at 0x628cf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6313c8
cmp edx, dword [eax]
je 0x628d13
add eax, 8
inc ecx
cmp eax, 0x631458
jl 0x628d04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6313c8]
jne 0x628e41
mov eax, dword [0x639d68]
cmp eax, 1
je 0x628e1b
test eax, eax
jne 0x628d44
cmp dword [0x6312f0], 1
je 0x628e1b
cmp edx, 0xfc
je 0x628e41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x628d7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006296d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629b60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x628dbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629b60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62da54
push edi
call fcn.0062ba30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006296d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006296e0
lea eax, [ebp - 0xa0]
push 0x62da34
push eax
call fcn.006296e0
push dword [esi + 0x6313cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.006296e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062b9a4
add esp, 0x2c
pop edi
jmp 0x628e41
lea eax, [ebp + 8]
lea esi, [esi + 0x6313cc]
push 0
push eax
push dword [esi]
call fcn.00629b60
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 0x42ca90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x42cab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42cab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42caa8
mov eax, 1
add ebx, ebx
jne 0x42cacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42cac0
jne 0x42cadc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42cac0
xor ecx, ecx
sub eax, 3
jb 0x42caf0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42cb62
mov ebp, eax
add ebx, ebx
jne 0x42cafb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42cb08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42cb2c
inc ecx
add ebx, ebx
jne 0x42cb18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42cb0d
jne 0x42cb29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42cb0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42cb4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42cb3d
jmp 0x42caae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42cb4c
add edi, ecx
jmp 0x42caae
pop esi
mov edi, esi
mov ecx, 0x6db
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42cb6a
cmp byte [edi], 6
jne 0x42cb6a
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 eax, ebx
loop 0x42cb6f
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42cbe7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e954]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ea1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42cb9c
mov ecx, edi
jns 0x42cbcb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2ea20]
or eax, eax
je 0x42cbe1
mov dword [ebx], eax
add ebx, 4
jmp 0x42cbb9
call dword [esi + 0x2ea24]
popal
jmp 0x419cae
Function at 0x403c84
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], edi
call fcn.004033f8
mov dword [esp], edi
call fcn.00442dac
mov esi, eax
mov eax, dword [ebp + 4]
shl eax, 4
add eax, 0x10
mov dword [esp], eax
call fcn.00442dac
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00403728
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test edi, edi
je 0x403de1
mov ebp, dword [esp + 0x44]
xor ebx, ebx
nop dword [eax + eax]
lea eax, [ebp + ebx]
lea ecx, [esi + ebx]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004038c4
movzx eax, byte [esp + 0x18]
xor byte [esi + ebx], al
movzx eax, byte [esp + 0x19]
xor byte [esi + ebx + 1], al
movzx eax, byte [esp + 0x1a]
xor byte [esi + ebx + 2], al
movzx eax, byte [esp + 0x1b]
xor byte [esi + ebx + 3], al
movzx eax, byte [esp + 0x1c]
xor byte [esi + ebx + 4], al
movzx eax, byte [esp + 0x1d]
xor byte [esi + ebx + 5], al
movzx eax, byte [esp + 0x1e]
xor byte [esi + ebx + 6], al
movzx eax, byte [esp + 0x1f]
xor byte [esi + ebx + 7], al
movzx eax, byte [esp + 0x20]
xor byte [esi + ebx + 8], al
movzx eax, byte [esp + 0x21]
xor byte [esi + ebx + 9], al
movzx eax, byte [esp + 0x22]
xor byte [esi + ebx + 0xa], al
movzx eax, byte [esp + 0x23]
xor byte [esi + ebx + 0xb], al
movzx eax, byte [esp + 0x24]
xor byte [esi + ebx + 0xc], al
movzx eax, byte [esp + 0x25]
xor byte [esi + ebx + 0xd], al
movzx eax, byte [esp + 0x26]
xor byte [esi + ebx + 0xe], al
movzx eax, byte [esp + 0x27]
xor byte [esi + ebx + 0xf], al
mov eax, dword [ebp + ebx + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + ebx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + ebx]
mov ecx, dword [ebp + ebx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
add ebx, 0x10
cmp ebx, edi
jb 0x403d04
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403df1
mov dword [esp], eax
call fcn.00440e94
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret