joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000108b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
and dword [ebp - 4], 0
push edi
push 0x10005014
mov dword [ebp - 0x24], 0x613f7325
mov dword [ebp - 0x20], 0x7526343d
mov dword [ebp - 0x1c], 0x2673253d
mov dword [ebp - 0x18], 0x73253d67
mov dword [ebp - 0x14], 0x253d7326
mov dword [ebp - 0x10], 0x70612673
mov dword [ebp - 0xc], 0x646e6570
mov dword [ebp - 8], 0x64253d
call fcn.10003a08
push eax
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x224]
add esp, 0xc
test eax, eax
je 0x10001179
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x10001179
push dword [ebp + 8]
lea eax, [ebp - 0x224]
push 0x100050bc
push 0x1000508c
push 0x10006204
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x224]
push eax
call fcn.10002f97
mov edi, eax
add esp, 0x20
test edi, edi
je 0x10001179
push edi
call sub.MSVCRT.dll_strlen
cmp eax, 6
pop ecx
jne 0x10001171
push esi
mov esi, 0x1000614c
push edi
push esi
call sub.MSVCRT.dll_strcpy
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
mov eax, esi
pop esi
jmp 0x1000117b
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
pop edi
leave
ret
Function at 0x10001313
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10c
lea eax, [esp + 8]
push ebx
push esi
push 0x100063e0
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [esp + 0x18]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
xor esi, esi
add esp, 0x10
cmp eax, esi
je 0x10001344
and byte [eax + 1], 0
lea eax, [esp + 0x10]
push str.config.ini
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [esp + 0x14]
pop ecx
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x10001484
push ebp
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [esi + 1]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
pop ecx
test ebp, ebp
je 0x1000147b
push edi
push 0
push ebp
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, str.Area
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_strstr]
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x1000141a
push edi
call sub.MSVCRT.dll_strlen
lea edi, [esi + eax + 1]
push 0xd
push edi
call ebx
push 0x28
push 0
push 0x1000508c
mov esi, eax
call sub.MSVCRT.dll_memset
add esp, 0x18
test esi, esi
je 0x1000140d
sub esi, edi
push esi
push edi
push 0x1000508c
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x1000141a
push edi
push 0x1000508c
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov esi, str.Server
push esi
push ebp
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x1000146f
push esi
call sub.MSVCRT.dll_strlen
lea edi, [edi + eax + 1]
push 0xd
push edi
call ebx
push 0x28
mov ebx, 0x100050bc
push 0
push ebx
mov esi, eax
call sub.MSVCRT.dll_memset
add esp, 0x18
test esi, esi
je 0x10001466
sub esi, edi
push esi
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x1000146f
push edi
push ebx
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov ebx, dword [esp + 0x14]
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x100018dd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push esi
add eax, 6
mov esi, 0x10006230
push eax
push esi
mov dword [ebp - 0x14], 0x613f7325
mov dword [ebp - 0x10], 0x7526353d
mov dword [ebp - 0xc], 0x2673253d
mov dword [ebp - 8], 0x73253d76
call sub.MSVCRT.dll_strcpy
cmp dword [0x10006298], 0
pop ecx
pop ecx
je 0x10001992
push 0x10005014
call fcn.10003a08
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x214]
add esp, 0xc
test eax, eax
je 0x10001992
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x10001992
push esi
lea eax, [ebp - 0x214]
push 0x10006204
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x214]
push eax
call fcn.10002f97
add esp, 0x18
test eax, eax
je 0x10001992
push eax
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop esi
leave
ret 4

Function at 0x100019e9
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 1
call fcn.1000108b
xor esi, esi
pop ecx
cmp eax, esi
je 0x10001a26
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x32423141
push ecx
push eax
mov dword [ebp - 8], 0x3343
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10001a26
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x100050e4], esi
jne 0x10001a42
push 0x100050e4
push esi
push esi
push 0x1000102c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
leave
ret

Function at 0x10001cc1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, esi
mov edx, edx
nop
mov ebx, ebx
mov ecx, ecx
mov eax, eax
nop
nop
nop
nop
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov esi, 0x100062a8
push eax
push esi
mov dword [ebp - 0x2c], 0x4332417b
mov dword [ebp - 0x28], 0x35414233
mov dword [ebp - 0x24], 0x46442d34
mov dword [ebp - 0x20], 0x342d3537
mov dword [ebp - 0x1c], 0x2d313838
mov dword [ebp - 0x18], 0x33424538
mov dword [ebp - 0x14], 0x3435452d
mov dword [ebp - 0x10], 0x42363242
mov dword [ebp - 0xc], 0x43424242
mov dword [ebp - 8], 0x7d39
call sub.MSVCRT.dll_strcpy
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002aca
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040c8
push 0x10003c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
lea eax, [edi + 5]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + edi]
mov byte [eax], 0xe9
mov edx, esi
sub edx, ecx
sub edx, 5
mov dword [eax + 1], edx
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [edi - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push esi
call ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x10002b7f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002b8e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040d8
push 0x10003c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov ebx, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp + 8]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebx - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push ebx
push esi
call edi
or dword [ebp - 4], 0xffffffff
push 1
pop eax
jmp 0x10002c12
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002ca5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, esi
mov edx, edx
nop
mov ebx, ebx
mov ecx, ecx
mov eax, eax
nop
nop
nop
nop
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x10002cdf
xor eax, eax
jmp 0x10002d23
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, esi
mov edx, edx
nop
mov ebx, ebx
mov ecx, ecx
mov eax, eax
nop
nop
nop
nop
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
jne 0x10002d20
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10002d20
mov eax, dword [eax + 0x50]
jmp 0x10002d23
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003b50
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
xor eax, eax
mov ecx, 0x43676552
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x6c], eax
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 0x10]
push edi
mov edx, 0x53676552
mov ecx, 0x61567465
push eax
mov dword [ebp - 0x10], 0x41564441
mov dword [ebp - 0xc], 0x32334950
mov dword [ebp - 8], 0x6c6c642e
mov dword [ebp - 0x1c], 0x65736f6c
mov dword [ebp - 0x18], 0x79654b
mov dword [ebp - 0x50], 0x74616572
mov dword [ebp - 0x4c], 0x79654b65
mov dword [ebp - 0x48], 0x41
mov dword [ebp - 0x30], 0x4f676552
mov dword [ebp - 0x2c], 0x4b6e6570
mov dword [ebp - 0x28], 0x417965
mov dword [ebp - 0x68], 0x51676552
mov dword [ebp - 0x64], 0x79726575
mov dword [ebp - 0x60], 0x756c6156
mov dword [ebp - 0x5c], 0x41784565
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x4165756c
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0x4565756c
mov dword [ebp - 0x70], 0x4178
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
call esi
mov dword [0x100066f8], eax
lea eax, [ebp - 0x54]
push eax
push edi
call esi
mov dword [0x100066f0], eax
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov dword [0x100066e8], eax
lea eax, [ebp - 0x68]
push eax
push edi
call esi
mov dword [0x100066ec], eax
lea eax, [ebp - 0x40]
push eax
push edi
call esi
mov dword [0x100066e4], eax
lea eax, [ebp - 0x7c]
push eax
push edi
call esi
pop edi
mov dword [0x100066f4], eax
pop esi
leave
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452004]
jne 0x401010
repz ret
jmp fcn.004017e1

Function at 0x406b7e
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.0040250a
and dword [ebp - 4], 0
cmp dword [0x453ffc], 0
mov ebx, eax
jne 0x406c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406ce0
push eax
call fcn.00402498
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x453ffc], eax
call esi
push eax
call fcn.00402498
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x454000], eax
call esi
push eax
call fcn.00402498
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x454004], eax
call esi
push eax
call fcn.00402498
pop ecx
mov dword [0x45400c], eax
test eax, eax
je 0x406c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402498
pop ecx
mov dword [0x454008], eax
mov eax, dword [0x454008]
cmp eax, ebx
je 0x406c87
cmp dword [0x45400c], ebx
je 0x406c87
push eax
call fcn.00402513
push dword [0x45400c]
mov esi, eax
call fcn.00402513
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406c87
test edi, edi
je 0x406c87
call esi
test eax, eax
je 0x406c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406c7e
test byte [ebp - 0xc], 1
jne 0x406c87
or dword [ebp + 0x10], 0x200000
jmp 0x406cc0
mov eax, dword [0x454000]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.00402513
pop ecx
test eax, eax
je 0x406cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406cc0
mov eax, dword [0x454004]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.00402513
pop ecx
test eax, eax
je 0x406cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453ffc]
call fcn.00402513
pop ecx
test eax, eax
je 0x406ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44afd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
cmp ebp, 0x19f
jne 0x44aff1
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edi, edi
test ebp, ebp
jle 0x44b046
push esi
jmp 0x44b000
lea esi, [esp + 0x10]
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 0
call fcn.0044afc0
mov eax, dword [esp + 0x10]
add eax, 0x46
mov dword [esp + 0xc], eax
sub dword [esp + 0xc], 0x46
movsx eax, byte [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x18], eax
mov cl, byte [esp + 0x18]
mov byte [edi + ebx], cl
inc edi
cmp edi, ebp
jl 0x44b000
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x44b061
mov dword [0x2b52218], 0xa62e7790
mov dword [0x2b5221c], 0xffffffff
add esp, 8
ret
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x100291fe
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Acrobat.dll
call esi
test eax, eax
jne 0x10029234
push str.AcroRd32.dll
call esi
test eax, eax
jne 0x10029234
push str.AcroDbg.dll
call esi
test eax, eax
jne 0x10029234
push str.AcRd32_D.dll
call esi
test eax, eax
je 0x10029252
push str.AcroSecurityBailOutImpl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10029252
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 1
call dword [sym.imp.MSVCR120.dll__exit]
int3
Function at 0x10089434
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1012b16e
call fcn.10123c44
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1007e07b
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call fcn.1007de55
pop ecx
test eax, eax
je 0x10089478
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1008947a
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10089623
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
cmp ecx, 0xffffffff
jne 0x100894ad
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x100894b9
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov eax, esi
call fcn.10123c12
ret

Function at 0x100896fa
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x1008970c
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x1008f94a
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
lea eax, [eax*2 + 2]
push eax
call fcn.1007de55
pop ecx
push dword [esi + 8]
mov edi, eax
mov ecx, esi
push edi
call fcn.10089f32
mov ecx, dword [esi + 8]
xor eax, eax
push eax
push edi
mov word [edi + ecx*2], ax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x1008f995
push edi
call sub.MSVCR120.dll_free
pop ecx
jmp 0x1008fac1
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
call ebx
and dword [0x107ad5a8], 0
cmp dword [ebp + 0xc], 0
mov dword [0x107ad5ac], 1
jne 0x1008f9c0
mov dword [0x107ad5a8], esi
jmp 0x1008f9d4
push 0
push 0x1008f8ec
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov esi, dword [0x107ad5a8]
test esi, esi
je 0x1008fab9
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xfffffffffffffffc
push dword [0x107ad5a8]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x1008fa7b
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
jne 0x1008fa7b
cmp esi, ebx
je 0x1008fa7b
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x1008fa7b
push dword [0x107ad5a8]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1008fa45
push 1
jmp 0x1008fa47
push 5
push dword [0x107ad5a8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x107ad5a8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push 0
push dword [0x107ad5a8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push ebx
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x1008fab9
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 8]
xor ebx, ebx
push ebx
push eax
push ebx
push 0x2000
call esi
push 2
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
mov ebx, 0x2001
push ebx
call esi
push dword [0x107ad5a8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 8]
push eax
push 0
push ebx
call esi
push edi
call sub.MSVCR120.dll_free
pop ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008fb2e
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1012beb6
call fcn.10123c77
mov esi, dword [ebp + 8]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
call fcn.1008988d
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1008fc2e
test eax, eax
jne 0x1008fb72
push 0xffffffffffffffff
push 0x10131ee8
mov ecx, esi
call fcn.10089e9d
jmp 0x1008fbb9
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, esi
push 0xffffffffffffffff
push 0x10131ee8
test eax, eax
je 0x1008fb6b
call fcn.10089e9d
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x1013e720
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.100899d6
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1008fb91
mov eax, esi
call fcn.10123c26
ret

Function at 0x1008fc2e
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107ad5a0]
test esi, esi
jne 0x1008fc83
push esi
push 1
push esi
push esi
push 0x107ad5a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1008fc7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1008fc7d
push 8
push 1
push esi
push esi
push 0x107ad5a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1008fc7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x107ad5a0], esi
jmp 0x1008fc83
mov esi, dword [0x107ad5a0]
mov eax, esi
pop esi
ret
Function at 0x1008fe2c
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x54
mov eax, 0x1012bf65
call fcn.10123c77
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x50], ebx
call fcn.1008fc2e
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x44], eax
call fcn.1008988d
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.1008988d
push edi
mov eax, 0x1013e7a8
mov dword [ebp - 0x48], 1
push eax
push esi
push eax
push edi
push ebx
call fcn.100898fe
pop ecx
pop ecx
push eax
call fcn.100899d6
pop ecx
pop ecx
push eax
call fcn.100898fe
pop ecx
pop ecx
push eax
call fcn.100899d6
pop ecx
pop ecx
push eax
call fcn.100898fe
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
test eax, eax
jne 0x1008fec1
push 0xffffffffffffffff
push 0x10131ee8
mov ecx, ebx
call fcn.10089e9d
jmp 0x1008ff82
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1008feae
push 0
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1008feae
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop ecx
push 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call esi
test eax, eax
je 0x1008feae
push dword [ebp - 0x40]
call fcn.1007de55
mov edi, eax
pop ecx
test edi, edi
je 0x1008feae
push 0
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call esi
mov ecx, ebx
push 0xffffffffffffffff
push 0x10131ee8
test eax, eax
jne 0x1008ff43
call fcn.10089e9d
jmp 0x1008ff7b
call fcn.10089e9d
xor esi, esi
cmp dword [ebp - 0x40], esi
jbe 0x1008ff7b
cmp esi, 0x28
jae 0x1008ff7b
movzx eax, byte [esi + edi]
push eax
lea eax, [ebp - 0x38]
push 0x1013e720
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.100899d6
add esp, 0x14
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x1008ff4f
push edi
call sub.MSVCR120.dll_free
pop ecx
cmp dword [ebp - 0x3c], 0
je 0x1008ff91
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.100898c9
mov eax, ebx
call fcn.10123c26
ret