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

Disassembly:
sub esp, 0x44c
xor eax, eax
push ebx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [esp + 8], eax
push ebp
push esi
mov word [esp + 0x14], ax
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ecx
push edx
push eax
mov dword [esp + 0x2c], ecx
call fcn.00409050
mov edx, eax
mov ecx, pe_nt_image_headers32
mov eax, 0x56565656
lea edi, [esp + 0x64]
add esp, 8
rep stosd dword es:[edi], eax
xor eax, eax
mov cl, al
xor cl, 0x50
mov byte [esp + eax + 0x5c], cl
inc eax
cmp eax, 0x100
jl 0x4090dd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x15c], eax
mov ax, word [esp + 0x18]
mov dword [esp + 0x160], ecx
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x164], ax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x166], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x16a], eax
mov eax, edx
mov dword [esp + 0x16e], ecx
xor ecx, ecx
shr eax, 0x10
mov cl, ah
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
mov byte [esp + 0x172], cl
mov ecx, 9
lea edi, [esp + 0x34]
mov byte [esp + 0x173], al
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x460]
xor eax, eax
mov al, dh
mov byte [esp + 0x175], dl
mov byte [esp + 0x174], al
lea eax, [ecx - 0x11a]
lea edx, [esp + 0x5c]
mov ebx, 0x11a
movsb byte es:[edi], byte [esi]
sub edx, eax
lea edi, [esp + 0x5c]
lea esi, [eax + 0x11a]
sub edi, eax
lea ebp, [edx - 0x10]
mov al, byte [esi + ebp]
mov cl, bl
not cl
xor al, cl
mov byte [edi + esi], al
and eax, 0xff
and eax, 0x8000000f
jns 0x4091b0
dec eax
or eax, 0xfffffff0
inc eax
xor edx, edx
mov dl, byte [esp + eax + 0x34]
lea eax, [esp + 0x28]
push edx
push 0x4efa64
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x34]
add esp, 0xc
mov byte [edi + esi], al
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 0x12a
jl 0x409193
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44c
ret

Function at 0x409960
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov eax, str.NULL
jne 0x409978
mov edi, eax
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x409981
mov edx, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40998a
mov ecx, eax
cmp dword [ebp + 8], 0
je 0x409993
mov eax, dword [ebp + 8]
push edi
push edx
push ecx
push eax
lea eax, [ebp - 0x400]
push str.veryDecryptPDF:__s____s__Owner_s__User_s_n
push eax
call fcn.0046b1df
add esp, 0x18
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
and dword [0x4efd98], 0
mov dword [0x4efd9c], 1
push dword [ebp + 0x10]
mov dword [0x4efda0], eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b353
add esp, 0x1c
pop edi
leave
ret 0x18
Function at 0x40a9a5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0046b1b0
and byte [ebp - 0x1000], 0
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0xfff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1000]
push dword [ebp + 8]
push eax
call fcn.0046c6f7
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
leave
ret
Function at 0x40b092
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
push 0xc8
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.0046d0e0
push 0x20
mov word [ebp - 0xd0], 0x43
pop eax
mov word [ebp - 0xce], 0x6f
mov word [ebp - 0xcc], 0x70
mov word [ebp - 0xca], 0x79
mov word [ebp - 0xc8], 0x72
mov word [ebp - 0xc6], 0x69
mov word [ebp - 0xc4], 0x67
mov word [ebp - 0xc2], 0x68
mov word [ebp - 0xc0], 0x74
mov word [ebp - 0xbe], ax
mov word [ebp - 0xbc], 0x40
mov word [ebp - 0xba], ax
mov word [ebp - 0xb8], 0x32
mov word [ebp - 0xb6], 0x30
mov word [ebp - 0xb4], 0x30
mov word [ebp - 0xb2], 0x32
mov word [ebp - 0xb0], 0x2d
mov word [ebp - 0xae], 0x32
mov word [ebp - 0xac], 0x30
mov word [ebp - 0xaa], 0x31
mov word [ebp - 0xa8], 0x39
mov word [ebp - 0xa6], ax
mov word [ebp - 0xa4], 0x77
mov word [ebp - 0xa2], 0x77
mov word [ebp - 0xa0], 0x77
mov word [ebp - 0x9e], 0x2e
mov word [ebp - 0x9c], 0x76
mov word [ebp - 0x9a], 0x65
mov word [ebp - 0x98], 0x72
mov word [ebp - 0x96], 0x79
mov word [ebp - 0x94], 0x70
mov word [ebp - 0x92], 0x64
mov word [ebp - 0x90], 0x66
mov word [ebp - 0x8e], 0x2e
mov word [ebp - 0x8c], 0x63
mov word [ebp - 0x8a], 0x6f
mov word [ebp - 0x88], 0x6d
mov word [ebp - 0x86], ax
mov word [ebp - 0x84], 0x49
mov word [ebp - 0x82], 0x6e
mov word [ebp - 0x80], 0x63
mov word [ebp - 0x7e], 0x2e
call fcn.0046cb2a
lea eax, [ebp - 8]
push eax
call fcn.0046ca20
lea eax, [ebp - 8]
push eax
call fcn.0046c8c0
mov esi, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 0x14
add esi, 0x76c
inc edi
cmp esi, 0x7d1
mov dword [ebp - 4], eax
jne 0x40b280
cmp edi, 1
jne 0x40b34e
cmp eax, edi
jne 0x40b34e
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d2
jne 0x40b2ae
cmp edi, 1
jne 0x40b34e
cmp dword [ebp - 4], edi
jne 0x40b34e
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d3
jne 0x40b2dc
cmp edi, 1
jne 0x40b34e
cmp dword [ebp - 4], edi
jne 0x40b34e
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d4
jne 0x40b302
cmp edi, 1
jne 0x40b34e
cmp dword [ebp - 4], edi
jne 0x40b34e
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d5
jne 0x40b328
cmp edi, 1
jne 0x40b34e
cmp dword [ebp - 4], edi
jne 0x40b34e
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d6
jne 0x40b34e
cmp edi, 1
jne 0x40b34e
cmp dword [ebp - 4], edi
jne 0x40b34e
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b7fc
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2074
call fcn.0046b1b0
push ebx
push esi
push edi
xor ebx, ebx
push 0x2000
lea eax, [ebp - 0x2074]
push ebx
push eax
call fcn.0046d0e0
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push ebx
push eax
call fcn.0046d0e0
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0046d0e0
push 0xc
lea eax, [ebp - 0x20]
pop esi
push esi
push ebx
push eax
call fcn.0046d0e0
add esp, 0x30
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push 1
pop esi
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, ebx
je 0x40b8a1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], 0x101
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
mov word [ebp - 0x44], bx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x40b8a8
xor eax, eax
jmp 0x40b9bd
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2074]
push esi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x40b963
cmp dword [ebp - 4], ebx
push ebx
je 0x40b924
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2074]
push 0x1fff
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b958
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x2074], bl
lea eax, [ebp - 0x2074]
push eax
call fcn.0046c750
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x2074]
push eax
call fcn.0040bcfe
jmp 0x40b939
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b963
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2074]
push esi
push eax
push dword [ebp - 8]
jmp 0x40b8ce
push str.ReadFile_failed
call fcn.004185cb
pop ecx
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test eax, eax
jne 0x40b97d
push str.Error_closing_thread_handle.
call fcn.004185cb
pop ecx
push dword [ebp - 0x30]
call esi
test eax, eax
jne 0x40b991
push str.Error_closing_process_handle.
call fcn.004185cb
pop ecx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40b9a5
push str.Error_closing_pipe_read_handle.
call fcn.004185cb
pop ecx
push dword [ebp - 0xc]
call esi
mov esi, eax
cmp esi, ebx
jne 0x40b9bb
push str.Error_closing_pipe_write_handle.
call fcn.004185cb
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b9c2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x48aa88
call fcn.0046c6d8
mov eax, 0x1314
call fcn.0046b1b0
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
push edi
je 0x40bb22
cmp byte [ecx], 0
je 0x40bb22
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40bb22
cmp byte [eax], 0
je 0x40bb22
push eax
push ecx
call fcn.00476220
pop ecx
test eax, eax
pop ecx
je 0x40bb22
and byte [ebp - 0xa20], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa20]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0046b2c2
push str..dll
lea eax, [ebp - 0x120]
push str.decrypt
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0046b231
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x28
lea eax, [ebp - 0xa20]
push eax
call esi
cmp eax, 0xffffffff
je 0x40bb22
and byte [ebp - 0x1320], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x131f]
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosw word es:[edi], ax
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0x1320]
push str.__s____s____s_
push eax
call fcn.0046b1df
mov al, byte [ebp + 0xf]
add esp, 0x14
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
push 0
call fcn.00405ef0
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1320]
push eax
call fcn.0040b7fc
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
jne 0x40bb0d
xor esi, esi
jmp 0x40bb10
push 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00405ef0
mov eax, esi
jmp 0x40bb24
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40bb32
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x48aa9c
call fcn.0046c6d8
mov eax, 0x1314
call fcn.0046b1b0
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
push edi
je 0x40bc95
cmp byte [ecx], 0
je 0x40bc95
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40bc95
cmp byte [eax], 0
je 0x40bc95
push eax
push ecx
call fcn.00476220
pop ecx
test eax, eax
pop ecx
je 0x40bc95
and byte [ebp - 0xa20], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa20]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0046b2c2
push str..dll
lea eax, [ebp - 0x120]
push str.decryptpdf
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0046b231
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x28
lea eax, [ebp - 0xa20]
push eax
call esi
cmp eax, 0xffffffff
je 0x40bc95
and byte [ebp - 0x1320], 0
push dword [ebp + 0xc]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x131f]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
push dword [ebp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0x1320]
push str.__s___key___s____s____s_
push eax
call fcn.0046b1df
mov al, byte [ebp + 0xf]
add esp, 0x18
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
push 0
call fcn.00405ef0
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1320]
push eax
call fcn.0040b7fc
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
jne 0x40bc80
xor esi, esi
jmp 0x40bc83
push 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00405ef0
mov eax, esi
jmp 0x40bc97
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x417845
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x48b2d0
call fcn.0046c6d8
push ecx
push ecx
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], esi
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x10]
push ebx
mov dword [ebp - 4], ebx
mov byte [ecx], al
call fcn.00405ef0
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x20]
push ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
call fcn.00405ef0
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x40]
push ebx
mov byte [ebp - 4], 2
mov byte [ecx], al
call fcn.00405ef0
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x50]
push ebx
mov byte [ebp - 4], 3
mov byte [ecx], al
call fcn.00405ef0
or dword [esi + 0x64], 0xffffffff
or dword [esi + 0x68], 0xffffffff
or dword [esi + 0x6c], 0xffffffff
mov edi, 0x52b310
push edi
mov byte [ebp - 4], 4
mov dword [esi + 0x70], ebx
call fcn.0046c750
pop ecx
push eax
push edi
lea ecx, [esi + 0x10]
call fcn.00405f90
push edi
call fcn.0046c750
pop ecx
push eax
push edi
lea ecx, [esi + 0x20]
call fcn.00405f90
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x419304
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 0x4bc]
push eax
push esi
call fcn.004191b3
lea eax, [ebp - 0x68]
push eax
call fcn.0042bf74
push 0x20
lea eax, [ebp - 0x68]
push 0x50ae70
push eax
call fcn.0042bf9c
lea edi, [esi + 0x584]
push 0x10
push edi
call fcn.00418c6e
add esp, 0x20
test eax, eax
je 0x41935d
push 0x10
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0042bf9c
add esp, 0xc
lea eax, [ebp - 0x68]
lea edi, [esi + 0x544]
push eax
push edi
call fcn.0042c927
push 0x10
lea eax, [esi + 0x554]
push 0
push eax
call fcn.0046d0e0
lea ebx, [esi + 0x564]
lea eax, [ebp - 0x470]
push ebx
push dword [esi + 0x4e0]
push eax
call fcn.0042b7d7
push edi
push edi
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.0042b8d7
add esp, 0x30
mov dword [ebp + 8], 1
mov ecx, dword [esi + 0x4e0]
xor eax, eax
test ecx, ecx
jle 0x4193d1
mov cl, byte [ebx + eax]
xor cl, byte [ebp + 8]
inc eax
mov byte [ebp + eax - 0x11], cl
mov ecx, dword [esi + 0x4e0]
cmp eax, ecx
jl 0x4193bc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x470]
push ecx
push eax
call fcn.0042b7d7
push edi
push edi
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.0042b8d7
add esp, 0x1c
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x13
jle 0x4193b0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419403
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 0x49c]
push ebx
call fcn.0046c750
mov edi, eax
pop ecx
cmp edi, 0x20
jl 0x419429
push 0x20
pop edi
push edi
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.0046c3a0
push 0x20
mov ebx, 0x50ae70
pop eax
sub eax, edi
push eax
lea eax, [ebp + edi - 0x50]
push ebx
push eax
call fcn.0046c3a0
lea eax, [ebp - 0xe8]
push eax
call fcn.0042bf74
lea eax, [ebp - 0x50]
push 0x20
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0042bf9c
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0042c927
add esp, 0x30
cmp dword [esi + 0x4e0], 0x10
jne 0x4194c4
push 0x32
pop edi
lea eax, [ebp - 0xe8]
push eax
call fcn.0042bf74
lea eax, [ebp - 0x90]
push 0x10
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0042bf9c
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0042c927
add esp, 0x18
dec edi
jne 0x41948a
lea ecx, [ebp - 0x90]
lea eax, [esi + 0x524]
push 0x20
push ecx
push eax
mov dword [ebp + 8], eax
call fcn.0046c3a0
lea eax, [esi + 0x4bc]
push eax
call fcn.0046c750
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jl 0x4194f5
push 0x20
pop edi
lea eax, [esi + 0x4bc]
push edi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0046c3a0
push 0x20
pop eax
sub eax, edi
push eax
lea eax, [ebp + edi - 0x50]
push ebx
push eax
call fcn.0046c3a0
push dword [ebp + 8]
lea eax, [ebp - 0x530]
push dword [esi + 0x4e0]
push eax
call fcn.0042b7d7
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x530]
push 0x20
push eax
call fcn.0042b8d7
add esp, 0x34
cmp dword [esi + 0x4e0], 0x10
jne 0x4195a8
push 1
pop ebx
mov edi, dword [esi + 0x4e0]
xor eax, eax
test edi, edi
jle 0x419572
mov cl, byte [ebp + eax - 0x90]
xor cl, bl
mov byte [ebp + eax - 0x10], cl
inc eax
cmp eax, edi
jl 0x419560
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x530]
push edi
push eax
call fcn.0042b7d7
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x530]
push 0x20
push eax
call fcn.0042b8d7
add esp, 0x1c
inc ebx
cmp ebx, 0x13
jle 0x419554
lea eax, [ebp - 0x128]
push 0x20
push eax
push dword [ebp + 8]
call fcn.0046c3a0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4198ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x419a75
cmp byte [edi], 0
je 0x419a75
cmp dword [ebp + 0x18], 0
je 0x419a75
push ebx
push esi
push edi
call fcn.0046c750
pop ecx
mov esi, eax
push 0x20
pop ebx
cmp esi, ebx
jge 0x419918
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0046c3a0
mov eax, ebx
sub eax, esi
push eax
lea eax, [ebp + esi - 0x24]
push 0x50ae70
push eax
call fcn.0046c3a0
add esp, 0x18
jmp 0x419926
push ebx
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0046c3a0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00419b44
add esp, 0xc
cmp dword [ebp + 0x10], 3
jne 0x419955
push 0x32
pop esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.00419b44
add esp, 0xc
dec esi
jne 0x419940
cmp dword [ebp + 0x10], 2
jne 0x4199af
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x24]
push dword [ebp + 0xc]
push eax
call fcn.00419a7a
mov ebx, dword [ebp + 0x18]
and byte [ebp + 0x17], 0
and byte [ebp - 1], 0
lea eax, [ebp - 0x44]
add esp, 0xc
xor edi, edi
sub ebx, eax
lea esi, [ebp + edi - 0x44]
mov al, byte [ebx + esi]
push eax
lea eax, [ebp + 0x17]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00419ae6
add esp, 0x10
inc edi
cmp edi, 0x20
mov byte [esi], al
jl 0x419983
push 0x20
pop ebx
jmp 0x419a2a
push ebx
lea eax, [ebp - 0x44]
push dword [ebp + 0x18]
push eax
call fcn.0046c3a0
add esp, 0xc
mov dword [ebp + 0x18], 0x13
xor eax, eax
cmp dword [ebp + 0xc], eax
jle 0x4199de
mov cl, byte [ebp + eax - 0x24]
xor cl, byte [ebp + 0x18]
inc eax
cmp eax, dword [ebp + 0xc]
mov byte [ebp + eax - 0x55], cl
jl 0x4199cd
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x54]
push dword [ebp + 0xc]
push eax
call fcn.00419a7a
and byte [ebp + 0x17], 0
and byte [ebp - 1], 0
add esp, 0xc
xor edi, edi
mov al, byte [ebp + edi - 0x44]
lea esi, [ebp + edi - 0x44]
push eax
lea eax, [ebp + 0x17]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00419ae6
add esp, 0x10
inc edi
cmp edi, ebx
mov byte [esi], al
jl 0x4199fe
dec dword [ebp + 0x18]
jns 0x4199c6
mov edi, dword [ebp + 0x1c]
lea eax, [ebp - 0x44]
push ebx
push eax
push edi
call fcn.0046c3a0
add esp, 0xc
xor esi, esi
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + edi]
push 0x50ae70
push eax
call fcn.0046d4e0
add esp, 0xc
test eax, eax
je 0x419a5e
inc esi
cmp esi, ebx
jl 0x419a3d
jmp 0x419a6e
sub ebx, esi
add esi, edi
push ebx
push 0
push esi
call fcn.0046d0e0
add esp, 0xc
push 1
pop eax
pop esi
pop ebx
jmp 0x419a77
xor eax, eax
pop edi
leave
ret
Function at 0x41c69c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x48b4d8
call fcn.0046c6d8
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041af3d
mov eax, dword [ebp + 0xc]
push 1
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x18]
pop ecx
xor edi, edi
cmp eax, ecx
mov dword [ebp - 4], edi
mov dword [esi], 0x48f1c0
mov dword [esi + 0x18], eax
jl 0x41c6e9
mov ecx, Ordinal_1
cmp eax, ecx
jle 0x41c6ec
mov dword [esi + 0x18], ecx
mov eax, dword [ebp + 0x1c]
push 4
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x18]
inc eax
push eax
call fcn.00420afb
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x18]
inc eax
push 4
inc eax
push eax
call fcn.00420afb
mov dword [esi + 0x40], eax
add esp, 0x10
xor eax, eax
cmp dword [esi + 0xc], edi
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x28], edi
setl al
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
or dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x20