joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa38f70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x56b000]
lea eax, [edi + 0x63117c]
push dword [eax]
mov dword [eax], 0x79e79e79
push eax
push edi
or ebp, 0xffffffff
jmp 0xa38fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa38fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa38f98
mov eax, 1
add ebx, ebx
jne 0xa38fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa38fcc
jne 0xa38feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa38feb
dec eax
add ebx, ebx
jne 0xa38fd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa38fb0
add ebx, ebx
jne 0xa38fe7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa3903d
xor ecx, ecx
sub eax, 3
jb 0xa39003
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa39072
sar eax, 1
mov ebp, eax
jmp 0xa3900e
add ebx, ebx
jne 0xa3900e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa38fdc
inc ecx
add ebx, ebx
jne 0xa3901c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa38fdc
add ebx, ebx
jne 0xa39029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa3901e
jne 0xa3903a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa3901e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa3905c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa3904e
jmp 0xa38f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa3905c
add edi, ecx
jmp 0xa38f9e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0xd793
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa3907e
cmp byte [edi], 0x9b
jne 0xa3907e
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 0xa39083
lea edi, [esi + 0x635000]
mov eax, dword [edi]
or eax, eax
je 0xa390fb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x63b9a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x63bab0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa390b0
mov ecx, edi
jns 0xa390df
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 + 0x63bab8]
or eax, eax
je 0xa390f5
mov dword [ebx], eax
add ebx, 4
jmp 0xa390cd
call dword [esi + 0x63bab4]
mov ebp, dword [esi + 0x63babc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x25f]
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 0xa3912f
sub esp, 0xffffff80
jmp 0x618081
Function at 0x41af09
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
movzx edx, word [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov eax, ecx
shr eax, 3
lea edx, [ecx + edx*8]
and eax, 0x3f
cmp edx, ecx
jae 0x41af35
inc dword [esi + 4]
cmp word [ebp + 0x10], 0
mov dword [esi], edx
je 0x41afb0
push ebx
push edi
add dword [ebp + 0x10], 0xffff
mov edx, dword [ebp + 0xc]
mov dl, byte [edx]
movsx ecx, ax
inc eax
inc dword [ebp + 0xc]
mov byte [ecx + esi + 0x18], dl
cmp ax, 0x40
jne 0x41afa7
xor edx, edx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], 0x10
movzx eax, dx
add eax, esi
movzx edi, byte [eax + 0x1b]
movzx ebx, byte [eax + 0x1a]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 0x19]
movzx eax, byte [eax + 0x18]
shl edi, 8
or edi, ebx
shl edi, 8
or edi, eax
mov dword [ecx], edi
add ecx, 4
add edx, 4
dec dword [ebp - 0x48]
jne 0x41af69
lea ecx, [esi + 8]
lea eax, [ebp - 0x44]
call fcn.0041a76a
xor eax, eax
cmp word [ebp + 0x10], 0
jne 0x41af40
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043cac0
leave
ret

Function at 0x41b81b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x4a3ca8]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, ecx
cmp eax, 3
jb 0x41b88d
push 3
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x12
movzx ecx, byte [eax + ebx]
mov edx, dword [ebp - 4]
shl edx, 8
or ecx, edx
inc eax
mov dword [ebp - 4], ecx
cmp eax, 3
jl 0x41b84c
xor edx, edx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
sub dword [ebp - 8], 6
shr eax, cl
and eax, 0x3f
mov al, byte [eax + esi]
mov byte [edx + edi], al
inc edx
cmp edx, 4
jl 0x41b863
sub dword [ebp + 8], 3
add ebx, 3
add edi, 4
dec dword [ebp - 0xc]
jne 0x41b840
mov eax, dword [ebp + 8]
dec eax
je 0x41b8cc
dec eax
jne 0x41b8eb
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + esi]
mov byte [edi], al
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
and eax, 3
shl eax, 4
shr ecx, 4
or eax, ecx
mov al, byte [eax + esi]
mov byte [edi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [esi + eax*4]
mov byte [edi + 2], al
mov byte [edi + 3], 0x3d
jmp 0x41b8eb
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + esi]
mov byte [edi], al
movzx eax, byte [ebx]
and eax, 3
add eax, eax
mov al, byte [esi + eax*8]
mov byte [edi + 1], al
mov word [edi + 2], 0x3d3d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408f70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x413704
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4136fc]
sub esp, 4
test ebx, ebx
je 0x408fbb
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 0x408fb4
test esi, esi
je 0x408fb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x408f90
mov dword [esp], 0x413704
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4091a0
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 0x4091f0
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 0x4092c8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40922e
cmp eax, 4
jne 0x409250
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 0x40923e
cmp edx, 4
je 0x40923e
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.004091a0
Function at 0x40b1e0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00408e60
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40b216
jmp 0x40b24e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x40b213
cmp al, 9
je 0x40b213
cmp al, 0x22
jne 0x40b237
jmp 0x40b296
cmp al, 9
je 0x40b243
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x40b230
jmp 0x40b243
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x40b240
cmp al, 9
je 0x40b240
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40b25d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004014d9
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x40b2a2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x40b292
cmp al, 0x22
jne 0x40b243
lea ebx, [edx + 2]
jmp 0x40b243
Function at 0x1000b020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015751b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1020f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0xc]
mov dword [edi], vtable.EventInterface.0
lea ecx, [esi + 8]
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0
mov dword [ebp - 4], 0
push 0x10197b5e
mov byte [esi], 0xff
mov dword [esi + 4], 0xffffffff
call fcn.1000d8b0
mov word [esi + 0x20], 0
mov byte [esi + 0x22], 0
mov ecx, dword [ebp + 8]
lea edx, [esi + 8]
mov dword [ebp - 4], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov al, byte [ecx]
mov byte [esi], al
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ecx + 8]
cmp edx, eax
je 0x1000b0dd
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x1000b0d0
mov eax, dword [eax]
push edx
push eax
lea ecx, [esi + 8]
call fcn.1000d8b0
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 0x20]
mov byte [esi + 0x20], al
movzx eax, byte [ecx + 0x21]
mov byte [esi + 0x21], al
movzx eax, byte [ecx + 0x22]
mov byte [esi + 0x22], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
call fcn.10112aa5
mov dword [edi + 0x30], eax
mov eax, edi
mov dword [edi + 0x34], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1000dbe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157730
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1020f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10129da7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10112367
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1000ddf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10020de0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x10020e0b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10020df4
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x10041e80
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x10041fed
lea eax, [ecx - 1]
mov esi, dword [0x1021ac68]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x1021ac70
lea eax, [edi + edi]
push eax
call fcn.100418b0
mov eax, dword [0x1021ac68]
lea ebx, [edi - 1]
mov dword [0x1021ac7c], ebx
mov dword [0x1021ac80], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10041fe4
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x1021ac70]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x10041f42
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10041faf
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x10041f7c
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10041f74
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x10041faf
cmp ebx, edx
je 0x10041f8c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10041fc0
cmp ebx, edx
jne 0x10041f80
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x10041fe4
mov ebx, dword [0x1021ac7c]
jmp 0x10041ef0
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10041faf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.1011215a
int3
Function at 0x100579f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
not eax
mov dword [ebp - 4], ebx
cmp edi, 8
jb 0x10057a9f
mov ecx, edi
shr ecx, 3
mov dword [ebp + 8], ecx
mov ebx, dword [esi + 4]
sub edi, 8
mov ecx, dword [esi]
add esi, 8
xor ecx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
mov dword [ebp + 0xc], ecx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*4 + 0x101a9ed0]
mov edx, dword [ebp + 0xc]
xor eax, dword [ecx*4 + 0x101aa2d0]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101aaed0]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101ab2d0]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x101a9ad0]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x101aaad0]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x101aa6d0]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x101ab6d0]
sub dword [ebp + 8], 1
jne 0x10057a17
mov ebx, dword [ebp - 4]
test edi, edi
je 0x10057abd
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101a9ad0]
sub edi, 1
jne 0x10057aa3
pop edi
not eax
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10057bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101fc5a8
push 0x1012b2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1020f140]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x10057c63
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10057c63
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x10057c63
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10057c63
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10057c6c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10129a67
mov esp, ebp
pop ebp
ret
Function at 0x10057f80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1020f140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x10058049
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10057fc6
sub edi, 0x8000000
jmp 0x10058041
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10058049
cmp dword [ebp - 0x10], 0x10000
jne 0x1005802c
cmp dword [ebp - 0x14], 0x10000
jb 0x1005802c
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10058104
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x10058049
sub edi, 0x10000
jmp 0x10058041
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x10057fb1
movzx eax, si
test eax, eax
je 0x10058058
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x10058102
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10058085
add esi, 0x8000000
jmp 0x100580fa
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x10058102
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x100580e5
cmp ecx, 0x10000
jb 0x100580e5
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10058104
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x10058102
add esi, 0x10000
jmp 0x100580fa
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x100580fa
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x10058070
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10129a67
mov esp, ebp
pop ebp
ret
Function at 0x10058120
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1020f140]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1021af2c], 0
jne 0x100581a9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x1021af2c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x100581a9
push esi
mov esi, dword [0x1021af38]
mov dword [0x1021af40], eax
mov dword [0x1021af3c], eax
mov dword [0x1021af34], eax
push edi
test esi, esi
je 0x1005818a
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x100581a1
mov esi, dword [esi + 4]
test esi, esi
jne 0x10058171
xor eax, eax
pop edi
mov dword [0x1021af28], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10129a67
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1005818c
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.10129a67
mov esp, ebp
pop ebp
ret
Function at 0x100585f0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1021af28]
push esi
mov esi, ecx
test eax, eax
jne 0x1005865e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x1005860a
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.10129da7
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1005864b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.10129d94
add esp, 8
mov dword [0x1021af28], esi
mov eax, esi
mov dword [0x1021af34], 0
pop edi
pop esi
ret
mov eax, dword [0x1021af3c]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x1021af3c], edi
pop edi
pop esi
ret
Function at 0x10059f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10059f78
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x100f6c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc