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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x53bbb4]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x4c990b
test edx, edx
mov esi, dword [0xa574c8]
jne 0x4c98e5
mov ecx, dword [ebx + 0xc]
mov eax, ebx
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x1c]
mov edx, esi
test ecx, ecx
jne 0x4c98d5
call fcn.004c9200
cmp eax, 7
je 0x4c98dc
nop
lea esi, [esi]
call sub.msvcrt.dll_abort
call fcn.004c94f0
jmp 0x4c98c6
mov eax, esi
nop
call fcn.004c93a0
mov esi, dword [0xa574c4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
jmp 0x4c98ae
call fcn.004c92e0
mov edx, dword [0x53bbb4]
jmp 0x4c98a4

Function at 0x4c9920
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4c9952
mov dword [esp], ebx
call fcn.004c96e0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add esp, 0x2c
ret
mov edx, dword [0x53bbb4]
test edx, edx
js 0x4c99c0
test edx, edx
mov esi, dword [0xa574c8]
jne 0x4c9990
lea edx, [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x1c], esi
call fcn.004c94f0
cmp eax, 7
je 0x4c9980
call sub.msvcrt.dll_abort
nop
lea eax, [esp + 0x1c]
call fcn.004c93a0
lea esi, [esi]
mov esi, dword [0xa574c4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4c9966
call fcn.004c92e0
mov edx, dword [0x53bbb4]
jmp 0x4c995c

Function at 0x4c9f10
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 0x1c
ret

Function at 0x4c9f50
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4c9f75
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
jmp eax
Function at 0x4021b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040483b
xor ebx, ebx
cmp dword [0x40eef4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40228c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4021f7
xor eax, eax
jmp 0x402350
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4021f0
push eax
call fcn.004023f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40eef4], eax
call esi
push eax
call fcn.004023f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40eef8], eax
call esi
push eax
call fcn.004023f9
mov dword [0x40eefc], eax
lea eax, [ebp - 8]
push eax
call fcn.004054b6
test eax, eax
pop ecx
pop ecx
je 0x40225a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406890
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40228c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004023f9
cmp eax, ebx
pop ecx
mov dword [0x40ef04], eax
je 0x40228c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004023f9
pop ecx
mov dword [0x40ef00], eax
mov eax, dword [0x40ef00]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x402305
cmp dword [0x40ef04], esi
je 0x402305
push eax
call fcn.00401faa
pop ecx
call eax
cmp eax, ebx
je 0x4022d2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40ef04]
call fcn.00401faa
pop ecx
call eax
test eax, eax
je 0x4022d2
test byte [ebp - 0x18], 1
jne 0x402305
lea eax, [ebp - 0xc]
push eax
call fcn.0040675b
test eax, eax
pop ecx
je 0x4022ed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406890
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4022fc
or dword [ebp + 0x10], 0x200000
jmp 0x402336
or dword [ebp + 0x10], 0x40000
jmp 0x402336
mov eax, dword [0x40eef8]
cmp eax, esi
je 0x402336
push eax
call fcn.00401faa
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402336
mov eax, dword [0x40eefc]
cmp eax, esi
je 0x402336
push dword [ebp - 4]
push eax
call fcn.00401faa
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40eef4]
call fcn.00401faa
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4031b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e038]
jne 0x4031c1
repz ret
jmp fcn.00401818

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10022848
pop dword [ebp - 0x3c]
mov eax, 0xa8aa5456
add eax, 0x6757d3f2
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x427c9
push 0
mov eax, 0x76d37015
add eax, 0x99341107
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4557
xor ebx, ebx
add ebx, eax
mov edi, 0x57ef1f5a
add edi, 0xb82954a6
add edi, dword [ebp - 0x3c]
mov edx, 0x5ee44c7c
add edx, 0xc836c3dc
mov esi, dword [edi]
add dword [ebp - 0x18], 0x3fd97f90
xor esi, edx
mov dword [ebx], esi
add dword [ebp - 0xc], edi
add ebx, 0xc7e5ae4e
add ebx, 0x381a51b6
add edi, 4
loop 0x100228a3
add eax, 0xd92e6f90
sub eax, 0xd92d6761
mov ebx, eax
add eax, 0x874859f2
sub eax, 0x874859ed
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x10072480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1007251b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x100724d2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x100724d2
cmp esi, ebx
jge 0x100724d2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10072515
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10072515
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783d8]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783d8]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1007252d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10072750
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
mov eax, dword [ebp + 8]
je 0x10072778
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10072792
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10022839
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10076730
leave
ret 4

Function at 0x10072960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10072996
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x100729f5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10022839
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10022839
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10022839
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10076730
leave
ret 0x10
Function at 0x10072a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10072a3c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10072a6d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10072a6b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10022839
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10072a6d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10076730
leave
ret 8
Function at 0x40110b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [0x4034ac]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x40112c
xor eax, eax
jmp 0x4011a2
push ebx
push edi
xor ebx, ebx
push dword [ebp + 8]
call dword [0x4034a8]
push dword [ebp + 0xc]
mov edi, eax
mov word [ebp - 0x10], 2
call dword [0x4034a4]
mov word [ebp - 0xe], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [0x4034a0]
cmp eax, 0xffffffff
jne 0x40118b
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x3e8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc ebx
cmp ebx, 4
jl 0x401130
jmp 0x40112e
xor eax, eax
push eax
push eax
push esi
push 0x4011a7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
pop eax
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x401704
Capabilities:
Create directory
Query environment variable
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
push edi
lea eax, [ebp - 0x858]
push 0x800
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x858]
push str.BUG
push eax
call esi
xor edi, edi
lea eax, [ebp - 0x858]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x858]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x858]
push str._bug.log
push eax
call esi
push edi
push 2
push 4
push edi
push 1
lea eax, [ebp - 0x858]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
mov ebx, eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push str._4.4d__2.2d__2.2d__2.2d:_2.2d:_2.2d:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push edi
add eax, eax
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push edi
add eax, eax
push ecx
push eax
push dword [ebp + 8]
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1051058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010511a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105106a
add dl, dl
jne 0x1051089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10510dc
xor eax, eax
add dl, dl
jne 0x1051096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105117d
add dl, dl
jne 0x10510a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10510d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1051075
mov eax, 1
add dl, dl
jne 0x10510ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10510e1
sub eax, ebx
mov ebx, 1
jne 0x1051128
mov ecx, 1
add dl, dl
jne 0x105110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1051119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1051105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1051136
cmp eax, 0x7d00
jae 0x105116d
cmp eax, 0x500
jb 0x1051168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
cmp eax, 0x7f
ja 0x1051170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105119e
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 0x1051075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000e1a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000e1b3
pop dword [ebp - 0x4c]
mov eax, 0x1000e1b3
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x3d412549
sub dword [ebp - 0x5c], 0xeeeedffe
mov dword [ebp - 0x58], 0xcc585606
add dword [ebp - 0x58], 0x65daf63f
mov dword [ebp - 0x54], 0xad63e953
add dword [ebp - 0x54], 0x9ee85adb
mov dword [ebp - 0x50], 0x1246ef69
sub dword [ebp - 0x50], 0x1246ef69
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xdf3a31b3
sub dword [ebp - 0x5c], 0x6ac7c85d
mov dword [ebp - 0x58], 0x6ed30d69
sub dword [ebp - 0x58], 0x2d66abf4
mov dword [ebp - 0x54], 0xa02d5ed1
sub dword [ebp - 0x54], 0x3cbdf265
mov dword [ebp - 0x50], 0x39d83bdd
sub dword [ebp - 0x50], 0x39d83bdd
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xd8ec9180
add eax, 0x3718fec0
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x5dfc8
push 0
call eax
mov ecx, 0x137c83cb
add ecx, 0xec83c631
xor ebx, ebx
add ebx, eax
mov edi, 0x10069400
add edi, dword [ebp - 0x4c]
mov edx, 0x169b1d1d
sub edx, 0xa6e3ae51
xor dword [ebp - 0x1c], 0x3a96f83e
mov esi, dword [edi]
mov dword [ebp - 0x38], 0xea805b99
sub esi, edx
add dword [ebp - 0x2c], 0x4ca7471a
mov dword [ebx], esi
xor dword [ebp - 0x28], ebx
add ebx, 4
add edi, 0xd2440bf0
sub edi, 0xd2440bec
loop 0x1000e2c7
add eax, 0x11ac3
mov ebx, eax
add eax, 5
mov ecx, 0x5df77ffe
add ecx, 0xb2088002
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10098504
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014b671
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008c7ec
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.100f930a
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x1009854b
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1009854d
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10098730
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
mov edx, eax
add esp, 0x18
cmp edx, 0xffffffff
jne 0x10098580
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [ecx + 4], ebx
jmp 0x10098589
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov dword [ecx + 4], edx
mov eax, esi
call fcn.10143951
ret

Function at 0x10098830
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x10098842
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x1009ee10
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1014c350
call fcn.101439bc
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], esi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edi
call fcn.100989f5
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1009ef38
test eax, eax
je 0x1009ee8c
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1009ee8c
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.100f930a
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10161ca0
push eax
call fcn.100f930a
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.100f930a
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1009ee63
jmp 0x1009ee9a
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.100f930a
mov eax, esi
call fcn.10143966
ret

Function at 0x1009ef38
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107d04a8]
test esi, esi
jne 0x1009ef8c
push edi
push esi
push 1
push esi
push esi
mov edi, 0x107d04a8
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009ef85
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1009ef85
push 8
push 1
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009ef85
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x107d04a8], esi
jmp 0x1009ef8b
mov esi, dword [0x107d04a8]
pop edi
mov eax, esi
pop esi
ret
Function at 0x1009f120
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x58
mov eax, 0x1014c3ff
call fcn.101439bc
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ebx
call fcn.1009ef38
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], ebx
call fcn.100989f5
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.100989f5
push edi
mov eax, 0x10161d28
mov dword [ebp - 0x48], 1
push eax
push esi
mov esi, dword [ebp - 0x44]
push eax
push edi
push esi
call fcn.100f930a
pop ecx
pop ecx
push eax
call fcn.100f930a
pop ecx
pop ecx
push eax
call fcn.100f930a
pop ecx
pop ecx
push eax
call fcn.100f930a
pop ecx
pop ecx
push eax
call fcn.100f930a
mov eax, dword [ebp - 0x4c]
pop ecx
pop ecx
test eax, eax
je 0x1009f271
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1009f271
push ebx
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1009f271
push 4
pop ecx
push ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1009f271
push dword [ebp - 0x40]
call fcn.100f930a
mov edi, eax
pop ecx
test edi, edi
je 0x1009f271
push ebx
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, esi
push 0xffffffffffffffff
push 0x10155980
test eax, eax
jne 0x1009f232
call fcn.100f930a
jmp 0x1009f268
call fcn.100f930a
cmp dword [ebp - 0x40], 0
jbe 0x1009f268
cmp ebx, 0x28
jae 0x1009f268
movzx eax, byte [ebx + edi]
push eax
lea eax, [ebp - 0x38]
push 0x10161ca0
push eax
call fcn.100f930a
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.100f930a
add esp, 0x14
inc ebx
cmp ebx, dword [ebp - 0x40]
jb 0x1009f23d
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
jmp 0x1009f27f
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.100f930a
cmp dword [ebp - 0x3c], 0
je 0x1009f28e
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x64]
call fcn.100f930a
mov eax, esi
call fcn.10143966
ret