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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 0xc]
mov ebx, edx
push dword [ebp + 8]
push ebx
push ecx
call fcn.10013150
and dword [ebp - 0x10], 0
add esp, 0x10
and dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xbfdb8
mov dword [ebp - 0x14], 0x242f18
mov dword [ebp - 4], 0xb9ce
add dword [ebp - 4], 0x45ca
xor dword [ebp - 4], 0xff98
mov dword [ebp - 8], 0xd47
shl dword [ebp - 8], 0x10
shr dword [ebp - 8], 0xb
xor dword [ebp - 8], 0x1a8e6
mov dword [ebp - 8], 0xb6ed
add dword [ebp - 8], 0xace8
xor dword [ebp - 8], 0x163c5
cmp byte [ebx], 0
je 0x100129f6
push esi
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 0xd47
shl dword [ebp - 8], 0x10
shr dword [ebp - 8], 0xb
xor dword [ebp - 8], 0x1a8e6
mov cl, byte [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0xb6ed
add dword [ebp - 8], 0xace8
xor dword [ebp - 8], 0x163c5
shl esi, cl
mov cl, byte [ebp - 8]
mov edx, dword [ebp - 4]
movsx eax, byte [ebx]
mov dword [ebp - 4], eax
add dword [ebp - 4], esi
shl edx, cl
add dword [ebp - 4], edx
sub dword [ebp - 4], edi
inc ebx
cmp byte [ebx], 0
jne 0x100129a1
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a4b1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push edx
push ecx
call fcn.10013150
mov dword [ebp + 0xc], 0xcdb1
add esp, 0x10
shr dword [ebp + 0xc], 0xf
xor dword [ebp + 0xc], 0x10a
cmp dword [eax + 4], 0x40
jae 0x1001a4e1
xor eax, eax
pop ebp
ret
mov ecx, dword [eax]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1001a4dd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001a4dd
movzx edx, word [eax + 0x18]
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp edx, ecx
cmovne eax, esi
pop esi
pop ebp
ret
Function at 0x1001b566
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
mov eax, 0x100010ec
push ebp
push edi
push ebx
push dword [esp + 0x38]
push dword [esp + 0x38]
push eax
push edx
push ecx
call fcn.10013150
push ebx
push eax
call fcn.10013150
mov dword [esp + 0x3c], 0x4b1aac
xor edi, edi
mov dword [esp + 0x40], 0x6e8720
xor edx, edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], 0x88f3
shr dword [esp + 0x2c], 2
xor dword [esp + 0x2c], 0x975e54be
add dword [esp + 0x2c], 0xe7d8
xor dword [esp + 0x2c], 0x975f6258
mov dword [esp + 0x30], 0xe148
mov eax, dword [esp + 0x30]
push 0x36
pop ecx
div ecx
mov dword [esp + 0x30], eax
xor dword [esp + 0x30], 0x6f46
mov eax, dword [0x100010ec]
mov edx, dword [0x100010f0]
xor edx, eax
mov dword [esp + 0x34], eax
mov eax, edx
mov dword [esp + 0x38], edx
and eax, 0xfffffffc
mov ecx, edx
add eax, 4
mov ebp, edx
and cl, 3
cmovne ebp, eax
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x1c
mov edx, ebp
call fcn.100060fb
mov dword [esp + 0x14], eax
pop ecx
test eax, eax
je 0x1001b674
shr ebp, 2
push esi
mov esi, 0x100010f4
lea ecx, [ebp*4 + 0x100010f4]
xor ebp, ebp
mov edx, ecx
sub edx, esi
add edx, 3
shr edx, 2
cmp ecx, esi
cmovb edx, ebp
test edx, edx
je 0x1001b669
mov ebp, dword [esp + 0x18]
mov ecx, eax
sub ecx, esi
mov eax, dword [esi]
xor eax, ebp
inc edi
mov dword [ecx + esi], eax
lea esi, [esi + 4]
cmp edi, edx
jb 0x1001b656
mov eax, dword [esp + 0x14]
pop esi
test ebx, ebx
je 0x1001b674
mov ecx, dword [esp + 0x18]
mov dword [ebx], ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x1001d0dd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
push dword [esp + 0x50]
mov ebp, edx
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x50]
push ebp
push ecx
call fcn.10013150
mov dword [esp + 0x48], 0x54dd56
add esp, 0x18
mov dword [esp + 0x34], 0x55f8ce
xor esi, esi
mov dword [esp + 0x38], esi
xor edx, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x14], 0x74e4
add dword [esp + 0x14], 0xffffd426
mov eax, dword [esp + 0x14]
push 0x15
pop ecx
div ecx
mov dword [esp + 0x14], eax
or dword [esp + 0x14], 0xb2861aa6
xor dword [esp + 0x14], 0xb2860058
mov dword [esp + 0x10], 0x2759
shl dword [esp + 0x10], 3
add dword [esp + 0x10], 0xffff372e
add dword [esp + 0x10], 0xe8b2
xor dword [esp + 0x10], 0x15112
mov dword [esp + 0x1c], 0x68c6
xor dword [esp + 0x1c], 0x16a2cf28
xor dword [esp + 0x1c], 0x16a2b797
mov dword [esp + 0x18], 0xf4dc
or dword [esp + 0x18], 0xee1624e5
xor dword [esp + 0x18], 0xee16f4fd
mov eax, dword [ebp + 0x3c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov ebx, dword [eax + ebp + 0x78]
add ebx, ebp
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, ebp
mov dword [esp + 0x28], eax
add ecx, ebp
mov eax, dword [ebx + 0x24]
add eax, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jmp 0x1001d1f4
push dword [esp + 0x1c]
mov edx, dword [ecx + edi*4]
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add edx, ebp
call fcn.1001292b
xor eax, 0xc5c2292
pop ecx
pop ecx
cmp eax, dword [esp + 0x50]
je 0x1001d1fb
mov ecx, dword [esp + 0x20]
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x1001d1cc
jmp 0x1001d227
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
add esi, ebp
cmp esi, ebx
jb 0x1001d227
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebp + 0x7c]
add eax, ebx
cmp esi, eax
jae 0x1001d227
mov ecx, esi
call fcn.10002e08
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x1001db31
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
push dword [esp + 0x30]
push edx
push ecx
call fcn.10013150
xor eax, eax
mov dword [esp + 0x28], 0x2f20f4
lea edi, [esp + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0xdb93
lea edi, [esi + 4]
xor dword [esp + 0x1c], 0xcf590e5f
xor dword [esp + 0x1c], 0xcf59d9ad
mov dword [esp + 0x40], 0x4aee
shr dword [esp + 0x40], 0xd
shr dword [esp + 0x40], 0xb
xor dword [esp + 0x40], 0x2cea
mov ecx, dword [esi]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, esi
call fcn.100060fb
mov ebx, eax
mov dword [esp + 0x34], ebx
pop ecx
test ebx, ebx
je 0x1001dc24
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x1001dc1b
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc ebp
mov byte [edx - 1], cl
cmp ebp, esi
jb 0x1001dbf2
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
pop ebp
mov byte [ebx + eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret
Function at 0x11581b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01158308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x11581de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11581ca
add dl, dl
jne 0x11581e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x115823c
xor eax, eax
add dl, dl
jne 0x11581f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11582dd
add dl, dl
jne 0x1158205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1158210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x115821b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1158226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1158232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x11581d5
mov eax, 1
add dl, dl
jne 0x115824a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1158255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1158241
sub eax, ebx
mov ebx, 1
jne 0x1158288
mov ecx, 1
add dl, dl
jne 0x115826e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1158279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1158265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11581d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x115829f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11582aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1158296
cmp eax, 0x7d00
jae 0x11582cd
cmp eax, 0x500
jb 0x11582c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11581d5
cmp eax, 0x7f
ja 0x11582d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11581d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x11582fe
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 0x11581d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xaa5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xaa51a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xaa507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa506a
add dl, dl
jne 0xaa5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa50dc
xor eax, eax
add dl, dl
jne 0xaa5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa517d
add dl, dl
jne 0xaa50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaa50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaa5075
mov eax, 1
add dl, dl
jne 0xaa50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa50e1
sub eax, ebx
mov ebx, 1
jne 0xaa5128
mov ecx, 1
add dl, dl
jne 0xaa510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaa513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa5136
cmp eax, 0x7d00
jae 0xaa516d
cmp eax, 0x500
jb 0xaa5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa5075
cmp eax, 0x7f
ja 0xaa5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaa519e
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 0xaa5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x8ae3e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x311000]
push edi
jmp 0x8ae3fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8ae401
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ae3f0
mov eax, 1
add ebx, ebx
jne 0x8ae413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8ae424
jne 0x8ae443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ae443
dec eax
add ebx, ebx
jne 0x8ae430
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8ae408
add ebx, ebx
jne 0x8ae43f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8ae495
xor ecx, ecx
sub eax, 3
jb 0x8ae45b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8ae4ca
sar eax, 1
mov ebp, eax
jmp 0x8ae466
add ebx, ebx
jne 0x8ae466
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ae434
inc ecx
add ebx, ebx
jne 0x8ae474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ae434
add ebx, ebx
jne 0x8ae481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8ae476
jne 0x8ae492
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8ae476
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8ae4b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8ae4a6
jmp 0x8ae3f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8ae4b4
add edi, ecx
jmp 0x8ae3f6
pop esi
mov edi, esi
mov ecx, 0x1205e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8ae4d2
cmp byte [edi], 0x26
jne 0x8ae4d2
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 0x8ae4d7
lea edi, [esi + 0x4ab000]
mov eax, dword [edi]
or eax, eax
je 0x8ae54f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4cdb40]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4cdc94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8ae504
mov ecx, edi
jns 0x8ae533
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 + 0x4cdc98]
or eax, eax
je 0x8ae549
mov dword [ebx], eax
add ebx, 4
jmp 0x8ae521
call dword [esi + 0x4cdca8]
mov ebp, dword [esi + 0x4cdc9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x8ae583
sub esp, 0xffffff80
jmp 0x44e85a
Function at 0x44b5fa
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44b608
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and al, 1
pop ebp
ret

Function at 0x44b653
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44b661
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x44bf1f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44bf45
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44bf45
xor al, al
jmp 0x44bf59
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x44d0f5
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x451b0b
call fcn.0044e5e5
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44d115
mov al, 1
jmp 0x44d15c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x44d126
xor al, al
jmp 0x44d15c
lea ecx, [ebp - 0x44]
call fcn.0044d25f
lea ecx, [ebp - 0x1c]
call fcn.0044c7ec
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0044d2f7
test al, al
je 0x44d151
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.0044e693
pop ecx
mov al, bl
call fcn.0044e5ae
ret

Function at 0x44d1b9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x44d80e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x10001000
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ebx, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x100010c0
push esi
add ebx, 0x10
push edi
lea esp, [esp]
mov eax, dword [ebx]
test eax, eax
jne 0x1000106e
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x100010a0
mov eax, dword [ebx - 4]
push 4
push 0x1000
push esi
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100010a0
push 4
push 0x1000
push eax
mov eax, dword [ebx - 4]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
inc eax
add ebx, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x10001030
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100010d0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10001185
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10001125
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000116d
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x1000a040]
je 0x1000113f
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x1000115a
test al, 0x40
je 0x10001151
mov ecx, dword [ebx + 0x20]
jmp 0x10001158
test al, al
jns 0x1000116d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x1000116d
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x100010f2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10001470
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
cmp word [eax], 0x5a4d
je 0x10001480
xor eax, eax
pop ecx
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
mov dword [esp + 4], edi
je 0x10001497
xor eax, eax
pop edi
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x100014cf
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x100014cf
pop esi
pop ebp
pop edi
pop ecx
ret
push ebx
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push 0x1000
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov ecx, dword [edi + 0x54]
mov esi, dword [esp + 0x18]
add ecx, dword [esi + 0x3c]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x3c]
mov esi, dword [esp + 0x10]
push ebx
add eax, edx
push esi
mov dword [ebx], eax
push ecx
mov dword [eax + 0x34], ebp
call section..text
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x10001558
push eax
mov eax, ebx
call fcn.10001190
add esp, 4
push ebx
call fcn.10001220
add esp, 4
test eax, eax
je 0x10001586
push ebx
call fcn.100010d0
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x1000159e
add eax, ebp
je 0x10001586
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x10001597
push ebx
call fcn.100013e0
add esp, 4
pop ebx
pop esi
pop ebp
xor eax, eax
pop edi
pop ecx
ret
mov dword [ebx + 0x10], 1
mov eax, ebx
pop ebx
pop esi
pop ebp
pop edi
pop ecx
ret

Function at 0x100015b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x100015c7
mov eax, 1
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100015da
mov eax, 2
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov edx, dword [esp + 8]
mov dword [edx], eax
jne 0x100015f2
mov eax, 3
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0xc]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], eax
pop esi
dec edx
and edx, 4
mov eax, edx
ret
Function at 0x10001760
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10007708
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
mov edi, ecx
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
mov eax, 0x10008368
mov ecx, 0x65
mov dword [0x1000a940], edi
call fcn.100015b0
add esp, 8
test eax, eax
jne 0x10001818
push esi
mov esi, dword [esp + 8]
push esi
call fcn.10001ac4
mov edi, eax
add esp, 4
mov dword [esp + 8], edi
mov eax, dword [esp + 0xc]
shr esi, 2
lea ecx, [eax + esi*4]
cmp eax, ecx
mov dword [esp + 0x18], 0
jae 0x100017e2
mov edx, edi
sub edx, eax
nop
mov esi, dword [eax]
xor esi, 0x4f8c64e1
mov dword [edx + eax], esi
add eax, 4
cmp eax, ecx
jb 0x100017d0
push edi
call fcn.10001470
add esp, 4
test eax, eax
mov dword [0x1000a944], eax
pop esi
je 0x10001807
push str.Init
push eax
call fcn.10001340
add esp, 8
test eax, eax
jne 0x1000182a
push edi
mov dword [esp + 0x18], 0xffffffff
call fcn.10001abf
add esp, 4
xor al, al
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [0x1000a940]
push 0x10001610
push edx
call eax
push edi
mov dword [esp + 0x18], 0xffffffff
call fcn.10001abf
mov ecx, dword [esp + 0x10]
add esp, 4
mov al, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret