joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bac10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x598]
test esi, esi
je 0x100bac64
mov ecx, dword [edi + 0x44]
test ecx, ecx
jne 0x100bac33
cmp dword [edi + 0x40], ecx
je 0x100bac64
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
test ecx, ecx
jne 0x100bac41
mov ecx, dword [edi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0xc]
push 0x100babf0
call fcn.100c41c0
add esp, 4
cmp byte [ebp - 8], 0
jne 0x100bac6e
mov dword [edi + 0x598], 0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100bac74
mov dword [ebx], esi
cmp byte [esi + 0x178], 0
mov edi, dword [esi + 0x154]
jne 0x100bac9b
cmp edi, 0xffffffff
je 0x100bac9b
push 2
push 1
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x100bac64
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100bbae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov dword [ebp - 4], edx
mov esi, ecx
call dword [0x10269bf4]
mov edi, eax
add esp, 8
mov dword [esi + 0x498], edi
mov ebx, 8
test edi, edi
je 0x100bbba0
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0x488], ecx
push ecx
mov byte [esi + 0x490], 0
mov ecx, edi
mov dword [esi + 0x494], 0
mov dword [esi + 0x48c], 0
mov dword [edi], 0
call fcn.100bb860
add esp, 8
test eax, eax
je 0x100bbba0
push dword [esi + 0x484]
call dword [0x10269bfc]
push dword [ebp - 4]
call dword [0x10269bec]
add esp, 8
mov dword [esi + 0x484], eax
test eax, eax
je 0x100bbba0
push 0
push 0
lea eax, [edi + 0xc]
push eax
push 0x100bb960
push 0
push 0
call fcn.101ac9ca
add esp, 0x18
test eax, eax
je 0x100bbb91
cmp eax, 0xffffffff
jne 0x100bbb93
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x100bbbbb
call fcn.101b213e
mov ebx, dword [eax]
lea ecx, [esi + 0x484]
call fcn.100bba50
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100bcb20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x100bcb9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x100bcb6e
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.100ce930
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.100bc7f0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x85d4], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100bd020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x100bd046
push dword [esi + 0x15c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
cmp edx, 2
ja 0x100bd07a
push dword [esi + 0x158]
lea eax, [edx*2 + 0x10229bcc]
push 1
add eax, edx
push 2
push eax
call fcn.101aaac6
push dword [esi + 0x158]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.101aaac6
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100bd080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
cmp byte [esi + 0x2f8], 0
je case.default.0x100bd0c4
test eax, eax
je case.default.0x100bd0c4
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x100bd0c4
lea ecx, [edi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x100bd0c4
jmp dword [ecx*4 + 0x100bd198]
mov eax, str.Header
mov ecx, str.from
jmp 0x100bd0e1
mov eax, str.Header
mov ecx, 0x10234c44
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.100caac0
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100bd106
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, esi
call fcn.100bd020
add esp, 8
test eax, eax
jne 0x100bd187
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x100bd153
push dword [esi + 0x15c]
push dword [ebp + 0xc]
push ebx
push edi
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp edi, 2
ja 0x100bd185
push dword [esi + 0x158]
lea eax, [edi*2 + 0x10229bcc]
push 1
add eax, edi
push 2
push eax
call fcn.101aaac6
push dword [esi + 0x158]
push 1
push dword [ebp + 0xc]
push ebx
call fcn.101aaac6
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100bd570
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov ebx, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100bd5c0
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
jne 0x100bd62c
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [0x10279848], 0
jne 0x100bd63c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
push str.WARNING:_Using_weak_random_seed_n
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
push ebx
sub esi, ecx
imul esi, esi, 0x3e8
call fcn.100bc730
mov eax, dword [0x10279b20]
add esp, 8
add eax, esi
mov byte [0x10279848], 1
add eax, edi
imul eax, eax, 0x41c64e6d
add eax, 0x3039
imul eax, eax, 0x41c64e6d
add eax, 0x3039
imul eax, eax, 0x41c64e6d
add eax, 0x3039
jmp 0x100bd641
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10279b20]
imul eax, eax, 0x41c64e6d
pop edi
pop esi
pop ebx
add eax, 0x3039
mov dword [0x10279b20], eax
rol eax, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x100cb070
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov dword [eax], esi
mov ecx, dword [ecx]
xor eax, eax
mov esi, 1
mov dword [ebp - 0xc], ecx
mov ebx, 0x493e0
mov edx, dword [ecx + 0x208]
test edx, edx
mov ecx, dword [ecx + 0x20c]
cmovg eax, esi
test ecx, ecx
jle 0x100cb0b2
or eax, 2
dec eax
je 0x100cb0c8
dec eax
je 0x100cb0c4
dec eax
jne 0x100cb0ca
cmp edx, ecx
mov ebx, ecx
cmovl ebx, edx
jmp 0x100cb0ca
mov ebx, ecx
jmp 0x100cb0ca
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0xc]
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [eax + 0x508]
sub esi, edi
sub ecx, dword [eax + 0x50c]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add ebx, eax
je 0x100cb1a9
test ebx, ebx
js 0x100cb1a9
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
push 0xffffffffffffffff
call fcn.100bbfd0
add esp, 8
test eax, eax
jle 0x100cb19f
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100cb165
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100cb182
mov ecx, dword [ebp - 8]
jmp 0x100cb089
cmp ebx, eax
je 0x100cb18e
test eax, eax
je 0x100cb19f
mov ecx, dword [ebp - 8]
sub ebx, eax
add esi, eax
mov dword [ebp + 0xc], ebx
add dword [ebp - 4], eax
mov dword [ebp + 8], esi
jmp 0x100cb089
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100cce70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
call fcn.101d4b5b
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x100cced1
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x100cced1
lea eax, [ebp - 0x108]
push eax
call dword [0x10269bec]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100cf1e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100cf35b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x100cf347
push esi
jmp 0x100cf220
cmp dword [edi + 4], 2
jne 0x100cf2da
cmp dword [edi + 0x18], 0
je 0x100cf2da
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100cf2da
cmp eax, 0x10
jb 0x100cf2da
push 0x20
call dword [0x10269be8]
mov esi, eax
add esp, 4
test esi, esi
je 0x100cf33c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x10269be8]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x100cf32b
mov ecx, dword [edi + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x100cf2c8
push eax
call dword [0x10269bec]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x100cf311
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x100cf2d7
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x100cf220
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x100cf2f7
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x100cf343
mov ecx, ebx
call fcn.100cf1a0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x10269bfc]
push esi
call dword [0x10269bfc]
add esp, 8
jmp 0x100cf2e8
push esi
mov edi, 8
call dword [0x10269bfc]
add esp, 4
jmp 0x100cf2e8
mov edi, 8
jmp 0x100cf2e8
test ebx, ebx
jne 0x100cf353
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100d6740
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x2c
mov edi, edx
call dword [0x10269be8]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100d6761
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], 0x10229cf0
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ecx + 8]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp ebx, 0x40
jbe 0x100d67a9
push ecx
call dword [0x10229cf0]
push ebx
push edi
push dword [esi + 4]
call dword [0x10229cf4]
mov edi, dword [esi + 8]
push dword [esi + 4]
add edi, 8
push edi
call dword [0x10229cf8]
mov ebx, 0x10
add esp, 0x18
mov dword [ebp + 8], ebx
push dword [esi + 4]
call dword [0x10229cf0]
push dword [esi + 8]
call dword [0x10229cf0]
add esp, 8
xor eax, eax
test ebx, ebx
je 0x100d6810
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
lea ebx, [ebx]
movzx eax, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
call dword [0x10229cf4]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
call dword [0x10229cf4]
add esp, 0x18
dec ebx
jne 0x100d67d0
cmp dword [ebp + 8], 0x40
jae 0x100d6846
mov eax, dword [ebp - 0xc]
mov edi, 0x40
sub edi, eax
jmp 0x100d6820
push 1
push 0x10229683
push dword [esi + 4]
call dword [0x10229cf4]
push 1
push 0x10229682
push dword [esi + 8]
call dword [0x10229cf4]
add esp, 0x18
dec edi
jne 0x100d6820
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100d68a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100d68d6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
je 0x100d68f7
xor edi, edi
jmp 0x100d6940
lea eax, [ebp - 0x20c]
push str.LightProxy.exe
push eax
call fcn.101a8487
add esp, 8
test eax, eax
je 0x100d693a
nop
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x100d68f3
lea eax, [ebp - 0x20c]
push str.LightProxy.exe
push eax
call fcn.101a8487
add esp, 8
test eax, eax
jne 0x100d6910
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100d6c60
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x64], eax
test edi, edi
je 0x100d6e33
test eax, eax
je 0x100d6e33
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100d6e21
test esi, 0xfffffff0
je 0x100d6e21
push ebx
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
xor bl, bl
mov dword [ebp - 0x54], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100d6cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100d6df0
push 8
push 0x18
push 0
push 0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100d6df0
movdqu xmm0, xmmword [edi]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 0x208
push eax
push 0
push 0
push 0x2c
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x660e
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x48], 0x10
movdqu xmmword [ebp - 0x44], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x100d6df0
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 2
push eax
push 4
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x100d6df0
mov edi, dword [ebp - 0x64]
mov eax, esi
and eax, 0xf
mov byte [ebp - 0x24], 0
sub esi, eax
mov dword [ebp - 0xb], 0
push 0x10
lea eax, [edi - 0x10]
mov word [ebp - 7], 0
add eax, esi
mov byte [ebp - 5], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push 0x20
push eax
movdqu xmmword [ebp - 0x23], xmm0
movq qword [ebp - 0x13], xmm0
call fcn.101aa8ee
add esp, 0x10
lea eax, [esi - 0x10]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push esi
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x100d6df0
push 0x20
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 1
push 0
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x100d6df0
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [edi - 0x10]
add eax, esi
push 0x10
push eax
call fcn.101aa8ee
add esp, 0x10
mov bl, 1
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100d6dfe
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x100d6e0e
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop edi
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100d6e50
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x60], eax
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x100d6ffd
test edi, edi
je 0x100d6ffd
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100d6feb
test esi, 0xfffffff0
je 0x100d6feb
push ebx
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
xor bl, bl
mov dword [ebp - 0x54], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100d6ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100d6fba
push 8
push 0x18
push 0
push 0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100d6fba
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], 0x208
mov dword [ebp - 0x4c], 0x660e
mov dword [ebp - 0x48], 0x10
movdqu xmm0, xmmword [eax]
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x2c
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x58]
movdqu xmmword [ebp - 0x44], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x100d6fba
push 0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 2
push eax
push 4
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x100d6fba
mov eax, esi
mov byte [ebp - 0x24], 0
and eax, 0xf
mov dword [ebp - 0xb], 0
sub esi, eax
mov word [ebp - 7], 0
push 0x10
lea eax, [edi - 0x10]
mov dword [ebp - 0x5c], esi
add eax, esi
mov byte [ebp - 5], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push 0x20
push eax
movdqu xmmword [ebp - 0x23], xmm0
movq qword [ebp - 0x13], xmm0
call fcn.101aa8ee
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
lea eax, [ebp - 0x5c]
add esp, 0x10
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x54]
call esi
test eax, eax
je 0x100d6fba
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 1
push 0
push dword [ebp - 0x54]
call esi
mov bl, 1
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100d6fc8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x100d6fd8
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop edi
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100d7ae0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, 0x55555556
push esi
push edi
mov edi, ecx
lea esi, [ebx + 2]
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40000000
jl 0x100d7b0a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, esi
cmp ebx, 2
jle 0x100d7b8f
lea edx, [ebx - 3]
mov eax, 0xaaaaaaab
mul edx
mov esi, edx
shr esi, 1
inc esi
lea eax, [esi*4]
sub eax, esi
neg eax
add ebx, eax
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 2]
and edx, 0xf
shr eax, 6
movzx eax, byte [eax + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
dec esi
jne 0x100d7b30
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x100d7bf3
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
cmp ebx, 1
jle 0x100d7bd8
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x100d7bf0
movzx eax, byte [edi]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x100d7c00
mov eax, ecx
sub eax, esi
mov dword [edx], eax
pop edi
pop esi
mov byte [ecx], 0
xor eax, eax
pop ebx
pop ebp
ret