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

Disassembly:
mov eax, 0x1004
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x47270d
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00468f50
add esp, 0xc
test al, al
je 0x47270d
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.00441dc6
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x1004
ret

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

Disassembly:
mov eax, 0x1254
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x47292f
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x472954
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.00468f50
add esp, 0xc
test al, al
je 0x472900
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 0x472954
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x472922
cmp eax, 3
je 0x472922
cmp eax, 0x12
je 0x472922
mov al, 1
mov byte [edi + 0x1044], al
jmp 0x472a02
xor al, al
mov byte [edi + 0x1044], al
jmp 0x472a02
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x472954
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [edi + 0x1044], cl
jmp 0x472a04
push 0x800
push ebx
push edi
call fcn.00469dc0
push 0x800
lea eax, [esp + 0x48]
push eax
push edi
call fcn.00469ac0
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.00468690
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x1018]
call fcn.00468690
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x1020]
call fcn.00468690
mov eax, esi
mov ecx, dword [esp + 0x125c]
mov dword [edi + 0x1040], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x1254
ret
Function at 0x473240
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x164
mov eax, dword [0x4cc00c]
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 0x47333b
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.004744f0
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 0x4732d0
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 0x4734d4
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 0x473350
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.00481310
push 0x40
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00481360
push 0x20
add ebp, 4
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.00481360
lea eax, [esp + 0x148]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00481200
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 0x473403
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.00481310
push 0x40
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00481360
push 0x20
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00481360
lea eax, [esp + 0x168]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00481200
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.00441dc6
add esp, 0x164
ret
Function at 0x473830
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x190
mov eax, dword [0x4cc00c]
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 0x473a3e
mov ebx, dword [esp + 0x1a8]
test ebx, ebx
je 0x473a3e
push 0x80
lea eax, [esp + 0xa0]
mov dword [esi + 0xa98], ebx
push eax
mov ecx, edi
call fcn.00467bb0
push 0x80
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00466e10
dec ebx
add esp, 0xc
cmp ebx, 4
ja case.default.0x4738d3
jmp dword [ebx*4 + 0x473a5c]
mov cl, byte [esp + 0x1c]
mov word [esi + 0x10b5], 0
mov byte [esi + 0x10b4], 0
test cl, cl
je case.default.0x4738d3
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 0x473900
mov byte [esi + 0x10b6], al
mov byte [esi + 0x10b5], bl
mov byte [esi + 0x10b4], ah
jmp case.default.0x4738d3
lea eax, [esi + 0xba4]
push eax
call fcn.004759e0
lea ecx, [esp + 0x20]
add esp, 4
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x473940
sub ecx, edx
lea eax, [esp + 0x1c]
push ecx
push eax
push 0xffffffffffffffff
call fcn.004758b0
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.0x4738d3
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 0x473986
jmp case.default.0x4738d3
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00473a70
jmp case.default.0x4738d3
push ebp
lea eax, [esp + 0xa0]
mov ecx, esi
push eax
push edi
push dword [esp + 0x1b0]
call fcn.00473d70
jmp case.default.0x4738d3
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.00474150
lea eax, [esp + 0x1c]
push 0x80
push eax
call fcn.00467eb0
lea eax, [esp + 0xa4]
push 0x100
push eax
call fcn.00467eb0
add esp, 0x10
mov al, 1
jmp 0x473a40
xor al, al
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x190
ret 0x20
Function at 0x474460
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 0x474490
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 0x474490
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x474770
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4cc00c]
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 0x4747c6
mov eax, 0x40
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.004433d0
add esp, 0xc
cmp esi, 0x44
jae 0x4749ee
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], 0
cmp eax, 0x44
jae 0x4749ee
mov byte [esp + eax + 0x144], 0
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x4749ee
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.004744f0
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 0x4748b0
mov ebx, dword [esp + ebp + 0xec]
test ebx, ebx
je 0x474971
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.004744f0
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 0x474920
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 0x474920
sub ebx, 1
jne 0x4748c3
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 0x4748b0
lea eax, [esp + 0x144]
push 0x44
push eax
call fcn.00467eb0
lea eax, [esp + 0x10c]
push 0x20
push eax
call fcn.00467eb0
lea eax, [esp + 0x134]
push 0x20
push eax
call fcn.00467eb0
lea eax, [esp + 0x1a0]
push 0x20
push eax
call fcn.00467eb0
mov ecx, dword [esp + 0x1c8]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x19c
ret
call fcn.004424b0
int3
Function at 0x474de0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 1
jne 0x474df7
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 0x474e9f
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x474e4e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x474e32
cmp eax, 3
jne 0x474e4e
cmp ebx, 0x4e20
jbe 0x474e4e
push 0x4e20
push ebp
mov ecx, esi
call fcn.00474de0
pop esi
pop ebp
pop ebx
pop ecx
ret 8
cmp dword [esi + 0x10], 1
jne 0x474e68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x474e68
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
cmp dword [esi + 0x10], 0
jne 0x474e95
cmp ebx, 0x8000
jbe 0x474e95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x474e95
push 0x8000
push ebp
mov ecx, esi
call fcn.00474de0
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 0x474f40
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1010
call fcn.0049cd50
mov eax, dword [0x4cc00c]
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 0x474f88
test bl, 4
jne 0x474f88
xor al, al
jmp 0x474f8a
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 0x474fa3
or edi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x474fb2
or ebx, 2
cmp byte [esi + 0x24], 0
je 0x474fbe
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 0x47503c
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.00468f50
add esp, 0xc
test al, al
je 0x47502b
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 0x475026
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x47503c
cmp dword [esp + 0x10], 2
jne 0x47503c
mov dword [esi + 0x1034], 1
cmp byte [esi + 0x24], 0
pop edi
je 0x47507b
cmp ebp, 0xffffffff
je 0x47507b
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 0x475092
cmp ebp, 0xffffffff
mov byte [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov byte [esi + 0x15], 0
setne bl
je 0x4750ae
push 0x800
push dword [esp + 0x18]
lea ecx, [esi + 0x32]
mov dword [esi + 8], ebp
push ecx
call fcn.00469dc0
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.00441dc6
add esp, 0x1010
ret 8
Function at 0x475790
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0x10]
mov ebx, ecx
test edi, edi
jne 0x4757a3
pop edi
mov al, 1
pop ebx
ret 8
cmp dword [ebx + 0x10], 1
jne 0x4757b4
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 0x47581f
xor esi, esi
test edi, edi
je 0x47583b
jmp 0x4757e6
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, esi
cmp eax, 0x4000
jb 0x4757f6
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 0x475837
add esi, 0x4000
cmp esi, edi
jb 0x4757e0
jmp 0x475837
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 0x4758a0
cmp byte [ebx + 0x1e], 0
je 0x4758a0
cmp dword [ebx + 0x10], 0
jne 0x4758a0
push 0
lea esi, [ebx + 0x32]
mov ecx, 0x4cf264
push esi
call fcn.00467230
test al, al
je 0x475893
mov eax, dword [esp + 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
jae 0x4757c0
test eax, eax
je 0x4757c0
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 0x4757ba
push esi
push 0
mov ecx, 0x4cf264
call fcn.00467a30
mov al, byte [esp + 0x18]
pop esi
pop ebp
pop edi
mov byte [ebx + 0xc], 1
pop ebx
ret 8

Function at 0x4758b0
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 0x4758e3
test bl, 7
je 0x4758e3
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 + 0x4cf2a0]
sub esi, 1
jne 0x4758c2
cmp esi, 8
jb 0x475979
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 + 0x4cf6a0]
xor edx, dword [ecx*4 + 0x4cfaa0]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4d06a0]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x4d0aa0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x4cf2a0]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x4d02a0]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
add ebx, 8
mov dword [esp + 0x14], ebx
xor edx, dword [ecx*4 + 0x4cfea0]
xor edx, dword [eax*4 + 0x4d0ea0]
mov eax, edx
sub edi, 1
jne 0x4758f2
pop edi
test esi, esi
je 0x47599a
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 + 0x4cf2a0]
sub esi, 1
jne 0x475980
pop esi
pop ebx
ret
Function at 0x475bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a87c3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4cc00c]
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.00472a30
lea ecx, [esi + 0xac]
mov dword [ebp - 4], 0
call fcn.00472a30
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 1
call fcn.00472a30
push 0x10c0
mov byte [ebp - 4], 2
call fcn.00441fc7
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x475c2c
mov ecx, eax
call fcn.004730b0
jmp 0x475c2e
xor eax, eax
push 0x10c0
mov byte [ebp - 4], 2
mov dword [esi + 0x48], eax
call fcn.00441fc7
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x475c56
mov ecx, eax
call fcn.004730b0
jmp 0x475c58
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 0x481200
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 0x481266
jbe 0x48124e
cmp edx, 0x40
jae 0x481243
mov eax, 0x40
lea ecx, [esi + 0x28]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00443950
add esp, 0xc
push esi
call fcn.004815b0
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.00443950
add esp, 0xc
bswap ebx
bswap edi
push esi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], edi
call fcn.004815b0
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 0x481310
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