joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072a1
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x4c
mov eax, 0x56a1b7
call fcn.00566548
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x48], esi
call fcn.00409f92
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov ecx, eax
inc ebx
xor eax, eax
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x44], eax
cmp ecx, ebx
je 0x407300
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4072e9
mov al, bl
jmp 0x4073e0
call edi
cmp eax, 0xb7
je 0x407396
cmp dword [ebp + 0x4c], 0
je 0x407396
lea ecx, [ebp + 0x38]
call fcn.0040260e
mov ecx, dword [ebp + 0x48]
lea edx, [ebp + 0x38]
xor esi, esi
cmp dword [ebp + 0x4c], ebx
mov dword [ebp - 4], esi
setne al
movzx eax, al
push eax
call fcn.00409b34
test al, al
je 0x407386
push esi
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40737a
call edi
cmp eax, 0xb7
je 0x407341
xor bl, bl
jmp 0x40737a
lea ecx, [ebp]
call fcn.00407fd5
lea ecx, [ebp + 0x28]
call fcn.0040260e
push 0
push dword [ebp + 0x38]
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.00408246
test al, al
jne 0x407369
xor bl, bl
jmp 0x407371
mov eax, dword [ebp + 0x20]
shr eax, 4
and bl, al
push dword [ebp + 0x28]
call fcn.0056651e
pop ecx
push dword [ebp + 0x38]
call fcn.0056651e
mov al, bl
jmp 0x4073df
push dword [ebp + 0x38]
or dword [ebp - 4], 0xffffffff
call fcn.0056651e
mov esi, dword [ebp + 0x48]
pop ecx
call edi
cmp eax, 0xb7
je 0x4073a3
xor al, al
jmp 0x4073e0
lea ecx, [ebp - 0x44]
call fcn.00407fd5
lea ecx, [ebp - 0x1c]
call fcn.0040260e
push 0
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 2
call fcn.00408246
test al, al
je 0x4073d4
mov eax, dword [ebp - 0x24]
shr eax, 4
and al, bl
mov byte [ebp + 0x44], al
push dword [ebp - 0x1c]
call fcn.0056651e
mov al, byte [ebp + 0x44]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x50
leave
ret

Function at 0x4073f2
Capabilities:
Create directory

Disassembly:
mov eax, 0x56a18e
call fcn.00566548
sub esp, 0xc
push esi
push edi
mov edi, ecx
call fcn.00409f92
mov esi, eax
cmp esi, 1
je 0x407431
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407420
mov al, 1
jmp 0x40747d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40747b
test esi, esi
je 0x40747b
lea ecx, [ebp - 0x18]
call fcn.0040260e
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00409b34
test al, al
je 0x407472
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0056651e
test esi, esi
pop ecx
setne al
jmp 0x40747d
push dword [ebp - 0x18]
call fcn.0056651e
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4076ad
Capabilities:
Delete file

Disassembly:
mov eax, 0x56a18e
call fcn.00566548
sub esp, 0xc
push esi
push edi
mov esi, ecx
call fcn.00408a14
cmp eax, 0xffffffff
je 0x4076e2
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x4076e2
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.00407ecb
test al, al
je 0x407748
mov ecx, esi
call fcn.00409f92
mov edi, eax
cmp edi, 1
je 0x407703
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4076ff
mov al, 1
jmp 0x40774a
test edi, edi
je 0x407748
lea ecx, [ebp - 0x18]
call fcn.0040260e
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp edi, 1
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.00409b34
push dword [ebp - 0x18]
test al, al
je 0x407742
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0056651e
test esi, esi
pop ecx
setne al
jmp 0x40774a
call fcn.0056651e
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x407a77
Capabilities:
Move file

Disassembly:
mov eax, 0x56a1f1
call fcn.00566548
sub esp, 0x1c
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x10], eax
call fcn.00409f92
mov ecx, ebx
mov edi, eax
call fcn.00409f92
mov esi, eax
cmp edi, 1
je 0x407ac2
cmp esi, 1
je 0x407aba
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x407aba
mov al, 1
jmp 0x407b39
test edi, edi
jne 0x407ac2
test esi, esi
je 0x407b37
lea ecx, [ebp - 0x28]
call fcn.0040260e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040260e
mov byte [ebp - 4], 1
cmp edi, 1
je 0x407ae8
cmp esi, 1
je 0x407ae8
mov al, 1
jmp 0x407aea
xor al, al
mov ecx, dword [ebp - 0x10]
mov edx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409f26
push dword [ebp - 0x1c]
test al, al
je 0x407b28
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp - 0x1c]
mov esi, eax
call fcn.0056651e
push dword [ebp - 0x28]
call fcn.0056651e
test esi, esi
pop ecx
pop ecx
setne al
jmp 0x407b39
call fcn.0056651e
push dword [ebp - 0x28]
call fcn.0056651e
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407ba4
Capabilities:
Delete directory

Disassembly:
mov eax, 0x56a18e
call fcn.00566548
sub esp, 0xc
push esi
push edi
mov edi, ecx
call fcn.00409f92
mov esi, eax
cmp esi, 1
je 0x407bd4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x407bd0
mov al, 1
jmp 0x407c1b
test esi, esi
je 0x407c19
lea ecx, [ebp - 0x18]
call fcn.0040260e
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00409b34
push dword [ebp - 0x18]
test al, al
je 0x407c13
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0056651e
test esi, esi
pop ecx
setne al
jmp 0x407c1b
call fcn.0056651e
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x407f59
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, edx
and edx, 0x3fff
mov eax, esi
and eax, 0xf0000000
cmove edx, esi
pop esi
jmp fcn.00407ecb

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

Disassembly:
mov eax, 0x56a18e
call fcn.00566548
sub esp, 0xc
push esi
push edi
mov edi, ecx
call fcn.00409f92
mov esi, eax
cmp esi, 1
je 0x408a41
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408a86
test esi, esi
je 0x408a83
lea ecx, [ebp - 0x18]
call fcn.0040260e
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00409b34
push dword [ebp - 0x18]
test al, al
je 0x408a7d
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0056651e
pop ecx
mov eax, esi
jmp 0x408a86
call fcn.0056651e
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x408b78
Capabilities:
Get disk information

Disassembly:
mov eax, 0x56a2e7
call fcn.00566548
sub esp, 0x24
push ebx
mov eax, ecx
push edi
mov dword [ebp - 0x14], eax
call fcn.00402e6c
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x408bab
xor al, al
jmp 0x408c49
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.00407f72
mov esi, dword [ebp - 0x20]
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x408c3f
cmp edi, dword [ebp - 0x1c]
ja 0x408c3f
lea ecx, [ebp - 0x30]
call fcn.0040260e
mov byte [ebp - 4], 1
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov eax, ebx
test edi, edi
je 0x408c31
push 2
pop ecx
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0x18], eax
cmp word [ecx + esi - 2], bx
jne 0x408c24
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402804
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.00403988
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
call fcn.00402b6f
mov ecx, dword [ebp - 0x10]
mov edx, ecx
mov eax, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp eax, edi
jb 0x408beb
mov edx, dword [ebp - 0x1c]
push dword [ebp - 0x30]
cmp edx, edi
sete bl
call fcn.0056651e
pop ecx
push esi
call fcn.0056651e
pop ecx
mov al, bl
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40921c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 5], 0
je 0x40923e
cmp byte [ecx + 6], 0
je 0x40923e
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov al, 1
jmp 0x409279
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409264
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409264
xor al, al
jmp 0x409278
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 0x40b6e8
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x30]
mov esi, ecx
push eax
lea eax, [esp + 0x2c]
mov edi, edx
push eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x34]
push eax
lea eax, [esp + 0x24]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
mov dword [ebp], ecx
push eax
push esi
mov dword [ebp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x40b753
xor al, al
jmp 0x40b797
mov eax, dword [esp + 0x18]
mul dword [esp + 0x1c]
cmp dword [esp + 0x20], 0
mov esi, eax
mov dword [edi + 4], edx
mov dword [edi], esi
jne 0x40b795
mov eax, edx
mul dword [esp + 0x10]
mov ecx, eax
mov eax, esi
mul dword [esp + 0x10]
add ecx, edx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [edi + 4]
mul dword [esp + 0x14]
mov ecx, eax
mov eax, dword [edi]
mul dword [esp + 0x14]
add ecx, edx
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x40bb51
Capabilities:
Get session user name
Manipulate user privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 0x28], 0x18
push eax
xor ebx, ebx
lea eax, [ebp - 0x28]
push 0xf0fff
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x40bc2e
push esi
push edi
push 0xb
pop ecx
push 0xd4
lea eax, [ebp - 0xfc]
mov esi, str.SeLockMemoryPrivilege
lea edi, [ebp - 0x128]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x128]
push eax
call sub.msvcrt.dll_wcslen
add eax, eax
mov dword [ebp - 8], 0x100
mov word [ebp - 0x10], ax
add esp, 0x10
add eax, 2
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x128]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40bc2c
lea ecx, [ebp - 0x32c]
call fcn.0040bc41
mov edi, eax
test edi, edi
je 0x40bc2c
push 1
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaAddAccountRights
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
sete bl
pop edi
pop esi
cmp dword [ebp - 4], 0
je 0x40bc3c
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaClose
mov al, bl
pop ebx
leave
ret

Function at 0x40bc41
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x10
mov eax, ecx
xor edx, edx
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
push ecx
lea ecx, [esp + 4]
mov dword [esp + 8], edx
push ecx
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], edx
push ecx
push edx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40bce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40bce6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
push esi
push edi
push dword [esp + 0x14]
push 8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov ecx, dword [esp + 0x10]
mov ebp, eax
lea ecx, [ecx*2 + 2]
push ecx
push 8
call ebx
push eax
call esi
mov edi, eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x30]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push edi
push 0
mov esi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test esi, esi
pop edi
pop esi
cmovne eax, ebp
pop ebp
pop ebx
jmp 0x40bce8
xor eax, eax
add esp, 0x10
ret
Function at 0x40bd00
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x14]
mov ebp, ecx
xor ebx, ebx
push 0x2002
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov edi, edx
call fcn.0040c9c4
test al, al
je 0x40bd5f
push esi
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40bd5e
push dword [esp + 0x18]
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x10]
push ebp
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40bd5e
mov dword [esp + 0x10], ebx
mov bl, 1
pop esi
lea ecx, [esp + 0xc]
call fcn.0040c9e5
pop edi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4

Function at 0x40cd23
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
sub esp, 0x40
mov eax, 0x56a4d7
call fcn.00566548
sub esp, 0x44
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
mov dword [ebp + 0x40], esi
call fcn.0040cd04
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x1c]
call fcn.004025d8
xor ebx, ebx
lea ecx, [ebp + 0x34]
inc ebx
push 0x22
mov dword [ebp - 4], ebx
call fcn.00402575
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x40], ebx
push eax
lea ecx, [ebp + 0x34]
call fcn.00402a78
push 0x22
lea ecx, [ebp + 0x34]
call fcn.00402bdd
push 0x20
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x28]
call fcn.00402418
mov dword [ebp + 0x40], 3
push dword [ebp + 0x50]
lea edx, [ebp + 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.00402987
push dword [ebp + 0x28]
call fcn.0056651e
push dword [ebp + 0x34]
call fcn.0056651e
push dword [ebp + 0x1c]
call fcn.0056651e
add esp, 0xc
mov dword [ebp - 0x50], 0x44
xor eax, eax
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x1e], ax
lea eax, [ebp]
mov dword [ebp - 0x48], esi
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], esi
push eax
push dword [ebp + 0x54]
mov dword [ebp - 0x24], esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40cdfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40ce0b
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp]
mov dword [edi], eax
push dword [ebp + 0x10]
call fcn.0056651e
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x44
leave
ret 0xc

Function at 0x40d2e0
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x40d30d
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x40d327
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x40e081
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov edx, SysReAllocString
push edi
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
and dword [esi + 4], 0
mov byte [eax], 0
call fcn.00546e00
cmp dword [ebp - 0x10], 0x80000004
jb 0x40e0d5
xor edi, edi
push ebx
lea edx, [edi - 0x7ffffffe]
lea ecx, [ebp - 0x10]
call fcn.00546e00
xor ebx, ebx
mov edx, dword [ebp + ebx*4 - 0x10]
mov ecx, esi
call fcn.0040dd8b
inc ebx
cmp ebx, 4
jb 0x40e0bd
inc edi
cmp edi, 3
jb 0x40e0ad
pop ebx
mov ecx, esi
call fcn.00403f81
mov ecx, esi
call fcn.00403f27
cmp dword [esi + 4], 0
jne 0x40e11b
xor edx, edx
lea ecx, [ebp - 0x10]
call fcn.00546e00
xor edi, edi
inc edi
mov edx, edi
mov ecx, esi
shr edx, 1
xor edx, edi
mov edx, dword [ebp + edx*4 - 0x10]
call fcn.0040dd8b
inc edi
cmp edi, 4
jb 0x40e0f6
mov ecx, esi
call fcn.00403f81
mov ecx, esi
call fcn.00403f27
pop edi
pop esi
leave
ret
Function at 0x42087d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 4]
xor edx, edx
mov ecx, dword [ecx]
inc edx
push ebx
push ebp
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
mov edi, edx
mov dword [esp + 0x1c], edi
mov ebp, 0x159a55e5
mov dword [esp + 0x18], edx
mov ebx, 0x1f123bb5
test eax, eax
je 0x420a38
movzx eax, bp
imul eax, eax, 0x9069
shr ebp, 0x10
add ebp, eax
movzx eax, bx
imul eax, eax, 0x4650
mov edx, ebp
shr ebx, 0x10
shl edx, 0x10
add ebx, eax
add edx, ebx
xor edx, dword [esp + 0x34]
mov eax, edx
shr edx, 1
test eax, 1
je 0x420a42
cmp esi, 0x400
jb 0x420a42
xor eax, eax
mov ecx, edx
and ecx, 3
shr edx, 2
inc eax
inc ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
inc eax
mov dword [esp + 0x10], eax
mov eax, edx
shr edx, 3
test eax, 7
je 0x4209e5
xor eax, eax
mov ecx, edx
inc eax
shr edx, 2
and ecx, 3
inc ecx
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [esp + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
inc eax
shl eax, cl
cmp eax, esi
jae 0x42094e
xor eax, eax
inc ecx
inc eax
shl eax, cl
cmp eax, esi
jb 0x420940
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x30]
cmp edi, ecx
push 0x15
cmova edi, ecx
pop eax
cmp eax, edi
mov dword [esp + 0x28], edi
sbb eax, eax
and eax, 0x10
add eax, 0xf
mov dword [esp + 0x1c], eax
mov ecx, eax
movzx eax, bp
imul eax, eax, 0x9069
and ecx, edx
shr ebp, 0x10
add ecx, 6
add ebp, eax
movzx eax, bx
imul eax, eax, 0x4650
mov edx, ebp
shr ebx, 0x10
shl edx, 0x10
mov dword [esp + 0x24], ebp
add ebx, eax
mov eax, dword [esp + 0x1c]
add edx, ebx
xor edx, dword [esp + 0x34]
cmp ecx, edi
ja 0x42096c
xor edi, edi
inc edi
shl edi, cl
dec edi
and edi, edx
cmp edi, esi
jb 0x4209e0
mov edi, dword [esp + 0x28]
mov ecx, ebp
movzx eax, cx
imul ebp, eax, 0x9069
movzx eax, bx
imul eax, eax, 0x4650
shr ebx, 0x10
shr ecx, 0x10
add ebp, ecx
add ebx, eax
mov eax, dword [esp + 0x1c]
mov edx, ebx
xor edx, dword [esp + 0x34]
jmp 0x42096c
inc edi
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
sub ecx, esi
cmp dword [esp + 0x10], ecx
cmovbe ecx, dword [esp + 0x10]
add eax, esi
and dword [esp + 0x24], 0
mov edx, eax
add esi, ecx
mov dword [esp + 0x28], eax
sub edx, edi
mov dword [esp + 0x10], esi
test ecx, ecx
je 0x420a2a
mov esi, dword [esp + 0x24]
mov edi, eax
mov al, byte [edx]
mov byte [edi], al
inc edi
inc edx
inc esi
cmp esi, ecx
jb 0x420a17
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp esi, dword [esp + 0x20]
jb 0x4208b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov byte [ecx + esi], dl
inc esi
jmp 0x420a2e

Function at 0x420a48
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [ecx + 4]
mov edx, 0x1f123bb5
push edi
mov edi, dword [ecx]
xor ecx, ecx
test esi, esi
je 0x420a76
movzx eax, dx
imul eax, eax, 0x4650
shr edx, 0x10
add edx, eax
mov al, dl
xor al, byte [esp + 0xc]
mov byte [edi + ecx], al
inc ecx
cmp ecx, esi
jb 0x420a5a
pop edi
pop esi
ret 4
Function at 0x422b44
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x422c59
mov eax, dword [esp + 4]
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
add ecx, eax
xor ecx, eax
sub edx, 1
jne 0x422b50
mov eax, ecx
ret 4

Function at 0x422c5e
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x56b456
call fcn.00566548
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
mov dword [ebp - 0x10], edi
call fcn.00402516
and dword [ebp - 4], 0
lea eax, [esi + 0xc]
push eax
lea ecx, [edi + 0xc]
call fcn.00402516
lea eax, [esi + 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x18]
call fcn.00402516
lea eax, [esi + 0x24]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x24]
call fcn.00402516
lea eax, [esi + 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x30]
call fcn.00402516
mov al, byte [esi + 0x3c]
lea ecx, [edi + 0x40]
mov byte [edi + 0x3c], al
lea eax, [esi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.00402516
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0x4c]
call fcn.00402516
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4