joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004fe40
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x101d978c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x1004fe5e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x1004fe82
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x1004fe9d
cmp edx, 0x100000
jle 0x1004feb0
cmp ecx, 0x100000
jge 0x1004fe97
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x101e2c4c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x1004ff50
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101d978c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x1004ff70
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101d978c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x1004ff97
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x1004ff97
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x1004ffa0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101d978c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x10050000
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101d978c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x10050190
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101d978c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x10058960
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x10058a53
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x10058976
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x10058bd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x1ec], 0
jne 0x10058c6c
push esi
xor esi, esi
nop dword [eax + eax]
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x10058c36
mov edx, dword [esp + 0x14]
xor ecx, ecx
nop
cmp esi, 4
jae 0x10058c2b
mov eax, edx
shr eax, cl
add ecx, 8
mov byte [esp + esi + 8], al
inc esi
cmp ecx, 0x20
jb 0x10058c10
cmp esi, 4
jb 0x10058bf0
push dword [esp + 8]
push str.rand_s
jmp 0x10058c5d
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 8]
xor esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
imul eax, eax, 0x7fffffff
push eax
push str.fallback_4_
call fcn.100501b0
add esp, 8
mov dword [edi + 0x1ec], eax
pop esi
cmp byte [edi + 0xe8], 0
je 0x10058c88
push str.xmlhttp:__www.w3.org_XML_1998_namespace
push edi
call fcn.10058200
add esp, 8
pop edi
add esp, 8
ret
mov al, 1
pop edi
add esp, 8
ret
Function at 0x10068f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10069105
cmp dword [esi + 0x20], 0
je 0x10069105
cmp dword [esi + 0x24], 0
je 0x10069105
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10069105
cmp dword [eax], esi
jne 0x10069105
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x10068fe5
cmp eax, 0x39
je 0x10068fe5
cmp eax, 0x45
je 0x10068fe5
cmp eax, 0x49
je 0x10068fe5
cmp eax, 0x5b
je 0x10068fe5
cmp eax, 0x67
je 0x10068fe5
cmp eax, 0x71
je 0x10068fe5
cmp eax, 0x29a
jne 0x10069105
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x1006901e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x10069040
call fcn.1006da40
jmp 0x10069045
call fcn.1006d680
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.1006bf10
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.10024f30
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x101a8d12]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x101a8d10]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x101a8d14]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x101a8d16]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x100713a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], esi
cmovb esi, dword [esp + 0x14]
test esi, esi
je 0x10071444
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
sub ebp, ebx
mov dword [esp + 0x10], esi
nop dword [eax]
mov eax, dword [edi + 8]
mov dl, byte [ebx + ebp]
or eax, 2
mov ecx, eax
mov byte [esp + 0x28], dl
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x28]
push 1
push eax
shr ecx, 8
xor cl, dl
mov byte [ebx], cl
mov eax, dword [edi]
not eax
push eax
call fcn.1006da40
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.1006da40
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x100713d0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x10073110
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov eax, dword [ebx + 0x440]
mov ebp, dword [eax]
cmp byte [ebp + 0x1e40], 0
je 0x10073132
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x44]
test byte [eax + 0x66], 8
jne 0x10073169
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
test ecx, ecx
jg 0x10073169
jl 0x1007314c
cmp eax, 0xc
jae 0x10073169
push ecx
push eax
push str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
push 0x2a
push ebx
call fcn.1007c810
add esp, 0x14
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0xc
push ebx
call fcn.10079f20
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10073199
push str.Truncated_ZIP_file_data
push 0x2a
push ebx
call fcn.1007c810
add esp, 0xc
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push edi
xor esi, esi
push ebx
mov dword [esp + 0x1c], esi
call fcn.10085b50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10073281
lea edi, [ebp + 0x1e34]
nop word [eax + eax]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100731c5
mov dword [edi], 0x12345678
mov dword [edi + 4], 0x23456789
mov dword [edi + 8], 0x34567890
sub esi, ecx
je 0x10073238
mov al, byte [ebx]
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [edi]
not eax
push eax
call fcn.1006da40
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x27], al
lea eax, [esp + 0x27]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.1006da40
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x100731e4
push 0xc
lea eax, [esp + 0x24]
push eax
push 0xc
push dword [esp + 0x28]
push edi
call fcn.10074910
mov ecx, dword [ebp + 0x44]
add esp, 0x14
mov al, byte [esp + 0x2b]
cmp al, byte [ecx + 0x6b]
je 0x100732b3
mov esi, dword [esp + 0x18]
cmp esi, 0x2710
jg 0x100732ac
push dword [esp + 0x30]
inc esi
mov dword [esp + 0x1c], esi
call fcn.10085b50
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100731c0
test esi, esi
mov eax, str.Incorrect_passphrase
mov ecx, str.Passphrase_required_for_this_entry
cmovle eax, ecx
push eax
push 0xffffffffffffffff
push dword [esp + 0x38]
call fcn.1007c810
add esp, 0xc
mov eax, 0xffffffe7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.Too_many_incorrect_passphrases
jmp 0x10073291
mov ebx, dword [esp + 0x30]
push 0
push 0xc
push ebx
call fcn.10079f40
mov eax, dword [ebp + 0x44]
add esp, 0xc
mov byte [ebp + 0x1e40], 1
test byte [eax + 0x66], 8
jne 0x100732dc
add dword [ebp + 0x48], 0xfffffff4
adc dword [ebp + 0x4c], 0xffffffff
add dword [ebp + 0x50], 0xc
push ebx
adc dword [ebp + 0x54], 0
mov dword [ebp + 0x1e2c], 0
call fcn.10074ab0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10074910
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x10], esi
cmovb esi, dword [esp + 0x10]
test esi, esi
je 0x1007499e
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
sub ebp, ebx
mov eax, dword [edi + 8]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x24]
push 1
push eax
shr ecx, 8
xor cl, byte [ebx + ebp]
mov byte [ebx], cl
mov eax, dword [edi]
not eax
mov byte [esp + 0x2c], cl
push eax
call fcn.1006da40
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.1006da40
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x10074933
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x1007ca30
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x1007ca76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1007ca6e
push 8
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x1007ca76
mov eax, 0xffffffe7
pop esi
pop ecx
ret
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor ecx, ecx
mov eax, 0xffffffe7
test esi, esi
pop esi
cmovne eax, ecx
pop ecx
ret
Function at 0x10082490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x14]
test ebp, 0xffff7fff
jne 0x1008256b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1008250a
call ebx
cmp eax, 3
jne 0x100824f1
push edi
call fcn.10082890
mov esi, eax
add esp, 4
test esi, esi
jne 0x100824e5
call fcn.10016659
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1008250a
call ebx
push eax
call fcn.100823d0
push esi
call fcn.1015a286
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x10082563
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x1008252a
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x10082531
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call fcn.1015a286
add esp, 4
cmp edi, 0xffffffff
jne 0x10082553
call ebx
push eax
call fcn.100823d0
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call fcn.1001fa12
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x100825ff
push dword [esp + 0x1c]
push ebp
push edi
call fcn.10180efc
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x10082686
call fcn.10016659
cmp dword [eax], 0xd
jne 0x100825de
test ebp, 0x100
je 0x100825de
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100825b4
call ebx
push eax
call fcn.100823d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x100825cb
call fcn.10016659
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call fcn.10016659
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call fcn.10016659
cmp dword [eax], 2
jne 0x10082686
push edi
call fcn.10082890
mov esi, eax
add esp, 4
test esi, esi
je 0x100824d2
push dword [esp + 0x1c]
push ebp
push esi
call fcn.10180fa2
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x10082676
call fcn.10016659
cmp dword [eax], 0xd
jne 0x10082676
test ebp, 0x100
je 0x10082676
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1008264c
call ebx
push eax
call fcn.100823d0
add esp, 4
push esi
call fcn.1015a286
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x1008266b
call fcn.10016659
push esi
mov dword [eax], 0x15
call fcn.1015a286
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.10016659
mov dword [eax], 0xd
push esi
call fcn.1015a286
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x10082690
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x100826a7
call fcn.10016659
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
je 0x10082718
push eax
call fcn.1001f9a8
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10082713
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x100826ed
call fcn.10016659
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x10082718
cmp eax, 5
jne 0x10082706
call fcn.10016659
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.100823d0
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret
xor eax, eax
ret

Function at 0x10082aa0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x10082ab7
call fcn.10016659
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call fcn.1001f9a8
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10082b01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10082af4
call fcn.10016659
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.100823d0
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret
Function at 0x1009a1b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov ebx, dword [eax + 0xa4]
push edi
mov dword [esp + 0x24], ebx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
push dword [eax + 0x10]
call fcn.100784b0
mov ecx, edx
mov dword [esp + 0x1c], eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jg 0x1009a1f4
jl 0x1009a1ec
cmp eax, 0x40
jae 0x1009a1f4
mov ebp, eax
mov dword [esp + 0x10], eax
jmp 0x1009a1fd
mov ebp, 0x40
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x154]
mov ecx, dword [esp + 0x34]
test eax, eax
jne 0x1009a215
cmp ecx, ebp
jb 0x1009a215
mov edi, dword [esp + 0x30]
jmp 0x1009a252
cmp eax, ebp
jge 0x1009a24c
mov esi, 0x40
sub esi, eax
cmp esi, ecx
cmova esi, ecx
add eax, 0x114
push esi
push dword [esp + 0x34]
add eax, ebx
push eax
call fcn.10025090
add dword [ebx + 0x154], esi
add esp, 0xc
cmp dword [ebx + 0x154], ebp
jl 0x1009a3a8
lea edi, [ebx + 0x114]
and dword [ebx + 0x110], 0xfffffffe
mov eax, dword [edi]
cmp eax, dword [0x101b69b8]
jne 0x1009a3a8
mov eax, dword [edi + 4]
cmp eax, dword [0x101b69bc]
jne 0x1009a3a8
movzx ebx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 9]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 8]
shl ebx, 8
or ebx, eax
cmp ebx, 0x18
jb 0x1009a3a8
cmp byte [edi + 0xc], 4
jne 0x1009a3a8
mov cl, byte [edi + 0xd]
mov byte [esp + 0x2c], cl
lea eax, [ecx - 7]
cmp al, 0x17
ja 0x1009a3a8
xor eax, eax
movzx esi, cl
xor edx, edx
mov ecx, esi
bts eax, ecx
cmp ecx, 0x20
cmovae edx, eax
xor eax, edx
cmp ecx, 0x40
cmovae edx, eax
add eax, ebx
adc edx, 0
sub eax, 1
sbb edx, 0
call fcn.101598f0
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
lea ebp, [eax*4 + 0x14]
jl 0x1009a3a8
jg 0x1009a306
cmp dword [esp + 0x18], ebp
jb 0x1009a3a8
mov ecx, dword [esp + 0x10]
lea esi, [edi + 0x10]
add ecx, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
test edi, edi
je 0x1009a38b
nop dword [eax + eax]
lea eax, [esi + 8]
cmp eax, ecx
ja 0x1009a38b
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
cmp edx, ebp
jne 0x1009a3a8
movzx eax, byte [esi + 7]
add esi, 4
shl eax, 8
movzx ecx, byte [esi + 2]
or eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, ecx
cmp eax, edx
jb 0x1009a3a8
xor ecx, ecx
cmp ecx, dword [esp + 0x14]
jg 0x1009a3a8
jl 0x1009a37e
cmp eax, dword [esp + 0x18]
ja 0x1009a3a8
mov ecx, dword [esp + 0x10]
sub eax, edx
add ebp, eax
sub edi, 1
jne 0x1009a320
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x2c]
mov dword [eax + 0x78], ebx
mov byte [eax + 0x74], 4
mov byte [eax + 0x75], cl
mov eax, dword [esp + 0x24]
and dword [eax + 0x110], 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x100a6c80
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0xf0000000
push dword [esp + 0x14]
lea edi, [esi + 4]
mov dword [esi], 0
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100a6cc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100a6cea
push 8
push dword [esp + 0x14]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100a6cea
lea eax, [esi + 8]
push eax
push 0
push 0
push dword [esp + 0x20]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100a6cf2
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 0xffffffe7
pop esi
ret
pop edi
mov dword [esi], 1
xor eax, eax
pop esi
ret
Function at 0x100abcf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edx, dword [esi + 0xaa0]
mov eax, dword [esi + 0x1f0]
and edx, dword [esp + 0x20]
shl eax, 4
cmp ebx, 0xffffffff
jne 0x100abe5c
mov ebx, dword [esp + 0x14]
add edx, 0x3556
add eax, edx
push ebp
lea ecx, [esi + eax*2]
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x20], 0
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x108], ecx
mov ebp, dword [esi + 0x18]
inc ebp
mov dword [esi + 0x18], ebp
mov edi, dword [ebx]
mov eax, edi
mov edx, dword [ebx + 0x18]
sub eax, edx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], edx
movzx edx, byte [eax + ecx - 1]
mov ecx, 8
sub cl, byte [esi + 0xaa4]
mov eax, dword [esi + 0xaa8]
and eax, dword [esp + 0x24]
shr edx, cl
mov ecx, dword [esi + 0xaa4]
shl eax, cl
add edx, eax
mov eax, edi
sub eax, dword [ebx + 0x18]
imul ecx, edx, 0x600
mov edx, dword [ebx + 0x14]
movzx edx, byte [eax + edx]
add ecx, 0xaac
add ecx, esi
cmp dword [esi + 0x1f0], 7
mov dword [esp + 0x24], ecx
jge 0x100abdaf
push edx
push 8
push ecx
push esi
call fcn.100ad050
add esp, 0x10
jmp 0x100abe10
sub edi, dword [esi + 0x1f4]
sub edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x14]
mov ebx, 0x100
add edx, ebx
movzx edi, byte [edi + eax - 1]
mov eax, edx
add edi, edi
shr eax, 7
mov ecx, ebx
and eax, 1
and ecx, edi
mov dword [esi + ebp*4 + 0x20], eax
add ecx, ebx
mov eax, edx
add edx, edx
shr eax, 8
add eax, ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x108], ecx
mov eax, edi
inc dword [esi + 0x18]
xor eax, edx
mov ebp, dword [esi + 0x18]
not eax
and ebx, eax
cmp edx, 0x10000
jb 0x100abdc8
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x1f0]
pop ebp
cmp eax, 3
jg 0x100abe2f
xor eax, eax
mov dword [esi + 0x1f0], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
cmp eax, 9
jg 0x100abe48
add eax, 0xfffffffd
mov dword [esi + 0x1f0], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
add eax, 0xfffffffa
mov dword [esi + 0x1f0], eax
mov eax, dword [esp + 0x1c]
sub dword [ebx + 0x18], eax
pop edi
pop esi
pop ebx
ret
add eax, 0x3556
mov edi, dword [esp + 0x1c]
add eax, edx
push edi
lea ecx, [esi + eax*2]
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x20], 1
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x108], ecx
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x1f0]
add ecx, 0x3616
lea eax, [esi + eax*4]
lea ecx, [esi + ecx*2]
cmp ebx, 4
jae 0x100abec8
mov dword [eax + 0x20], 1
mov eax, dword [esi + 0x18]
push ebx
push edx
push esi
mov dword [esi + eax*4 + 0x108], ecx
inc dword [esi + 0x18]
call fcn.100ad500
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [eax + 0x18], edi
pop edi
pop esi
pop ebx
ret
mov dword [eax + 0x20], 0
mov eax, dword [esi + 0x18]
mov dword [esi + eax*4 + 0x108], ecx
lea eax, [ebx - 4]
inc dword [esi + 0x18]
push eax
push edx
push esi
call fcn.100ace70
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [eax + 0x18], edi
pop edi
pop esi
pop ebx
ret