joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5148c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x334], esi
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x514901
mov eax, dword [eax]
push 0x5d08d8
push eax
call fcn.0056fb3b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x514ab9
push 2
push 0
push ebx
call fcn.0056c0ce
push ebx
call fcn.00579a22
add esp, 0x10
cmp eax, 0x201
jl 0x514aac
push 0x202
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0055c530
push 2
push 0xfffffdff
push ebx
call fcn.0056c0ce
push ebx
push 0x201
lea eax, [ebp - 0x214]
push 1
push eax
call fcn.005792dc
add esp, 0x28
cmp byte [ebp - 0x214], 0x3b
jne 0x514aac
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
push 0x210
mov dword [ebp - 4], 0
call fcn.00557fd4
mov edi, eax
mov dword [ebp - 0x330], eax
mov ecx, 0x80
mov dword [ebp - 0x21c], 0x200
lea esi, [ebp - 0x213]
mov dword [ebp - 0x218], 0x20f
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x200]
mov esi, eax
mov byte [edi], 0
push 0x20
mov dword [ebp - 0x22c], esi
call fcn.00557fd4
mov ecx, dword [str.0123456789ABCDEF]
push 0x100
mov dword [ebp - 0x330], eax
mov dword [eax], ecx
mov ecx, dword [0x5d08e4]
mov dword [eax + 4], ecx
mov ecx, dword [0x5d08e8]
mov dword [eax + 8], ecx
mov ecx, dword [0x5d08ec]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], 0
lea eax, [ebp - 0x32c]
push 0
push eax
call fcn.0055c530
mov eax, dword [ebp - 0x330]
add esp, 0x14
mov ecx, eax
lea edx, [eax + 0x10]
cmp eax, edx
je 0x514a54
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x32c], 1
cmp ecx, edx
jne 0x514a44
mov ecx, esi
cmp esi, edi
jae 0x514a72
lea ebx, [ebx]
movzx eax, byte [ecx]
cmp byte [ebp + eax - 0x32c], 0
je 0x514a7e
inc ecx
cmp ecx, edi
jb 0x514a60
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 0
jmp 0x514a8f
sub ecx, esi
cmp ecx, 0xffffffff
je 0x514a72
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 1
push 0x20
push dword [ebp - 0x330]
call fcn.00558004
push 0x210
push esi
call fcn.00558004
add esp, 0x10
jmp 0x514ab0
mov byte [esi + 0x3e], 1
push ebx
call fcn.0056b846
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
Function at 0x51ad00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x51ada0
cmp word [esi], 0
je 0x51ada0
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x51ada0
push esi
call dword [sym.imp.SHLWAPI.dll_UrlIsOpaqueW]
test eax, eax
jne 0x51ada0
push 3
push esi
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
jne 0x51ada0
push 0x38
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push eax
call fcn.0055c530
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], esi
push 2
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call fcn.00521ad0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00521b70
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51c140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop ebp
ret

Function at 0x51c150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x51c170
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x51c342
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x51c342
push edi
mov ecx, esi
call fcn.0051c810
mov edi, eax
cmp edi, 0xffffffff
je 0x51c339
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x51c325
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x51c31b
test eax, eax
je 0x51c31b
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x51c226
call ebx
cmp eax, 0x7a
jne 0x51c31b
push dword [ebp - 4]
call fcn.00558012
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x51c312
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51c312
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x51c312
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x51c298
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x51c31b
push dword [ebp - 4]
call fcn.00558012
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x51c2ff
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x51c2ff
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x51c2ff
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.0055801b
push dword [ebp - 8]
call fcn.0055801b
add esp, 8
test bl, bl
jne 0x51c325
jmp 0x51c31b
push ebx
call fcn.0055801b
push dword [ebp - 8]
call fcn.0055801b
add esp, 8
jmp 0x51c31b
push ebx
call fcn.0055801b
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x51c339
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51c370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab262
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.0051c170
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.0055c530
add esp, 0xc
cmp byte [0x63e4a8], bl
jne 0x51c431
xor eax, eax
mov dword [ebp - 0x230], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0051c700
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.00515eb0
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x51c438
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x51c484
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x51c484
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51c47a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51c50d
push edx
push ecx
call fcn.00558004
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x51c4ac
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.004481c0
add esp, 0x18
jmp 0x51c4ba
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.0051c700
cmp byte [ebp - 0x232], 0
je 0x51c4f0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3
Function at 0x51c810
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x51ca20
cmp dword [ebp - 0x248], 0xffffffff
je 0x51ca20
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x51c9e9
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.0055c530
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x51c960
jmp 0x51c8f0
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x51c93e
cmp edi, ebx
je 0x51c91f
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x51c93e
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.0042a490
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x51c8f0
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x51c9e9
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x51c9d4
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x51c9d4
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x51c9d4
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x51c9dd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x51c970
jmp 0x51c9e3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x51ca1c
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x51ca12
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51ca42
push ebx
push esi
call fcn.00558004
add esp, 8
mov eax, edi
jmp 0x51ca26
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3
Function at 0x51e540
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab4bd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x51e577
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51e6d8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51e591
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x51e6d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x51e6d8
push esi
lea ecx, [ebp - 0x28]
call fcn.0043f9e0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x51e681
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x51e601
mov edi, edi
cmp ecx, edx
je 0x51e681
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x51e5f0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x51e681
cmp ebx, ecx
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovb ecx, ebx
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0042e2d0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00441680
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x51e698
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51e675
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e704
push edx
push ecx
call fcn.00558004
add esp, 8
jmp 0x51e698
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x18], 0
je 0x51e6f8
lea eax, [ebp - 0x28]
push eax
call fcn.0051e540
add esp, 4
test eax, eax
je 0x51e6f8
cmp dword [esi + 0x14], 8
jb 0x51e6b6
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x51e6d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x51e6f8
lea ecx, [ebp - 0x28]
call fcn.0042aad0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.0042aad0
xor eax, eax
jmp 0x51e6dd
call fcn.00566a14
int3
Function at 0x51fa30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00521680
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x51fa73
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51fa73
test al, 0x10
je 0x51fa73
mov bl, 1
jmp 0x51fa75
xor bl, bl
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x51faab
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51faa1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51fabc
push edx
push ecx
call fcn.00558004
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3

Function at 0x520420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x520441
cmp dword [ecx + 0x14], 8
jb 0x52042e
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x520441
test al, 0x10
je 0x520441
mov al, 1
ret
xor al, al
ret
Function at 0x520e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab9cd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
jl 0x520ffd
mov esi, dword [ebp + 0xc]
jg 0x520ebd
test esi, esi
je 0x520ffd
cmp dword [ebx], 0xffffffff
je 0x520ffd
push esi
lea ecx, [ebp - 0x1c]
call fcn.00521080
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
sub ecx, edi
cmp esi, ecx
jae 0x520efc
lea ebx, [edi + esi]
jmp 0x520f2c
jbe 0x520f2f
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x520f1c
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0051d0f0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x520f2f
sub esi, ecx
push esi
push 0
push ebx
call fcn.0055c530
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp edi, ebx
je 0x520fba
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x520f85
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x521028
push eax
call fcn.00557fd4
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x52102d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x520f99
test ecx, ecx
je 0x520f97
push ecx
call fcn.00557fd4
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x520f99
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
push ecx
mov dword [esi + 8], eax
mov esi, dword [esi]
push edi
push esi
call fcn.0055bfb0
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x520fe7
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x520fdd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52102d
push ecx
push edi
call fcn.00558004
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0042a1b0
call fcn.00566a14
int3
Function at 0x523a60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
je 0x523a7d
cmp edi, 0x18
je 0x523a7d
cmp edi, 0x20
jne 0x523c54
shr edi, 2
mov ecx, 4
cmp edi, ecx
mov eax, edi
push esi
mov esi, dword [ebp + 0x10]
cmovb eax, ecx
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test esi, esi
je 0x523c53
mov dword [esi], 0x10
push ebx
mov dword [esi + 4], eax
xor ebx, ebx
add esi, 8
mov dword [ebp + 0x10], esi
test edi, edi
je 0x523aed
mov edx, dword [ebp + 8]
add edx, 2
mov edi, edi
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [esi + ebx*4], ecx
inc ebx
cmp ebx, edi
jl 0x523ac0
mov eax, dword [ebp - 8]
mov ebx, dword [esi + ebx*4 - 4]
mov ecx, edi
cmp edi, eax
jge 0x523bcf
mov dword [ebp + 0xc], 0
mov dword [ebp - 4], esi
mov eax, ecx
cdq
idiv edi
test edx, edx
jne 0x523b65
mov eax, dword [ebp + 0xc]
cdq
idiv edi
mov dl, byte [eax + 0x5d3890]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + str.cw]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx ebx, byte [ebx + str.cw]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp + 0x10]
jmp 0x523bb2
cmp edi, 6
jbe 0x523bb2
cmp edx, 4
jne 0x523bb2
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 0xc]
xor ebx, dword [eax]
add eax, 4
mov dword [esi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x523b05
xor edi, edi
sub ecx, 1
js 0x523c52
lea eax, [esi + eax*4]
mov dword [ebp + 0xc], eax
mov ebx, dword [esi + ecx*4]
cmp edi, 4
jl 0x523c42
cmp ecx, 4
jb 0x523c42
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x5d2c90]
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x5d3090]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x5d2890]
movzx eax, bl
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x5d3490]
mov eax, dword [ebp + 0xc]
jmp 0x523c44
mov edx, ebx
mov dword [eax], edx
inc edi
add eax, 4
sub ecx, 1
mov dword [ebp + 0xc], eax
jns 0x523be0
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x523f50
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x523f71
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x523f65
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x524028
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x523fa0
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x5d38f8]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x5d38f8]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x524014
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x5d38f8]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x524011
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x5d38f8]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x523fa0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret