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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x7d5c], 0
jne 0x40f749
xor eax, eax
jmp 0x40f87b
xor ecx, ecx
jne 0x40f749
mov edx, dword [ebp + 8]
cmp dword [edx + 0x7d58], 8
jne 0x40f75b
jmp 0x40f76f
push 0x7e
push 0x4b7800
push str.pb__sock_state__STATE_SENDING_DATA
call fcn.0040f4e0
add esp, 0xc
xor eax, eax
jne 0x40f749
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7d5c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7d50]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7d68]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x40f7cf
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00410490
add esp, 8
cmp eax, 0xb
jne 0x40f7c0
mov dword [ebp - 8], 1
jmp 0x40f7c7
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x40f84a
xor ecx, ecx
jne 0x40f7cf
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x7d5c]
ja 0x40f7e3
jmp 0x40f7fa
push 0x85
push 0x4b7848
push str._unsigned_rslt___pb__len
call fcn.0040f4e0
add esp, 0xc
xor ecx, ecx
jne 0x40f7cf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7d50]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7d50], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7d5c]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7d5c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x7d5c], 0
jne 0x40f83d
mov dword [ebp - 0xc], 0
jmp 0x40f844
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x40f878
mov ecx, dword [ebp + 8]
add ecx, 0x28
mov edx, dword [ebp + 8]
mov dword [edx + 0x7d50], ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x7d4c], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x7d58], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4100b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
jne 0x4100b6
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x7d58], 2
jne 0x4100c8
jmp 0x4100df
push 0xf7
push 0x4b7ee0
push str.STATE_READ__pb__sock_state
call fcn.0040f4e0
add esp, 0xc
xor edx, edx
jne 0x4100b6
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x7d4c]
test ecx, ecx
jne 0x4101cb
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7d5c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x7d54]
cmp dword [ebp - 8], edx
jbe 0x41011d
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x7d54]
mov dword [ebp - 8], ecx
xor edx, edx
jne 0x41011d
cmp dword [ebp - 8], 0
jbe 0x410129
jmp 0x410140
push 0xfe
push 0x4b7f20
push str.to_recv___0
call fcn.0040f4e0
add esp, 0xc
xor eax, eax
jne 0x41011d
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7d50]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7d68]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x410182
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410490
add esp, 8
jmp 0x410272
xor edx, edx
jne 0x410182
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x7d54]
cmp ecx, dword [ebp - 4]
jl 0x410197
jmp 0x4101ae
push 0x103
push str...lib_socketspbpal_sockets.c
push str.pb__left___have_read
call fcn.0040f4e0
add esp, 0xc
xor edx, edx
jne 0x410182
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x7d54]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov word [edx + 0x7d54], cx
jmp 0x410218
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x7d4c]
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 0x7d5c]
jb 0x4101ee
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7d5c]
mov dword [ebp - 0xc], ecx
jmp 0x4101fb
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x7d4c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x7d4c]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov word [ecx + 0x7d4c], ax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7d5c]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7d5c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7d50]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7d50], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x7d5c], 0
je 0x41025c
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x7d54]
test ecx, ecx
jne 0x41026d
mov edx, dword [ebp + 8]
mov dword [edx + 0x7d58], 0
xor eax, eax
jmp 0x410272
mov eax, 0xb
mov esp, ebp
pop ebp
ret
Function at 0x413850
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0x493e0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
jmp 0x41389c
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp - 0x108]
jae 0x4138c6
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + edx*4 - 0x104]
cmp ecx, dword [eax + 0x7d68]
jne 0x4138c4
jmp 0x4138c6
jmp 0x41388d
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp - 0x108]
jne 0x413902
cmp dword [ebp - 0x108], 0x40
jae 0x413902
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7d68]
mov dword [ebp + eax*4 - 0x104], edx
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
jne 0x413881
lea edx, [ebp - 0x118]
push edx
push 0
lea eax, [ebp - 0x108]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7d68]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x413961
mov eax, 1
test eax, eax
je 0x413954
push str.pbpal_connected__:_select___Error__n
call fcn.0040e5a0
add esp, 4
xor ecx, ecx
jne 0x41393e
mov eax, 7
jmp 0x4139a0
cmp dword [ebp - 0x110], 0
jle 0x413986
xor edx, edx
je 0x41397b
push str.pbpal_connected__:_select___event_n
call fcn.0040e5a0
add esp, 4
xor eax, eax
jne 0x41396a
mov eax, 0xa
jmp 0x4139a0
xor ecx, ecx
je 0x413997
push str.pbpal_connected__:_no_select___events_n
call fcn.0040e5a0
add esp, 4
xor edx, edx
jne 0x413986
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004099c0
mov esp, ebp
pop ebp
ret

Function at 0x416840
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
pop ebp
ret
Function at 0x4188f0
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
jne 0x4188f6
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xffffffff
je 0x418914
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0xffffffff
je 0x418914
mov dword [ebp - 4], 0
jmp 0x41891b
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x418923
jmp 0x418937
push 0x4c
push 0x4ba478
push str._______PSecHandle___phcreds____dwLower_____ULONG_PTR____INT_PTR___1__________PSecHandle___phcreds____dwUpper_____ULONG_PTR____INT_PTR___1______
call fcn.0040f4e0
add esp, 0xc
xor eax, eax
jne 0x4188f6
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 2
push str.NTLM
push 0
call sub.Secur32.dll_AcquireCredentialsHandleA
mov esp, ebp
pop ebp
ret

Function at 0x41dd20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.0041d900
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41dd4b
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.0040a810
call dword [ebp - 8]
jmp 0x41dd55
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x47af0c
Capabilities:
Set environment variable

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

Function at 0x47af17
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047a742
Function at 0x4012b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
shr esi, 2
mov eax, esi
shr eax, 1
add eax, 3
mov dword [ecx], eax
push edi
mov edi, 1
add ecx, 0x10
xor eax, eax
mov dword [ebp - 4], edi
test esi, esi
je 0x4012e4
mov ebx, dword [edx]
mov dword [ecx + eax*4], ebx
inc eax
add edx, 4
cmp eax, esi
jb 0x4012d7
mov eax, dword [ecx + esi*4 - 4]
lea edx, [esi + esi*2]
lea edx, [ecx + edx*4 + 0x70]
mov dword [ebp + 8], edx
xor edx, edx
test edx, edx
jne 0x40135e
mov edx, eax
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edx, 8
or edx, ebx
mov ebx, eax
shr ebx, 0x10
shr eax, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
and eax, 0xff
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, ebx
xor eax, edi
shl edx, 8
add edi, edi
or eax, edx
mov dword [ebp - 4], edi
test edi, 0x100
je 0x40135a
mov edi, 0x1b
mov dword [ebp - 4], edi
mov edx, esi
jmp 0x4013b6
cmp edx, 4
jne 0x4013b6
cmp esi, 6
jbe 0x4013b6
mov edi, eax
shr edi, 0x10
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, eax
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
shl edi, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
or edi, ebx
shl edi, 8
or eax, edi
mov edi, dword [ebp - 4]
xor eax, dword [ecx]
add ecx, 4
mov dword [ecx + esi*4 - 4], eax
dec edx
cmp ecx, dword [ebp + 8]
jne 0x4012f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402800
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x40281c
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
call fcn.004027c0
test eax, eax
je 0x402810
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.004027e0
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402840
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x40285c
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
call fcn.004027c0
test eax, eax
je 0x402850
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.004027e0
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402880
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x402896
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.004027c0
cmp eax, 7
jb 0x402890
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.004027e0
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
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 0x9d46b8
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 0x406dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
push edi
xor edi, edi
mov edx, 1
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edx
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
cmp eax, 0x20
jbe 0x406e2f
mov eax, 0x20
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, dword [esi + 0x20]
je 0x406ea1
lea ecx, [esi + 0xd0]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 0x20
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, edi
je 0x406e7d
mov dword [ecx], edi
jmp 0x406e60
mov ecx, dword [ecx - 8]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + 4]
mov ebx, dword [eax]
push eax
push ecx
call edx
mov ecx, dword [ebp + 8]
mov eax, ebx
cmp ebx, edi
jne 0x406e60
mov edx, 1
add ecx, 0x28
sub dword [ebp - 4], edx
mov dword [ebp + 8], ecx
jne 0x406e50
mov ecx, dword [esi + 0x5c]
cmp ecx, edi
je 0x406e9c
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x98], edx
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov eax, dword [esi + 0x58]
lea ecx, [eax + eax*4 + 0x19]
inc eax
lea ebx, [esi + ecx*8]
mov dword [esi + 0x58], eax
lea eax, [ebx + 0x20]
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [ebp + 8], ebx
call fcn.00408ed0
cmp eax, edi
jne 0x406ef9
lea edx, [ebx + 0x1c]
push edx
call fcn.00408ed0
cmp eax, edi
je 0x406f02
mov ebx, eax
cmp eax, edi
jne 0x406f3c
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x20]
push eax
call fcn.00408ca0
mov ebx, eax
cmp ebx, edi
jne 0x406f3e
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
call fcn.00408ca0
mov ebx, eax
cmp ebx, edi
jne 0x406f3e
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406aa0
mov ebx, eax
cmp ebx, edi
je 0x406f53
mov eax, esi
mov dword [esi + 0x44], edi
call fcn.00405f40
cmp ebx, edi
jle 0x406f4c
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x406f53
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x406f65
cmp dword [esi + 0x40], edi
jne 0x406f65
cmp dword [esi + 0x3c], edi
jne 0x406f65
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
neg eax
sbb eax, eax
pop edi
not eax
pop esi
and eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
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.0096afe0
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 + 0x9d4700]
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.0096afe0
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.0096afe0
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.0096b151
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.0096ab00
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 0x9d1e78
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.0096b321
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.0096b321
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