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

Disassembly:
push 0x60
mov eax, 0x53e1b9
call fcn.0052c05f
mov eax, edx
mov dword [ebp - 0x3c], eax
mov ebx, ecx
xor esi, esi
lea edx, [ebp - 0x48]
mov ecx, eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call fcn.004f6230
xor eax, eax
mov word [ebp - 0x38], 0xbbef
lea edi, [ebp - 0x48]
mov byte [ebp - 0x36], 0xbf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], eax
lea edi, [ebp - 0x28]
push 3
pop ecx
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x30], ecx
mov esi, 0x40928c
push eax
lea eax, [ebp - 0x34]
mov edx, ecx
push eax
movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f7471
mov esi, eax
test esi, esi
jns 0x4426c1
mov dword [ebp - 4], 1
jmp 0x442816
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4427e8
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
and dword [ebp - 0x3c], 0
push 0
push eax
push edi
push dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44274c
xor ebx, ebx
test edi, edi
je 0x44274c
mov ecx, dword [ebp - 0x40]
mov eax, 0x4000
sub eax, ecx
mov dword [ebp - 0x5c], eax
add ecx, ebx
add eax, ecx
cmp eax, edi
jae 0x442725
mov eax, 0x4000
jmp 0x442729
mov eax, edi
sub eax, ebx
push 0
lea edx, [ebp - 0x3c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44276d
mov eax, dword [ebp - 0x5c]
add ebx, 0x4000
mov ecx, dword [ebp - 0x40]
cmp ebx, edi
jb 0x442716
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4427ce
call fcn.004fb949
mov esi, eax
test esi, esi
js 0x4427a3
push 0xc00000e5
call dword [fcn.00440b24]
call fcn.004fb949
mov esi, eax
test esi, esi
jns 0x442762
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x6c]
push esi
mov dword [ebp - 0x6c], 0x4177cc
mov dword [ebp - 0x68], 0x41783c
mov dword [ebp - 0x64], 0x338
call fcn.004f7c89
mov dword [ebp - 4], 2
jmp 0x442816
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x58]
push esi
mov dword [ebp - 0x58], 0x4177cc
mov dword [ebp - 0x54], 0x41783c
mov dword [ebp - 0x50], 0x33c
call fcn.004f7c89
mov dword [ebp - 4], 3
jmp 0x442816
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 5
call fcn.0044387a
xor eax, eax
jmp 0x442820
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x58]
mov esi, 0xc0000001
mov dword [ebp - 0x58], 0x4177cc
push esi
mov dword [ebp - 0x54], 0x41783c
mov dword [ebp - 0x50], 0x342
call fcn.004f7c89
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.0044387a
mov eax, esi
call fcn.0052bffc
ret
Function at 0x447696
Capabilities:
Query environment variable

Disassembly:
push 0xc
mov eax, 0x53e8da
call fcn.0052c05f
push 0xfffffffffffffff5
mov esi, 0x20000
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor edi, edi
mov ebx, eax
push edi
push edi
push 0x418b7c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x447787
mov dword [ebp - 0x18], edi
xor ecx, ecx
mov dword [ebp - 4], edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.004508e6
mov edi, eax
test edi, edi
je 0x447775
push dword [ebp - 0x14]
push edi
push 0x418b7c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x447775
push edi
call fcn.0051f743
pop ecx
push eax
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x447775
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x14]
call fcn.0051fc37
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x447775
push 1
call fcn.0051f47e
push eax
call fcn.00520004
push eax
push esi
call fcn.0051ffca
add esp, 0x10
push esi
cmp eax, 0xffffffff
je 0x447768
call fcn.005200c8
push 1
call fcn.0051f47e
push eax
call fcn.00520593
push edi
call fcn.004508ff
jmp 0x4477cc
call fcn.005200c8
pop ecx
mov esi, 0x40000
jmp 0x44777e
mov esi, 0x40000
test edi, edi
je 0x4477a9
push edi
call fcn.004508ff
pop ecx
jmp 0x4477a9
push ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 2
je 0x4477a4
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x4477a9
mov esi, 0x40000
push esi
push 1
call fcn.0051f47e
push eax
call fcn.00520004
pop ecx
pop ecx
push eax
call fcn.0052062f
push 1
call fcn.0051f47e
push eax
call fcn.00520593
add esp, 0x10
call fcn.0052bffc
ret

Function at 0x4477f8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5527f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, edi
call fcn.00447696
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.0044789a
test eax, eax
jns 0x44786c
mov ecx, eax
call fcn.004fb7bb
push ecx
mov esi, eax
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
push eax
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, esi
mov ecx, eax
call fcn.00444cc8
push dword [ebp - 8]
push esi
push 0x419bc8
push 0x418ba0
call dword [sym.imp.NTDLL.dll_DbgPrint]
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.004436ec
jmp 0x447883
cmp byte [0x553e31], 0
je 0x447883
cmp byte [0x553718], 0
mov eax, 0x41020001
jne 0x447885
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052b1d0
leave
ret
Function at 0x450738
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x44
mov eax, 0x53f0be
call fcn.0052c05f
mov ebx, edx
mov esi, ecx
and dword [ebp - 0x1c], 0
lea edi, [ebp - 0x38]
xor eax, eax
lea edx, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004f6230
test eax, eax
js 0x4508cf
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x50], esi
cmp esi, 0xffffffff
jne 0x4507d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45079b
mov eax, 0x36fd
jmp 0x4507a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45088b
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x418bc8
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x38], 0x418e4c
mov dword [ebp - 0x34], 0xf9a
mov dword [ebp - 0x30], 0x418e60
call fcn.00451e97
jmp 0x4508cf
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x450834
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x450831
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x418bc8
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x38], 0x418e4c
mov dword [ebp - 0x34], 0xfa5
mov dword [ebp - 0x30], 0x418e88
call fcn.00451e97
mov edi, eax
test esi, esi
je 0x45082a
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
mov eax, edi
jmp 0x4508cf
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push eax
call fcn.0044469c
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
jge 0x45085c
test esi, esi
je 0x450857
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
mov eax, dword [ebp - 0x1c]
jmp 0x4508cf
mov edx, ebx
call fcn.004f9083
mov edi, eax
test edi, edi
js 0x45081f
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4508bd
call fcn.004fb949
mov edi, eax
test edi, edi
js 0x450896
push 0xc00000e5
call dword [fcn.00440b24]
and dword [ebp - 0x40], 0
lea ecx, [ebp - 0x4c]
push edi
mov dword [ebp - 0x4c], 0x418bc8
mov dword [ebp - 0x48], 0x418e4c
mov dword [ebp - 0x44], 0xfab
call fcn.004f7c89
jmp 0x45081f
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test esi, esi
je 0x4508cd
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
xor eax, eax
call fcn.0052bffc
ret
Function at 0x46e246
Capabilities:
Accept command line arguments

Disassembly:
push 0x34
mov eax, 0x540f2a
call fcn.0052c05f
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x20]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push 3
mov edx, ebx
lea ecx, [ebp - 0x24]
xor edi, edi
call fcn.0044471e
mov esi, dword [ebp - 0x24]
test esi, esi
jns 0x46e29a
mov eax, esi
shr eax, 0x1f
test al, al
jne 0x46e2c2
push 0xc00000e5
call dword [fcn.00440b24]
mov ecx, dword [ebp - 0x2c]
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.0044469c
mov esi, dword [ebp - 0x2c]
test esi, esi
jns 0x46e2db
mov eax, esi
shr eax, 0x1f
xor al, 1
jne 0x46e28f
mov edi, dword [ebp - 0x30]
test esi, esi
jns 0x46e2de
mov eax, esi
shr eax, 0x1f
test al, al
je 0x46e28f
mov dword [ebp - 4], 1
jmp 0x46e3d6
mov edi, dword [ebp - 0x30]
lea edx, [ebp - 0x20]
mov ecx, edi
call fcn.004f604c
test eax, eax
jns 0x46e2fa
mov dword [ebp - 4], 2
mov esi, eax
jmp 0x46e3d6
mov esi, dword [ebp - 0x18]
push 0x78
pop eax
push 0x20
mov word [esi], ax
pop eax
mov word [esi + 2], ax
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x3c]
lea eax, [esi + 4]
push eax
call fcn.0052e380
xor eax, eax
add esp, 0xc
mov word [esi + ebx*2 + 4], ax
and dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
jne 0x46e370
call fcn.004fb949
mov esi, eax
test esi, esi
jns 0x46e28f
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x38]
push esi
mov dword [ebp - 0x38], 0x41d4dc
mov dword [ebp - 0x34], 0x41d55c
mov dword [ebp - 0x30], 0x63
call fcn.004f7c89
mov dword [ebp - 4], 3
jmp 0x46e3d6
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
cmp esi, 1
jl 0x46e28f
je 0x46e3a4
lea edi, [esi - 1]
lea edi, [eax + edi*4]
push dword [edi]
mov ecx, dword [ebp - 0x40]
call fcn.0046e16c
mov ebx, eax
test ebx, ebx
js 0x46e3c5
dec esi
sub edi, 4
cmp esi, 1
jne 0x46e38b
lea ecx, [ebp - 0x24]
call fcn.004436ec
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 6
call fcn.0044387a
xor eax, eax
call fcn.0052bffc
ret 0xc
lea ecx, [ebp - 0x24]
call fcn.004436ec
mov dword [ebp - 4], 5
mov esi, ebx
lea ecx, [ebp - 0x20]
call fcn.0044387a
mov eax, esi
jmp 0x46e3bd
Function at 0x46e739
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x540fa6
call fcn.0052c05f
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x46e75c
mov dword [eax], edi
test ebx, ebx
je 0x46e762
mov dword [ebx], edi
test eax, eax
je 0x46e8ba
test ebx, ebx
je 0x46e8ba
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x46e791
sub ecx, esi
lea eax, [ebp - 0x20]
push eax
sar ecx, 1
push ecx
push edx
call fcn.0046e246
mov esi, eax
test esi, esi
js 0x46e86a
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
cmp eax, ecx
je 0x46e845
lea ecx, [ebp - 0x20]
cmp eax, ecx
je 0x46e7d6
mov esi, eax
sub esi, ecx
neg esi
sbb esi, esi
and esi, eax
jmp 0x46e7d8
mov esi, edi
lea ebx, [esi + 0xc]
test byte [ebx], 1
jne 0x46e8ba
cmp dword [ebx], 0
je 0x46e82e
cmp dword [ebx], 2
je 0x46e817
mov ecx, dword [ebx + 8]
cmp word [ecx], 0x40
jne 0x46e817
push dword [ebx]
lea eax, [ecx + 2]
push eax
push ecx
call fcn.0052fe70
add dword [ebx], 0xfffffffe
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
push dword [ebx + 8]
call fcn.0046e3e8
jmp 0x46e82a
push ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push ebx
push eax
add ecx, 0xc
call fcn.0045282a
mov eax, dword [eax]
test eax, eax
js 0x46e87c
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.00454768
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
cmp eax, ecx
jne 0x46e7c3
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
push 0xc
pop ecx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
cdq
idiv ecx
mov ecx, esi
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0046e8cc
cmp dword [eax], 0
jge 0x46e880
mov esi, dword [eax]
lea ecx, [ebp - 0x20]
call fcn.0046e146
mov eax, esi
call fcn.0052bffc
ret 8
mov esi, eax
jmp 0x46e86a
cmp dword [ebp - 0x24], 0
je 0x46e8a2
mov ebx, dword [ebp - 0x24]
mov edx, edi
mov eax, dword [esi + 0xc]
lea edx, [edx + 0xc]
mov ecx, dword [esi]
mov eax, dword [edx + eax - 4]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebx
jne 0x46e88b
mov ebx, dword [ebp - 0x28]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
lea ecx, [ebp - 0x20]
call fcn.0046e146
xor eax, eax
jmp 0x46e874
push 0xc00000e5
call dword [fcn.00440b24]
int3
Function at 0x47076d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00470b83

Function at 0x47222a
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x5527f0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0047159a
push 0x41e2e4
lea ecx, [esp + 0x1c]
call fcn.004714d1
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x4722aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4722d4
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00471801
mov edi, eax
jmp 0x4722d4
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.004720f7
mov ebx, eax
test ebx, ebx
jns 0x4722da
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x41e1fc
call fcn.0046f609
mov edi, ebx
test esi, esi
je 0x4722ee
jmp 0x4722e8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.00471f7f
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b1d0
mov esp, ebp
pop ebp
ret 8
Function at 0x4aa87e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x5527f0]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ecx
push 8
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x34]
pop ecx
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x50], 3
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
mov edi, 0x4036d8
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 8]
mov dword [esp + 0x20], ebx
cmp eax, 0xffffffff
je 0x4aa8e8
lea ebx, [esp + 0x24]
add ebx, eax
mov byte [ebx], 0
xor esi, esi
cmp dword [edi - 0x18], esi
je 0x4aa95a
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x20]
push eax
lea eax, [edi - 0x10]
push eax
mov eax, dword [edi - 0x14]
add eax, ecx
mov ecx, edx
push eax
call fcn.004aeffd
test eax, eax
js 0x4aa9e5
cmp dword [esp + 0x20], 0
jne 0x4aa931
mov ecx, dword [esp + 0x10]
inc esi
mov edx, dword [esp + 0xc]
add ecx, 0xc
mov dword [esp + 0x10], ecx
cmp esi, dword [edi - 0x18]
jne 0x4aa8f5
jmp 0x4aa95a
mov esi, dword [edi - 4]
mov ecx, esi
push edi
call dword [0x5552f8]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call esi
test eax, eax
js 0x4aa9e5
mov edx, dword [esp + 0xc]
test ebx, ebx
je 0x4aa95a
mov byte [ebx], 1
mov esi, dword [esp + 0x14]
add edi, 0x24
add esi, 0x24
mov dword [esp + 0x14], esi
cmp esi, 0xd8
je 0x4aa977
xor ebx, ebx
jmp 0x4aa8d3
push 0x10
lea eax, [esp + 0x44]
push 0x4140c8
push eax
call fcn.0052ccf0
mov ebx, dword [esp + 0x28]
lea esi, [esp + 0x3c]
push ecx
mov edi, esp
lea ecx, [esp + 0x40]
push ecx
neg eax
lea ecx, [esp + 0x54]
movsd dword es:[edi], dword [esi]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0x5c]
push eax
push dword [esp + 0x68]
movsd dword es:[edi], dword [esi]
push 0x40ae70
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049cfdb
test eax, eax
jns 0x4aa9f9
cmp eax, 0xc00000bd
jne 0x4aa9e5
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004b2460
test eax, eax
js 0x4aa9e5
lea edi, [ebx + 0x78]
xor eax, eax
lea esi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b1d0
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x2c], 0
je 0x4aa9d8
mov ecx, dword [ebx + 0x5c]
lea esi, [esp + 0x30]
sub esp, 0x10
mov edi, esp
push dword [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049d0f3
test eax, eax
jns 0x4aa9d8
cmp eax, 0xc00000bd
jne 0x4aa9e5
push dword [esp + 0x2c]
mov ecx, ebx
push dword [esp + 0x1c]
push 0xc0150006
call fcn.004b24e0
jmp 0x4aa9d4
Function at 0x4f2d1e
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, ebx
cmp dword [esi + 4], ebx
jbe 0x4f2d44
mov ecx, ebx
mov eax, dword [esi + 8]
lea ecx, [ecx + 0x5c]
inc edx
mov dword [eax + ecx - 0x48], ebx
mov dword [eax + ecx - 0x54], ebx
cmp edx, dword [esi + 4]
jb 0x4f2d30
push dword [esi + 8]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esi + 0xc]
mov dword [esi + 8], ebx
test edi, edi
je 0x4f2d6f
mov ecx, edi
call fcn.004f2d1e
push edi
call fcn.004508ff
pop ecx
pop edi
mov dword [esi + 0xc], ebx
pop esi
pop ebx
ret

Function at 0x4f8595
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5527f0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
push ebx
mov ebx, dword [ecx]
push esi
push edi
mov edi, dword [ecx + 8]
lea esi, [ebp - 0x208]
add ebx, edi
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x218], 0x200
mov eax, esi
mov dword [ebp - 0x214], eax
cmp edi, ebx
jae 0x4f876b
lea eax, [ebp - 8]
mov dword [ebp - 0x210], edi
sub eax, esi
and eax, 0xfffffffe
cmp eax, 8
jl 0x4f86fa
mov dh, byte [edi]
xor dl, dl
inc edi
mov byte [ebp - 0x209], dl
cmp edi, ebx
je 0x4f8610
mov dl, byte [edi]
xor eax, eax
push 2
pop ecx
jmp 0x4f8616
push 0x3d
xor ecx, ecx
pop eax
inc ecx
mov edi, dword [ebp - 0x210]
add edi, ecx
movzx eax, ax
mov dword [ebp - 0x210], eax
mov word [esi + 4], ax
cmp edi, ebx
je 0x4f863c
mov al, byte [edi]
inc edi
mov byte [ebp - 0x209], al
xor eax, eax
jmp 0x4f863f
push 0x3d
pop eax
movzx ecx, ax
mov word [esi + 6], ax
mov dword [ebp - 0x228], ecx
movzx ecx, dh
mov eax, ecx
movzx edx, dl
shr eax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [eax + 0x4365d0]
mov word [esi], ax
mov eax, edx
shr eax, 4
or eax, ecx
cmp word [ebp - 0x210], 0
movzx ecx, byte [ebp - 0x209]
movzx eax, byte [eax + 0x4365d0]
mov word [esi + 2], ax
jne 0x4f86a2
and edx, 0xf
mov eax, ecx
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + 0x4365d0]
mov word [esi + 4], ax
cmp word [ebp - 0x228], 0
jne 0x4f86ba
and ecx, 0x3f
movzx eax, byte [ecx + 0x4365d0]
mov word [esi + 6], ax
add esi, 8
lea eax, [ebp - 8]
cmp esi, eax
jne 0x4f86f2
push dword [ebp - 0x224]
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x200
push fcn.004fa620
call fcn.004fb07a
test eax, eax
js 0x4f876d
lea esi, [ebp - 0x208]
cmp edi, ebx
jb 0x4f85e1
lea eax, [ebp - 0x208]
cmp esi, eax
je 0x4f876b
sub esi, eax
mov dword [ebp - 0x21c], esi
cmp esi, dword [ebp - 0x218]
jbe 0x4f8751
mov esi, 0xc000042b
mov dword [ebp - 0x220], 0x435c3c
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x21c], 0x435fb8
mov dword [ebp - 0x218], 0x4f5
mov dword [ebp - 0x214], 0x435fd0
call fcn.004f7c89
mov eax, esi
jmp 0x4f876d
push dword [ebp - 0x224]
lea edx, [ebp - 0x21c]
push fcn.004fa620
call fcn.004fb07a
test eax, eax
js 0x4f876d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b1d0
leave
ret
Function at 0x4fb560
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ebx
shr edi, 2
lea edx, [ecx + edi*4]
neg edi
je 0x4fb59c
imul eax, dword [edx + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, esi
rol eax, 0xd
imul esi, eax, 5
sub esi, 0x19ab949c
add edi, 1
jne 0x4fb579
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x4fb5c2
sub eax, 1
je 0x4fb5b9
sub eax, 1
jne 0x4fb5d8
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, ebx
mov eax, esi
shr eax, 0x10
xor eax, esi
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret 4
Function at 0x4fbcbd
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x54256b
call fcn.0052c05f
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
push edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x4fbd41
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fbd02
mov eax, 0x36fd
jmp 0x4fbd10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4fbe16
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x438b70
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x438c3c
mov dword [ebp - 0x20], 0xf6
mov dword [ebp - 0x1c], 0x418e60
call fcn.00451e97
mov dword [ebp - 4], ebx
jmp 0x4fbe38
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0
push eax
push dword [edi]
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4fbdbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fbd6c
mov eax, 0x36fd
jmp 0x4fbd7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4fbe16
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x438b70
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x438c3c
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 0x1c], 0x438c78
call fcn.00451e97
mov edi, eax
mov dword [ebp - 4], 1
test esi, esi
je 0x4fbdb7
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
mov dword [ebp - 4], ebx
mov eax, edi
jmp 0x4fbe38
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fbe21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fbe0c
mov eax, 0x36fd
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x438b70
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x438c3c
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x1c], 0x438ce0
call fcn.00451e97
mov edi, eax
mov dword [ebp - 4], 3
jmp 0x4fbdac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fbdd8
push 0xc00000e5
call dword [fcn.00440b24]
mov dword [ebp - 4], 4
test esi, esi
je 0x4fbe33
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
mov dword [ebp - 4], ebx
xor eax, eax
call fcn.0052bffc
ret 4