joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045d80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10045dc8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1003bde0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.10045630
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

Function at 0x10045f00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x134]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x1004605d
push edi
lea ecx, [eax + 0x1cb4]
lea edi, [eax + 0x1eb4]
mov dword [edi], ecx
cmp ecx, edi
jae 0x10045f50
mov byte [ecx], 0xff
inc ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x10045f50
mov byte [ecx], 0xfa
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x10045f50
mov byte [ecx], 0x1f
inc dword [edi]
movzx eax, word [eax + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 8]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10045fbc
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10045fbc
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10045fbc
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10045fbc
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10045fbc
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10045fbc
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [ebp - 4]
mov dword [esi + 0x1eb8], eax
lea ecx, [esi + 0x1cb4]
sub eax, ecx
mov dword [edi], ecx
sub eax, 2
push eax
lea eax, [esi + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.10045730
add esp, 0x10
lea eax, [esi + 0x1cb4]
push 0
push 3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x1004601a
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1003bde0
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.10045de0
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x1004605c
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1003bde0
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047110
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x310]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
lea esi, [edi + 0x148]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x10047188
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.100540f0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x100471b1
push str.Received_too_short_packet
push ebx
call fcn.1003bde0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.10046d20
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
dec eax
cmp eax, 5
ja case.0x100471ca.1
jmp dword [eax*4 + 0x100472e4]
cmp edx, 4
jle case.0x100471ca.4
push esi
call fcn.10046d00
movzx ecx, word [edi + 0x144]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x100471ca.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.1003bd30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10047223
push 5
push edi
call fcn.10047a40
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.100397c0
jmp 0x100472b8
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 4], eax
lea eax, [edi + 0x148]
push eax
call fcn.10046d00
push esi
push dword [ebp - 4]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.10047b70
add esp, 0xc
cmp eax, esi
jae case.0x100471ca.4
push dword [ebp - 4]
push str.TFTP_error:__s
push ebx
call fcn.1003be80
jmp 0x100472b8
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.10046ee0
add esp, 0xc
test eax, eax
je case.0x100471ca.4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x10072758
push ebx
call fcn.1003bde0
add esp, 0xc
push ebx
call fcn.10039ad0
add esp, 4
test eax, eax
je 0x100471a8
push 5
push edi
call fcn.10047a40
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047a40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x10047a50
jmp dword [edx*4 + 0x10047aa4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10047580
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10047300
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10047ca0
push str.TFTP_finished
push 0x10072758
push ecx
call fcn.1003be80
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x10072758
push ecx
call fcn.1003bde0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x10050e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.10050e70
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.100633f9

Function at 0x1006725b
Capabilities:
Read file on windows

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

Function at 0x1006b38d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006b00a
Function at 0x50014e6
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test edx, edx
je 0x5001512
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x5016448]
xor eax, esi
inc ecx
dec edx
jne 0x50014f8
pop edi
pop esi
ret 0xc
Function at 0x500182f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x5001849
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x500620c], 0
jne 0x500189a
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.05001327
and byte [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push 0x80
push eax
push 0x20000003
push 0
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x80]
push 0x10010
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x5016440]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.0500138b
test esi, esi
jne 0x50018a4
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x5001b4f
Capabilities:
Create directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, edi
cmp byte [edi], 0
je 0x5001b85
cmp byte [esi], 0x5c
jne 0x5001b7f
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5001b7c
push edi
push 0x50010c4
call fcn.05001b2a
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x5001b5c
pop edi
pop esi
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x104]
mov eax, ecx
lea ecx, [eax + 1]
lea eax, [ebp + eax - 0x104]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [eax - 1], 0x5c
pop edi
pop esi
je 0x5001bd3
mov byte [eax], 0x5c
and byte [eax + 1], 0
lea eax, [ebp - 0x104]
push eax
call fcn.05001b4f
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5001bfa
test al, 0x10
je 0x5001bfa
xor eax, eax
inc eax
jmp 0x5001bfc
xor eax, eax
leave
ret 4
Function at 0x5003850
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x5003897
cmp edx, 0x10
jl 0x5003883
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x5003870
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x5003897
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x500388f
and edx, 3
cmp edx, 3
jne 0x50038ab
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x50038b0
cmp edx, 2
jne 0x50038bc
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x50038c1
cmp edx, 1
jne 0x50038c7
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4011ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x4011fc
test dl, 3
je 0x4011f9
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub ecx, 1
jne 0x4011e0
mov dword [ebp - 4], edx
lea eax, [edx + ecx]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp ecx, 0xc
jb 0x4012de
sub eax, 0xc
mov dword [ebp + 8], eax
xor ebx, dword [edx]
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [edi + ecx*4 + 0x1800]
xor esi, dword [edi + eax*4 + 0x1400]
mov eax, edx
shr eax, 0x18
xor esi, dword [edi + eax*4 + 0x1000]
movzx eax, dl
mov edx, dword [ebp - 4]
xor esi, dword [edi + eax*4 + 0x1c00]
mov eax, ebx
mov edx, dword [edx + 8]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edi + ecx*4 + 0x2800]
xor ecx, dword [edi + eax*4 + 0x2400]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + eax*4 + 0x2000]
movzx eax, bl
xor ecx, dword [edi + eax*4 + 0x2c00]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
mov edx, dword [ebp - 4]
xor ecx, esi
add edx, 0xc
mov ebx, ecx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 8]
jbe 0x401213
mov esi, dword [ebp + 0xc]
jmp 0x4012de
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
cmp edx, esi
jb 0x4012cf
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x401892
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x4018c9
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4018bc
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401937
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401984
cmp ebx, 4
jne 0x401987
cmp edi, 6
jbe 0x401987
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x4018d8
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402929
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402958
call fcn.004028d1
push 7
pop edx
cmp eax, edx
jb 0x402958
lea ecx, [ebp - 0x10]
call fcn.004028b9
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
leave
ret
xor eax, eax
leave
ret

Function at 0x4029c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4029e2
lea eax, [ebp - 0x10]
push eax
call fcn.004029a2
test eax, eax
je 0x4029e2
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret
Function at 0x402a78
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x5f7268]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402ac1
push str.SetDefaultDllDirectories
push 0x552590
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402ac1
push 0xc00
call eax
test eax, eax
jne 0x402b5d
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402b5d
cmp eax, 0x104
ja 0x402b5d
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402af8
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x402b5c
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x402b19
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402b16
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f016
leave
ret
Function at 0x405ec8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x405f72
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x405f53
push edi
call fcn.00405e9d
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x405f46
cmp dword [esi + 0x5c], ebx
je 0x405f6d
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00406d27
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00405e77
mov edi, eax
test edi, edi
jne 0x405fee
lea eax, [ebx + 0x20]
push eax
call fcn.00408bf8
mov edi, eax
test edi, edi
jne 0x405fee
lea eax, [ebx + 0x1c]
push eax
call fcn.00408bf8
mov edi, eax
test edi, edi
jne 0x405fee
push ebx
call fcn.00406c9e
mov edi, eax
test edi, edi
je 0x405fee
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.00405df9
add ebx, 0x28
sub esi, 1
jne 0x405fdd
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x406002
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x406016
cmp dword [esi + 0x40], edx
jne 0x406016
cmp dword [esi + 0x3c], edx
jne 0x406016
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x4086d3
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
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 0x408d05
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.005445b3
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x408d31
call fcn.00408c17
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40af4f
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 4]
push 0x2002
mov dword [ebp - 4], ebx
call fcn.0040daf8
test al, al
je 0x40afa8
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40afa7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00540e50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40afa7
mov dword [ebp - 4], ebx
mov bl, 1
pop esi
lea ecx, [ebp - 4]
call fcn.0040db1b
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x40afb7
Capabilities:
Open clipboard

Disassembly:
push 0x18
mov eax, 0x54eb82
call fcn.0053f2d9
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp + 0xb], al
test al, al
je 0x40b078
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40b075
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040af4f
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040a508
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
inc ecx
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], al
push eax
call fcn.0040af4f
push 1
pop edi
push edi
test al, al
movzx ebx, bl
push esi
lea eax, [ebp - 0x24]
cmovne ebx, edi
push eax
call fcn.0040a508
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00409412
push dword [ebp - 0x24]
call fcn.0053f294
mov eax, dword [ebp - 0x14]
pop ecx
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040af4f
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.0053f294
pop ecx
jmp 0x40b07e
mov al, byte [ebp + 0xb]
xor bl, bl
test al, al
je 0x40b084
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.0053f2a7
ret 8
Function at 0x40bc75
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x54ec7a
call fcn.0053f2d9
cmp byte [0x5fdeb9], 0
mov edi, dword [ebp + 8]
jne 0x40bcb1
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040a2d8
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0053f294
pop ecx
test esi, esi
jmp 0x40bcbd
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bcc3
mov al, 1
jmp 0x40bd09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40bcd4
xor al, al
jmp 0x40bd09
lea ecx, [ebp - 0x50]
call fcn.0040c180
lea ecx, [ebp - 0x28]
call fcn.004093ee
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040c3ea
test al, al
je 0x40bcfe
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0053f294
pop ecx
mov al, bl
call fcn.0053f2a7
ret 4

Function at 0x40bd11
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5fdeb9], 0
jne 0x40bd47
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a2d8
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0053f294
pop ecx
test esi, esi
pop esi
jmp 0x40bd54
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bd5a
mov al, 1
jmp 0x40bd5c
xor al, al
leave
ret 4

Function at 0x40bd60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040ca1c
cmp eax, 0xffffffff
je 0x40bd8d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40bd8d
and eax, 0xfffffffe
push eax
push esi
call fcn.0040c0ce
test al, al
je 0x40bdc5
cmp byte [0x5fdeb9], 0
push esi
jne 0x40bdb7
lea eax, [ebp - 0xc]
push eax
call fcn.0040a2d8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0053f294
pop ecx
test esi, esi
jmp 0x40bdbf
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40bdc5
mov al, 1
jmp 0x40bdc7
xor al, al
pop esi
leave
ret 4

Function at 0x40c023
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5fdeb9], 0
jne 0x40c057
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a2d8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0053f294
pop ecx
test esi, esi
pop esi
jmp 0x40c062
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40c068
mov al, 1
jmp 0x40c06a
xor al, al
leave
ret 4
Function at 0x40c0ce
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5fdeb9], 0
jne 0x40c105
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a2d8
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0053f294
pop ecx
test esi, esi
pop esi
jmp 0x40c113
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40c119
mov al, 1
jmp 0x40c11b
xor al, al
leave
ret 8

Function at 0x40ca1c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5fdeb9], 0
jne 0x40ca50
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a2d8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0053f294
pop ecx
mov eax, esi
pop esi
jmp 0x40ca63
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4