joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408df0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ac30]
jne 0x408dfa
repz ret
jmp fcn.0040b90c

Function at 0x40b0d7
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.00405287
and dword [ebp - 4], 0
cmp dword [0x42bfc4], 0
mov ebx, eax
jne 0x40b188
push 0x402ad4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b239
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ac8
push edi
call esi
test eax, eax
je 0x40b239
push eax
call fcn.00405215
mov dword [esp], 0x402ab8
push edi
mov dword [0x42bfc4], eax
call esi
push eax
call fcn.00405215
mov dword [esp], 0x402aa4
push edi
mov dword [0x42bfc8], eax
call esi
push eax
call fcn.00405215
mov dword [esp], 0x402a88
push edi
mov dword [0x42bfcc], eax
call esi
push eax
call fcn.00405215
pop ecx
mov dword [0x42bfd4], eax
test eax, eax
je 0x40b188
push 0x402a70
push edi
call esi
push eax
call fcn.00405215
pop ecx
mov dword [0x42bfd0], eax
mov eax, dword [0x42bfd0]
cmp eax, ebx
je 0x40b1e0
cmp dword [0x42bfd4], ebx
je 0x40b1e0
push eax
call fcn.00405290
push dword [0x42bfd4]
mov esi, eax
call fcn.00405290
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b1e0
test edi, edi
je 0x40b1e0
call esi
test eax, eax
je 0x40b1d7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b1d7
test byte [ebp - 0xc], 1
jne 0x40b1e0
or dword [ebp + 0x10], 0x200000
jmp 0x40b219
mov eax, dword [0x42bfc8]
cmp eax, ebx
je 0x40b219
push eax
call fcn.00405290
pop ecx
test eax, eax
je 0x40b219
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b219
mov eax, dword [0x42bfcc]
cmp eax, ebx
je 0x40b219
push eax
call fcn.00405290
pop ecx
test eax, eax
je 0x40b219
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bfc4]
call fcn.00405290
pop ecx
test eax, eax
je 0x40b239
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b23b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100011f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x10006d7f
cmp dword [edi + 0x54], 0
jne 0x10006d7f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.100080be
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10006d26
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x100014c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push ebp
mov ebp, dword [ebx + 4]
push esi
push edi
mov dword [esp + 0x14], ebp
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
jbe 0x100015b4
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x1000153d
mov edx, dword [esp + 0x20]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x10001598
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100015cb
mov eax, dword [esi - 4]
add eax, ebp
test edi, edi
mov dword [esi - 8], eax
je 0x10001598
push edi
push 0
push eax
call fcn.100122d0
add esp, 0xc
jmp 0x10001598
mov ecx, dword [esi + 4]
add ecx, eax
cmp ecx, 0x24e00
ja 0x100015c3
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100015cb
mov eax, dword [esi - 4]
mov edx, dword [esi + 4]
mov ebx, dword [esi]
add edx, dword [esp + 0x1c]
add eax, ebp
test ebx, ebx
jbe 0x10001591
mov edi, edx
mov ecx, eax
sub edi, eax
mov ebp, ebx
lea esp, [esp]
mov dl, byte [edi + ecx]
mov byte [ecx], dl
add ecx, 1
sub ebp, 1
jne 0x10001580
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov dword [esi - 8], eax
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
add eax, 1
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x100014f2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x10001680
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x30]
mov esi, dword [ecx + eax + 0x20]
sub edx, 1
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [esp + 0x14], esi
mov esi, dword [ecx + 0x10]
test esi, esi
mov dword [esp + 0x18], edx
jne 0x100016c6
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x100016bf
mov esi, dword [eax + 0x20]
jmp 0x100016c6
test bl, bl
jns 0x100016c6
mov esi, dword [eax + 0x24]
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x20], esi
mov esi, 1
add ecx, 0x28
cmp word [eax + 6], si
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], esi
jbe 0x100017a6
lea ebx, [ecx + 0x24]
mov esi, dword [edi + 0x30]
mov ebp, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
sub esi, 1
not esi
and esi, ebp
test edi, edi
jne 0x10001719
mov ecx, dword [ebx]
test cl, 0x40
je 0x10001712
mov edi, dword [eax + 0x20]
jmp 0x10001719
test cl, cl
jns 0x10001719
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x10001752
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, ecx
cmp eax, esi
ja 0x10001752
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.100015e0
test eax, eax
je 0x100017c9
mov eax, dword [ebx]
mov edx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jmp 0x1000177e
mov eax, dword [ebx]
test eax, 0x2000000
je 0x1000176b
test dword [esp + 0x20], 0x2000000
je 0x1000176b
or dword [esp + 0x20], eax
jmp 0x10001778
or eax, dword [esp + 0x20]
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
sub edi, dword [esp + 0x14]
add edi, ebp
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
movzx esi, word [eax + 6]
add ecx, 1
add ebx, 0x28
cmp ecx, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
jl 0x100016f2
lea ecx, [esp + 0x14]
mov edx, edi
mov dword [esp + 0x24], 1
call fcn.100015e0
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4
Function at 0x10002070
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov ecx, dword [0x10057f30]
push ebx
push ebp
push esi
mov esi, dword [0x10057f38]
push edi
mov edi, esi
imul edi, ecx
lea ebp, [edi + 2]
xor eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x10057f2c]
lea edx, [eax + ecx]
mov eax, dword [0x10057f3c]
imul ebp, eax
mov dword [esp + 0x14], edx
lea ebx, [edx + eax + 5]
mov edx, dword [0x10057f34]
imul ebx, edx
add ebx, ebp
mov ebp, dword [esp + 0x44]
sub ebx, ecx
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x28], ebx
mov ebp, 2
sub ebp, edi
imul ebp, eax
lea edi, [ebp + ebp - 2]
mov ebx, edx
imul edi, ecx
add edi, dword [esp + 0x44]
imul ebx, edx
mov dword [esp + 0x18], ebx
lea ebx, [ebx + ebx - 2]
imul ebx, esi
add ebx, edi
mov edi, dword [0x10057f2c]
mov dword [esp + 0x2c], ebx
lea ebx, [eax + 1]
imul ebx, edx
add ebx, esi
lea ebx, [ebx + edi + 1]
imul ebx, ecx
mov ebp, 2
sub ebp, eax
imul ebp, esi
add ebx, ebp
mov ebp, dword [esp + 0x44]
sub ebx, eax
add ebx, edi
imul edi, eax
add ebx, ebp
mov dword [esp + 0x10], edi
add edi, edx
lea ebp, [edi*8]
sub ebp, edi
mov edi, dword [esp + 0x14]
imul edi, esi
sub ebp, 7
imul ebp, edx
mov dword [esp + 0x30], ebx
lea ebx, [edi*8]
sub ebx, edi
mov edi, dword [0x10057f2c]
sub ebp, ebx
mov ebx, dword [esp + 0x44]
add ebp, ebx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
add edi, eax
imul edi, eax
add ebp, 1
imul ebp, edx
lea edi, [edi + ecx*2 + 1]
imul ebp, edx
imul edi, esi
add edi, ebp
mov ebp, dword [0x10057f2c]
lea edi, [edi + ebp*2]
lea ebp, [ebx + edi*2]
add edi, ebp
mov dword [esp + 0x34], edi
mov edi, ecx
imul edi, ecx
add edi, dword [esp + 0x10]
lea ebp, [ecx + 2]
lea edi, [edi + edi*2]
imul ebp, eax
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
imul edi, edx
imul edi, edx
sub ebp, edi
mov edi, dword [0x10057f2c]
sub ebp, edi
lea ebp, [ebx + ebp*2]
mov dword [esp + 0x18], ebp
lea ebp, [esi*4]
mov dword [esp + 0x38], ebp
mov ebp, esi
imul ebp, eax
sub ebp, 1
imul ebp, edx
mov edx, esi
imul edx, edi
add ebp, 1
imul ebp, eax
sub ebp, edx
lea edx, [ecx + ebp - 1]
imul edx, esi
mov esi, 1
sub esi, ecx
imul esi, edi
sub esi, 1
imul esi, eax
mov eax, dword [esp + 0x48]
add edx, esi
sub edx, ecx
mov ecx, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x3c], edx
mov esi, ecx
mov edi, ecx
xor edx, edx
lea eax, [ecx + 1]
mov ecx, 0x791b
div ecx
mov ebp, dword [esp + 0x14]
add edi, 1
mov ecx, edx
mov edx, dword [esp + 0x28]
movzx eax, byte [edx + ecx]
add eax, esi
xor edx, edx
mov esi, 0x791b
div esi
mov eax, dword [esp + 0x2c]
mov al, byte [eax + ecx]
mov esi, edx
mov edx, dword [esp + 0x30]
mov dl, byte [edx + esi]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x34]
mov byte [edx + esi], al
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + ecx]
mov eax, esi
sub eax, dword [esp + 0x10]
mov ebp, 0x791b
movzx eax, byte [eax + ebx]
add eax, edx
xor edx, edx
div ebp
mov ebp, dword [esp + 0x3c]
add edx, dword [esp + 0x38]
movzx eax, byte [edx + ebx]
xor byte [edi + ebp - 1], al
cmp edi, 0x24e00
jb 0x10002204
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x1000d2d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1000d314
call fcn.100080be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000d314
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000d32f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1000ce8b
test ebx, ebx
mov esi, eax
je 0x1000d32d
test edi, edi
je 0x1000d32d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1001027b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10031be0]
jne 0x10010285
repz ret
jmp fcn.10013ba7
Function at 0x1001ce20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10013e0b
xor ebx, ebx
cmp dword [0x1005aa5c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001cef5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001ce60
xor eax, eax
jmp 0x1001cfb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001ce59
push eax
call fcn.10013da8
mov dword [esp], 0x1002a0b8
push edi
mov dword [0x1005aa5c], eax
call esi
push eax
call fcn.10013da8
mov dword [esp], 0x1002a0a4
push edi
mov dword [0x1005aa60], eax
call esi
push eax
call fcn.10013da8
mov dword [0x1005aa64], eax
lea eax, [ebp - 8]
push eax
call fcn.1001290d
test eax, eax
pop ecx
pop ecx
je 0x1001cec3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10015445
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001cef5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10013da8
cmp eax, ebx
pop ecx
mov dword [0x1005aa6c], eax
je 0x1001cef5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10013da8
pop ecx
mov dword [0x1005aa68], eax
mov eax, dword [0x1005aa68]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001cf6e
cmp dword [0x1005aa6c], esi
je 0x1001cf6e
push eax
call fcn.10013e14
pop ecx
call eax
cmp eax, ebx
je 0x1001cf3b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1005aa6c]
call fcn.10013e14
pop ecx
call eax
test eax, eax
je 0x1001cf3b
test byte [ebp - 0x18], 1
jne 0x1001cf6e
lea eax, [ebp - 0xc]
push eax
call fcn.10012944
test eax, eax
pop ecx
je 0x1001cf56
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10015445
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001cf65
or dword [ebp + 0x10], 0x200000
jmp 0x1001cf9f
or dword [ebp + 0x10], 0x40000
jmp 0x1001cf9f
mov eax, dword [0x1005aa60]
cmp eax, esi
je 0x1001cf9f
push eax
call fcn.10013e14
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001cf9f
mov eax, dword [0x1005aa64]
cmp eax, esi
je 0x1001cf9f
push dword [ebp - 4]
push eax
call fcn.10013e14
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1005aa5c]
call fcn.10013e14
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x597008], 0x8088405
inc edx
mov dword [ebx + 0x597008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
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 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x57a9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57a9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x57bd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x59973c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x59973c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x598538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57bd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x5e3430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
mov eax, dword [ecx + 4]
push ebx
push esi
mov dword [esp + 0x14], edx
lea esi, [ecx + 4]
mov edx, dword [ecx]
add esi, 4
xor eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
movd xmm0, edx
mov edi, eax
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x20], xmm0
test al, 3
je 0x5e3470
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x5ee510]
test eax, eax
jne 0x5e3494
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0x4fee74f4
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee510], eax
call eax
mov ebx, eax
mov eax, dword [0x5ee284]
test eax, eax
jne 0x5e34bc
mov ecx, 0xa2ce093f
call fcn.005e3f70
mov edx, 0xafb2ca58
mov ecx, eax
call fcn.005e3ed0
mov dword [0x5ee284], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x5e3572
shr edi, 2
xor edx, edx
lea ecx, [esi + edi*4]
mov edi, eax
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
mov ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x5e3562
cmp ebx, 8
jb 0x5e3547
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x5e3506
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x5e3547
movdqa xmm1, xmmword [esp + 0x20]
mov eax, ebx
and eax, 7
mov dword [esp + 0xc], ebx
sub dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [ecx]
movdqu xmm0, xmmword [esi]
add edx, 8
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [esi + 0x10]
add esi, 0x20
pxor xmm0, xmm1
movdqu xmmword [edi + 0x10], xmm0
add edi, 0x20
cmp edx, eax
jb 0x5e3520
cmp edx, ebx
jae 0x5e3562
sub edi, esi
lea ecx, [ecx]
mov eax, dword [esi]
lea esi, [esi + 4]
xor eax, dword [esp + 0x14]
inc edx
mov dword [edi + esi - 4], eax
cmp edx, ebx
jb 0x5e3550
mov edx, dword [esp + 0x18]
test edx, edx
je 0x5e3570
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret