joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051ab
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00404e6b
Function at 0x433007
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..retplne
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5cea2290
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x3a242a06
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4015dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43707c]
jne 0x4015e7
repz ret
jmp fcn.00401fb4

Function at 0x407acc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43707c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405794
and dword [ebp - 0x14], 0
cmp dword [0x439e50], 0
mov dword [ebp - 0x18], eax
jne 0x407b7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407c27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407c27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439e50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439e54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439e58], eax
call edi
push eax
call esi
mov dword [0x439e60], eax
test eax, eax
je 0x407b7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439e5c], eax
mov eax, dword [0x439e5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407bd8
cmp dword [0x439e60], ecx
je 0x407bd8
push eax
call esi
push dword [0x439e60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407bd8
test ebx, ebx
je 0x407bd8
call edi
test eax, eax
je 0x407bcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407bcf
test byte [ebp - 8], 1
jne 0x407bd8
or dword [ebp + 0x10], 0x200000
jmp 0x407c0b
mov eax, dword [0x439e54]
cmp eax, dword [ebp - 0x18]
je 0x407c0b
push eax
call esi
test eax, eax
je 0x407c0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407c0b
mov eax, dword [0x439e58]
cmp eax, dword [ebp - 0x18]
je 0x407c0b
push eax
call esi
test eax, eax
je 0x407c0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439e50]
call esi
test eax, eax
je 0x407c27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407c29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015dd
leave
ret
Function at 0x4010b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401111
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401103
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4010ff
cmp esi, ecx
jae 0x401103
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4010ef
cmp esi, ecx
jb 0x401107
xor eax, eax
jmp 0x401110
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40164e
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0x8004ffff
je 0x401694
xor esi, esi
cmp dword [edi + 0x14], esi
je 0x40167b
push ebx
push esi
lea ecx, [edi + 0x10]
call fcn.00402695
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x14]
jne 0x401663
pop ebx
lea ecx, [edi + 0x10]
call fcn.0040265c
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [edi + 0x1c]
call fcn.0040256c
mov ecx, dword [edi + 0x20]
push 0x10
pop esi
sub ecx, esi
call fcn.004011cb
mov ecx, dword [edi + 0x1c]
sub ecx, esi
call fcn.004011cb
lea ecx, [edi + 0x10]
call fcn.0040265c
mov ecx, dword [edi + 8]
sub ecx, esi
call fcn.004011cb
mov ecx, dword [edi + 4]
pop edi
sub ecx, esi
pop esi
jmp fcn.004011cb
Function at 0x401b18
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401b46
xor al, al
jmp 0x401bc4
call fcn.004011e7
push eax
lea ecx, [ebp + 8]
call fcn.00402877
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025a1
push eax
push ebx
push 0x4178e0
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004026bf
test edi, edi
je 0x401bb7
cmp edi, 0x6f
je 0x401bb7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401bb7
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004024a1
mov bl, 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004011cb
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401bcc
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401be3
xor al, al
jmp 0x401c54
push ebx
push esi
call fcn.004011e7
push eax
lea ecx, [ebp - 4]
call fcn.00402877
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025a1
push eax
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004026bf
test esi, esi
js 0x401c45
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401b18
test al, al
je 0x401c45
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004024a1
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004011cb
pop esi
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401c59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.004011e7
push eax
lea ecx, [ebp - 4]
call fcn.00402877
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov ebx, 0x104
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.004025a1
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004026bf
test edi, edi
je 0x401cc5
cmp edi, ebx
jae 0x401cc5
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00401b18
test al, al
je 0x401cc5
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x20]
call fcn.004024a1
mov bl, 1
jmp 0x401cc7
xor bl, bl
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004011cb
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401cdb
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x419ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x210], ax
mov edi, ecx
lea eax, [ebp - 0x20e]
or esi, 0xffffffff
push ebx
push eax
call fcn.00408d90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x4178e8
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401de4
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040242c
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.004025d9
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004011cb
push 0x4177f4
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401de4
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401de4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401de4
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401de4
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.004020b0
pop ecx
test eax, eax
jne 0x401dda
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401de4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408290
mov esp, ebp
pop ebp
ret

Function at 0x401df7
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
call fcn.004011e7
push eax
lea ecx, [ebp - 8]
call fcn.00402877
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
mov ebx, 0x104
mov dword [ebp - 0x14], eax
push ebx
mov ecx, eax
call fcn.004025a1
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004026bf
test esi, esi
je 0x401eab
cmp esi, 0x104
jae 0x401eab
push dword [edi + 0x1c]
lea ecx, [ebp - 4]
call fcn.0040242c
push 0x104
lea ecx, [ebp - 4]
call fcn.004025a1
push 0x417814
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 4]
push dword [esi - 8]
push esi
call fcn.00409dcd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.004029bd
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x401ea3
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.004025d9
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.004011cb
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004011cb
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x419ce0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x4020e0
or eax, 0xffffffff
jmp 0x40226d
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x402094
push eax
xor ebx, ebx
mov dword [ebp - 0x90], 0x4020a2
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.004049d2
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x34], ebx
add edi, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
sub esi, 0xd
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
call fcn.00410759
add esp, 0xc
mov dword [ebp - 0x84], ebx
mov edi, eax
lea eax, [ebp - 0x84]
mov edx, edi
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
add eax, 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404873
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x94]
push dword [ebp - 0x6c]
push eax
call dword [ebp - 0x90]
push dword [ebp - 0x68]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x6c], ebx
push eax
call dword [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x68], ebx
test esi, esi
je 0x4021af
or ebx, 0xffffffff
jmp 0x402264
mov edx, dword [edi]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push 4
pop esi
add ecx, esi
mov dword [ebp - 0x98], eax
push edx
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x88], eax
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x8c], eax
mov ebx, dword [ecx]
add ecx, esi
mov dword [ebp - 0x84], ecx
call fcn.00410759
mov edx, dword [ebp - 0x88]
mov esi, eax
pop ecx
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
push esi
push ebx
mov ebx, dword [ebp - 0x98]
lea eax, [ecx + edx]
add eax, ebx
add eax, dword [ebp - 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x84]
lea eax, [edx + ebx]
add eax, ecx
push eax
push edx
lea eax, [ebx + ecx]
mov edx, ebx
push eax
call fcn.00404a46
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x402233
inc ebx
jmp 0x40225d
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40225a
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa0], eax
je 0x40225d
or ebx, 0xffffffff
push esi
call fcn.0041080e
pop ecx
push edi
call fcn.0041080e
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408290
mov esp, ebp
pop ebp
ret
Function at 0x402cdc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402a40
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00408d90
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x402d3d
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402aab
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x402d9e
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x402d8b
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x402d8e
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
lea ecx, [esi - 0x10]
call fcn.004011cb
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402dd4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00402e71
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x402e67
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x402e60
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x402e57
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402e57
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x402e69
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00402e71
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40300d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
cmp esi, 0x40
jae 0x40301d
xor eax, eax
jmp 0x403072
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403019
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403019
cmp dword [edx + ecx], 0x4550
jne 0x403019
movzx eax, word [edx + ecx + 4]
push edi
mov edi, 0x14c
cmp ax, di
je 0x40305a
mov edi, 0x8664
cmp ax, di
je 0x40306f
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x40306f
add ecx, 0xc
cmp esi, ecx
jae 0x403071
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x403077
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40228
call fcn.0040c0d0
mov eax, dword [0x419ce0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40220]
push edi
xor ebx, ebx
mov dword [ebp - 0x40210], 1
push ebx
push eax
mov edi, ecx
lea eax, [ebp - 0x4020c]
push 0x200
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40328c
cmp dword [ebp - 0x40220], 0x200
jne 0x40328c
push 4
lea eax, [ebp - 0x4010b]
push 0x417920
push eax
call fcn.0040a90c
add esp, 0xc
test eax, eax
jne 0x4030f8
inc eax
mov byte [esi], al
jmp 0x40328e
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.0040a90c
add esp, 0xc
test eax, eax
jne 0x40328c
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.00402a40
add eax, 0x10
lea ecx, [ebp - 0x40214]
push 0x417974
mov dword [ebp - 0x40214], eax
call fcn.004032a1
lea eax, [ebp - 0x4020c]
push eax
lea ecx, [ebp - 0x40214]
call fcn.004032a1
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40224], eax
cmp eax, 0xffffffff
je 0x403280
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.00410ba8
add esp, 0xc
mov dword [ebp - 0x40218], eax
push 1
push ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x40218]
mov edx, ecx
neg edx
add eax, ecx
and edx, 0x1ff
add edx, eax
mov dword [ebp - 0x40228], edx
test ecx, ecx
je 0x40322d
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x4031d0
mov eax, ecx
mov dword [ebp - 0x4021c], ecx
push ebx
lea ecx, [ebp - 0x40220]
push ecx
push eax
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403227
push ebx
lea eax, [ebp - 0x40220]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403227
mov ecx, dword [ebp - 0x40218]
sub ecx, dword [ebp - 0x4021c]
mov dword [ebp - 0x40218], ecx
jne 0x4031b9
jmp 0x40322d
mov byte [ebp - 0x40210], bl
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x40210], bl
je 0x403264
cmp byte [edi + 8], bl
je 0x403255
lea eax, [ebp - 0x40214]
push eax
lea ecx, [edi + 0xc]
call fcn.004025d9
mov eax, dword [edi + 0x18]
test eax, eax
je 0x403264
push esi
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
mov eax, dword [ebp - 0x40228]
cmp eax, 0xffffffff
je 0x40327a
push ebx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov bl, byte [ebp - 0x40210]
lea ecx, [esi - 0x10]
call fcn.004011cb
mov al, bl
jmp 0x40328e
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408290
mov esp, ebp
pop ebp
ret 4
Function at 0x407630
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x407645
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00405481
aas
adc esp, ecx
cdq
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00405481
mov dl, 0xb0
invalid
Function at 0x1000d560
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1000d66c
test eax, eax
je 0x1000d66c
push esi
push edi
mov ecx, 0x10
mov esi, 0x10029008
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x1000d653
lea edi, [eax + 4]
jmp 0x1000d5b7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x1000d5cc
mov dword [ebp - 4], 2
jmp 0x1000d5ed
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x1000d5e3
mov dword [ebp - 4], 1
jmp 0x1000d5ed
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x1000d663
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x1000d626
mov byte [ecx], 0x3d
jmp 0x1000d632
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x1000d63d
mov byte [ecx], 0x3d
jmp 0x1000d643
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x1000d5b4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret