joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a3520
Capabilities:
Move file

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10098390
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
add esp, 4
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x100a35bd
lea eax, [esp + 0x10]
push eax
call fcn.10098390
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.10098430
add esp, 0x20
test edx, edx
ja 0x100a35c7
jb 0x100a359f
cmp eax, 0x3e8
ja 0x100a35c7
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x100a3555
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x100a4120
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.100b423a
add esp, 0x18
test eax, eax
je 0x100a4143
cmp eax, 0xffffffff
jne 0x100a4145
xor eax, eax
ret

Function at 0x100a41e0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x5e8], 2
jne 0x100a41f6
mov dword [esp + 4], eax
jmp fcn.100a4190
mov eax, 1
ret
Function at 0x100aa260
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x100aa292
push 0x2e
push esi
call fcn.100b3c90
add esp, 8
test eax, eax
je 0x100aa290
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x100b0180
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x102181bc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100b01a5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x100b01ec
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x100b01f0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x100b024c
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x100b0213
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x100b0288
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x101b9274
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x101b9275
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x100b0257
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x100b197c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102184e0]
jne 0x100b1986
repz ret
jmp fcn.100bbfc8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x100b7da5
call fcn.100b6021
mov dword [eax], esi
call fcn.100b600e
push 0x16
pop esi
mov dword [eax], esi
call fcn.100b4b8f
mov eax, esi
jmp 0x100b7dfa
test dword [ebp + 0xc], 0xfffffff9
jne 0x100b7d8b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100b7dd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100b6034
pop ecx
call fcn.100b600e
mov eax, dword [eax]
jmp 0x100b7dfa
test al, 0x10
jne 0x100b7df8
test al, 1
je 0x100b7df8
test byte [ebp + 0xc], 2
je 0x100b7df8
call fcn.100b6021
mov dword [eax], 5
call fcn.100b600e
mov dword [eax], 0xd
jmp 0x100b7dc9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100cf632
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102184e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100bc7af
and dword [ebp - 0x14], 0
cmp dword [0x102282dc], 0
mov dword [ebp - 0x18], eax
jne 0x100cf6e5
push 0x101bc520
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100cf78d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100cf78d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x102282dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x102282e0], eax
call edi
push eax
call esi
push 0x101bc4d4
push ebx
mov dword [0x102282e4], eax
call edi
push eax
call esi
mov dword [0x102282ec], eax
test eax, eax
je 0x100cf6e5
push 0x101bc4bc
push ebx
call edi
push eax
call esi
mov dword [0x102282e8], eax
mov eax, dword [0x102282e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100cf73e
cmp dword [0x102282ec], ecx
je 0x100cf73e
push eax
call esi
push dword [0x102282ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100cf73e
test ebx, ebx
je 0x100cf73e
call edi
test eax, eax
je 0x100cf735
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100cf735
test byte [ebp - 8], 1
jne 0x100cf73e
or dword [ebp + 0x10], 0x200000
jmp 0x100cf771
mov eax, dword [0x102282e0]
cmp eax, dword [ebp - 0x18]
je 0x100cf771
push eax
call esi
test eax, eax
je 0x100cf771
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100cf771
mov eax, dword [0x102282e4]
cmp eax, dword [ebp - 0x18]
je 0x100cf771
push eax
call esi
test eax, eax
je 0x100cf771
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x102282dc]
call esi
test eax, eax
je 0x100cf78d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100cf78f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b197c
leave
ret
Function at 0x100f2260
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.100b6740
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.100d9fc0
add esp, 0xc
test eax, eax
je 0x100f22ba
lea esp, [esp]
mov edx, dword [esp + 0xc]
shl edx, 0xa
test dword [esp + 0x1c], edx
je 0x100f229e
inc edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
inc ebp
push ebp
call fcn.100d9fc0
add esp, 0xc
test eax, eax
jne 0x100f2290
test edi, edi
jne 0x100f22de
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.10102a30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x4c]
cdq
idiv edi
push ebx
mov ebx, eax
cmp edi, 1
jne 0x100f22f5
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
push esi
push 0
push eax
call fcn.100b52f0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x30], 0
call fcn.100d9fc0
add esp, 0x18
test eax, eax
je 0x100f23d4
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x20], eax
je 0x100f23b0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100f23e1
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push esi
push ebp
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x54]
and edx, 1
add edx, ebx
push edx
mov edx, dword [esp + 0x60]
push edi
push eax
call fcn.100f1e50
add esp, 0x34
test eax, eax
je 0x100f23ff
add edi, ebx
test esi, esi
jle 0x100f23b0
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, eax
mov ebp, esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec ebp
jne 0x100f23a7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
inc eax
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.100d9fc0
add esp, 0xc
test eax, eax
jne 0x100f2330
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.10102a30
add esp, 0x14
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x100f45d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.100b6740
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
inc ebp
test byte [ecx + 0x38], 1
je 0x100f4618
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x100f460b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x100f4623
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x100f4604
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x100f4676
cmp dword [edi + 0x88], 0
jne 0x100f4676
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x101c2744
push eax
call fcn.10115650
add esp, 0xc
test eax, eax
jne 0x100f4669
test bl, 1
jne 0x100f4669
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x100f4676
test ebx, ebx
je 0x100f4676
dec ebx
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.10147e80
add esp, 4
test eax, 0x200000
je 0x100f46a1
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
dec esi
mov dword [esp + 0x18], ecx
cmp eax, ecx
jae 0x100f46cf
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
je 0x100f4727
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
lea ecx, [ecx]
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x100f46f0
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x100f4760
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.100b6740
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x1c], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
cmp ebx, edi
jae 0x100f47ca
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.10115620
add esp, 0xc
cmp edi, 0x40
jbe 0x100f47e6
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.10115620
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x20], ecx
cmp ebx, edx
jbe 0x100f4810
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x14], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.100b52f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
cmp ecx, dword [esp + 0xc4]
jae 0x100f48f0
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbc]
mov eax, dword [eax + 0xc]
shr edx, 0x1f
sub ecx, ebx
sub ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
jmp 0x100f4888
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
add ebx, ecx
shr ebx, 0x1f
xor bl, dl
mov eax, ebp
shr eax, 0x1f
xor dl, al
or bl, dl
mov dl, byte [esp + 0x2c]
xor bl, al
dec bl
mov byte [esp + 0x13], bl
mov ebx, ecx
shr ebx, 0x1f
xor bl, dl
xor dl, al
or bl, dl
mov edx, dword [esp + 0x18]
mov dl, byte [edx + ebp]
xor al, bl
dec al
not al
and al, dl
and al, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
or byte [esi + edx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ebx, esi
xor ebx, edi
or eax, ebx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
inc ecx
cmp ebp, dword [esp + 0xc4]
jb 0x100f4880
mov ebx, dword [esp + 0x24]
jmp 0x100f48f4
mov edx, dword [esp + 0x20]
xor esi, esi
test edi, edi
je 0x100f492d
lea ebx, [ebx]
mov ecx, ebx
xor ecx, 0x20
mov al, byte [ecx + edx]
mov cl, byte [ebx + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + esi], cl
inc ebx
mov ecx, ebx
sub ecx, edi
xor ecx, edi
mov eax, ebx
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
inc esi
and ebx, ecx
cmp esi, edi
jb 0x100f4900
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b197c
add esp, 0xa4
ret
Function at 0x101001a0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.100b52f0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret

Function at 0x101030f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.100b6740
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x10103137
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.100b197c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.1019e637
add esp, 8
test eax, eax
js 0x10103120
mov eax, 8
call fcn.100b6740
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.10102f60
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x10103120
push 0x10204afc
push esi
call fcn.100b78bd
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x10103211
jmp 0x10103194
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x101031a2
mov esi, ebx
cmp ebx, 0x400
jl 0x101031a7
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.100b5ae0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x101031f5
fild dword [esp + 0x44]
mov eax, 8
call fcn.100b6740
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.10102f60
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x10103190
sub ebx, esi
test ebx, ebx
jg 0x10103190
mov ecx, dword [esp + 0x40]
push ecx
call fcn.100b62c0
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.10116300
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b197c
mov esp, ebp
pop ebp
ret
Function at 0x1010df40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x1010df72
jmp dword [edx*4 + 0x1010e09c]
mov edi, 0xa
cmp ebx, edi
jle case.0x1010df72.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x1010df83
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x10110d30
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.101106f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10110dc8
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10102a30
push 0x101bdf44
push esi
push 0x101c5ad0
push ebx
push str.fopen_
push 5
call fcn.10102cf0
add esp, 0x2c
call fcn.100b600e
cmp dword [eax], 2
jne 0x10110daa
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.10102a30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10102a30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x1021cb44
call fcn.10105b40
mov esi, eax
add esp, 4
test esi, esi
jne 0x10110dea
push edi
call fcn.100b62c0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.10105480
push edi
push 1
push 0x6a
push esi
call fcn.10105870
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x10114820
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.100b52f0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x101154d0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.100b6740
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x10115557
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10115557
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.100c25d6
add esp, 0x10
test eax, eax
jns 0x1011552d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100b197c
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.100c25d6
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x101155e9
call fcn.10115390
test eax, eax
jle 0x101155e9
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x101155fd
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
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.100b197c
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.100b197c
add esp, 0x108
ret

Function at 0x10115650
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x10115676
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
dec edi
jne 0x10115667
pop esi
pop ebx
movzx eax, cl
pop edi
ret

Function at 0x101181f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x10118234
mov al, byte [edx]
test al, al
je 0x10118234
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x10118207
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret