joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4292fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x429344
call fcn.00422eca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x429344
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x429360
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00428e77
mov esi, eax
test edi, edi
je 0x42935e
test ebx, ebx
je 0x42935e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42b0ea
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45c5a6
call fcn.004434ab
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42b10f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42b155
lea ecx, [ebp - 0x10]
call fcn.00403280
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00421c4a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004029e0
mov eax, esi
call fcn.00443583
ret 8

Function at 0x42e259
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42e27d
cmp dword [edi + 0x54], 0
jne 0x42e27d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00422eca
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042e21a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42e94a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42e992
call fcn.00422eca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42e992
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42e9d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42e9be
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42e9be
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42e9d2
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43109b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4310cd
push dword [ebp + 8]
call edi
push eax
call fcn.0043186d
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4310f8
test byte [ebp - 4], 1
je 0x4310f8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4310f8
push dword [ebp + 8]
call edi
push eax
call fcn.0043186d
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4311b2
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00430ffd
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x43112e
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00430ffd
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x431144
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00430ffd
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x431171
push dword [ebp + 8]
call edi
push eax
call fcn.0043186d
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43119d
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0043186d
push ebx
call esi
test eax, eax
jne 0x4311af
push dword [ebp + 8]
call edi
push eax
call fcn.0043186d
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4311da
test byte [ebp - 4], 1
jne 0x4311da
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4311da
push dword [ebp + 8]
call edi
push eax
call fcn.0043186d
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44014d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477c1c]
jne 0x440157
repz ret
jmp fcn.004485b7
Function at 0x4540b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00447d12
and dword [ebp - 4], 0
cmp dword [0x47baf4], 0
mov ebx, eax
jne 0x454163
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x454214
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46860c
push edi
call esi
test eax, eax
je 0x454214
push eax
call fcn.00447ca0
mov dword [esp], 0x4685fc
push edi
mov dword [0x47baf4], eax
call esi
push eax
call fcn.00447ca0
mov dword [esp], 0x4685e8
push edi
mov dword [0x47baf8], eax
call esi
push eax
call fcn.00447ca0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47bafc], eax
call esi
push eax
call fcn.00447ca0
pop ecx
mov dword [0x47bb04], eax
test eax, eax
je 0x454163
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00447ca0
pop ecx
mov dword [0x47bb00], eax
mov eax, dword [0x47bb00]
cmp eax, ebx
je 0x4541bb
cmp dword [0x47bb04], ebx
je 0x4541bb
push eax
call fcn.00447d1b
push dword [0x47bb04]
mov esi, eax
call fcn.00447d1b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4541bb
test edi, edi
je 0x4541bb
call esi
test eax, eax
je 0x4541b2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4541b2
test byte [ebp - 0xc], 1
jne 0x4541bb
or dword [ebp + 0x10], 0x200000
jmp 0x4541f4
mov eax, dword [0x47baf8]
cmp eax, ebx
je 0x4541f4
push eax
call fcn.00447d1b
pop ecx
test eax, eax
je 0x4541f4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4541f4
mov eax, dword [0x47bafc]
cmp eax, ebx
je 0x4541f4
push eax
call fcn.00447d1b
pop ecx
test eax, eax
je 0x4541f4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47baf4]
call fcn.00447d1b
pop ecx
test eax, eax
je 0x454214
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x454216
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x115fe058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x115fe1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x115fe07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x115fe06a
add dl, dl
jne 0x115fe089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x115fe0dc
xor eax, eax
add dl, dl
jne 0x115fe096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x115fe17d
add dl, dl
jne 0x115fe0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x115fe0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x115fe0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x115fe0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x115fe0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x115fe075
mov eax, 1
add dl, dl
jne 0x115fe0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x115fe0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x115fe0e1
sub eax, ebx
mov ebx, 1
jne 0x115fe128
mov ecx, 1
add dl, dl
jne 0x115fe10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x115fe119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x115fe105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x115fe075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x115fe13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x115fe14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x115fe136
cmp eax, 0x7d00
jae 0x115fe16d
cmp eax, 0x500
jb 0x115fe168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x115fe075
cmp eax, 0x7f
ja 0x115fe170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x115fe075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x115fe19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x115fe075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100124f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x1002004]
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x140]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0x18]
and dword [ebp - 0x148], 0
and dword [ebp - 0x144], 0
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x140]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010011d9
test eax, eax
je 0x1001342
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
push 0x1001128
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp - 0x130]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001328
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push esi
push 0x1001140
push dword [ebp - 0x144]
mov dword [ebp - 0x14c], 0x104
call dword [entry0]
test eax, eax
jne 0x1001328
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x148], 1
cmp dword [ebp - 0x144], esi
je 0x100133c
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 4]
call fcn.01001487
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1001487
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002004]
jne 0x1001498
test ecx, 0xffff0000
jne 0x1001498
ret
jmp fcn.010014a2
Function at 0x6d6717f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x6d6717fb
repz ret
jmp fcn.6d671b91

Function at 0x6d67184e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x6d67185d
pop dword [ebp - 0x28]
mov eax, 0x63a43fe9
add eax, 0x9c2d874
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x4500e1d2
sub dword [ebp - 0x38], 0xf6ae9c87
mov dword [ebp - 0x34], 0xe4f784e9
add dword [ebp - 0x34], 0x4d3bc75c
mov dword [ebp - 0x30], 0xc3fc5dbd
add dword [ebp - 0x30], 0x884fe671
mov dword [ebp - 0x2c], 0xd410b826
add dword [ebp - 0x2c], 0x2bef47da
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xa149e9e7
add dword [ebp - 0x38], 0xd3287f6f
mov dword [ebp - 0x34], 0x4b40495d
add dword [ebp - 0x34], 0xf62c1818
mov dword [ebp - 0x30], 0x3d56a57f
add dword [ebp - 0x30], 0x2618c6ed
mov dword [ebp - 0x2c], 0xa0dea625
add dword [ebp - 0x2c], 0x5f2159db
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x2fbeb59d
sub eax, 0xc257859d
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x37043
push 0
call eax
mov ecx, 0xb1df6aa2
add ecx, 0x4e20df5c
xor ebx, ebx
add ebx, eax
mov esi, 0xe4e8468a
add esi, 0x887f1b76
add esi, dword [ebp - 0x28]
mov edx, 0xe9b01657
mov edi, dword [esi]
sub dword [ebp - 0x1c], 0xbb3dd328
xor edi, edx
sub dword [ebp - 0x20], esi
mov dword [ebx], edi
add dword [ebp - 0xc], 0x49758249
add ebx, 0xf6c04df4
sub ebx, 0xf6c04df0
add esi, 0xc1d61673
sub esi, 0xc1d6166f
loop 0x6d671976
add eax, 0x315120e9
sub eax, 0x3150061e
mov ebx, eax
add eax, 0xd46f2d92
add eax, 0x2b90d273
mov ecx, 0x7fe6fa45
sub ecx, 0x127ffa45
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x10007664
Capabilities:
Check if file exists
Check os version
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [ebp + 8]
mov byte [ebp - 8], 1
mov dword [ebp - 0xc], 1
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1000767e
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp + 0xc]
push ebx
lea edx, [eax + 2]
push esi
mov si, word [eax]
add eax, 2
test si, si
jne 0x10007697
sub eax, edx
sar eax, 1
lea eax, [eax + ecx + 3]
push 2
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1000775c
mov eax, dword [ebp + 8]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100076c4
push edi
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x100076d5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100076f4
mov eax, dword [ebp + 0xc]
mov esi, 0x100153a8
movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000770b
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1000771b
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
push ebx
setne byte [ebp - 1]
call dword [sym.imp.MSVCRT.dll_free]
cmp byte [ebp - 1], 0
pop ecx
pop edi
jne 0x1000775c
push 4
pop eax
jmp 0x100077dd
mov esi, 0x114
push esi
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100077da
cmp dword [ebp - 0x11c], 2
jne 0x100077d3
cmp dword [ebp - 0x128], 6
ja 0x100077a7
jne 0x100077d3
cmp dword [ebp - 0x124], 1
jb 0x100077d3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x100073c5
call fcn.1000ea22
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x100077da
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x10007ce9
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [edi], ebx
mov edi, dword [ebp + 8]
mov dword [edi], ebx
cmp eax, ebx
je 0x10007d9c
cmp ecx, 1
jb 0x10007d9c
cmp ecx, 0x40
ja 0x10007d22
cmp edx, ebx
je 0x10007d9c
cmp esi, ebx
jbe 0x10007d9c
cmp edx, ebx
je 0x10007d2a
cmp esi, ebx
ja 0x10007d34
push 0x40
pop esi
mov edx, eax
add eax, esi
add ecx, 0xffffffc0
mov dword [ebp - 0x14], eax
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x10007d67
or eax, 0xffffffff
jmp 0x10007d9e
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.10007c5a
mov edi, dword [ebp - 8]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x10007d85
lea esi, [ebp - 8]
call fcn.10007c34
lea esi, [ebp - 8]
call fcn.10007c34
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
inc eax
jmp 0x10007d9e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100082be
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push esi
mov esi, 0x10019590
jmp 0x100082c8
jg 0x1000830a
xor eax, eax
mov edx, esi
or ecx, 0xffffffff
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x100082c6
call fcn.100081cc
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov dword [esp], str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008305
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10019594], eax
xor eax, eax
inc eax
xchg dword [esi], eax
pop esi
ret

Function at 0x10008376
Capabilities:
Encode data using xor

Disassembly:
mov edx, edi
push esi
mov esi, ecx
or edx, eax
or edx, esi
xor ecx, ecx
test edx, 3
jne 0x100083a6
lea edx, [eax + esi]
mov ecx, eax
mov esi, edi
cmp eax, edx
jae 0x100083bc
mov eax, dword [ecx]
bswap eax
add ecx, 4
mov dword [esi], eax
add esi, 4
cmp ecx, edx
jb 0x10008394
pop esi
ret
test esi, esi
je 0x100083bc
push ebx
mov bl, byte [ecx + eax]
mov edx, ecx
xor edx, 3
inc ecx
mov byte [edx + edi], bl
cmp ecx, esi
jb 0x100083ab
pop ebx
pop esi
ret

Function at 0x100083be
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, esi
push edi
mov edi, eax
or ecx, edx
or ecx, edi
xor eax, eax
test ecx, 7
jne 0x100083f5
add edi, edx
jmp 0x100083ef
mov eax, dword [edx]
mov ecx, dword [edx + 4]
bswap eax
bswap ecx
add edx, 8
mov dword [esi], ecx
mov dword [esi + 4], eax
add esi, 8
cmp edx, edi
jb 0x100083db
jmp 0x10008409
test edi, edi
je 0x10008409
mov bl, byte [eax + edx]
mov ecx, eax
xor ecx, 7
inc eax
mov byte [ecx + esi], bl
cmp eax, edi
jb 0x100083f9
pop edi
pop esi
pop ebx
ret
Function at 0x1000840d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
not eax
mov ecx, 0xff
jmp 0x10008433
test edi, edi
je 0x10008438
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x100190c8]
inc edx
dec edi
test dl, 3
jne 0x1000841c
mov esi, edi
and esi, 0xfffffff0
add esi, edx
cmp edx, esi
jae 0x1000853f
push ebx
xor eax, dword [edx]
add edx, 0x10
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
xor eax, dword [edx - 0xc]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
xor eax, dword [edx - 8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
shr eax, 8
and ebx, ecx
xor eax, dword [ebx*4 + 0x100190c8]
xor eax, dword [edx - 4]
mov ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100190c8]
mov ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x100190c8]
cmp edx, esi
jb 0x10008448
pop ebx
and edi, 0xf
add edi, edx
jmp 0x10008558
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x100190c8]
inc edx
cmp edx, edi
jb 0x10008546
pop edi
not eax
pop esi
ret
Function at 0x10008f7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
lea esi, [ebp - 0x150]
xor ecx, ecx
push edi
sub edx, esi
lea esi, [edx + ecx*4]
mov esi, dword [ebp + esi - 0x150]
bswap esi
mov dword [ebp + ecx*4 - 0x150], esi
inc ecx
cmp ecx, 0x10
jl 0x10008f93
push 0x40
lea edx, [ebp - 0x148]
pop esi
mov ecx, dword [edx + 0x2c]
xor ecx, dword [edx + 0x18]
xor ecx, dword [edx - 8]
xor ecx, dword [edx]
add edx, 4
mov edi, ecx
shr edi, 0x1f
add ecx, ecx
xor edi, ecx
dec esi
mov dword [edx + 0x34], edi
jne 0x10008fb5
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
mov edi, dword [eax + 8]
and dword [ebp - 4], esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0xc]
shl ebx, 5
shr esi, 0x1b
xor esi, ebx
mov ebx, dword [ebp - 8]
xor ebx, edi
mov edi, dword [ebp - 4]
and ebx, ecx
xor ebx, dword [ebp - 8]
add esi, ebx
add esi, dword [ebp + edi*4 - 0x150]
mov edi, dword [ebp - 0x10]
lea esi, [esi + edx + 0x5a827999]
mov edx, dword [ebp - 8]
mov dword [ebp - 8], edi
mov edi, ecx
shr ecx, 2
shl edi, 0x1e
xor edi, ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
jl 0x10008fec
mov dword [ebp - 4], 0x14
mov ebx, esi
shl esi, 5
shr ebx, 0x1b
xor ebx, esi
mov esi, dword [ebp - 8]
xor esi, edi
xor esi, ecx
add ebx, esi
mov esi, dword [ebp - 4]
add ebx, dword [ebp + esi*4 - 0x150]
lea esi, [ebx + edx + 0x6ed9eba1]
mov edx, dword [ebp - 8]
mov dword [ebp - 8], edi
mov edi, ecx
shr ecx, 2
shl edi, 0x1e
xor edi, ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x28
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], esi
jl 0x10009043
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x28
mov ebx, edi
and edi, ecx
or ebx, ecx
and ebx, dword [ebp - 8]
or ebx, edi
mov edi, esi
shr edi, 0x1b
shl esi, 5
xor edi, esi
mov esi, dword [ebp - 4]
add ebx, edi
add ebx, dword [ebp + esi*4 - 0x150]
mov edi, dword [ebp - 0x10]
lea esi, [ebx + edx - 0x70e44324]
mov edx, dword [ebp - 8]
mov dword [ebp - 8], edi
mov edi, ecx
shr ecx, 2
shl edi, 0x1e
xor edi, ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3c
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
jl 0x10009090
mov dword [ebp - 4], 0x3c
mov ebx, esi
shl esi, 5
shr ebx, 0x1b
xor ebx, esi
mov esi, dword [ebp - 8]
xor esi, edi
xor esi, ecx
add ebx, esi
mov esi, dword [ebp - 4]
add ebx, dword [ebp + esi*4 - 0x150]
lea esi, [ebx + edx - 0x359d3e2a]
mov edx, dword [ebp - 8]
mov dword [ebp - 8], edi
mov edi, ecx
shr ecx, 2
shl edi, 0x1e
xor edi, ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], esi
jl 0x100090e4
mov ebx, dword [eax]
add ebx, esi
mov esi, dword [eax + 4]
add esi, ecx
mov ecx, dword [eax + 8]
add ecx, edi
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 8]
pop edi
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [eax + 4], esi
add ecx, edx
pop esi
mov dword [eax], ebx
mov dword [eax + 0x10], ecx
pop ebx
leave
ret