joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e0180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
je 0x5e0321
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.005e26d0
add esp, 0xc
mov ecx, esi
push edi
push 0x685ae8
call fcn.0040a98a
or ebx, 0xffffffff
cmp eax, ebx
je 0x5e01d9
mov edi, 0x685ae8
jmp 0x5e02ed
push edi
push 0x685b0c
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5e01f4
mov edi, 0x685b0c
jmp 0x5e02ed
push edi
push 0x685b20
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5e020f
mov edi, 0x685b20
jmp 0x5e02ed
push edi
push 0x685b30
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5e024b
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5e0321
lea eax, [ebp - 0x210]
push eax
push 0x685b30
jmp 0x5e030e
push edi
push 0x685b44
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5e0287
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x5e0321
lea eax, [ebp - 0x210]
push eax
push 0x685b44
jmp 0x5e030e
push edi
push 0x685b58
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5e02db
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.005e26d0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x105
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
push 0x685b58
jmp 0x5e030e
push edi
mov edi, str._Systemroot_
mov ecx, esi
push edi
call fcn.0040a98a
cmp eax, ebx
je 0x5e0315
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.005e00a9
add esp, 0xc
test eax, eax
je 0x5e0321
lea eax, [ebp - 0x210]
push eax
push edi
mov ecx, esi
call fcn.0043c922
push esi
call fcn.005e0071
xor eax, eax
pop ecx
inc eax
jmp 0x5e0323
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b637
leave
ret

Function at 0x5e0411
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x5e049d
push 1
push edi
call fcn.005f0fa8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5e049d
push esi
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x5e0496
lea eax, [ebp - 0xc]
xor edi, edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5e0496
cmp dword [ebp - 4], edi
je 0x5e0496
push 0x10
call fcn.00431ddf
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x5e0492
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.005e03dd
mov edi, eax
mov eax, edi
jmp 0x5e049f
push esi
call fcn.005f0fb3
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5e0578
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
push esi
mov ax, word [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [ebx + 8]
push edi
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
mov edi, 0x4e4
mov ax, word [ebx + 8]
mov word [ebp - 0xe], ax
mov ax, word [ebx + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], di
call esi
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], di
push dword [ebp - 0x224]
movzx eax, word [ebp + ecx*2 - 0x12]
lea edi, [ecx + 2]
push eax
movzx eax, word [ebp + ecx*2 - 0x14]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00403e80
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x22c]
add esp, 0x1c
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5e0647
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x5e0661
mov ecx, edi
cmp edi, 8
jb 0x5e05e3
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b637
leave
ret 8
push esi
call fcn.005f0fb8
pop ecx
mov ecx, dword [ebp - 0x228]
push eax
push esi
call fcn.005e06dd
mov al, 1
jmp 0x5e0650

Function at 0x600439
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006002b8

Function at 0x606350
Capabilities:
Set environment variable

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

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x40f11b]
shl eax, 2
mov dword [0x40f11f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00404fb4
pop edx
call fcn.00404350
call fcn.00404fb8
push 0
call fcn.00405c64
pop ecx
push 0x40f0c4
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40f123], eax
push 0
jmp fcn.0040c848

Function at 0x404ca8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4060b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4060cf
mov eax, dword [0x410088]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4060dc
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x406109
je 0x40611b
sub ecx, 0x100
je 0x406129
sub ecx, 0x100
je 0x406130
sub ecx, 0x100
je 0x406122
jmp 0x406137
sub ecx, 0x600
je 0x406130
sub ecx, 0x100
je 0x40611b
jmp 0x406137
mov edi, 1
jmp 0x40613c
mov edi, 2
jmp 0x40613c
mov edi, 4
jmp 0x40613c
mov edi, 5
jmp 0x40613c
mov edi, 3
test byte [ebp + 0xd], 1
je 0x406163
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40faf4]
test al, 0x80
je 0x40615c
mov ebx, 0x80
jmp 0x406175
mov ebx, 1
jmp 0x406175
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406175
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x406187
je 0x406190
dec eax
je 0x406199
jmp 0x4061a2
mov dword [ebp - 4], 0x80000000
jmp 0x4061b1
mov dword [ebp - 4], 0x40000000
jmp 0x4061b1
mov dword [ebp - 4], 0xc0000000
jmp 0x4061b1
push 1
call fcn.004074c0
pop ecx
mov ebx, eax
jmp 0x4062a1
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4061cd
sub eax, 0x10
je 0x4061d4
sub eax, 0x10
je 0x4061dd
sub eax, 0x10
je 0x4061e6
jmp 0x4061e6
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4061ed
mov dword [ebp - 8], 1
jmp 0x4061ed
mov dword [ebp - 8], 2
jmp 0x4061ed
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x40625a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40624f
test byte [ebp + 0xd], 1
je 0x40624a
mov ebx, 0x50
jmp 0x40624f
mov ebx, 2
push ebx
call fcn.004074c0
pop ecx
mov ebx, eax
jmp 0x4062a1
mov edi, esi
push edi
call fcn.00406020
pop ecx
test eax, eax
je 0x40626e
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40627a
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00407204
add esp, 8
mov ebx, eax
inc eax
jne 0x4062a1
push 4
call fcn.004074c0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fc00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.NTR1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x42fc24
mov al, byte [esi]
xor al, 0x55
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42fc2d
push eax
mov al, 0x20
call fcn.0042fcd8
pop eax
jb 0x42fc18
mov eax, 1
push eax
mov al, 1
call fcn.0042fcd8
pop eax
adc eax, eax
add ebx, ebx
jae 0x42fc34
jne 0x42fc50
push eax
mov al, 0x20
call fcn.0042fcd8
pop eax
jae 0x42fc34
xor ecx, ecx
sub eax, 3
jb 0x42fc66
shl eax, 8
mov al, byte [esi]
xor al, 0x55
inc esi
xor eax, 0xffffffff
je 0x42fcd6
mov ebp, eax
push eax
mov al, 1
call fcn.0042fcd8
pop eax
adc ecx, ecx
push eax
mov al, 1
call fcn.0042fcd8
pop eax
adc ecx, ecx
jne 0x42fc9e
inc ecx
push eax
mov al, 1
call fcn.0042fcd8
pop eax
adc ecx, ecx
add ebx, ebx
jae 0x42fc7f
jne 0x42fc9b
push eax
mov al, 0x20
call fcn.0042fcd8
pop eax
jae 0x42fc7f
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42fcc0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42fcaf
jmp 0x42fc20
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42fcc0
add edi, ecx
jmp 0x42fc20
jmp 0x42fcee
pop esi
mov edi, esi
mov ecx, 0x40b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42fcf6
cmp byte [edi], 0xa
jne 0x42fcf6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42fcfb
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x42fd73
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x32ef8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32fac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42fd28
mov ecx, edi
jns 0x42fd57
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x32fb0]
or eax, eax
je 0x42fd6d
mov dword [ebx], eax
add ebx, 4
jmp 0x42fd45
call dword [esi + 0x32fb4]
popal
jmp 0x4087b5
Function at 0x10763058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x107631a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1076307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1076306a
add dl, dl
jne 0x10763089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107630dc
xor eax, eax
add dl, dl
jne 0x10763096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1076317d
add dl, dl
jne 0x107630a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107630b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107630bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107630c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x107630d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10763075
mov eax, 1
add dl, dl
jne 0x107630ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107630f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107630e1
sub eax, ebx
mov ebx, 1
jne 0x10763128
mov ecx, 1
add dl, dl
jne 0x1076310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10763119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10763105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10763075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1076313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1076314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10763136
cmp eax, 0x7d00
jae 0x1076316d
cmp eax, 0x500
jb 0x10763168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10763075
cmp eax, 0x7f
ja 0x10763170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10763075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1076319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10763075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4028c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x11
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
jne 0x4028d8
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x4028e6
xor eax, eax
jmp 0x4028ff
call fcn.004027c0
test eax, eax
je 0x4028e2
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.004027e0
mov eax, dword [ebp - 8]
mov ecx, eax
shr ecx, 1
and ecx, eax
test ecx, 0x8000000
je 0x4028d2
xor ecx, ecx
xgetbv
mov eax, ecx
shr eax, 2
shr ecx, 1
and eax, ecx
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402a30
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402a6f
push str.SetDefaultDllDirectories
push 0x9b86b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402a6f
push 0xc00
call eax
test eax, eax
jne 0x402b07
push 0x106
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402b07
cmp eax, 0x104
ja 0x402b07
cmp word [ebp + eax*2 - 0x2d2], 0x5c
je 0x402aa9
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d0], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402b06
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ebx, [ebp + eax*2 - 0x2d0]
mov cl, byte [esi]
inc esi
mov eax, ebx
test cl, cl
je 0x402ae0
movzx edx, cl
mov cl, byte [esi]
mov word [eax], dx
add eax, 2
inc esi
test cl, cl
jne 0x402ad0
xor ecx, ecx
push 8
push ecx
lea edx, [ebp - 0x2d0]
push edx
mov dword [eax], 0x64002e
mov dword [eax + 4], 0x6c006c
mov word [eax + 8], cx
call edi
cmp byte [esi], 0
jne 0x402ac7
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407410
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0x98
xor ebx, ebx
lea eax, [esi + 0x110]
push ebx
push eax
call fcn.0094ea60
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0xc
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x407470
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
mov edx, 0x100
mov word [eax], dx
mov edx, 0x101
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
xor edx, edx
lea eax, [ecx + 2]
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x4074b1
lea edx, [esi + 0x9fc]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
jmp 0x4074e2
xor ebx, ebx
mov edi, dword [ebp - 8]
jmp 0x4074f0
movzx eax, word [ebx + 0x9b8700]
mov ecx, dword [ebp - 4]
xor edx, edx
add ecx, 2
div ecx
mov edx, 0x4000
sub edx, eax
movzx ecx, dx
xor eax, eax
lea ecx, [ecx]
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x407510
add ebx, 2
add edi, 2
cmp ebx, 0x10
jb 0x4074f0
mov eax, dword [ebp - 4]
sub dword [ebp - 8], 0xffffff80
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x80
jb 0x4074e0
mov ecx, 0x50
lea edi, [esi + 0x3bc]
lea ebx, [ecx - 0x4c]
jmp 0x407550
mov eax, edi
mov edx, 0x10
jmp 0x407560
mov word [eax], cx
mov word [eax + 2], 0x403
add eax, ebx
dec edx
jne 0x407560
add ecx, 0x28
add edi, 0x40
cmp ecx, 0x438
jb 0x407550
pop edi
mov dword [esi + 0x3b8], 0x40070000
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408450
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [section..data]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
pop ebp
ret 4
Function at 0x408a40
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
cmp eax, 0x38
jbe 0x408a84
cmp eax, 0x40
je 0x408a76
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call fcn.0094ea60
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call fcn.0094ea60
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 0x20]
mov dword [ebp + 8], 4
mov edi, edi
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
bswap ebx
bswap eax
mov dword [edx], ebx
mov dword [edx + 4], eax
add edx, 8
add ecx, 8
dec dword [ebp + 8]
jne 0x408ad0
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x408c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.0094ebd1
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x408c8c
xor eax, eax
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408c9b
mov eax, 1
pop ebp
ret 0xc

Function at 0x40ba10
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x2002
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.0040eaf0
test al, al
jne 0x40ba3d
lea ecx, [ebp - 4]
call fcn.0040eb20
xor al, al
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x40ba5d
lea ecx, [ebp - 4]
call fcn.0040eb20
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push eax
call fcn.0094e580
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
lea ecx, [ebp - 4]
test eax, eax
je 0x40ba4f
mov dword [ebp - 4], 0
call fcn.0040eb20
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40c5e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret 8
Function at 0x40c600
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, 0xf0000000
je 0x40c612
and eax, 0x3fff
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret 8

Function at 0x40c6a0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040d020
cmp eax, 0xffffffff
je 0x40c6d0
test al, 0x10
jne 0x40c6d0
test al, 1
je 0x40c6d0
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40c6d0
xor al, al
pop esi
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
pop ebp
ret 4

Function at 0x40c710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9b5cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [eax]
push esi
xor ecx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov word [eax], cx
lea eax, [ebp - 0x244]
push eax
xor edx, edx
push 0x114
mov word [ebp - 0x244], dx
call edi
mov esi, eax
test esi, esi
je 0x40c81c
cmp esi, 0x114
jae 0x40c799
xor ecx, ecx
lea edx, [ebp - 0x244]
mov word [ebp - 0x1c], cx
mov ecx, dword [ebp + 8]
push edx
call fcn.00409ed0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
call fcn.00409cd0
mov dword [ebp - 4], 0
cmp esi, dword [ebp - 0x10]
jbe 0x40c7b6
push esi
lea ecx, [ebp - 0x18]
call fcn.00409a70
mov eax, dword [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
je 0x40c810
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov word [edx + esi*2], cx
cmp word [edx], cx
je 0x40c7d8
nop
inc ecx
cmp word [edx + ecx*2], 0
jne 0x40c7d0
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jne 0x40c810
dec esi
cmp esi, eax
jne 0x40c810
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
call fcn.00409f40
mov eax, dword [ebp - 0x18]
push eax
call fcn.0094eda1
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0094eda1
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x9b4558
push eax
mov dword fs:[0], esp
sub esp, 0x38
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c968
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c9a7
lea ecx, [ebp - 0x44]
call fcn.0040cce0
lea ecx, [ebp - 0x1c]
call fcn.00409cd0
push 0
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.0040d230
test al, al
jne 0x40c9b7
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0094eda1
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0x24]
shr ebx, 4
push ecx
and bl, 1
call fcn.0094eda1
mov ecx, dword [ebp - 0xc]
add esp, 4
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d034
or eax, eax
pop ebp
ret 4