joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006076d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x10060778
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x1006082a
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
sub eax, 8
dec edi
jne 0x1006078f
pop edi
test eax, eax
je 0x10060843
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100cc340]
inc ecx
dec eax
jne 0x1006082e
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x1006084a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x100cc340]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x100cc340]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x10060f89
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x10060fb9
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10060fb4
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10060ff1
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x10060fd5
jg 0x10060fcf
cmp ecx, dword [esi + 0x20]
jbe 0x10060fd5
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x28]
push edi
push eax
push dword [ebp + 8]
call fcn.10074cc0
add esp, 0xc
add dword [esi + 0x28], edi
mov eax, edi
adc dword [esi + 0x2c], 0
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x100610d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
mov edi, eax
xor eax, eax
cmp edi, eax
mov esi, ecx
je 0x10061167
push 2
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
neg eax
push eax
push dword [esi + 4]
call ebx
and dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10061133
or eax, 0xffffffff
jmp 0x10061250
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
push edx
push eax
xor ecx, ecx
mov eax, esi
call fcn.10060eed
test eax, eax
pop ecx
pop ecx
jne 0x1006112b
cmp byte [esi], al
je 0x10061177
cmp byte [esi + 1], al
je 0x1006116e
push 1
push eax
push eax
push dword [esi + 4]
call ebx
mov ebx, eax
sub ebx, dword [esi + 0x10]
mov dword [ebp - 4], ebx
jmp 0x1006117f
push eax
push eax
push 2
pop ecx
jmp 0x1006113e
and dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x1006117f
mov eax, dword [esi + 0x28]
mov dword [ebp - 4], eax
mov ebx, eax
mov eax, 0xffff
cmp ebx, eax
mov dword [ebp - 8], eax
jae 0x1006118e
mov dword [ebp - 8], ebx
push 0x404
call fcn.10074352
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x1006112b
or dword [ebp - 0x14], 0xffffffff
push 4
pop eax
cmp dword [ebp - 8], eax
jbe 0x10061244
jmp 0x100611b8
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, 0x400
cmp eax, ecx
mov dword [ebp - 0xc], ecx
ja 0x100611ca
mov dword [ebp - 0xc], eax
mov edi, ebx
sub edi, dword [ebp - 0xc]
mov eax, ebx
sub eax, edi
mov ebx, 0x404
cmp eax, ebx
ja 0x100611de
mov ebx, eax
push 0
push edi
xor ecx, ecx
mov eax, esi
call fcn.10060eed
test eax, eax
pop ecx
pop ecx
jne 0x10061244
push 1
push ebx
push dword [ebp - 0x10]
call fcn.10060f89
add esp, 0xc
cmp eax, 1
jne 0x10061244
lea eax, [ebx - 3]
jmp 0x10061227
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x10061227
cmp byte [eax + ecx + 1], 0x4b
jne 0x10061227
cmp byte [eax + ecx + 2], 5
jne 0x10061227
cmp byte [eax + ecx + 3], 6
je 0x1006122d
test eax, eax
jg 0x10061208
jmp 0x10061232
add eax, edi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10061244
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jb 0x100611b2
push dword [ebp - 0x10]
call fcn.100744cd
mov eax, dword [ebp - 0x14]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10061ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x10061d2f
cmp dword [esi + 4], 0xffffffff
jne 0x10061d2f
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.10071f8b
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x10061cfc
cmp ax, 0x2f
je 0x10061cfc
push edi
call fcn.10071f8b
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100d9484
push edi
call fcn.10078e61
add esp, 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.10060e3c
test eax, eax
pop ecx
pop ecx
pop edi
jne 0x10061d14
mov eax, dword [ebp + 8]
jmp 0x10061d34
push dword [ebp + 0xc]
call fcn.10061255
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x10061d34
mov eax, 0x1000000
pop ebp
ret 8

Function at 0x10062291
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100ee3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
je 0x100622c5
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100622c5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x10062387
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x100622e4
cmp cx, 0x5c
jne 0x100622e6
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x100622d8
cmp eax, esi
push edi
je 0x10062324
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10074cc0
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.10062291
add esp, 0x14
and word [ebp - 0x20c], 0
test ebx, ebx
mov edi, 0x103
je 0x10062346
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100752b3
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.10071f8b
sub edi, eax
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10078e61
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x10062387
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10071fa1
leave
ret
Function at 0x10062e33
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100c0388
call fcn.1007a159
mov edi, ecx
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
call fcn.10062936
and dword [ebp - 4], 0
mov eax, dword [0x1010936c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x10062f75
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
mov esi, 0x100d9484
je 0x10062e97
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10]
call fcn.10062c87
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jl 0x10062eab
push esi
push edi
call fcn.10072760
test eax, eax
pop ecx
pop ecx
jne 0x10062eb0
or eax, 0xffffffff
jmp 0x10062eb4
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10062f75
lea ecx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call fcn.100629c2
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.10062c87
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10062b8c
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, dword [edi - 8]
jle 0x10062f2f
test esi, esi
jle 0x10062f2f
cmp ebx, esi
jle 0x10062f01
mov ebx, esi
lea eax, [ebp - 0x10]
call fcn.10062d0e
mov edi, dword [ebp - 0x10]
mov eax, esi
sub eax, ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [edi + ebx*2]
push eax
mov eax, dword [edi - 4]
lea eax, [eax + eax + 2]
push eax
push edi
call fcn.10024a6a
add esp, 0x10
sub esi, ebx
mov dword [edi - 8], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x10062f4e
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10062f7c
cmp dword [edi - 8], 0
jl 0x10062f65
push 0x100d9484
push edi
call fcn.10072760
test eax, eax
pop ecx
pop ecx
jne 0x10062f69
mov eax, esi
jmp 0x10062f6d
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x10062ebd
mov dword [ebp - 0x18], 1
lea esi, [ebp - 0x14]
call fcn.10062b8c
lea esi, [ebp - 0x10]
call fcn.10062b8c
mov eax, dword [ebp - 0x18]
call fcn.1007a1f8
ret
Function at 0x100633b0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x60
mov eax, 0x100c18c5
call fcn.1007a1c2
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x49], 0
call fcn.1006a9bb
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100016a5
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10004af8
test al, al
je 0x1006340e
mov eax, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.1006a701
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001751
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.1000173c
jmp 0x10063417
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001751
lea esi, [ebp - 0x2c]
call fcn.1006a7b4
push 0x100dbb18
lea ecx, [ebp - 0x6c]
call fcn.100016ce
lea ebx, [ebp - 0x6c]
mov edi, esi
mov byte [ebp - 4], 3
call fcn.1006a8c7
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1000173c
mov ecx, esi
call fcn.10004d78
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x50]
je 0x10063466
and dword [eax + 0x1c], 0
jmp 0x10063527
lea esi, [ebp - 0x48]
mov dword [eax + 0x1c], 1
call fcn.1006a617
push 0x100dbb30
lea ecx, [ebp - 0x6c]
call fcn.100016ce
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.1006a853
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1000173c
mov ecx, edi
call fcn.10004d78
push eax
call ebx
cmp eax, 0xffffffff
je 0x100634be
mov ecx, dword [ebp - 0x50]
mov eax, edi
push eax
add ecx, 0x80
call fcn.10001751
jmp 0x10063523
push str.SKIN
push str.QMUIRES.dat
push dword [0x1010a1a0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10063527
push esi
push dword [0x1010a1a0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10063527
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10063527
push esi
push dword [0x1010a1a0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
mov edi, eax
add esi, 0xb0
mov eax, esi
call fcn.10067175
push edi
push ebx
push dword [esi]
call fcn.10074cc0
add esp, 0xc
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x2c]
call fcn.1000173c
lea ecx, [ebp - 0x48]
call fcn.1000173c
mov al, byte [ebp - 0x49]
call fcn.1007a20c
ret
Function at 0x10063962
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x50
mov eax, 0x100c1878
call fcn.1007a1c2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2d], 0
call fcn.10004af8
test al, al
jne 0x10063a84
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001704
and dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.1006a7b4
call fcn.10020788
mov ecx, edi
mov ebx, eax
call fcn.1000149b
mov edi, eax
test edi, edi
je 0x100639ca
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x100639ce
xor eax, eax
jmp 0x100639e1
lea eax, [esi + esi]
call fcn.10084170
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10034a4e
push eax
lea ecx, [ebp - 0x5c]
call fcn.100016ce
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1006a8c7
xor ebx, ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.1000173c
mov ecx, edi
call fcn.10004d78
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x10063a7c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x10063a73
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], ebx
call fcn.10071328
mov edi, dword [ebp - 0x3c]
pop ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [ebp - 0x38]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10063a73
cmp dword [ebp - 0x34], esi
jne 0x10063a73
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
mov eax, dword [edi]
mov byte [esi + eax], bl
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.1000173c
mov al, byte [ebp - 0x2d]
lea esp, [ebp - 0x6c]
call fcn.1007a20c
ret 8
Function at 0x1006498d
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100ee3e0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x100c0f97
call fcn.1007a159
mov eax, dword [ebp + 0x41c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.10074c40
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.10074c40
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp + 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x1010936c]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
shr eax, 0x10
test ax, ax
lea eax, [ebp + 0x208]
jne 0x10064a35
movzx eax, ax
push eax
lea ecx, [ebp - 0x10]
call fcn.10062a34
jmp 0x10064a6a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x10064a6a
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.10062bb4
test eax, eax
je 0x10064a6a
lea eax, [esi + esi]
push eax
lea ecx, [ebp + 0x208]
push ecx
add eax, 2
push eax
push dword [ebp - 0x10]
call fcn.10020932
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.10062e33
lea esi, [ebp - 0x10]
mov ebx, eax
call fcn.10062b8c
cmp ebx, edi
je 0x10064adf
lea eax, [ebp]
push eax
push edi
push 0x100dbc38
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp]
push 0x100dbc40
push eax
call fcn.10077492
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10064adf
push esi
push dword [ebp + 0x420]
push 1
push dword [ebp - 0x14]
call fcn.10077654
push esi
call fcn.10077a0d
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.10071fa1
add ebp, 0x414
leave
ret

Function at 0x1006aa87
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x1006daa0
Capabilities:
Parse pe header

Disassembly:
cmp edi, 0x40
jae 0x1006daa8
xor eax, eax
ret
cmp word [ecx], 0x5a4d
jne 0x1006daa5
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xf8]
cmp edi, edx
jb 0x1006daa5
cmp dword [eax + ecx], 0x4550
jne 0x1006daa5
test byte [eax + ecx + 0x16], 2
je 0x1006daa5
cmp word [eax + ecx + 0x14], 0xe0
jne 0x1006daa5
push esi
lea esi, [eax + ecx + 0xf8]
movzx eax, word [eax + ecx + 6]
xor edx, edx
test eax, eax
jle 0x1006db03
lea ecx, [esi + 0x10]
jmp 0x1006daf0
mov esi, dword [ecx + 4]
add esi, dword [ecx]
cmp esi, edi
ja 0x1006db0a
add edx, 1
add ecx, 0x28
cmp edx, eax
jl 0x1006daf0
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1006eb20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100e1718
push 0x100794d0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100ee3e0]
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
mov dword [ebp - 0x80], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
test eax, eax
mov esi, 0x10000
je 0x1006eb70
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ecx]
push 0x1c
lea edx, [ebp - 0x7c]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1006ebbe
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x1006ebbe
mov edx, dword [ebp - 0x7c]
add eax, edx
cmp eax, esi
jae 0x1006ebde
xor eax, eax
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.10071fa1
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x6c], 0x1000
jne 0x1006ecb3
mov eax, dword [ebp - 0x68]
cmp al, 1
je 0x1006ecb3
test eax, 0x100
jne 0x1006ecb3
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x1006ec2d
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006eb90
cmp word [ebp - 0x5c], 0x5a4d
jne 0x1006ec18
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x1006ec18
cmp eax, 0x40
jb 0x1006ec18
push 0
push 0xf8
mov ecx, dword [ebp - 0x60]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x1006ec6c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006eb90
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0x4550
je 0x1006ec8c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006eb90
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1006ebc0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006eb90
Function at 0x1006f960
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov ecx, dword [esp + 0x30]
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
or eax, 4
test ecx, ecx
jne 0x1006f97b
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call ecx
test eax, eax
je 0x1006f9e3
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006f9c2
mov dword [esp + 4], ecx
mov eax, 1
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push edx
call fcn.1006f610
test eax, eax
jne 0x1006f9ec
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
add esp, 0x18
ret 0x30
mov eax, dword [esp + 0x44]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x1006fa0f
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
test bl, 4
jne 0x1006fa1b
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x1006fa30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100e1738
push 0x100794d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100ee3e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x1006facf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006facf
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1006facf
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1006facf
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 esp, ebp
pop ebp
ret

Function at 0x1006fc00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x10109448]
test esi, esi
je 0x1006fc2a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x1006fc13
pop edi
pop esi
pop ecx
ret
Function at 0x1006fcb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1006fc90
mov esi, eax
cmp esi, dword [esp + 0x2c]
jae 0x1006fd5a
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1006fce7
mov esi, 0x80010000
jmp 0x1006fd50
xor eax, eax
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
test eax, eax
je 0x1006fd5a
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x1006fd43
cmp eax, 0x10000
jb 0x1006fd43
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x1006fd5c
add esi, 0x10000
jmp 0x1006fd50
mov edx, dword [esp + 0xc]
add eax, edx
call fcn.1006fc90
mov esi, eax
cmp esi, dword [esp + 0x2c]
jb 0x1006fcd3
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret