joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000266f
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [ebp + 0x1c]
push esi
xor esi, esi
push 0x18e
mov dword [eax], esi
xor eax, eax
mov word [ebp - 0x1bc], ax
lea eax, [ebp - 0x1ba]
push esi
push eax
call fcn.10078750
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100026bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10002777
push ebx
push edi
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], esi
push 0x17
lea edi, [ebp - 0x28]
xor ebx, ebx
rep stosd dword es:[edi], eax
pop edi
lea eax, [ebp - 8]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 6
push eax
push dword [ebp + 0xc]
inc ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], ebx
call fcn.1000333a
test eax, eax
jne 0x10002709
push 6
push ebx
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10002711
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10002775
mov dword [ebp - 4], esi
call fcn.100709f5
mov dword [ebp - 0xc], eax
call fcn.100709f5
mov edi, dword [ebp - 8]
jmp 0x10002747
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x18], ecx
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1000277c
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10002726
push dword [ebp + 0x18]
call fcn.100709b2
pop ecx
call fcn.100709f5
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jb 0x1000271c
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call fcn.1000331f
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
jmp 0x1000276b
Function at 0x100027dc
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
push 0x18e
and dword [eax], 0
xor eax, eax
push eax
mov word [ebp - 0x1b4], ax
lea eax, [ebp - 0x1b2]
push eax
call fcn.10078750
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000282a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x100028f0
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
xor esi, esi
push 6
push 1
push 0x17
pop eax
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
push 2
pop eax
cmp ebx, 0xffffffff
je 0x1000286f
and dword [ebp - 8], esi
lea eax, [ebp - 8]
push 4
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000287d
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 2
pop eax
xor esi, esi
inc esi
push 6
push esi
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x22]
mov word [ebp - 0x24], ax
push 6
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
je 0x100028af
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0
call esi
movzx eax, ax
push 2
mov dword [ebp - 0x20], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x24], ax
call esi
jmp 0x100028cb
mov esi, 0x100933b0
lea edi, [ebp - 0x1c]
push 0x17
pop eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0xc]
cmp dword [ebp - 4], 0
push 0x1c
mov word [ebp - 0x22], ax
pop eax
push 0x10
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.10002783
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100029d2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
push dword [edi + 0x1c]
mov esi, dword [eax + 0x24]
call fcn.10070296
pop ecx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov eax, dword [esi]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push ecx
push ecx
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 1
push eax
mov dword [ebp - 8], ecx
mov eax, dword [esi]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
push dword [edi + 0x1c]
mov esi, eax
call fcn.100702ac
pop ecx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100037e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x100cfbd8], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x100033ae
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x10003627
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.10003370
jne 0x1000394a
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10003940
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
mov ebx, 0x10c
push eax
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.100799f8
push 0x100bd6a4
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.10079a4d
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
xor edi, edi
test esi, esi
je 0x100038a7
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100038a3
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x10003901
lea eax, [ebp - 0x22c]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.100799f8
push str.wship6
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.10079a4d
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1000393d
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100038fd
push esi
call ebx
mov esi, edi
test esi, esi
je 0x1000393d
mov ebx, edi
push dword [ebp + ebx*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + ebx*8 - 0x14], eax
test eax, eax
je 0x1000391e
inc ebx
cmp ebx, 3
jl 0x10003903
jmp 0x10003927
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x1000393d
mov eax, dword [ebp + edi - 0x14]
mov dword [edi + 0x100bd668], eax
add edi, 8
cmp edi, 0x18
jl 0x1000392b
pop edi
pop esi
pop ebx
mov dword [0x100cfbd8], 1
mov eax, dword [ebp + 8]
movzx eax, ax
mov eax, dword [eax*8 + 0x100bd668]
mov esp, ebp
pop ebp
ret 4
Function at 0x10003b09
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
and dword [eax], 0
push edi
push dword [ebp + 8]
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10003b87
cmp word [esi + 8], 2
jne 0x10003b69
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x10003b69
mov edi, dword [esi + 0xc]
jmp 0x10003b63
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10003a61
mov ecx, eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10003b82
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x1c], eax
mov eax, dword [edi]
test eax, eax
jne 0x10003b3f
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.1007848b
add esp, 0x10
xor eax, eax
jmp 0x10003b9f
push 8
pop eax
jmp 0x10003b9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x10003b9d
dec eax
je 0x10003bad
dec eax
je 0x10003ba6
dec eax
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
mov eax, 0x2afb
jmp 0x10003b9f
mov eax, 0x2afa
jmp 0x10003b9f
Function at 0x10012450
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.10079f60
mov eax, dword [0x100ce750]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb4]
push ebp
push esi
mov esi, dword [esp + 0xc4]
xor ebp, ebp
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x10], eax
cmp esi, edi
jae 0x100124b6
push str.orig_len___md_size
push 0xf2
push str.._ssl_s3_cbc.c
call fcn.10022bf0
add esp, 0xc
cmp edi, 0x40
jbe 0x100124d2
push str.md_size___EVP_MAX_MD_SIZE
push 0xf3
push str.._ssl_s3_cbc.c
call fcn.10022bf0
add esp, 0xc
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x1c], ebx
cmp esi, eax
jbe 0x100124f9
mov ebp, esi
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, dword [esp + 0x10]
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x30], esi
call fcn.10078750
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x100125ef
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ebx, dword [esp + 0x14]
mov esi, ebx
mov eax, dword [esp + 0xc0]
sub esi, ecx
shr edx, 0x1f
mov dword [esp + 0x28], edx
mov edx, ebx
shr edx, 0x1f
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, ebp
sub edx, ebx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x20]
mov ecx, ebp
mov eax, dword [esp + 0x28]
inc ebp
shr ecx, 0x1f
lea ebx, [ebx + edx]
shr edx, 0x1f
xor dl, byte [esp + 0x14]
shr ebx, 0x1f
xor bl, al
xor al, cl
or bl, al
mov al, cl
xor al, byte [esp + 0x14]
xor bl, cl
or dl, al
dec bl
mov eax, dword [esp + 0x10]
xor dl, cl
mov ecx, dword [esp + 0x30]
dec dl
not dl
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x18]
and dl, al
and dl, bl
or byte [ecx + esi], dl
mov edx, ecx
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0xc8]
jb 0x10012570
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
xor edx, edx
test edi, edi
je 0x1001262a
mov ebp, dword [esp + 0x2c]
lea esp, [esp]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x10012600
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007ba40
add esp, 0xa8
ret
Function at 0x10013010
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.10079f60
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x18]
inc ebx
mov eax, dword [edi]
cmp eax, 0xfeff
je 0x10013048
cmp eax, 0x100
je 0x10013048
mov esi, dword [esp + 0x1c]
cmp ebx, dword [esi + 4]
jbe 0x10013065
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea eax, [ebx + ecx]
mov edx, dword [esi + 4]
cmp eax, edx
ja 0x1001303f
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edx, ecx
mov dword [esi + 4], edx
test dword [edi + 0xf4], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
movzx edx, byte [ecx + eax - 1]
mov dword [esp + 0x18], edx
je 0x100130b1
cmp dword [edi + 0x84], 0
jne 0x100130b1
mov eax, dword [edi + 0x58]
cmp dword [eax + 8], 0
jne 0x100130a0
cmp dword [eax + 0xc], 0
jne 0x100130a0
test dl, 1
jne 0x100130a0
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x100130b1
test edx, edx
je 0x100130b1
dec edx
mov dword [esp + 0x18], edx
lea ecx, [edx + ebx]
push ebp
mov ebp, dword [esi + 4]
mov edi, ebp
sub edi, ecx
mov dword [esp + 0x14], ebp
xor edi, ecx
mov eax, ebp
xor eax, ecx
mov ecx, 0xff
or edi, eax
lea eax, [ebp - 1]
xor edi, ebp
shr edi, 0x1f
dec edi
cmp eax, ecx
cmovb ecx, eax
xor ebx, ebx
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x10013133
mov ecx, edx
dec ebp
shr ecx, 0x1f
add ebp, dword [esi + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov al, byte [esp + 0x28]
lea ebp, [ebp - 1]
sub edx, ebx
mov ecx, ebx
shr ecx, 0x1f
inc ebx
shr edx, 0x1f
xor al, cl
xor dl, cl
or dl, al
movzx eax, byte [ebp + 1]
xor dl, byte [esp + 0x28]
dec dl
movzx ecx, dl
mov edx, dword [esp + 0x1c]
xor eax, edx
and ecx, eax
not ecx
and edi, ecx
cmp ebx, esi
jb 0x100130f6
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
not edi
lea eax, [edx + 1]
and edi, 0xff
lea ecx, [edi - 1]
not edi
shr ecx, 0x1f
shr edi, 0x1f
and ecx, edi
neg ecx
and eax, ecx
sub ebp, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
mov dword [esi + 4], ebp
and eax, 1
pop ebp
pop edi
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x10016c10
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x18]
mov eax, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
and ecx, 1
push edi
push dword [esp + 0x34]
mov edi, dword [esp + 0x24]
push dword [esp + 0x30]
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
mov ebp, eax
sar ebp, 1
push edi
push esi
lea ebx, [edx + ebp]
add ebp, ecx
push ebp
push edx
push dword [esp + 0x2c]
call fcn.10016d10
push dword [esp + 0x50]
push dword [esp + 0x50]
push edi
push esi
push ebp
push ebx
push dword [esp + 0x4c]
call fcn.10016d10
mov edx, dword [esp + 0x6c]
add esp, 0x38
xor esi, esi
test edx, edx
jle 0x10016d00
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x20
jb 0x10016ce1
lea eax, [ecx - 1]
lea edi, [ebx - 1]
add eax, edx
add edi, edx
cmp ebx, eax
ja 0x10016c8f
cmp edi, ecx
jae 0x10016ce1
mov eax, edx
and eax, 0x8000001f
jns 0x10016c9d
dec eax
or eax, 0xffffffe0
inc eax
mov edi, edx
mov ebp, ecx
sub edi, eax
mov eax, ebx
sub ebp, ebx
jmp 0x10016cb0
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [ecx + esi + 0x10]
add esi, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp esi, edi
jl 0x10016cb0
cmp esi, edx
jge 0x10016d00
sub ecx, ebx
lea eax, [esi + ebx]
mov dword [esp + 0x30], ecx
sub edx, esi
mov cl, byte [eax + ecx]
lea eax, [eax + 1]
xor byte [eax - 1], cl
mov ecx, dword [esp + 0x30]
dec edx
jne 0x10016cf0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10022980
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x100229a5
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x10022996
pop edi
movzx eax, dl
pop esi
ret

Function at 0x10022ae0
Capabilities:
Access the windows event log

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.10079f60
mov eax, dword [0x100ce750]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10022b44
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10022b44
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
call fcn.1007c32e
add eax, 0x40
push eax
call fcn.1007ca05
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1007ba40
add esp, 0x108
ret
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
lea eax, [esp + 0xc]
push 0xff
push eax
call fcn.1007cb33
add esp, 0x10
mov byte [esp + 0x103], 0
call fcn.10022a00
test eax, eax
jle 0x10022bc5
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1007ba40
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1007ba40
add esp, 0x108
ret

Function at 0x1002bda0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.1007dcda
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002be32
push 0x7c
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100265e0
push 0x1009352c
push esi
push 0x1009e770
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.100261f0
add esp, 0x2c
call fcn.1007ba83
cmp dword [eax], 2
jne 0x1002be15
push 0x7f
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.100265e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x81
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.100265e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x100c8fd8
call fcn.10024660
mov esi, eax
add esp, 4
test esi, esi
jne 0x1002be53
push edi
call fcn.1007d800
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.100243a0
push edi
push 1
push 0x6a
push esi
call fcn.100243d0
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x10033cf0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x90
call fcn.10079f60
mov eax, dword [0x100ce750]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
mov ebx, dword [esp + 0xa4]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xac]
mov dword [esp + 8], ebp
push esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x14], esi
push edi
mov edi, dword [esp + 0xa4]
test ebx, ebx
je 0x10033d3f
mov eax, 1
mov dword [edi], ebx
jmp 0x10033d41
mov ebx, dword [edi]
test esi, esi
je 0x10033ea1
push ebx
call fcn.1002fac0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x10033d75
push str.j____int_sizeof_ctx__key_
push 0x51
push str..cryptohmachmac.c
call fcn.10022bf0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ebp, dword [esp + 0xac]
cmp eax, ebp
jge 0x10033daf
push dword [esp + 0x10]
lea esi, [edi + 4]
push ebx
push esi
call fcn.10031790
push ebp
push dword [esp + 0x28]
push esi
call fcn.10031840
lea eax, [edi + 0x34]
push eax
lea eax, [edi + 0x38]
push eax
push esi
call fcn.10031720
add esp, 0x24
lea eax, [edi + 0x34]
jmp 0x10033de2
test ebp, ebp
js 0x10033dbb
cmp ebp, 0x80
jle 0x10033dcf
push str.len___0__len____int_sizeof_ctx__key_
push 0x57
push str..cryptohmachmac.c
call fcn.10022bf0
add esp, 0xc
push ebp
lea eax, [edi + 0x38]
push esi
push eax
call fcn.10078a50
lea eax, [edi + 0x34]
add esp, 0xc
mov dword [eax], ebp
mov ecx, dword [eax]
cmp ecx, 0x80
je 0x10033e04
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [edi + 0x38]
add eax, ecx
push 0
push eax
call fcn.10078750
add esp, 0xc
mov ebp, dword [esp + 0x10]
xor ecx, ecx
lea ebx, [ebx]
mov al, byte [edi + ecx + 0x38]
xor al, 0x36
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x10033e10
push ebp
lea esi, [edi + 0x14]
push ebx
push esi
call fcn.10031790
push ebx
call fcn.1002fac0
push eax
lea eax, [esp + 0x30]
push eax
push esi
call fcn.10031840
add esp, 0x1c
xor ecx, ecx
mov al, byte [edi + ecx + 0x38]
xor al, 0x5c
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x10033e45
push ebp
lea esi, [edi + 0x24]
push ebx
push esi
call fcn.10031790
push ebx
call fcn.1002fac0
push eax
lea eax, [esp + 0x30]
push eax
push esi
call fcn.10031840
add esp, 0x1c
lea eax, [edi + 0x14]
push eax
lea eax, [edi + 4]
push eax
call fcn.100318c0
mov ecx, dword [esp + 0xa4]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007ba40
add esp, 0x90
ret
test eax, eax
je 0x10033e78
jmp 0x10033e08

Function at 0x10034010
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x5c], 0
mov eax, 1
ret
Function at 0x10035690
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x100359d0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret
Function at 0x10039fe0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x58], 0
mov eax, 1
ret
Function at 0x10047350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.10079f60
mov eax, dword [0x100ce750]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
mov dword [esp + 0x20], ebp
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x2c], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x30], dl
test eax, eax
je 0x10047513
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea esp, [esp]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x100474a7
push 1
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
call fcn.100457b0
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
inc ebp
mov byte [esp + 0x2c], bl
mov byte [esp + 0x30], dl
mov byte [esp + 0x33], al
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x10047440
test ebp, ebp
mov ebp, dword [esp + 0x28]
je 0x100474fa
mov eax, dword [esp + 0x24]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [ebp], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [ebp + 2], bl
shr eax, 8
mov byte [ebp + 3], dl
mov byte [ebp + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1007ba40
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007ba40
add esp, 0x28
ret