joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012540
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x938
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x24]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10012900
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x10012577
xor eax, eax
jmp 0x100126ec
cmp dword [ebp + 0x18], 0
je 0x100125f9
mov dword [ebp - 0x818], 0x80
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x898]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x100125b9
push str.getsockname___error
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 8
jmp 0x100125f9
push 0xa
push 0
push 0
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x818]
push eax
lea ecx, [ebp - 0x898]
push ecx
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100125f9
mov edx, dword [ebp - 4]
push edx
push str.getnameinfo___failed_:__d
mov eax, dword [ebp - 4]
push eax
call main
add esp, 0xc
push 0x9c
push 0
lea ecx, [ebp - 0x938]
push ecx
call fcn.10019d20
add esp, 0xc
mov dword [ebp - 0x938], 0x9c
lea edx, [ebp - 0x938]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x930]
push eax
mov ecx, dword [ebp - 0x934]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.GET__s_HTTP__s_r_nHost:__s:_d_r_nConnection:_Close_r_nUser_Agent:_Microsoft_Windows__u._u_UPnP_1.0_r_n_r_n
push 0x800
lea eax, [ebp - 0x810]
push eax
call fcn.10019db0
add esp, 0x24
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jge 0x100126c6
push 0
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + eax - 0x810]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x100126bb
push str.send___error
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100126ec
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x10012668
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10011910
add esp, 8
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x814]
mov esp, ebp
pop ebp
ret
Function at 0x10012850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
add eax, dword [ebp + 0x10]
push eax
call fcn.10019ae0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10012879
xor eax, eax
jmp 0x100128f5
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0x18]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x100128e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send
push 0x1004d550
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.10019b10
add esp, 8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10012b80
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x118], 0
jmp 0x10012bae
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp - 0x108]
jae 0x10012bd2
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp + 8]
jne 0x10012bd0
jmp 0x10012bd2
jmp 0x10012b9f
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp - 0x108]
jne 0x10012c08
cmp dword [ebp - 0x108], 0x40
jae 0x10012c08
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x10012b93
mov eax, dword [ebp + 0x14]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x14]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0x114]
push edx
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jge 0x10012c84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.select
push 0x1004d6dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
or eax, 0xffffffff
jmp 0x10012cda
cmp dword [ebp - 0x10c], 0
jne 0x10012c91
xor eax, eax
jmp 0x10012cda
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jge 0x10012cd4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv
push str.miniupnpc:_Socket_error:__s___d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret

Function at 0x10015176
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
test esi, esi
je 0x100151a1
mov edx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [edi + esi]
sub edx, edi
dec ecx
movzx edi, byte [edx + ecx]
movzx ebx, byte [ecx]
xor edi, ebx
or eax, edi
dec esi
jne 0x10015190
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x100152dd
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0x40
jbe 0x10015316
push str.cryptodigesthmac.c
push str.psAssert__s
call fcn.100152dc
push 0xb6
push str.:_d
call fcn.100152dc
push str.keyLen___64
call fcn.100151a4
add esp, 0x14
mov esi, dword [ebp + 8]
test edi, edi
je 0x10015332
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov edx, edi
mov bl, byte [ecx + eax]
xor bl, 0x36
mov byte [eax], bl
inc eax
dec edx
jne 0x10015326
cmp edi, 0x40
jae 0x1001534b
push 0x40
pop ecx
sub ecx, edi
push ecx
lea eax, [esi + edi]
push 0x36
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ebx, [esi + 0x80]
push ebx
call fcn.10016eca
push 0x40
push esi
push ebx
call fcn.10016f31
add esp, 0x10
test edi, edi
je 0x1001537c
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov edx, edi
mov bl, byte [eax + ecx]
xor bl, 0x5c
mov byte [eax], bl
inc eax
dec edx
jne 0x10015370
cmp edi, 0x40
jge 0x10015394
push 0x40
pop eax
sub eax, edi
push eax
add esi, edi
push 0x5c
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10015472
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0x30
push ebx
push esi
push edi
push 0x40
pop ebx
jne 0x10015484
add ebx, 0x40
mov edi, dword [ebp + 0x10]
cmp edi, ebx
jbe 0x100154b6
push str.cryptodigesthmac.c
push str.psAssert__s
call fcn.100152dc
push 0x121
push str.:_d
call fcn.100152dc
push str.keyLen____uint32_padLen
call fcn.100151a4
add esp, 0x14
mov esi, dword [ebp + 8]
test edi, edi
je 0x100154d5
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov dword [ebp + 0x10], edi
mov dl, byte [ecx + eax]
xor dl, 0x36
mov byte [eax], dl
inc eax
dec dword [ebp + 0x10]
jne 0x100154c7
cmp edi, ebx
jge 0x100154ec
mov ecx, ebx
sub ecx, edi
push ecx
lea eax, [esi + edi]
push 0x36
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x14], 0x30
lea eax, [esi + 0x80]
push eax
jne 0x1001550e
call fcn.100176ac
push ebx
lea eax, [esi + 0x80]
push esi
push eax
call fcn.1001775d
jmp 0x10015521
call fcn.1001795c
push ebx
lea eax, [esi + 0x80]
push esi
push eax
call fcn.100179d8
add esp, 0x10
test edi, edi
je 0x10015540
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov dword [ebp + 0x14], edi
mov dl, byte [eax + ecx]
xor dl, 0x5c
mov byte [eax], dl
inc eax
dec dword [ebp + 0x14]
jne 0x10015532
cmp edi, ebx
jge 0x10015554
sub ebx, edi
push ebx
add esi, edi
push 0x5c
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100165b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 0xc], ebx
je 0x1001666a
cmp dword [ebp + 0x10], ebx
je 0x1001666a
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x1001666a
test byte [ebp + 0x14], 7
jne 0x1001666a
mov eax, dword [esi]
cmp eax, ebx
jl 0x10016666
cmp eax, 0x10
jg 0x10016666
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x10016655
push edi
xor edi, edi
cmp eax, ebx
jle 0x10016619
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
sub edx, ecx
lea ecx, [ebp + edi - 0x1c]
mov bl, byte [edx + ecx]
xor bl, byte [esi + edi + 4]
inc edi
mov byte [ecx], bl
cmp edi, eax
jl 0x10016605
xor ebx, ebx
lea eax, [esi + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.10016579
add esp, 0xc
xor eax, eax
cmp dword [esi], ebx
jle 0x10016641
mov ecx, dword [ebp + 0x10]
mov cl, byte [eax + ecx]
mov byte [esi + eax + 4], cl
inc eax
cmp eax, dword [esi]
jl 0x10016632
mov eax, dword [esi]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
cmp ecx, dword [ebp + 0x14]
jb 0x100165f7
pop edi
push 0x18
pop ecx
lea eax, [ebp - 0x1c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001665b
mov eax, dword [ebp + 0x14]
jmp 0x1001666d
push 0xfffffffffffffff7
jmp 0x1001666c
push 0xfffffffffffffffa
pop eax
pop esi
pop ebx
leave
ret

Function at 0x10016671
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x10016744
cmp dword [ebp + 0xc], edi
je 0x10016744
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x10016744
test byte [ebp + 0x14], 7
jne 0x10016744
mov eax, dword [esi]
cmp eax, edi
jl 0x10016740
cmp eax, 0x10
jg 0x10016740
mov dword [ebp + 0x10], edi
cmp dword [ebp + 0x14], edi
jbe 0x10016721
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call fcn.10016595
add esp, 0xc
xor eax, eax
cmp dword [esi], edi
jle 0x100166fc
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
sub edi, ecx
lea ecx, [ebp + eax - 0x18]
mov dl, byte [edi + ecx]
mov byte [ecx], dl
mov cl, byte [esi + eax + 4]
xor cl, byte [ebp + eax - 0x30]
mov byte [eax + ebx], cl
inc eax
cmp eax, dword [esi]
jl 0x100166e1
xor edi, edi
xor eax, eax
cmp dword [esi], edi
jle 0x1001670f
mov cl, byte [ebp + eax - 0x18]
mov byte [esi + eax + 4], cl
inc eax
cmp eax, dword [esi]
jl 0x10016702
mov eax, dword [esi]
add dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
add ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
jb 0x100166c0
push 0x18
pop ecx
lea eax, [ebp - 0x30]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10016727
push 0x18
pop ecx
lea eax, [ebp - 0x18]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10016734
mov eax, dword [ebp + 0x14]
jmp 0x10016747
push 0xfffffffffffffff7
jmp 0x10016746
push 0xfffffffffffffffa
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10016ce3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
test esi, esi
jne 0x10016d18
push str.cryptodigest_sha1.c
push str.psAssert__s
call fcn.100152dc
push 0x38
push str.:_d
call fcn.100152dc
push str.md___NULL
call fcn.100151a4
add esp, 0x14
push ebx
xor ecx, ecx
lea eax, [esi + 0x21]
push edi
movzx edx, byte [eax - 1]
movzx edi, byte [eax]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 1]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 2]
shl edx, 8
or edx, edi
mov dword [ebp + ecx*4 - 0x150], edx
inc ecx
add eax, 4
cmp ecx, 0x10
jb 0x10016d1f
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push 0x40
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x148]
pop edi
mov ebx, dword [eax + 0x2c]
xor ebx, dword [eax + 0x18]
xor ebx, dword [eax - 8]
xor ebx, dword [eax]
add eax, 4
dec edi
rol ebx, 1
mov dword [eax + 0x34], ebx
jne 0x10016d71
xor eax, eax
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
xor ebx, ecx
and ebx, edx
mov edx, dword [ebp - 4]
xor ebx, edx
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x150]
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
lea edi, [ebx + edi + 0x5a827999]
rol ecx, 0x1e
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
cmp eax, 0x14
jb 0x10016d89
cmp eax, 0x28
jae 0x10016e42
mov ebx, dword [ebp - 4]
xor ebx, ecx
xor ebx, edx
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x150]
mov ebx, dword [ebp - 8]
lea edi, [ebx + edi + 0x6ed9eba1]
mov ebx, dword [ebp - 4]
rol edx, 0x1e
inc eax
mov dword [ebp - 4], ecx
mov ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
cmp eax, 0x28
jb 0x10016dce
jmp 0x10016e3f
mov ebx, ecx
or ebx, edx
and ebx, dword [ebp - 4]
mov edx, ecx
and edx, dword [ebp - 0x10]
rol edi, 5
or ebx, edx
add ebx, dword [ebp + eax*4 - 0x150]
mov edx, dword [ebp - 4]
add ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
lea edi, [ebx + edi - 0x70e44324]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
inc eax
rol ecx, 0x1e
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
cmp eax, 0x3c
jb 0x10016e07
jmp 0x10016e7d
mov ebx, dword [ebp - 4]
xor ebx, ecx
xor ebx, edx
add ebx, dword [ebp + eax*4 - 0x150]
mov edx, dword [ebp - 4]
add ebx, dword [ebp - 8]
rol edi, 5
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
lea edi, [ebx + edi - 0x359d3e2a]
inc eax
rol ecx, 0x1e
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
cmp eax, 0x50
jb 0x10016e49
mov eax, dword [esi + 8]
add eax, edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
add eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 4]
pop edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
add eax, dword [ebp - 8]
pop ebx
mov dword [esi + 0x18], eax
leave
ret
Function at 0x10016eca
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10016f00
push str.cryptodigest_sha1.c
push str.psAssert__s
call fcn.100152dc
push 0xa8
push str.:_d
call fcn.100152dc
push str.md___NULL
call fcn.100151a4
add esp, 0x14
and dword [esi + 0x1c], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
pop esi
pop ebp
ret
Function at 0x100176ac
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100176df
push str.cryptodigest_sha384.c
push str.psAssert__s
call fcn.100152dc
push 0x29
push str.:_d
call fcn.100152dc
push str.md___NULL
call fcn.100151a4
add esp, 0x14
and dword [esi + 0x48], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0xc1059ed8
mov dword [esi + 0xc], 0xcbbb9d5d
mov dword [esi + 0x10], 0x367cd507
mov dword [esi + 0x14], 0x629a292a
mov dword [esi + 0x18], 0x3070dd17
mov dword [esi + 0x1c], 0x9159015a
mov dword [esi + 0x20], 0xf70e5939
mov dword [esi + 0x24], 0x152fecd8
mov dword [esi + 0x28], 0xffc00b31
mov dword [esi + 0x2c], 0x67332667
mov dword [esi + 0x30], 0x68581511
mov dword [esi + 0x34], 0x8eb44a87
mov dword [esi + 0x38], 0x64f98fa7
mov dword [esi + 0x3c], 0xdb0c2e0d
mov dword [esi + 0x40], 0xbefa4fa4
mov dword [esi + 0x44], 0x47b5481d
pop esi
pop ebp
ret

Function at 0x100177fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
push edi
lea esi, [ecx + 8]
push 8
pop ecx
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], esi
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
add eax, 2
movzx edx, byte [eax - 2]
movzx esi, byte [eax - 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
mov dword [ebp + ecx*4 - 0x124], edx
inc ecx
add eax, 4
cmp ecx, 0x10
jl 0x1001781a
push 0x30
pop esi
lea eax, [ebp - 0xec]
push ebx
mov edx, dword [eax]
mov ecx, dword [eax - 0x34]
mov edi, edx
ror edi, 0x13
mov ebx, edx
shr edx, 0xa
ror ebx, 0x11
xor edi, ebx
xor edi, edx
mov edx, ecx
ror edx, 0x12
mov ebx, ecx
ror ebx, 7
xor edx, ebx
shr ecx, 3
xor edx, ecx
add edi, edx
add edi, dword [eax - 0x38]
add eax, 4
add edi, dword [eax - 0x18]
dec esi
mov dword [eax + 4], edi
jne 0x10017852
mov esi, dword [ebp - 0x10]
xor edx, edx
pop ebx
mov eax, esi
ror eax, 0x19
mov ecx, esi
ror ecx, 0xb
xor eax, ecx
mov ecx, esi
ror ecx, 6
xor eax, ecx
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 8]
add edx, 4
and ecx, esi
xor ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x20]
add eax, ecx
add eax, dword [edx + 0x1003ccdc]
mov edi, esi
add eax, dword [ebp + edx - 0x128]
mov ecx, esi
add eax, dword [ebp - 4]
add dword [ebp - 0x14], eax
ror edi, 0x16
ror ecx, 0xd
xor edi, ecx
mov ecx, esi
ror ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
add edi, eax
mov eax, dword [ebp - 8]
or ecx, esi
and ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
and esi, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
or ecx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add ecx, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
cmp edx, 0x100
jl 0x10017890
mov eax, dword [ebp - 0x24]
pop edi
xor ecx, ecx
pop esi
mov edx, dword [ebp + ecx*4 - 0x20]
add dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 8
jl 0x10017930
leave
ret
Function at 0x1001795c
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10017992
push str.cryptodigest_sha256.c
push str.psAssert__s
call fcn.100152dc
push 0xe1
push str.:_d
call fcn.100152dc
push str.md___NULL
call fcn.100151a4
add esp, 0x14
and dword [esi + 0x28], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0x6a09e667
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0x3c6ef372
mov dword [esi + 0x14], 0xa54ff53a
mov dword [esi + 0x18], 0x510e527f
mov dword [esi + 0x1c], 0x9b05688c
mov dword [esi + 0x20], 0x1f83d9ab
mov dword [esi + 0x24], 0x5be0cd19
pop esi
pop ebp
ret

Function at 0x10017f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x10017f81
mov eax, 1
jmp 0x10017fd3
cmp dword [ebp + 0x10], 0
jae 0x10017f8b
xor eax, eax
jmp 0x10017fd3
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10017fbd
xor eax, eax
jmp 0x10017fd3
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jb 0x10017f8b
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10017fe0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x108], 0xffffffff
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx ecx, word [ebp - 0x10c]
push ecx
movzx edx, word [ebp - 0x10e]
push edx
movzx eax, word [ebp - 0x110]
push eax
push str.__02u:_02u:_02u____u____u_
push 0xff
lea ecx, [ebp - 0x100]
push ecx
call fcn.10019db0
add esp, 0x20
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0xffffffff
jne 0x1001809b
push str.OutputString2__:_CreateFileA___failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x1001817f
push 2
push 0
push 0
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call fcn.10017f60
add esp, 0xc
test eax, eax
jne 0x100180f7
push str.WriteLogFile___failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x104], 0xfffffffe
jmp 0x1001816c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x108]
push eax
call fcn.10017f60
add esp, 0xc
test eax, eax
jne 0x10018133
push str.WriteLogFile___failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x104], 0xfffffffd
jmp 0x1001816c
push 2
push 0x1003503c
mov edx, dword [ebp - 0x108]
push edx
call fcn.10017f60
add esp, 0xc
test eax, eax
jne 0x1001816c
push str.WriteLogFile___failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x104], 0xfffffffc
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x104]
mov esp, ebp
pop ebp
ret