joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x407ef8
nop
mov ecx, 0x62464d90
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
mov eax, section._RDATA
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2ba01375
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401c90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401cdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401cd4
test esi, esi
je 0x401cd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401cb0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ec0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401fe8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401f4e
cmp eax, 4
jne 0x401f70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f5e
cmp edx, 4
je 0x401f5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ec0
Function at 0x40aa93
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov edx, 0x6c
jmp 0x40aaa3
push ebx
mov ecx, 0xa3
mov dword [ebp - 0x24], ecx
push esi
mov eax, dword [ebp - 0x24]
jmp 0x40ab1c
push edi
or eax, 0x46
mov dword [ebp - 0x24], eax
xor esi, 0x40247300
jmp 0x40ab30
xor edx, 0xffffffd4
mov ebx, dword [0x42eab0]
cmp edx, 0xc4d0
jne 0x40ab54
add ebx, 0x58000000
cmp edx, ebx
jne 0x40ab54
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x24], edx
rdtsc
add edx, eax
jmp 0x40abc5
add ecx, ecx
test ecx, 0x8b
je 0x40abd2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], eax
mov ecx, dword [0x42eab0]
mov dword [ebp - 0x4c], ecx
add ecx, ecx
jmp 0x40ac03
mov esi, dword [ebp - 0x24]
cmp esi, 0xffffff80
jne 0x40ac96
jmp 0x40ac96
mov eax, dword [ebp - 0x24]
xor eax, ebx
jmp 0x40aca6
cmp ecx, 0x4534
jne 0x40acba
mov ebx, dword [ebp - 0x24]
sub ebx, 0x18a16000
mov dword [ebp - 0x24], ebx
add ebx, 0xffffffb8
mov dword [ebp - 0x4c], ebx
rdtsc
mov dword [ebp - 0x24], edx
mov esi, dword [ebp - 0x4c]
and esi, ebx
jmp 0x40accf
mov ebx, dword [ebp - 4]
mov ecx, ebx
xor ecx, 0x7c
test ebx, 0x6d
je 0x40ace5
add ecx, 0xffffff8f
mov dword [ebp - 0x24], ecx
sub eax, ebx
xor ecx, ebx
mov edi, dword [0x42eab0]
jmp 0x40acfd
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov esi, 0xb8
sub esi, 0xffffffec
mov dword [ebp - 0x24], esi
pop edi
sub ebx, edi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], esi
pop esi
mov dword [ebp - 0x4c], esi
pop ebx
mov dword [ebp - 0x24], ebx
leave
ret
Function at 0x40b17e
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0xd6
mov eax, dword [ebp - 4]
add eax, 0xd6
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xe1
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x40b314
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 0x1d
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x40b1fd
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0x2c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x2e]
cmp eax, edx
jle 0x40b206
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x40b2ff
mov edx, 1
test edx, edx
je 0x40b2ff
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [ebp - 0x25], cl
mov edx, dword [ebp - 4]
not edx
imul edx, edx, 0xcf
mov eax, dword [ebp - 8]
lea ecx, [eax + edx - 0xc3]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ebp - 0x19], al
movzx ecx, byte [ebp - 0x19]
add ecx, 0x1e
mov byte [ebp - 0x19], cl
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx + 0xcf]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
movzx ecx, byte [ebp - 0x19]
cmp ecx, 0x5f
jl 0x40b27b
movzx edx, byte [ebp - 0x19]
cmp edx, 0x78
jg 0x40b27b
movzx eax, byte [ebp - 0x19]
add eax, 0x20
mov byte [ebp - 0x19], al
movzx ecx, byte [ebp - 0x19]
sub ecx, 0x1e
mov byte [ebp - 0x19], cl
movzx edx, byte [ebp - 0x25]
add edx, 0x1e
mov byte [ebp - 0x25], dl
movzx eax, byte [ebp - 0x25]
cmp eax, 0x5f
jl 0x40b2ab
movzx ecx, byte [ebp - 0x25]
cmp ecx, 0x78
jg 0x40b2ab
movzx edx, byte [ebp - 0x25]
add edx, 0x20
mov byte [ebp - 0x25], dl
movzx eax, byte [ebp - 0x25]
sub eax, 0x1e
mov byte [ebp - 0x25], al
movzx ecx, byte [ebp - 0x19]
movzx edx, byte [ebp - 0x25]
cmp ecx, edx
je 0x40b2c3
jmp 0x40b2ff
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x40b2d3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x18]
jmp 0x40b316
mov dword [ebp - 0x2c], 0xbd
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*2 - 0x178]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx - 0xbc]
mov dword [ebp - 0x20], ecx
jmp 0x40b210
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x10]
jne 0x40b1cd
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40b321
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0x3d
cmp dword [ebp + 8], 0
je 0x40b4a6
cmp dword [ebp + 0xc], 0
je 0x40b4a6
cmp dword [ebp + 0xc], 0xffff
jbe 0x40b359
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40b4a6
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x7c], 0
je 0x40b4a6
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x78], 0
je 0x40b4a6
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x78]
cmp ecx, dword [eax + 0x50]
jae 0x40b4a6
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0xffff
ja 0x40b411
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0x10]
jb 0x40b40c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0xc], ecx
jae 0x40b40c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx*4]
jmp 0x40b4a8
jmp 0x40b4a6
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
jmp 0x40b42c
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jae 0x40b4a6
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x2c]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x28]
movsx edx, byte [ecx]
cmp eax, edx
jne 0x40b4a1
mov eax, dword [ebp - 0x2c]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40b478
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx*4]
jmp 0x40b4a8
mov dword [ebp - 0x30], 0xd7
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + eax - 0xd6]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax - 0xd6]
mov dword [ebp - 0x28], edx
jmp 0x40b449
jmp 0x40b423
xor eax, eax
mov esp, ebp
pop ebp
ret 8
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 0x9c86b8
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.0095f620
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 + 0x9c8700]
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.0095f620
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.0095f620
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.0095f791
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.0095f140
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 0x9c64a8
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.0095f961
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.0095f961
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 0x9c5048
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.0095f961
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.0095f961
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