joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457c51
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
enter 0x10, 0
push eax
push ebx
push ecx
push edx
push esi
push edi
mov eax, 0xff
imul eax, dword [ebp + 8]
xor edx, edx
idiv dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0x10]
mov ebx, 0xff
mov edi, 0xff
mov eax, edi
shr eax, 3
and eax, 0x1c
imul eax, dword [ebp - 8]
xor edx, edx
idiv ebx
and eax, 0xff
shr eax, 2
shl eax, 5
mov dword [ebp - 0x10], eax
mov eax, edi
shl eax, 3
and eax, 0xf8
imul eax, dword [ebp - 0xc]
xor edx, edx
idiv ebx
and eax, 0xff
shr eax, 3
or eax, dword [ebp - 0x10]
mov word [esi + edi*2], ax
mov eax, edi
shl eax, 5
and eax, 0xe0
imul eax, dword [ebp - 8]
xor edx, edx
idiv ebx
and eax, 0xff
shr eax, 2
shl eax, 5
mov dword [ebp - 0x10], eax
mov eax, edi
and eax, 0xf8
imul eax, dword [ebp - 4]
xor edx, edx
idiv ebx
and eax, 0xff
shr eax, 3
shl eax, 0xb
or eax, dword [ebp - 0x10]
mov word [esi + edi*2 + 0x200], ax
dec edi
jns 0x457c7f
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
ret

Function at 0x46de40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4a7c4c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x46de5f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4a7c48], 1
mov byte [0x4a7c44], bl
jne 0x46deb9
mov ecx, dword [0x4d39cc]
test ecx, ecx
je 0x46dea7
mov esi, dword [0x4d39c8]
sub esi, 4
cmp esi, ecx
jb 0x46dea7
mov eax, dword [esi]
test eax, eax
je 0x46dea0
call eax
mov ecx, dword [0x4d39cc]
sub esi, 4
cmp esi, ecx
jae 0x46de92
push 0x481060
push 0x481058
call fcn.0046def0
add esp, 8
push 0x48106c
push 0x481064
call fcn.0046def0
add esp, 8
test ebx, ebx
jne 0x46dee0
push ebp
mov dword [0x4a7c4c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x46ed80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f650
push 0x473138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4a7c1c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4a7c18], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4a7c14], ecx
shr eax, 0x10
mov dword [0x4a7c10], eax
call fcn.004730f0
test eax, eax
jne 0x46edea
push 0x1c
call fcn.0046ef50
add esp, 4
mov dword [ebp - 4], 0
call fcn.00472ef0
call fcn.00472ee0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4d39c4], eax
call fcn.004728c0
mov dword [0x4a7c50], eax
test eax, eax
je 0x46ee1d
mov eax, dword [0x4d39c4]
test eax, eax
jne 0x46ee27
push 0xffffffffffffffff
call fcn.0046de00
add esp, 4
call fcn.00472610
call fcn.00472520
call fcn.0046ddd0
mov esi, dword [0x4d39c4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x46ef06
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x46ee6e
test al, al
je 0x46ee6e
and eax, 0xff
push eax
call fcn.004724c0
add esp, 4
test eax, eax
je 0x46ee48
inc esi
mov dword [ebp - 0x64], esi
jmp 0x46ee48
cmp byte [esi], 0x22
jne 0x46ee77
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x46ee87
cmp al, 0x20
ja 0x46ee87
inc esi
mov dword [ebp - 0x64], esi
jmp 0x46ee77
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x46eea8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x46eead
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0040b00a
mov dword [ebp - 0x60], eax
push eax
call fcn.0046de00
jmp 0x46eeeb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x46ee77
inc esi
mov dword [ebp - 0x64], esi
jmp 0x46ef06

Function at 0x46ef50
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4a7c58], 1
jne 0x46ef5e
call fcn.00473210
mov eax, dword [esp + 4]
push eax
call fcn.00473250
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4728c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4a7dc8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x472902
call edi
mov esi, eax
test esi, esi
je 0x4728ec
mov eax, 1
jmp 0x4728fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x472a0f
mov eax, 2
mov dword [0x4a7dc8], eax
cmp eax, 1
jne 0x4729a2
test esi, esi
jne 0x47291b
call edi
mov esi, eax
test esi, esi
je 0x472a0f
cmp word [esi], 0
mov eax, esi
je 0x472935
add eax, 2
cmp word [eax], 0
jne 0x472923
add eax, 2
cmp word [eax], 0
jne 0x472923
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x472994
push edi
call fcn.0046ef80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x472994
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x472986
push ebx
call fcn.0046f030
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x472a0f
test ebx, ebx
jne 0x4729b3
call ebp
mov ebx, eax
test ebx, ebx
je 0x472a0f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4729cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4729bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4729bb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0046ef80
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4729ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x473250
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4a3380
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x473274
add eax, 8
inc ebp
cmp eax, 0x4a3410
jb 0x473265
cmp ecx, dword [ebp*8 + 0x4a3380]
jne 0x47341b
mov eax, dword [0x4a7c58]
cmp eax, 1
je 0x4733dd
test eax, eax
jne 0x4732a0
cmp dword [0x4a2f28], 1
je 0x4733dd
cmp ecx, 0xfc
je 0x47341b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4732db
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x473324
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x47fafc
add ebx, ecx
push ebx
call fcn.00475b70
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x47fadc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4a3384]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00475c70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4d38c0]
test eax, eax
je 0x4733ee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4733f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4a3384]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x474cf0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4d39c0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x474e9d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4d38c0]
lea edi, [ecx*4 + 0x4d38c0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x474e9d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x474d5e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x474d6f
push 2
push ebp
push eax
call fcn.00474c30
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x474ece
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x474e19
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x474dca
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x474db7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x474d9a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x474ebf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x474e15
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x474d96
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x474e8e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x474e62
cmp eax, 5
jne 0x474e4b
mov dword [0x4a7c08], eax
mov dword [0x4a7c04], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00477280
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x474e82
cmp byte [ebp], 0x1a
jne 0x474e82
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4a7c04], 0x1c
jmp 0x474ea7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4a7c04], 9
pop edi
pop esi
pop ebp
mov dword [0x4a7c08], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x474e15
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x474eff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x474e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x474e19
Function at 0x47a627
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x214], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
mov ecx, dword [0x4a5e48]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47a6dc
mov dword [ebp - 0x210], 0x100
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4a808c
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47a6cf
mov byte [ebp - 4], 1
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x314]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x4a5e50
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40ca10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x521ed7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.0041e36c
lea ebp, [esi + 8]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x1c], edi
call fcn.0041e36c
lea ecx, [esi + 0xc]
mov byte [esp + 0x1c], 1
call fcn.0041e36c
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 2
call fcn.0041e36c
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 3
call fcn.0041e36c
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 4
call fcn.0041e36c
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 5
call fcn.0041e36c
lea ecx, [esi + 0x74]
mov byte [esp + 0x1c], 6
call fcn.0041e36c
lea ecx, [esi + 0x78]
mov byte [esp + 0x1c], 7
call fcn.0041e36c
lea ecx, [esi + 0x80]
mov byte [esp + 0x1c], 8
call fcn.0041e36c
lea ecx, [esi + 0x90]
mov byte [esp + 0x1c], 9
call fcn.0041e36c
lea ecx, [esi + 0x94]
mov byte [esp + 0x1c], 0xa
call fcn.0041e36c
lea ecx, [esi + 0x98]
mov byte [esp + 0x1c], 0xb
call fcn.0041e36c
lea ecx, [esi + 0x9c]
mov byte [esp + 0x1c], 0xc
call fcn.0041e36c
lea ecx, [esi + 0xa0]
mov byte [esp + 0x1c], 0xd
call fcn.0041e36c
push 0x5db530
mov ecx, ebx
mov byte [esp + 0x20], 0xe
mov dword [esi], 0x53f59c
call fcn.0041e3cc
push 0x5db530
mov ecx, ebp
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0xc]
call fcn.0041e3cc
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
push 0x5db530
lea ecx, [esi + 0x30]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0x38]
call fcn.0041e3cc
push 0x5cd800
lea ecx, [esi + 0x3c]
call fcn.0041e3cc
mov eax, 0x2710
push 0x5db530
lea ecx, [esi + 0x60]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0x74]
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0x78]
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0x80]
mov dword [esi + 0x7c], edi
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0x90]
mov word [esi + 0x84], di
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0x94]
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0x98]
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0x9c]
call fcn.0041e3cc
push 0x5db530
lea ecx, [esi + 0xa0]
call fcn.0041e3cc
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xac], edi
mov word [esi + 0xa4], 0x50
mov dword [esi + 0xa8], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40cc90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x521fa7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x53f59c
mov dword [esp + 0x10], 0xe
call fcn.0040ce00
lea ecx, [esi + 0xa0]
mov byte [esp + 0x10], 0xd
call fcn.0041e354
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 0xc
call fcn.0041e354
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0xb
call fcn.0041e354
lea ecx, [esi + 0x94]
mov byte [esp + 0x10], 0xa
call fcn.0041e354
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 9
call fcn.0041e354
lea ecx, [esi + 0x80]
mov byte [esp + 0x10], 8
call fcn.0041e354
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 7
call fcn.0041e354
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 6
call fcn.0041e354
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call fcn.0041e354
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 4
call fcn.0041e354
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 3
call fcn.0041e354
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call fcn.0041e354
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.0041e354
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.0041e354
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041e354
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x413840
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5228a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov eax, dword [esp + 0x1c]
xor esi, esi
push 0x80
push eax
mov dword [esp + 0x1c], esi
nop
call 0x7c812822
mov ecx, dword [esp + 0x1c]
push ecx
nop
call 0x7c831edd
mov edx, dword [esp + 0x20]
lea eax, [esp + 8]
push edx
push 4
push 1
push eax
mov dword [esp + 0x18], esi
nop
call 0x77c411fb
mov eax, dword [esp + 0x18]
add esp, 0x10
cmp eax, esi
jle 0x413920
mov ecx, dword [esp + 0x1c]
push 0x5cdc94
push ecx
nop
call 0x77c3f010
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x4138e1
lea edx, [esp + 0x1c]
push 0x5cdc8c
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0041e5ac
mov eax, dword [eax]
push eax
nop
call 0x7c85ad4c
lea ecx, [esp + 0x20]
call fcn.0041e354
jmp 0x413920
cmp dword [esp + 8], esi
jle 0x413916
push ebx
mov ebx, dword [0x53df08]
push ebp
mov ebp, dword [0x53df50]
mov ecx, dword [esp + 0x28]
push edi
push ecx
call ebp
add esp, 4
xor eax, 0xcc
push eax
call ebx
mov eax, dword [esp + 0x18]
add esp, 8
inc esi
cmp esi, eax
jl 0x4138f5
pop ebp
pop ebx
push edi
nop
call 0x77c40ab1
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041e354
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x416ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x523040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], ebx
call fcn.00415d60
mov eax, dword [esp + 0x1dc]
mov dword [esp + 0x1cc], 1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0xc]
mov al, byte [0x5db530]
mov dword [esp + 0x15], ecx
mov dword [esp + 0x19], ecx
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x1e0]
mov dword [esp + 0x1d], ecx
mov word [esp + 0x21], cx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x1d8]
cmp eax, ebx
mov byte [esp + 0x23], cl
je 0x416b49
push edx
lea ecx, [esp + 0x2c]
call fcn.00415ee0
jmp 0x416b60
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00415e30
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
call fcn.00415fa0
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xc5]
mov byte [esp + 0xc4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x5db530
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.0041e3de
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], bl
rep stosd dword es:[edi], eax
mov ebx, dword [0x53df20]
mov byte [esp + 0x1cc], 2
stosw word es:[edi], ax
stosb byte es:[edi], al
xor esi, esi
lea ebp, [esp + 0x145]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xc4]
lea edx, [esp + 0xc4]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov cl, byte [esp + esi + 0x14]
push ecx
push 0x5cdcb8
push edx
call ebx
mov al, byte [esp + 0xd0]
mov cl, byte [esp + 0xd1]
add esp, 0xc
mov byte [ebp - 1], al
mov byte [ebp], cl
inc esi
add ebp, 2
cmp esi, 0x10
jl 0x416bc7
lea edx, [esp + 0x144]
lea ecx, [esp + 0x10]
push edx
call fcn.0041e3cc
lea ecx, [esp + 0x10]
call fcn.0041e8a0
mov esi, dword [esp + 0x1d4]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0041e35a
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1cc], 1
call fcn.0041e354
lea ecx, [esp + 0x28]
call fcn.00415da0
mov ecx, dword [esp + 0x1c4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c0
ret