joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4746b0
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.0049ed70
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
push dword [esp + 0x1014]
mov esi, dword [esp + 0x1014]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x47472d
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0046af60
add esp, 0xc
test al, al
je 0x47472d
push dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x1004
ret

Function at 0x4748a0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.0049ed70
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1260]
push edi
mov edi, dword [esp + 0x126c]
push eax
cmp esi, 0xffffffff
jne 0x47494f
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x474974
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.0046af60
add esp, 0xc
test al, al
je 0x474920
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x474974
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x474942
cmp eax, 3
je 0x474942
cmp eax, 0x12
je 0x474942
mov al, 1
mov byte [edi + 0x1044], al
jmp 0x474a22
xor al, al
mov byte [edi + 0x1044], al
jmp 0x474a22
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x474974
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [edi + 0x1044], cl
jmp 0x474a24
push 0x800
push ebx
push edi
call fcn.0046bdd0
push 0x800
lea eax, [esp + 0x48]
push eax
push edi
call fcn.0046bad0
mov ecx, dword [esp + 0x40]
xor eax, eax
add esp, 0x18
add eax, dword [esp + 0x2c]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x1004], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
lea eax, [esp + 0x20]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.0046a6a0
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x1018]
call fcn.0046a6a0
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x1020]
call fcn.0046a6a0
mov eax, esi
mov ecx, dword [esp + 0x125c]
mov dword [edi + 0x1040], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x1254
ret
Function at 0x475260
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x164
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x160], eax
push ebp
mov ebp, dword [esp + 0x16c]
push esi
push edi
mov edi, dword [esp + 0x178]
mov eax, dword [ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edi
cmp eax, 2
jne 0x47535b
mov eax, dword [ebp + 4]
push ebx
push 0
push 0
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x140]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push edi
call fcn.00476510
lea ecx, [esp + 0x155]
mov eax, 2
sub eax, ecx
lea edx, [esp + 0x155]
xor ebp, ebp
mov dword [esp + 0x38], eax
mov ecx, 3
add esp, 0x24
xor ebx, ebx
sub ecx, edx
mov dword [esp + 0x10], ecx
lea edi, [ebp + 1]
mov edi, edi
lea esi, [esp + 0x131]
add esi, ebp
movzx edx, byte [esi + 1]
lea ecx, [eax + esi]
movzx eax, byte [esi - 1]
and ecx, 3
shl ecx, 3
shl edx, cl
mov ecx, ebp
and ecx, 3
add ebp, 4
shl ecx, 3
shl eax, cl
mov ecx, edi
xor edx, eax
and ecx, 3
movzx eax, byte [esi]
add edi, 4
shl ecx, 3
shl eax, cl
mov ecx, dword [esp + 0x10]
xor edx, eax
movzx eax, byte [esi + 2]
add ecx, esi
and ecx, 3
xor ebx, edx
shl ecx, 3
shl eax, cl
xor ebx, eax
mov eax, dword [esp + 0x14]
cmp edi, 0x21
jb 0x4752f0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp]
mov dword [ebp + 4], ebx
pop ebx
cmp eax, 3
jne 0x4754f4
lea eax, [esp + 0xec]
xor edx, edx
sub edi, eax
nop
lea ecx, [esp + 0xec]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, 0x20
jb 0x475370
lea eax, [esp + 0x1c]
mov dword [esp + 0x10c], 0x36363636
push eax
mov dword [esp + 0x114], 0x36363636
mov dword [esp + 0x118], 0x36363636
mov dword [esp + 0x11c], 0x36363636
mov dword [esp + 0x120], 0x36363636
mov dword [esp + 0x124], 0x36363636
mov dword [esp + 0x128], 0x36363636
mov dword [esp + 0x12c], 0x36363636
call fcn.00483330
push 0x40
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00483380
push 0x20
add ebp, 4
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.00483380
lea eax, [esp + 0x148]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00483220
add esp, 0x24
xor edx, edx
lea ecx, [esp + 0xec]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, 0x5c
mov byte [ecx], al
cmp edx, 0x20
jb 0x475423
lea eax, [esp + 0x84]
mov dword [esp + 0x10c], 0x5c5c5c5c
push eax
mov dword [esp + 0x114], 0x5c5c5c5c
mov dword [esp + 0x118], 0x5c5c5c5c
mov dword [esp + 0x11c], 0x5c5c5c5c
mov dword [esp + 0x120], 0x5c5c5c5c
mov dword [esp + 0x124], 0x5c5c5c5c
mov dword [esp + 0x128], 0x5c5c5c5c
mov dword [esp + 0x12c], 0x5c5c5c5c
call fcn.00483330
push 0x40
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00483380
push 0x20
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00483380
lea eax, [esp + 0x168]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00483220
mov ecx, 8
lea esi, [esp + 0x170]
mov edi, ebp
add esp, 0x24
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00443db6
add esp, 0x164
ret
Function at 0x475850
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x190
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x18c], eax
mov eax, dword [esp + 0x1a4]
push ebx
push ebp
mov ebp, dword [esp + 0x1a8]
push esi
push edi
mov edi, dword [esp + 0x1ac]
mov esi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1bc]
mov dword [esp + 0x14], eax
cmp byte [edi + 0x100], 0
mov eax, dword [esp + 0x1c0]
mov dword [esp + 0x10], eax
je 0x475a5e
mov ebx, dword [esp + 0x1a8]
test ebx, ebx
je 0x475a5e
push 0x80
lea eax, [esp + 0xa0]
mov dword [esi + 0xa98], ebx
push eax
mov ecx, edi
call fcn.00469bc0
push 0x80
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00468e20
dec ebx
add esp, 0xc
cmp ebx, 4
ja case.default.0x4758f3
jmp dword [ebx*4 + 0x475a7c]
mov cl, byte [esp + 0x1c]
mov word [esi + 0x10b5], 0
mov byte [esi + 0x10b4], 0
test cl, cl
je case.default.0x4758f3
xor al, al
lea edx, [esp + 0x1c]
xor bl, bl
xor ah, ah
add al, cl
lea edx, [edx + 1]
add ah, cl
rol al, 1
xor bl, cl
mov cl, byte [edx]
test cl, cl
jne 0x475920
mov byte [esi + 0x10b6], al
mov byte [esi + 0x10b5], bl
mov byte [esi + 0x10b4], ah
jmp case.default.0x4758f3
lea eax, [esi + 0xba4]
push eax
call fcn.00477a00
lea ecx, [esp + 0x20]
add esp, 4
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475960
sub ecx, edx
lea eax, [esp + 0x1c]
push ecx
push eax
push 0xffffffffffffffff
call fcn.004778d0
mov dl, byte [esp + 0x28]
add esp, 0xc
mov word [esi + 0x10b8], ax
shr eax, 0x10
mov word [esi + 0x10ba], ax
xor eax, eax
mov dword [esi + 0x10bc], eax
test dl, dl
je case.default.0x4758f3
xor edi, edi
lea ebp, [esp + 0x1c]
xor ebx, ebx
movzx eax, dl
lea ebp, [ebp + 1]
movzx edx, dl
lea ecx, [esi + eax*4]
movzx eax, word [ecx + 0xba4]
xor ax, dx
xor bx, ax
mov word [esi + 0x10bc], bx
movzx eax, word [ecx + 0xba6]
add ax, dx
mov dl, byte [ebp]
add di, ax
mov word [esi + 0x10be], di
test dl, dl
jne 0x4759a6
jmp case.default.0x4758f3
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00475a90
jmp case.default.0x4758f3
push ebp
lea eax, [esp + 0xa0]
mov ecx, esi
push eax
push edi
push dword [esp + 0x1b0]
call fcn.00475d90
jmp case.default.0x4758f3
push dword [esp + 0x10]
lea eax, [esp + 0xa0]
mov ecx, esi
push dword [esp + 0x18]
push dword [esp + 0x1c0]
push dword [esp + 0x24]
push ebp
push eax
push edi
push dword [esp + 0x1c0]
call fcn.00476170
lea eax, [esp + 0x1c]
push 0x80
push eax
call fcn.00469ec0
lea eax, [esp + 0xa4]
push 0x100
push eax
call fcn.00469ec0
add esp, 0x10
mov al, 1
jmp 0x475a60
xor al, al
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x190
ret 0x20
Function at 0x476480
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [ecx + 0x10ac]
add edx, 2
push ebp
mov ebp, dword [ecx + 0x10b0]
push esi
mov esi, dword [ecx + 0x10a4]
push edi
mov edi, dword [ecx + 0x10a8]
mov dword [esp + 0x14], 4
jmp 0x4764b0
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
xor esi, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10a4], esi
movzx eax, byte [edx - 5]
xor edi, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10a8], edi
movzx eax, byte [edx - 4]
xor ebx, dword [ecx + eax*4 + 0xba4]
mov dword [ecx + 0x10ac], ebx
movzx eax, byte [edx - 3]
xor ebp, dword [ecx + eax*4 + 0xba4]
sub dword [esp + 0x14], 1
mov dword [ecx + 0x10b0], ebp
jne 0x4764b0
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x476790
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1b8]
mov ecx, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x1b4]
push ebp
mov ebp, dword [esp + 0x1bc]
push esi
mov esi, dword [esp + 0x1b8]
mov dword [esp + 0x10], eax
mov eax, esi
push edi
mov edi, dword [esp + 0x1b0]
mov dword [esp + 0x18], edi
cmp esi, 0x40
jb 0x4767e6
mov eax, 0x40
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.004453c0
add esp, 0xc
cmp esi, 0x44
jae 0x476a0e
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], 0
cmp eax, 0x44
jae 0x476a0e
mov byte [esp + eax + 0x144], 0
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x476a0e
push 0
push 0
push 0
mov byte [esp + eax + 0x150], 0
lea eax, [esp + 0x130]
push 0
push eax
lea eax, [esi + 4]
mov byte [esp + esi + 0x15b], 1
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1d0]
push edi
call fcn.00476510
mov eax, dword [esp + 0x1f0]
lea esi, [esp + 0x148]
dec eax
mov dword [esp + 0x120], ebp
add esp, 0x24
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x104]
mov ecx, 8
mov dword [esp + 0xf0], 0x10
xor ebp, ebp
mov dword [esp + 0xf4], 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x100], eax
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0x14], ebp
jmp 0x4768d0
mov ebx, dword [esp + ebp + 0xec]
test ebx, ebx
je 0x476991
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x198]
push eax
push 0x20
lea eax, [esp + 0x13c]
push eax
push dword [esp + 0x1d0]
push ebp
call fcn.00476510
mov ecx, 8
lea esi, [esp + 0x1ac]
lea edi, [esp + 0x148]
add esp, 0x24
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x476940
movzx ecx, byte [esp + eax + 0x124]
xor byte [esp + eax + 0x104], cl
movzx ecx, byte [esp + eax + 0x125]
xor byte [esp + eax + 0x105], cl
movzx ecx, byte [esp + eax + 0x126]
xor byte [esp + eax + 0x106], cl
movzx ecx, byte [esp + eax + 0x127]
xor byte [esp + eax + 0x107], cl
add eax, 4
cmp eax, 0x20
jb 0x476940
sub ebx, 1
jne 0x4768e3
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + ebp + 0xf8]
lea esi, [esp + 0x104]
add ebp, 4
mov ecx, 8
mov dword [esp + 0x14], ebp
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0xc
jb 0x4768d0
lea eax, [esp + 0x144]
push 0x44
push eax
call fcn.00469ec0
lea eax, [esp + 0x10c]
push 0x20
push eax
call fcn.00469ec0
lea eax, [esp + 0x134]
push 0x20
push eax
call fcn.00469ec0
lea eax, [esp + 0x1a0]
push 0x20
push eax
call fcn.00469ec0
mov ecx, dword [esp + 0x1c8]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x19c
ret
call fcn.004444a0
int3
Function at 0x476e00
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 1
jne 0x476e17
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 8], eax
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0xc]
mov ebp, dword [esp + 0x14]
push 0
push eax
push ebx
push ebp
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x476ebf
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x476e6e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x476e52
cmp eax, 3
jne 0x476e6e
cmp ebx, 0x4e20
jbe 0x476e6e
push 0x4e20
push ebp
mov ecx, esi
call fcn.00476e00
pop esi
pop ebp
pop ebx
pop ecx
ret 8
cmp dword [esi + 0x10], 1
jne 0x476e88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x476e88
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
cmp dword [esi + 0x10], 0
jne 0x476eb5
cmp ebx, 0x8000
jbe 0x476eb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x476eb5
push 0x8000
push ebp
mov ecx, esi
call fcn.00476e00
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x476f60
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1010
call fcn.0049ed70
mov eax, dword [0x4cd00c]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x101c]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1020]
mov dword [esp + 0x14], ecx
cmp byte [esi + 0x30], 0
mov dword [esi + 0x1034], 0
jne 0x476fa8
test bl, 4
jne 0x476fa8
xor al, al
jmp 0x476faa
mov al, 1
push edi
mov edi, ebx
shr edi, 1
not edi
and edi, 1
inc edi
shl edi, 0x1e
test bl, 1
je 0x476fc3
or edi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x476fd2
or ebx, 2
cmp byte [esi + 0x24], 0
je 0x476fde
or edi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x47705c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x20]
call fcn.0046af60
add esp, 0xc
test al, al
je 0x47704b
push 0
push 0x8000000
push 3
push 0
push ebx
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x477046
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x47705c
cmp dword [esp + 0x10], 2
jne 0x47705c
mov dword [esi + 0x1034], 1
cmp byte [esi + 0x24], 0
pop edi
je 0x47709b
cmp ebp, 0xffffffff
je 0x47709b
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push eax
push 0
push ebp
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov byte [esi + 0x1c], 0
mov bl, 1
mov dword [esi + 0x10], 0
mov byte [esi + 0x15], 0
jmp 0x4770b2
cmp ebp, 0xffffffff
mov byte [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov byte [esi + 0x15], 0
setne bl
je 0x4770ce
push 0x800
push dword [esp + 0x18]
lea ecx, [esi + 0x32]
mov dword [esi + 8], ebp
push ecx
call fcn.0046bdd0
add esp, 0xc
mov byte [esi + 0x25], 0
mov ecx, dword [esp + 0x1018]
mov al, bl
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443db6
add esp, 0x1010
ret 8
Function at 0x4777b0
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x10]
mov ebx, ecx
test edi, edi
jne 0x4777c3
pop edi
mov al, 1
pop ebx
ret 8
cmp dword [ebx + 0x10], 1
jne 0x4777d4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebx + 8], eax
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx + 0x10], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0
je 0x47783f
xor esi, esi
test edi, edi
je 0x47785b
jmp 0x477806
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, esi
cmp eax, 0x4000
jb 0x477816
mov eax, 0x4000
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 8]
call ecx
cmp eax, 1
sete cl
mov byte [esp + 0x18], cl
jne 0x477857
add esi, 0x4000
cmp esi, edi
jb 0x477800
jmp 0x477857
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [ebx + 8]
call ecx
cmp eax, 1
sete cl
mov byte [esp + 0x18], cl
test cl, cl
jne 0x4778c0
cmp byte [ebx + 0x1e], 0
je 0x4778c0
cmp dword [ebx + 0x10], 0
jne 0x4778c0
push 0
lea esi, [ebx + 0x32]
mov ecx, 0x4d0434
push esi
call fcn.00469240
test al, al
je 0x4778b3
mov eax, dword [esp + 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
jae 0x4777e0
test eax, eax
je 0x4777e0
mov esi, dword [ebx]
mov ecx, ebx
push 0
mov eax, dword [esi + 0x14]
call eax
sub eax, dword [esp + 0x18]
mov ecx, ebx
sbb edx, 0
push edx
push eax
call dword [esi + 0x10]
jmp 0x4777da
push esi
push 0
mov ecx, 0x4d0434
call fcn.00469a40
mov al, byte [esp + 0x18]
pop esi
pop ebp
pop edi
mov byte [ebx + 0xc], 1
pop ebx
ret 8

Function at 0x4778d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x477903
test bl, 7
je 0x477903
movzx edx, byte [ebx]
inc ebx
movzx ecx, al
xor edx, ecx
shr eax, 8
mov dword [esp + 0x10], ebx
xor eax, dword [edx*4 + 0x4d0470]
sub esi, 1
jne 0x4778e2
cmp esi, 8
jb 0x477999
push edi
mov edi, esi
shr edi, 3
xor eax, dword [ebx]
sub esi, 8
mov ebx, dword [ebx + 4]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x4d0870]
xor edx, dword [ecx*4 + 0x4d0c70]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4d1870]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4d1c70]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4d0470]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x4d1470]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
add ebx, 8
mov dword [esp + 0x14], ebx
xor edx, dword [ecx*4 + 0x4d1070]
xor edx, dword [eax*4 + 0x4d2070]
mov eax, edx
sub edi, 1
jne 0x477912
pop edi
test esi, esi
je 0x4779ba
lea ecx, [ecx]
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4d0470]
sub esi, 1
jne 0x4779a0
pop esi
pop ebx
ret
Function at 0x477bd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaa33
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4cd00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x98]
call fcn.00474a50
lea ecx, [esi + 0xac]
mov dword [ebp - 4], 0
call fcn.00474a50
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 1
call fcn.00474a50
push 0x10c0
mov byte [ebp - 4], 2
call fcn.00443fb7
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x477c4c
mov ecx, eax
call fcn.004750d0
jmp 0x477c4e
xor eax, eax
push 0x10c0
mov byte [ebp - 4], 2
mov dword [esi + 0x48], eax
call fcn.00443fb7
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x477c76
mov ecx, eax
call fcn.004750d0
jmp 0x477c78
xor eax, eax
mov dword [esi + 0x4c], eax
mov eax, esi
mov byte [esi], 0
mov byte [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
mov dword [esi + 0x54], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x3c], 0
mov word [esi + 0xd4], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x483220
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edx, dword [esi + 0x20]
mov edi, edx
mov ebx, dword [esi + 0x24]
and edx, 0x3f
shld ebx, edi, 3
shl edi, 3
mov byte [edx + esi + 0x28], 0x80
inc edx
cmp edx, 0x38
je 0x483286
jbe 0x48326e
cmp edx, 0x40
jae 0x483263
mov eax, 0x40
lea ecx, [esi + 0x28]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00445940
add esp, 0xc
push esi
call fcn.004835d0
add esp, 4
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x28]
add eax, edx
push 0
push eax
call fcn.00445940
add esp, 0xc
bswap ebx
bswap edi
push esi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], edi
call fcn.004835d0
mov eax, dword [esi]
add esp, 4
mov ecx, dword [esp + 0x14]
bswap eax
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 4]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
bswap eax
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
bswap eax
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x1c]
bswap eax
mov dword [ecx + 0x1c], eax
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
pop esi
pop ebx
ret

Function at 0x483330
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
ret