joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f35
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43ca90
call fcn.0040398c
push 8
call fcn.00405383
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4954ec], esi
jne 0x403f69
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4954e8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4954e4], al
cmp dword [ebp + 0xc], edi
jne 0x403fb3
cmp dword [0x495c9c], edi
je 0x403fa3
mov eax, dword [0x495c98]
sub eax, 4
mov dword [0x495c98], eax
cmp eax, dword [0x495c9c]
jb 0x403fa3
mov eax, dword [eax]
cmp eax, edi
je 0x403f84
call eax
jmp 0x403f84
push 0x43e020
mov eax, 0x43e01c
call fcn.00403eb3
pop ecx
push 0x43e028
mov eax, 0x43e024
call fcn.00403eb3
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x403fe4
cmp dword [ebp + 0x10], edi
jne 0x403ff2
mov dword [0x4954ec], esi
push dword [ebp + 8]
call fcn.00403e71
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x403ff1
push 8
call fcn.004052ce
pop ecx
ret
call fcn.004039c7
ret

Function at 0x404162
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4579a0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x457658]
je 0x404197
inc eax
cmp eax, 0x13
jb 0x404188
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x457658]
jne 0x4042bd
mov eax, dword [0x495488]
cmp eax, 1
je 0x404295
cmp eax, edx
jne 0x4041c7
cmp dword [0x457324], 1
je 0x404295
cmp ecx, 0xfc
je 0x4042bd
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4041fd
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404f50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402610
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404231
mov eax, edi
push eax
call fcn.00402610
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43cea8
push edi
call fcn.004050a0
add esp, 0x10
push edi
call fcn.00402610
push dword [esi + 0x45765c]
mov ebx, eax
call fcn.00402610
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404a90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404f50
push edi
push ebx
call fcn.00404f60
push 0x43ce88
push ebx
call fcn.00404f60
push dword [esi + 0x45765c]
push ebx
call fcn.00404f60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040705d
add esp, 0x2c
jmp 0x4042bd
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45765c]
push dword [esi]
call fcn.00402610
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004057be
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404785
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x495704]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4047ce
call ebp
mov esi, eax
cmp esi, ebx
je 0x4047b4
mov dword [0x495704], 1
jmp 0x4047d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4047c9
push 2
pop eax
mov dword [0x495704], eax
jmp 0x4047ce
mov eax, dword [0x495704]
cmp eax, 1
jne 0x40482b
cmp esi, ebx
jne 0x4047e6
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4047e6
xor eax, eax
jmp 0x4048d2
cmp word [esi], bx
mov eax, esi
je 0x4047fb
inc eax
inc eax
cmp word [eax], bx
jne 0x4047ed
inc eax
inc eax
cmp word [eax], bx
jne 0x4047ed
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00404150
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40481e
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4048d2
push ebp
push esi
push edi
call fcn.00405450
add esp, 0xc
jmp 0x404810
cmp eax, 2
je 0x404834
cmp eax, ebx
jne 0x4047df
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4047df
cmp byte [ebp], bl
mov esi, ebp
je 0x40486a
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4047df
push esi
add edi, eax
call fcn.00402610
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x404847
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00404150
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4048e3
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4048c4
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4048d9
push edi
call fcn.00402610
push esi
lea edi, [edi + eax + 1]
call fcn.00407172
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40488a
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00404038
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4047df
Function at 0x4048ef
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x495708]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x40492f
call esi
test eax, eax
je 0x404914
mov dword [0x495708], 1
jmp 0x404934
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40492b
mov dword [0x495708], 2
jmp 0x40493d
xor eax, eax
jmp 0x40498b
cmp eax, 1
jne 0x404938
call esi
jmp 0x40498b
cmp eax, 2
jne 0x40492b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x404983
lea eax, [esi + esi]
push eax
call fcn.00404150
mov ebp, eax
test ebp, ebp
pop ecx
je 0x404983
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x404987
push ebp
call fcn.00404038
pop ecx
xor eax, eax
jmp 0x404989
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x406036
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406064
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40606b
cmp ebx, dword [eax + 4]
jae 0x40606b
xor eax, eax
jmp 0x40625b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40607c
xor eax, eax
inc eax
jmp 0x40625a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406092
cmp ecx, edx
jae 0x4061d7
cmp dword [eax + 4], 0
je 0x40609b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406083
cmp dword [ebp + 8], 0
je 0x4060bd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4061d7
cmp eax, esi
jae 0x4061d7
mov eax, dword [0x4958e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4060e2
cmp dword [esi*4 + 0x4958e8], edi
je 0x4061db
inc esi
cmp esi, eax
jl 0x4060d0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406257
cmp dword [ebp - 8], 0x1000000
jne 0x406257
test byte [ebp - 0xc], 0xcc
je 0x406160
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406257
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406257
cmp word [eax + 0x18], 0x10b
jne 0x406257
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406257
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406160
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406160
test byte [ecx + 0x27], 0x80
jne 0x4061d7
push 1
push 0x495928
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406074
mov ecx, dword [0x4958e0]
test ecx, ecx
mov edx, ecx
jle 0x406194
lea eax, [ecx*4 + 0x4958e4]
cmp dword [eax], edi
je 0x406194
dec edx
sub eax, 4
test edx, edx
jg 0x406188
test edx, edx
jne 0x4061c5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4061a1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4061b9
lea eax, [edx*4 + 0x4958e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4061a7
cmp ecx, 0x10
jge 0x4061c5
inc ecx
mov dword [0x4958e0], ecx
push 0
push 0x495928
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406074
xor eax, eax
jmp 0x40625a
test esi, esi
jle 0x406074
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x495928
call ebx
test eax, eax
jne 0x406074
cmp dword [esi*4 + 0x4958e8], edi
je 0x406231
mov eax, dword [0x4958e0]
lea esi, [eax - 1]
test esi, esi
jl 0x40621f
cmp dword [esi*4 + 0x4958e8], edi
je 0x40621b
dec esi
jns 0x40620f
test esi, esi
jge 0x40622f
cmp eax, 0x10
jge 0x40622a
inc eax
mov dword [0x4958e0], eax
lea esi, [eax - 1]
jmp 0x406231
je 0x406249
xor ecx, ecx
test esi, esi
jl 0x406249
lea eax, [ecx*4 + 0x4958e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406237
push 0
push 0x495928
call ebx
jmp 0x406074
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40625f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4579a0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x406290
xor eax, eax
jmp 0x406419
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x495cc0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4062cc
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00407ac0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4063a7
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4063e5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x406330
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406321
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x406301
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406370
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x406379
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4062f2
jmp 0x40637b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x406414
cmp dword [ebp - 0x6c], edi
je 0x4063e5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4063da
call fcn.00402e7d
mov dword [eax], 9
call fcn.00402e86
mov dword [eax], esi
jmp 0x40640f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4063cf
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x40637b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x40637b
push dword [ebp - 0x6c]
call fcn.00402e8f
pop ecx
jmp 0x40640f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4063fd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4063fd
xor eax, eax
jmp 0x406417
call fcn.00402e7d
mov dword [eax], 0x1c
call fcn.00402e86
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x406417
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004057be
add ebp, 0x3a0
leave
ret
Function at 0x40705d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x495934], ebx
push esi
push edi
jne 0x4070dd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407118
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x495934], eax
je 0x407118
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x495938], eax
call esi
cmp dword [0x4954ac], 2
mov dword [0x49593c], eax
jne 0x4070dd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x495944], eax
je 0x4070dd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x495940], eax
mov eax, dword [0x495940]
test eax, eax
je 0x407122
call eax
test eax, eax
je 0x407109
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x495944]
test eax, eax
je 0x407109
test byte [ebp - 8], 1
jne 0x407122
cmp dword [0x4954b8], 4
jb 0x40711c
or byte [ebp + 0x12], 0x20
jmp 0x407141
xor eax, eax
jmp 0x407151
or byte [ebp + 0x12], 4
jmp 0x407141
mov eax, dword [0x495938]
test eax, eax
je 0x407141
call eax
mov ebx, eax
test ebx, ebx
je 0x407141
mov eax, dword [0x49593c]
test eax, eax
je 0x407141
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x495934]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407394
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404a90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40742f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4954ac]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40742f
cmp eax, 1
je 0x407450
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40742f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4073fc
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40742b
xor eax, eax
inc eax
jmp 0x40746f
cmp edi, eax
jae 0x407433
xor eax, eax
jmp 0x40746f
cmp eax, esi
jae 0x40743a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4954ac]
jmp 0x407453
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop 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.10103939
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.10103939
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10161ca0
push eax
call fcn.10103939
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.10103939
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1009ee63
jmp 0x1009ee9a
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.10103939
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.10103939
pop ecx
pop ecx
push eax
call fcn.10103939
pop ecx
pop ecx
push eax
call fcn.10103939
pop ecx
pop ecx
push eax
call fcn.10103939
pop ecx
pop ecx
push eax
call fcn.10103939
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.10103939
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.10103939
jmp 0x1009f268
call fcn.10103939
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.10103939
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.10103939
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.10103939
cmp dword [ebp - 0x3c], 0
je 0x1009f28e
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x64]
call fcn.10103939
mov eax, esi
call fcn.10143966
ret
Function at 0x100acc8e
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1014e497
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x1018de8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a8720
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.100989f5
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10103939
pop ecx
pop ecx
push eax
call fcn.10103939
push 0xc
lea edi, [esi + 0x58]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call fcn.10103939
add esp, 0x18
test al, al
je 0x100acd01
cmp dword [esi + 0x5c], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x54], eax
call fcn.10103939
mov eax, esi
call fcn.10143951
ret 8

Function at 0x100ace90
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x1014c15d
call fcn.10143988
mov esi, ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.1008c7b9
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100988a3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.10103939
push 0
xor ecx, ecx
lea eax, [esi + 0x58]
cmp dword [esi + 0x5c], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x100acf2b
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100acf2b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100acf2d
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.10103939
lea ecx, [ebp - 0x1c]
call fcn.10103939
mov al, bl
call fcn.10143951
ret 8