joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x4090b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402c80
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4090b4]
movzx eax, al
bt eax, esi
jae 0x402ce0
mov ecx, dword [0x4090a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402b85
test byte [0x404018], 8
jne 0x402c20
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x404028], 8
jne 0x402bd0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402b54
cmp esi, 3
jbe 0x402b90
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4061e8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402b54
mov ecx, dword [0x4090b4]
test ecx, ecx
je 0x402cc0
mov dword [esp], 0x404028
call dword [0x4090b4]
test al, 8
je 0x402b2b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x402b2b
mov ebx, dword [0x4090b4]
test ebx, ebx
je 0x402ca0
mov dword [esp], 0x404018
call dword [0x4090b4]
test al, 8
je 0x402b16
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x402b1e
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4090b4
call sym._load_func.part.0
jmp 0x402add
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4090b4
call sym._load_func.part.0
jmp 0x402c2a
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4090b4
call sym._load_func.part.0
jmp 0x402bde
mov eax, 0xffffffff
jmp 0x402b85
Function at 0x402e40
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop

Function at 0x402eb0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402f3b
cmp ax, 9
je 0x402f28
cmp ax, 0x20
je 0x402f28
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp ax, 0x5c
je 0x402f90
cmp ax, 0x22
je 0x402fa0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x402f3b
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x402ee0
test esi, 1
jne 0x402ee0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x402f28
cmp ax, 0x20
je 0x402f28
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x402fb8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x402efb
and dword [ebp - 0x54], 1
jne 0x402ef4
xor esi, 1
jmp 0x402efb
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x402f54
Function at 0x405839
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x405847
and edx, 0x3fff
jmp fcn.004057ab

Function at 0x40584c
Capabilities:
Delete directory

Disassembly:
mov eax, 0x472d34
call fcn.0046f140
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408760
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x40587b
push edi
call esi
test eax, eax
je 0x40587b
mov al, 1
jmp 0x4058bf
test ebx, ebx
je 0x4058bd
lea ecx, [ebp - 0x18]
call fcn.00402d90
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408869
test al, al
push dword [ebp - 0x18]
je 0x4058b7
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401e89
test esi, esi
pop ecx
setne al
jmp 0x4058bf
call fcn.00401e89
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 0x4058ce
Capabilities:
Move file

Disassembly:
mov eax, 0x472d50
call fcn.0046f140
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00408760
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00408760
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x405917
cmp eax, ebx
je 0x405917
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x405917
mov al, bl
jmp 0x40598e
test esi, esi
jne 0x405920
cmp dword [ebp - 0x14], esi
je 0x40598c
lea ecx, [ebp - 0x30]
call fcn.00402d90
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402d90
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x405940
cmp dword [ebp - 0x14], ebx
jne 0x405942
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408d84
test al, al
push dword [ebp - 0x24]
je 0x40597d
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401e89
push dword [ebp - 0x30]
call fcn.00401e89
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x40598e
call fcn.00401e89
push dword [ebp - 0x30]
call fcn.00401e89
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 0x405a99
Capabilities:
Create directory

Disassembly:
mov eax, 0x472d80
call fcn.0046f140
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408760
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x405ad7
push 0
push edi
call esi
test eax, eax
je 0x405aca
mov al, 1
jmp 0x405b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405b1e
test ebx, ebx
je 0x405b1e
lea ecx, [ebp - 0x18]
call fcn.00402d90
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408869
test al, al
je 0x405b15
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401e89
test esi, esi
pop ecx
setne al
jmp 0x405b20
push dword [ebp - 0x18]
call fcn.00401e89
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 0x405c70
Capabilities:
Create directory

Disassembly:
mov eax, 0x472dc3
call fcn.0046f140
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00408760
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x405cb5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405ca8
mov al, 1
jmp 0x405d9c
call ebx
cmp eax, 0xb7
je 0x405d4b
test edi, edi
je 0x405d4b
lea ecx, [ebp - 0x18]
call fcn.00402d90
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.00408869
test al, al
je 0x405d3e
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405cf1
mov bl, 1
jmp 0x405d39
call ebx
cmp eax, 0xb7
je 0x405cfe
xor bl, bl
jmp 0x405d39
lea ecx, [ebp - 0x50]
call fcn.00406529
lea ecx, [ebp - 0x28]
call fcn.00402d90
push 0
lea ecx, [ebp - 0x50]
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004069ab
test al, al
jne 0x405d27
xor bl, bl
jmp 0x405d30
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00401e89
pop ecx
push dword [ebp - 0x18]
jmp 0x405d94
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00401e89
pop ecx
call ebx
cmp eax, 0xb7
je 0x405d58
xor al, al
jmp 0x405d9c
lea ecx, [ebp - 0x88]
call fcn.00406529
lea ecx, [ebp - 0x60]
call fcn.00402d90
push 0
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.004069ab
test al, al
jne 0x405d88
xor bl, bl
jmp 0x405d91
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00401e89
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405db5
Capabilities:
Delete file

Disassembly:
mov eax, 0x472dd8
call fcn.0046f140
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040692e
cmp eax, 0xffffffff
je 0x405de9
test al, 0x10
jne 0x405de9
test al, 1
je 0x405de9
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.004057ab
test al, al
je 0x405e4a
mov ecx, edi
call fcn.00408760
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x405e08
push edi
call esi
test eax, eax
je 0x405e08
mov al, 1
jmp 0x405e4c
test ebx, ebx
je 0x405e4a
lea ecx, [ebp - 0x18]
call fcn.00402d90
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408869
test al, al
push dword [ebp - 0x18]
je 0x405e44
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401e89
test esi, esi
pop ecx
setne al
jmp 0x405e4c
call fcn.00401e89
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 0x40692e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x472ed4
call fcn.0046f140
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00408760
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x40695a
push edi
call esi
cmp eax, 0xffffffff
jne 0x40699c
test ebx, ebx
je 0x406999
lea ecx, [ebp - 0x18]
call fcn.00402d90
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.00408869
test al, al
push dword [ebp - 0x18]
je 0x406993
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401e89
pop ecx
mov eax, esi
jmp 0x40699c
call fcn.00401e89
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4071b5
Capabilities:
Get disk information

Disassembly:
mov eax, 0x472fa0
call fcn.0046f140
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00426cb9
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x40728b
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4071f1
mov eax, ebx
add eax, eax
push eax
call fcn.00401e55
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x407284
cmp ebx, dword [ebp - 0x18]
ja 0x407284
lea ecx, [ebp - 0x2c]
call fcn.00402d90
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x40726c
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x407261
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402f14
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.00446b33
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401524
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x40722f
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00401e89
push esi
call fcn.00401e89
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x40728d
push esi
call fcn.00401e89
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 0x40738b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 5], bl
push esi
je 0x4073ad
cmp byte [ecx + 6], bl
je 0x4073ad
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x4073ed
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4073d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4073d1
xor al, al
jmp 0x4073ef
push 1
push ebx
push ebx
push dword [ebp - 4]
call fcn.0046f440
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x409dfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, SysReAllocStringLen
mov eax, dword [esi]
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x14]
and byte [eax], bl
call fcn.0046f900
cmp dword [ebp - 0x14], 0x80000004
jb 0x409e55
lea edx, [ebx - 0x7ffffffe]
lea ecx, [ebp - 0x14]
call fcn.0046f900
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 4
mov edx, dword [edi]
mov ecx, esi
call fcn.00409ea0
add edi, 4
dec dword [ebp - 4]
jne 0x409e3e
inc ebx
cmp ebx, 3
jb 0x409e26
mov ecx, esi
call fcn.00402a0c
mov ecx, esi
call fcn.004029cf
cmp dword [esi + 4], 0
jne 0x409e9b
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0046f900
push 1
pop edi
mov eax, edi
mov ecx, esi
shr eax, 1
xor eax, edi
mov edx, dword [ebp + eax*4 - 0x14]
call fcn.00409ea0
inc edi
cmp edi, 4
jb 0x409e76
mov ecx, esi
call fcn.00402a0c
mov ecx, esi
call fcn.004029cf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412203
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x47368b
call fcn.0046f140
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402d90
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00402d90
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402d90
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402d90
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402d90
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.00402d90
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.00402d90
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x473797
call fcn.0046f140
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00402ea8
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00402ea8
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00402ea8
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.00402ea8
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00402ea8
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.00402ea8
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.00402ea8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4184c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ecx]
xor edx, edx
push edi
test eax, eax
mov ebx, 0x159a55e5
mov edi, 0x1f123bb5
mov dword [ebp - 4], eax
jbe 0x418512
mov eax, 0xffff
mov ecx, ebx
and ecx, eax
imul ecx, ecx, 0x9069
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
and ecx, eax
imul ecx, ecx, 0x4650
shr edi, 0x10
add edi, ecx
mov ecx, edi
xor cl, byte [ebp + 8]
mov byte [edx + esi], cl
inc edx
cmp edx, dword [ebp - 4]
jb 0x4184e6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418519
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ecx + 4]
and dword [ebp - 4], 0
mov ecx, dword [ecx]
push ebx
push edi
push 1
pop edx
mov edi, 0x159a55e5
test eax, eax
mov ebx, 0x1f123bb5
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
jbe 0x4186dd
push esi
mov esi, 0xffff
jmp 0x418556
push 1
pop edx
mov eax, edi
and eax, esi
imul eax, eax, 0x9069
shr edi, 0x10
add edi, eax
mov eax, ebx
and eax, esi
imul eax, eax, 0x4650
shr ebx, 0x10
add ebx, eax
mov eax, edi
shl eax, 0x10
add eax, ebx
xor eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, edx
shr eax, 1
test ecx, ecx
mov dword [ebp - 8], eax
je 0x4186c4
cmp dword [ebp - 4], 0x400
jb 0x4186c4
lea ecx, [ebp - 8]
call fcn.004186e3
mov ecx, eax
mov eax, dword [ebp - 8]
shr dword [ebp - 8], 3
and eax, 7
inc ecx
test eax, eax
mov dword [ebp - 0xc], ecx
je 0x41868d
lea ecx, [ebp - 8]
call fcn.004186e3
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
push 1
pop eax
shl eax, cl
cmp eax, dword [ebp - 4]
jae 0x4185e2
push 1
inc ecx
pop eax
shl eax, cl
cmp eax, dword [ebp - 4]
jb 0x4185d4
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
cmp eax, ecx
mov dword [ebp - 0x10], eax
jbe 0x4185ef
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x15
mov dword [ebp - 0x18], 5
ja 0x418603
mov dword [ebp - 0x18], 4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
push 1
pop eax
shl eax, cl
mov ecx, edi
and ecx, esi
imul ecx, ecx, 0x9069
shr edi, 0x10
add edi, ecx
mov ecx, ebx
and ecx, esi
dec eax
imul ecx, ecx, 0x4650
shr ebx, 0x10
add ebx, ecx
mov ecx, edi
shl ecx, 0x10
add ecx, ebx
and eax, edx
xor ecx, dword [ebp + 0xc]
add eax, 6
cmp eax, dword [ebp - 0x10]
mov edx, ecx
mov dword [ebp - 8], edx
ja 0x418606
mov dword [ebp - 0x24], 1
mov ecx, eax
mov eax, dword [ebp - 0x24]
shl eax, cl
dec eax
and eax, edx
cmp eax, dword [ebp - 4]
jb 0x418686
mov eax, edi
and eax, esi
imul eax, eax, 0x9069
shr edi, 0x10
add edi, eax
mov eax, ebx
and eax, esi
mov edx, edi
imul eax, eax, 0x4650
shr ebx, 0x10
add ebx, eax
shl edx, 0x10
add edx, ebx
xor edx, dword [ebp + 0xc]
jmp 0x418606
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
cmp ecx, eax
jbe 0x41869c
mov dword [ebp - 0xc], eax
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add dword [ebp - 4], ecx
add eax, edx
mov dword [ebp - 0x24], eax
sub eax, dword [ebp - 0x18]
test ecx, ecx
jbe 0x4186d0
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 0x10]
jne 0x4186b7
jmp 0x4186d0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov byte [ecx + edx], al
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jb 0x418553
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x41a87c
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, ecx
jbe 0x41a993
mov ecx, edx
mov edx, dword [esp + 4]
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
dec ecx
jne 0x41a88c
ret 4

Function at 0x41dcbb
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x41dce8
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x48ea60]
xor eax, edi
inc esi
cmp esi, edx
jb 0x41dcc7
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x41efe3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x474566
call fcn.0046f140
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov byte [esi + 0x32], bl
mov byte [esi + 0x33], bl
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
call fcn.0041f092
lea eax, [esi + 0x8c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [ebp - 4], 5
mov byte [esi + 0x95], bl
mov dword [esi + 0x98], ebx
call fcn.00412a5f
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x94], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x474926
call fcn.0046f140
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00402d90
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00421962
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4219b4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x474971
call fcn.0046f140
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0042c03b
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00421a0a
push dword [esi + 0x24]
call fcn.00401e89
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.00431b84
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00421f86
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret