joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447b70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4838c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4a8068]
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 edi, ecx
cmp byte [edi], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
jne 0x447ce7
test ecx, ecx
je 0x447ce7
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x447ce7
mov eax, dword [edi + 4]
lea esi, [edi + 4]
cmp eax, dword [esi + 4]
jne 0x447c29
cmp ebx, 0x40
jb 0x447c05
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x447bfb
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp ebx, eax
jb 0x447c05
cmp dword [edx + ecx], 0x4550
mov byte [edi], 1
sete al
mov byte [edi + 1], al
jmp 0x447ce7
mov word [edi], 1
jmp 0x447ce7
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
push esi
push ebx
mov ecx, esi
call fcn.00425f80
push ebx
push dword [ebp - 0x24]
push dword [esi]
call fcn.004571e0
add esp, 0xc
jmp 0x447ce7
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push esi
call fcn.00422820
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1d]
sub esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov byte [ebp - 0x1d], 0
lea eax, [esi + ebx]
push eax
call fcn.00425f80
mov eax, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x24]
add eax, esi
push eax
call fcn.004571e0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov ecx, edi
sub eax, edx
push eax
push edx
call fcn.00447b70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x447ce7
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x447cc8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d05
push ecx
push edx
call fcn.0045552e
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
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.004554e8
mov esp, ebp
pop ebp
ret 8
call fcn.0045b9f2
int3
Function at 0x447d50
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x483912
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x447d94
call fcn.00447ee0
cmp byte [0x4aa42c], 0
jne 0x447da7
mov eax, 0x80000001
jmp 0x447ebb
mov eax, dword [esi]
test eax, eax
jne 0x447e12
push 8
call fcn.004554fe
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.004554fe
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.00457760
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x447e01
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x447eaa
call fcn.0041b520
test al, al
jne 0x447e4c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0041b6b0
test al, al
je 0x447eaa
mov ecx, dword [esi]
add ecx, 4
call fcn.0041b040
call fcn.0041b520
test al, al
je 0x447eaa
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.004053b0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00419c10
mov ecx, eax
call fcn.00419cd0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
test edi, edi
je 0x447eaa
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x447eaa
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x447eaa
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x447eb9
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004554e8
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x449ee0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x449f45
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x449f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x449f45
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004554e8
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004554e8
add esp, 8
ret 4

Function at 0x44a260
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.00457760
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44a2de
cmp dword [esp + 0x14], 6
jb 0x44a2de
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.0044a0d0
add esp, 0xc
test al, al
je 0x44a2de
cmp word [esi], 0
jne 0x44a336
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.0044a0d0
add esp, 0xc
test al, al
je 0x44a30a
cmp word [esi], 0
jne 0x44a336
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.0044a0d0
add esp, 0xc
test al, al
je 0x44a34b
cmp word [esi], 0
je 0x44a34b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004554e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.004554e8
mov esp, ebp
pop ebp
ret
Function at 0x44a920
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.00456390
push 0xffffffffffffffff
push 0x483f28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call fcn.00457760
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x44ab21
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x44ab21
push esi
call edi
cmp eax, 0xffa
jge 0x44ab21
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x498a8c
lea eax, [ebp + 0x630]
push eax
call esi
push 0x498284
lea ecx, [ebp - 0x2c]
call fcn.004053b0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00419c10
mov ecx, eax
call fcn.00419cd0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052d0
test esi, esi
je 0x44ab21
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x44ab21
lea ecx, [ebp]
call fcn.0044a360
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x44aa46
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x44aa54
inc edi
add esi, 0x210
cmp edi, 3
jl 0x44aa25
jmp 0x44aa76
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x44aa6e
add ebx, 0x10
test ebx, ebx
jne 0x44ab1d
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x44ab18
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call fcn.00457760
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44ab0e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x44ab18
inc esi
cmp esi, 2
jb 0x44aab0
mov eax, ebx
jmp 0x44ab23
mov ebx, 0x10
mov eax, ebx
jmp 0x44ab23
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.004554e8
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x44e1d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00457760
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x44e267
cmp dword [esp + 8], 6
jb 0x44e267
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004554e8
add esp, 0x118
ret

Function at 0x44e280
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484450
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4a8068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.004053b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00419c10
mov ecx, eax
call fcn.00419cd0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004053b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00419c10
mov ecx, eax
call fcn.00419cd0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004052d0
test ebx, ebx
je 0x44e395
test esi, esi
je 0x44e395
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b6c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046b544

Function at 0x47383d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004734fd

Function at 0x47a900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.00457760
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x47a94e
xor al, al
jmp 0x47a9a7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x47a980
cmp dword [ebp - 0x418], 0
je 0x47a97c
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x47a9a7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040bbc0
cmp dword [ebp - 0x418], 0
je 0x47a9a5
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004554e8
mov esp, ebp
pop ebp
ret

Function at 0x47a9c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00457760
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47aa27
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x47aa10
jne 0x47aa27
cmp dword [esp + 8], 0
jbe 0x47aa27
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004554e8
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004554e8
add esp, 0x118
ret

Function at 0x47aa40
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x4a89d0], 0
jne 0x47aac2
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00457760
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47aaa3
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a89c0
call fcn.004069e0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004554e8
add esp, 0x214
ret
Function at 0x47ab70
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x484778
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4aa3bc]
test eax, eax
jle 0x47abc1
inc eax
mov dword [0x4aa3bc], eax
mov al, 1
jmp 0x47acb3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0041a9c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041b5f0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041aa40
test bl, bl
je 0x47aca3
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x47aca3
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x47ac9c
inc dword [0x4aa3bc]
mov eax, dword [edi]
test eax, eax
je 0x47ac46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x4a89e8], 0
mov dword [ebp - 0x10], 0
jne 0x47ac9c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.00457760
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x4a89d8
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0040bbc0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47acb1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004554e8
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x4015f0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
nop
xor eax, eax
test cl, 1
je 0x40160b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x401616
bts eax, 6
shr ecx, 1
test cl, 1
je 0x401621
bts eax, 5
shr ecx, 1
test cl, 1
je 0x40162c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x401637
bts eax, 3
shr ecx, 1
test cl, 1
je 0x401642
bts eax, 2
shr ecx, 1
test cl, 1
je 0x40164d
bts eax, 1
test cl, 2
je 0x401656
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
test bl, 1
je 0x4016f2
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x4016e3
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x401600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401720
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x42cc0c
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.0040de07
add esp, 0xc
test eax, eax
je 0x401759
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.0040de4e
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x401785
call fcn.0040e065
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.0040e26e
add esp, 0x10
test eax, eax
je 0x4017db
push esi
nop word [eax + eax]
mov esi, ebx
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x4017a2
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x400
push 1
push ebx
call fcn.0040e26e
add esp, 0x10
test eax, eax
jne 0x4017a0
pop esi
push ebx
call fcn.0040e3a9
push dword [ebp + 0xc]
call fcn.0040e065
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405950
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4059ce
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40599d
push eax
call fcn.0040b0bf
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.0040b0c4
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x4059d9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 8], 0x10
jb 0x405a0e
mov ecx, dword [esi + 4]
mov edx, 0x42cd00
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x405a0e
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4059f2
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
call ebx
mov ebx, eax
mov dword [ebp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x4059ce
mov ecx, dword [esi + 8]
add ecx, 0x10
push ecx
call fcn.0040b0c4
movups xmm0, xmmword [0x42cd00]
mov dword [ebp + 8], eax
movups xmmword [eax], xmm0
lea ecx, [eax + 0x10]
push dword [esi + 8]
push dword [esi + 4]
push ecx
call fcn.0040d790
mov eax, dword [esi + 8]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x405aca
mov eax, 0xaaaaaaab
mul edi
mov eax, edi
shr edx, 4
lea ecx, [edx + edx*2]
shl ecx, 3
sub eax, ecx
mov ecx, dword [ebp + 8]
mov bl, byte [eax + str._mX]
xor bl, byte [ecx + edi + 0x10]
mov byte [ecx + edi + 0x10], bl
lea ecx, [esi + 0x12c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a90
sub ecx, edx
mov eax, edi
xor edx, edx
div ecx
mov ecx, 0x18
movsx eax, byte [edx + esi + 0x12c]
xor edx, edx
div ecx
mov al, byte [edx + str._mX]
mov edx, dword [ebp + 8]
add al, bl
mov byte [edx + edi + 0x10], al
inc edi
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x405a60
mov ebx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
add eax, 0x10
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jne 0x405afc
call eax
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405b10
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x308]
push 0x42ccb4
push eax
mov dword [ebp - 0x450], ecx
call esi
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405cac
nop
test byte [ebp - 0x448], 0x10
lea eax, [ebp - 0x41c]
jne 0x405bdc
push eax
push edi
lea eax, [ebp - 0x208]
push str._s_s
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x44c]
lea eax, [ebp - 0x108]
push str._s_s
push eax
call esi
lea eax, [ebp - 0x108]
push eax
push str._s_encrypted__n
call fcn.00401ad0
mov ecx, dword [ebp - 0x450]
lea eax, [ebp - 0x108]
add esp, 0x28
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00405950
jmp 0x405c96
mov ecx, 0x42ccd0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405c01
test dl, dl
je 0x405bfd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405c01
add eax, 2
add ecx, 2
test dl, dl
jne 0x405be1
xor eax, eax
jmp 0x405c06
sbb eax, eax
or eax, 1
test eax, eax
je 0x405c96
mov eax, 0x42ccd4
lea ecx, [ebp - 0x41c]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405c40
test dl, dl
je 0x405c3c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405c40
add ecx, 2
add eax, 2
test dl, dl
jne 0x405c20
xor eax, eax
jmp 0x405c45
sbb eax, eax
or eax, 1
test eax, eax
je 0x405c96
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x108]
push str._s_s_
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x44c]
lea eax, [ebp - 0x208]
push str._s_s_
push eax
call esi
mov ecx, dword [ebp - 0x450]
lea eax, [ebp - 0x208]
add esp, 0x20
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00405b10
lea eax, [ebp - 0x448]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405b70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adff
mov esp, ebp
pop ebp
ret 8