joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d2c
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 0x404d44
mov edi, eax
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x404d4d
mov edx, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x404d56
mov ecx, eax
cmp dword [ebp + 8], 0
je 0x404d5f
mov eax, dword [ebp + 8]
push edi
push edx
push ecx
push eax
lea eax, [ebp - 0x400]
push str.veryDecryptPDF:___s_______s__
push eax
call fcn.00481293
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 [0x4d4ce0], 0
mov dword [0x4d4ce4], 1
push dword [ebp + 0x10]
mov dword [0x4d4ce8], eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405c36
add esp, 0x1c
pop edi
leave
ret 0x18

Function at 0x404dda
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa70
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 8]
jne 0x404df1
mov eax, str.NULL
push esi
push eax
lea eax, [ebp - 0x400]
push str.veryIsPDFEncrypted:__s_n
push eax
call fcn.00481293
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
lea ecx, [ebp - 0xa70]
call fcn.00406e02
push dword [ebp + 8]
lea ecx, [ebp - 0xa70]
call fcn.00406f31
lea ecx, [ebp - 0xa70]
mov esi, eax
call fcn.00406ea8
mov eax, esi
pop esi
leave
ret 4

Function at 0x405048
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00481680
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.0048162e
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
pop edi
leave
ret
Function at 0x405975
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.004802d0
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.0047fd17
lea eax, [ebp - 8]
push eax
call fcn.0047fc0d
lea eax, [ebp - 8]
push eax
call fcn.0047faad
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 0x405b63
cmp edi, 1
jne 0x405c31
cmp eax, edi
jne 0x405c31
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 0x405b91
cmp edi, 1
jne 0x405c31
cmp dword [ebp - 4], edi
jne 0x405c31
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 0x405bbf
cmp edi, 1
jne 0x405c31
cmp dword [ebp - 4], edi
jne 0x405c31
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 0x405be5
cmp edi, 1
jne 0x405c31
cmp dword [ebp - 4], edi
jne 0x405c31
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 0x405c0b
cmp edi, 1
jne 0x405c31
cmp dword [ebp - 4], edi
jne 0x405c31
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 0x405c31
cmp edi, 1
jne 0x405c31
cmp dword [ebp - 4], edi
jne 0x405c31
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 0x406741
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.00481680
push ebx
push esi
push edi
xor ebx, ebx
push 0x2000
lea eax, [ebp - 0x2074]
push ebx
push eax
call fcn.004802d0
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push ebx
push eax
call fcn.004802d0
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004802d0
push 0xc
lea eax, [ebp - 0x20]
pop esi
push esi
push ebx
push eax
call fcn.004802d0
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 0x4067e6
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 0x4067ed
xor eax, eax
jmp 0x406902
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 0x4068a8
cmp dword [ebp - 4], ebx
push ebx
je 0x406869
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 0x40689d
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x2074], bl
lea eax, [ebp - 0x2074]
push eax
call fcn.004803e0
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x2074]
push eax
call fcn.00406c9f
jmp 0x40687e
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4068a8
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 0x406813
push str.ReadFile_failed
call fcn.00406740
pop ecx
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
test eax, eax
jne 0x4068c2
push str.Error_closing_thread_handle.
call fcn.00406740
pop ecx
push dword [ebp - 0x30]
call esi
test eax, eax
jne 0x4068d6
push str.Error_closing_process_handle.
call fcn.00406740
pop ecx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4068ea
push str.Error_closing_pipe_read_handle.
call fcn.00406740
pop ecx
push dword [ebp - 0xc]
call esi
mov esi, eax
cmp esi, ebx
jne 0x406900
push str.Error_closing_pipe_write_handle.
call fcn.00406740
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406907
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4b7818
call fcn.0047f6fc
mov eax, 0x1314
call fcn.00481680
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
push edi
je 0x406a67
cmp byte [ecx], 0
je 0x406a67
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406a67
cmp byte [eax], 0
je 0x406a67
push eax
push ecx
call fcn.0048de90
pop ecx
test eax, eax
pop ecx
je 0x406a67
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.0047f8a7
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.0047f816
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
add esp, 0x28
lea eax, [ebp - 0xa20]
push eax
call esi
cmp eax, 0xffffffff
je 0x406a67
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.00481293
mov al, byte [ebp + 0xf]
add esp, 0x14
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
push 0
call fcn.00403c6a
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1320]
push eax
call fcn.00406741
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
jne 0x406a52
xor esi, esi
jmp 0x406a55
push 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00403c6a
mov eax, esi
jmp 0x406a69
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x406a77
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4b782c
call fcn.0047f6fc
mov eax, 0x1314
call fcn.00481680
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
push edi
je 0x406bda
cmp byte [ecx], 0
je 0x406bda
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406bda
cmp byte [eax], 0
je 0x406bda
push eax
push ecx
call fcn.0048de90
pop ecx
test eax, eax
pop ecx
je 0x406bda
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.0047f8a7
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.0047f816
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
add esp, 0x28
lea eax, [ebp - 0xa20]
push eax
call esi
cmp eax, 0xffffffff
je 0x406bda
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.00481293
mov al, byte [ebp + 0xf]
add esp, 0x18
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
push 0
call fcn.00403c6a
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1320]
push eax
call fcn.00406741
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
jne 0x406bc5
xor esi, esi
jmp 0x406bc8
push 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00403c6a
mov eax, esi
jmp 0x406bdc
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40f234
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4b7d34
call fcn.0047f6fc
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.00403c6a
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x20]
push ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
call fcn.00403c6a
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x40]
push ebx
mov byte [ebp - 4], 2
mov byte [ecx], al
call fcn.00403c6a
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x50]
push ebx
mov byte [ebp - 4], 3
mov byte [ecx], al
call fcn.00403c6a
or dword [esi + 0x64], 0xffffffff
or dword [esi + 0x68], 0xffffffff
or dword [esi + 0x6c], 0xffffffff
mov edi, 0x5120d8
push edi
mov byte [ebp - 4], 4
mov dword [esi + 0x70], ebx
call fcn.004803e0
pop ecx
push eax
push edi
lea ecx, [esi + 0x10]
call fcn.00403d0f
push edi
call fcn.004803e0
pop ecx
push eax
push edi
lea ecx, [esi + 0x20]
call fcn.00403d0f
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 0x410d4c
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.00410bfb
lea eax, [ebp - 0x68]
push eax
call fcn.0041fa4a
push 0x20
lea eax, [ebp - 0x68]
push 0x4d6440
push eax
call fcn.0041fa72
lea edi, [esi + 0x584]
push 0x10
push edi
call fcn.004106b6
add esp, 0x20
test eax, eax
je 0x410da5
push 0x10
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0041fa72
add esp, 0xc
lea eax, [ebp - 0x68]
lea edi, [esi + 0x544]
push eax
push edi
call fcn.004203fd
push 0x10
lea eax, [esi + 0x554]
push 0
push eax
call fcn.004802d0
lea ebx, [esi + 0x564]
lea eax, [ebp - 0x470]
push ebx
push dword [esi + 0x4e0]
push eax
call fcn.0041f2ad
push edi
push edi
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.0041f3ad
add esp, 0x30
mov dword [ebp + 8], 1
mov ecx, dword [esi + 0x4e0]
xor eax, eax
test ecx, ecx
jle 0x410e19
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 0x410e04
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x470]
push ecx
push eax
call fcn.0041f2ad
push edi
push edi
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.0041f3ad
add esp, 0x1c
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x13
jle 0x410df8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410e4b
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.004803e0
mov edi, eax
pop ecx
cmp edi, 0x20
jl 0x410e71
push 0x20
pop edi
push edi
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00480a30
push 0x20
mov ebx, 0x4d6440
pop eax
sub eax, edi
push eax
lea eax, [ebp + edi - 0x50]
push ebx
push eax
call fcn.00480a30
lea eax, [ebp - 0xe8]
push eax
call fcn.0041fa4a
lea eax, [ebp - 0x50]
push 0x20
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0041fa72
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004203fd
add esp, 0x30
cmp dword [esi + 0x4e0], 0x10
jne 0x410f0c
push 0x32
pop edi
lea eax, [ebp - 0xe8]
push eax
call fcn.0041fa4a
lea eax, [ebp - 0x90]
push 0x10
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0041fa72
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004203fd
add esp, 0x18
dec edi
jne 0x410ed2
lea ecx, [ebp - 0x90]
lea eax, [esi + 0x524]
push 0x20
push ecx
push eax
mov dword [ebp + 8], eax
call fcn.00480a30
lea eax, [esi + 0x4bc]
push eax
call fcn.004803e0
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jl 0x410f3d
push 0x20
pop edi
lea eax, [esi + 0x4bc]
push edi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00480a30
push 0x20
pop eax
sub eax, edi
push eax
lea eax, [ebp + edi - 0x50]
push ebx
push eax
call fcn.00480a30
push dword [ebp + 8]
lea eax, [ebp - 0x530]
push dword [esi + 0x4e0]
push eax
call fcn.0041f2ad
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x530]
push 0x20
push eax
call fcn.0041f3ad
add esp, 0x34
cmp dword [esi + 0x4e0], 0x10
jne 0x410ff0
push 1
pop ebx
mov edi, dword [esi + 0x4e0]
xor eax, eax
test edi, edi
jle 0x410fba
mov cl, byte [ebp + eax - 0x90]
xor cl, bl
mov byte [ebp + eax - 0x10], cl
inc eax
cmp eax, edi
jl 0x410fa8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x530]
push edi
push eax
call fcn.0041f2ad
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x530]
push 0x20
push eax
call fcn.0041f3ad
add esp, 0x1c
inc ebx
cmp ebx, 0x13
jle 0x410f9c
lea eax, [ebp - 0x128]
push 0x20
push eax
push dword [ebp + 8]
call fcn.00480a30
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411302
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 0x4114bd
cmp byte [edi], 0
je 0x4114bd
cmp dword [ebp + 0x18], 0
je 0x4114bd
push ebx
push esi
push edi
call fcn.004803e0
pop ecx
mov esi, eax
push 0x20
pop ebx
cmp esi, ebx
jge 0x411360
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00480a30
mov eax, ebx
sub eax, esi
push eax
lea eax, [ebp + esi - 0x24]
push 0x4d6440
push eax
call fcn.00480a30
add esp, 0x18
jmp 0x41136e
push ebx
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00480a30
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0041158c
add esp, 0xc
cmp dword [ebp + 0x10], 3
jne 0x41139d
push 0x32
pop esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.0041158c
add esp, 0xc
dec esi
jne 0x411388
cmp dword [ebp + 0x10], 2
jne 0x4113f7
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x24]
push dword [ebp + 0xc]
push eax
call fcn.004114c2
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.0041152e
add esp, 0x10
inc edi
cmp edi, 0x20
mov byte [esi], al
jl 0x4113cb
push 0x20
pop ebx
jmp 0x411472
push ebx
lea eax, [ebp - 0x44]
push dword [ebp + 0x18]
push eax
call fcn.00480a30
add esp, 0xc
mov dword [ebp + 0x18], 0x13
xor eax, eax
cmp dword [ebp + 0xc], eax
jle 0x411426
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 0x411415
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x54]
push dword [ebp + 0xc]
push eax
call fcn.004114c2
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.0041152e
add esp, 0x10
inc edi
cmp edi, ebx
mov byte [esi], al
jl 0x411446
dec dword [ebp + 0x18]
jns 0x41140e
mov edi, dword [ebp + 0x1c]
lea eax, [ebp - 0x44]
push ebx
push eax
push edi
call fcn.00480a30
add esp, 0xc
xor esi, esi
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + edi]
push 0x4d6440
push eax
call fcn.00480330
add esp, 0xc
test eax, eax
je 0x4114a6
inc esi
cmp esi, ebx
jl 0x411485
jmp 0x4114b6
sub ebx, esi
add esi, edi
push ebx
push 0
push esi
call fcn.004802d0
add esp, 0xc
push 1
pop eax
pop esi
pop ebx
jmp 0x4114bf
xor eax, eax
pop edi
leave
ret
Function at 0x41eb55
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x68]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x41eb7f
test ecx, ecx
jne 0x41eb89
test edx, edx
jne 0x41eb89
mov eax, edi
jmp 0x41ebf5
cmp eax, 0xffffffff
jne 0x41eb89
push 0xfffffffffffffffe
pop eax
jmp 0x41ebf5
mov edx, dword [esi + 0x20]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x41ebf5
mov eax, dword [esi + 0x2c]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00480a30
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
sub dword [esi + 0x64], edi
sub dword [esi + 0x60], edi
add esp, 0xc
sub dword [esi + 0x50], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x41ebba
mov eax, dword [esi + 0x34]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x41ebd9
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x41ec50
push eax
mov eax, dword [esi + 0x68]
add eax, dword [esi + 0x60]
add eax, dword [esi + 0x2c]
push eax
push ecx
call fcn.0041ec55
add dword [esi + 0x68], eax
mov ebx, dword [esi + 0x68]
add esp, 0xc
cmp ebx, 3
jb 0x41ec3c
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x4c]
movzx eax, byte [edx]
mov dword [esi + 0x3c], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x48]
mov dword [esi + 0x3c], eax
cmp ebx, 0x106
jae 0x41ec50
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x41eb61
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41fa4a
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x423b59
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4b8868
call fcn.0047f6fc
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042216e
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], 0x4bd260
mov dword [esi + 0x18], eax
jl 0x423ba6
mov ecx, Ordinal_1
cmp eax, ecx
jle 0x423ba9
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.00420539
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x18]
inc eax
push 4
inc eax
push eax
call fcn.00420539
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