joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1049caa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x420], ecx
lea ecx, [ebp - 0x41c]
push ecx
push 0x20019
xor edi, edi
push edi
push esi
push eax
mov byte [ebp - 0x415], 0
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1049d01
push eax
push eax
push 0xedd0136
jmp 0x1049d4c
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
push 0x1001ea0
push dword [ebp - 0x41c]
mov dword [ebp - 0x424], 0x40e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1049d45
mov eax, dword [ebp - 0x42c]
cmp eax, edi
jne 0x1049d56
mov eax, 0x80070002
push eax
push eax
push 0xeeb0136
call fcn.0107ae61
jmp 0x1049e44
push ebx
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x1049d84
cmp eax, 2
je 0x1049d84
push eax
push 0xef00136
push esi
call fcn.0107ae7f
push 0x8007000d
push 0xef10136
push esi
call fcn.0107ae7f
jmp 0x1049e43
mov eax, dword [ebp - 0x424]
cmp eax, 0x410
jae 0x1049e43
push dword [ebp + 0x10]
shr eax, 1
mov word [ebp + eax*2 - 0x414], di
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x1049dbf
lea esi, [ebp - 0x414]
jmp 0x1049e16
cmp word [ebp + 0x10], 0x2e
jne 0x1049e0f
lea eax, [ebp - 0x414]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x428], eax
je 0x1049e0f
cmp esi, eax
je 0x1049e0f
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.msvcrt.dll_iswdigit]
jmp 0x1049df6
inc ebx
movzx eax, word [esi + ebx*2]
push eax
call edi
test eax, eax
pop ecx
jne 0x1049df1
cmp word [esi + ebx*2], 0
jne 0x1049e0f
and word [esi], 0
mov esi, dword [ebp - 0x428]
xor edi, edi
mov word [esi], di
inc esi
inc esi
push esi
push dword [ebp - 0x420]
call fcn.0107d890
test eax, eax
je 0x1049e3c
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x420]
call fcn.0107d890
test eax, eax
jne 0x1049e43
mov byte [ebp - 0x415], 1
pop ebx
cmp dword [ebp - 0x41c], edi
pop edi
pop esi
je 0x1049e5a
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x415]
xor ecx, ebp
call fcn.01068363
leave
ret 0x10
Function at 0x104bee8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x104befc
mov dword [eax], edi
cmp dword [ebp + 0xc], edi
je 0x104bff9
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x104bff9
cmp dword [ebp + 0x14], edi
je 0x104bff9
cmp eax, edi
je 0x104bff9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp + 0x10], edi
push dword [ebp + 8]
call esi
cmp eax, edi
mov dword [ebp - 4], eax
je 0x104bf55
push 2
push eax
push 0x5270138
push dword [ebp + 0xc]
call fcn.0107adc0
jmp 0x104c00c
mov eax, dword [ebp + 0x10]
add eax, 6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x104bf84
mov eax, 0x8007000e
push eax
push 0x5300138
mov dword [ebp - 4], eax
call fcn.0107ae44
jmp 0x104c011
lea ecx, [ebp + 0x10]
push ecx
push eax
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
mov dword [ebp - 4], eax
je 0x104bfaa
push eax
push 0x53a0138
push dword [ebp + 0xc]
call fcn.0107ae7f
jmp 0x104c00c
mov eax, dword [ebx]
cmp eax, 1
je 0x104bfb6
cmp eax, 7
jne 0x104bfef
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, eax
shr edx, 1
lea edi, [ecx + edx*2]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ecx
cmp word [eax], 0
jne 0x104bfd7
cmp word [eax + 2], 0
je 0x104bfdb
inc eax
inc eax
jmp 0x104bfca
sub eax, ecx
shr eax, 1
xor ecx, ecx
cmp dword [ebx], 1
setne cl
inc ecx
add eax, ecx
add eax, eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x104c027
mov eax, 0x80004003
push eax
push 0x51d0138
mov dword [ebp - 4], eax
call fcn.0107ae44
cmp dword [ebp - 4], edi
je 0x104c027
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x104c027
mov eax, dword [esi]
cmp eax, edi
je 0x104c027
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], edi
push dword [ebp - 4]
call fcn.010a47cf
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1059629
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push esi
push 0x8000000
push 3
xor eax, eax
push esi
inc eax
push eax
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0x10], ebx
jne 0x105967e
call fcn.010a4804
mov ebx, eax
push ebx
push 0x22800139
jmp 0x1059717
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x105969d
call fcn.010a4804
mov ebx, eax
push ebx
push 0x22870139
jmp 0x1059717
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
call fcn.010554c8
mov ebx, eax
cmp ebx, esi
je 0x10596b6
push ebx
push 0x228d0139
jmp 0x1059717
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10596d8
call fcn.010a4804
mov ebx, eax
push ebx
push 0x22930139
jmp 0x1059717
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.01052ac9
mov ebx, eax
cmp ebx, esi
je 0x10596fa
push ebx
push 0x22990139
jmp 0x1059717
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.01058e8e
mov ebx, eax
cmp ebx, esi
je 0x105971c
push ebx
push 0x229e0139
call fcn.0107ae44
cmp dword [ebp - 0xc], esi
mov edi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
je 0x105972c
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], esi
je 0x1059736
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 4], esi
je 0x1059744
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], esi
je 0x1059753
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp + 0x10], 0xffffffff
je 0x1059762
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x105aa5c
Capabilities:
Get hostname
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 4
mov dword [ebp - 0x208], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
mov esi, 0x1003d24
jne 0x105aabb
call fcn.010a4804
mov edi, eax
push edi
push 0x636013a
call fcn.0107ae44
push edi
push 0x1010a2c
call fcn.0107a7e2
jmp 0x105aadd
lea eax, [ebp - 0x204]
push eax
push 0x893
call fcn.0107a681
push eax
call fcn.0108880b
push esi
call fcn.0108880b
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 2
mov dword [ebp - 0x208], 0x100
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x105ab25
call fcn.010a4804
push edi
push 0x645013a
mov esi, eax
call fcn.0107ae44
push esi
push 0x1010a10
call fcn.0107a7e2
test edi, edi
jne 0x105ab4b
mov edi, esi
jmp 0x105ab4b
lea eax, [ebp - 0x204]
push eax
push 0x894
call fcn.0107a681
push eax
call fcn.0108880b
push esi
call fcn.0108880b
push esi
call fcn.0108880b
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01068363
leave
ret
Function at 0x105f3d4
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x10a7a59
call fcn.010683c9
push 0xc
call fcn.01067fb8
mov esi, eax
test esi, esi
pop ecx
jne 0x105f402
push 0x8007000e
push 0xf28013f
call fcn.0107ae44
jmp 0x105f48e
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push 8
mov dword [esi + 4], eax
call fcn.01067fb8
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x105f433
push dword [ebp + 0x10]
call fcn.0105d10f
jmp 0x105f435
xor eax, eax
or dword [ebp - 4], 0xffffffff
test eax, eax
mov dword [esi + 8], eax
jne 0x105f451
push 0x8007000e
push 0xf31013f
call fcn.0107ae44
jmp 0x105f481
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push fcn.0105ece8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x105f478
call fcn.010a4804
push eax
push 0xf3e013f
jmp 0x105f44a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test esi, esi
je 0x105f48e
push 1
mov ecx, esi
call fcn.0105cf2d
call fcn.010684b5
ret 0xc

Function at 0x105f49b
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x10a7a59
call fcn.010683c9
push 0xc
call fcn.01067fb8
mov esi, eax
test esi, esi
pop ecx
jne 0x105f4c9
push 0x8007000e
push 0xf56013f
call fcn.0107ae44
jmp 0x105f54f
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 8
mov dword [esi], eax
call fcn.01067fb8
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x105f4f4
push dword [ebp + 0xc]
call fcn.0105d10f
jmp 0x105f4f6
xor eax, eax
or dword [ebp - 4], 0xffffffff
test eax, eax
mov dword [esi + 8], eax
jne 0x105f512
push 0x8007000e
push 0xf5e013f
call fcn.0107ae44
jmp 0x105f542
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push fcn.0105efca
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x105f539
call fcn.010a4804
push eax
push 0xf6b013f
jmp 0x105f50b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test esi, esi
je 0x105f54f
push 1
mov ecx, esi
call fcn.0105cf2d
call fcn.010684b5
ret 8
Function at 0x105f55c
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x10a7a59
call fcn.010683c9
push 0xc
call fcn.01067fb8
mov esi, eax
test esi, esi
pop ecx
jne 0x105f58a
push 0x8007000e
push 0xf83013f
call fcn.0107ae44
jmp 0x105f610
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 8
mov dword [esi], eax
call fcn.01067fb8
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x105f5b5
push dword [ebp + 0xc]
call fcn.0105d10f
jmp 0x105f5b7
xor eax, eax
or dword [ebp - 4], 0xffffffff
test eax, eax
mov dword [esi + 8], eax
jne 0x105f5d3
push 0x8007000e
push 0xf8b013f
call fcn.0107ae44
jmp 0x105f603
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push fcn.0105f226
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x105f5fa
call fcn.010a4804
push eax
push 0xf98013f
jmp 0x105f5cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test esi, esi
je 0x105f610
push 1
mov ecx, esi
call fcn.0105cf2d
call fcn.010684b5
ret 8
Function at 0x1060434
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov eax, dword [edi + 0xc]
lea ecx, [eax + 0x30]
push ecx
add eax, 0x18
push eax
push 1
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.CRYPT32.dll_CertCompareCertificateName]
test eax, eax
mov edx, 0x40000000
je 0x1060473
or dword [esi], edx
cmp dword [ebp + 0x20], ebx
mov ecx, 0x20000000
jne 0x1060485
cmp dword [0x10b756c], ebx
je 0x106048a
mov ecx, 0x20000010
mov eax, dword [0x10b7598]
cmp eax, ebx
je 0x106049e
or ecx, 0xb
cmp eax, 1
jle 0x106049e
or ecx, 4
cmp dword [0x10b75ac], ebx
jne 0x10604a8
or ecx, edx
cmp dword [0x10b75b8], ebx
je 0x10604b6
or ecx, 0x80000000
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x10b75c8]
neg eax
sbb eax, eax
and eax, 0x106035e
push eax
push dword [ebp + 0xc]
xor eax, eax
cmp dword [0x10b7570], ebx
push ebx
sete al
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [0x10b75d4]
push ecx
push edi
call fcn.01082785
mov edi, eax
cmp edi, ebx
jne 0x1060532
cmp dword [ebp - 8], ebx
jne 0x1060518
cmp dword [ebp - 0xc], ebx
jne 0x1060518
call fcn.0107d1d4
test eax, eax
je 0x1060532
push dword [ebp - 8]
push 0x7fd
call fcn.010602c7
push dword [ebp - 0xc]
push 0x7fe
call fcn.010602c7
cmp dword [ebp - 0x10], ebx
je 0x1060546
push dword [ebp - 0x10]
push 0x1001ba4
call fcn.0108880b
pop ecx
pop ecx
cmp edi, 0x80092010
je 0x10605b0
cmp edi, 0x800b010c
je 0x10605b0
cmp edi, 0x800b0109
jne 0x1060568
or dword [esi], 8
mov eax, 0x275
jmp 0x10605b8
cmp edi, 0x800b010a
jne 0x106057a
or dword [esi], 0x10
mov eax, 0x276
jmp 0x10605b8
cmp edi, 0x800b0101
jne 0x106058c
or dword [esi], 2
mov eax, 0x355
jmp 0x10605b8
cmp edi, 0x80092013
jne 0x106059e
or dword [esi], 0x40
mov eax, 0x290
jmp 0x10605b8
cmp edi, 0x80092012
jne 0x10605f8
or dword [esi], 0x20
mov eax, 0x291
jmp 0x10605b8
or dword [esi], 4
mov eax, 0x2fe
push eax
call fcn.0107a681
push eax
call fcn.0108880b
mov dword [esp], 0x1003d24
call fcn.0108880b
cmp dword [ebp - 4], ebx
pop ecx
je 0x10605f6
push 0x31b
call fcn.0107a681
push eax
call fcn.0108880b
push dword [ebp - 4]
push 0x1010ea4
call fcn.0108880b
add esp, 0xc
xor edi, edi
cmp edi, ebx
je 0x106060a
or dword [esi], 1
push edi
push 0x507013b
call fcn.0107ae44
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x106061a
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x1060624
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x106062e
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x1060638
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x106833d
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10a9f90
call fcn.01068f34
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10b9418
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10680eb
cmp eax, esi
jne 0x10680de
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10680ee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10680c5
xor esi, esi
inc esi
mov eax, dword [0x10b9414]
cmp eax, esi
jne 0x1068101
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1068130
mov eax, dword [0x10b9414]
test eax, eax
jne 0x106812a
mov dword [0x10b9414], esi
push 0x10018c8
push 0x10018bc
call fcn.01068027
pop ecx
pop ecx
test eax, eax
je 0x1068130
jmp 0x1068254
mov dword [0x10b87f8], esi
mov eax, dword [0x10b9414]
cmp eax, esi
jne 0x1068154
push 0x10018b8
push 0x10018b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10b9414], 2
cmp dword [ebp - 0x20], ebx
jne 0x1068161
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10b9428], ebx
je 0x1068182
push 0x10b9428
call fcn.01068eab
pop ecx
test eax, eax
je 0x1068182
push ebx
push 2
push ebx
call dword [0x10b9428]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1068254
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10681ec
cmp cx, bx
je 0x10681a7
cmp dword [ebp - 0x1c], ebx
jne 0x10681ec
movzx ecx, word [eax]
cmp cx, bx
je 0x10681bc
cmp cx, 0x20
ja 0x10681bc
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10681a7
test byte [ebp - 0x40], 1
je 0x10681c8
movzx ecx, word [ebp - 0x3c]
jmp 0x10681cb
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10b87f4], eax
cmp dword [0x10b87e8], ebx
jne 0x1068231
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10681fd
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1068191
cmp dword [0x10b87f8], ebx
jne 0x106823f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10b87f4]
jmp 0x1068260
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01068f79
ret
call fcn.01069076
jmp 0x1068088

Function at 0x1068e20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1068e33
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1068e2f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1068e60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1068e9f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1068e95
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1068ea1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1068e85
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1069d73
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0xa0
mov eax, 0x10a7c4e
call fcn.01068401
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x1069d96
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], ebx
jne 0x1069dcb
push 0x80070057
push 0x1011c1c
push 0xa5
push 0x1011a58
lea ecx, [ebp - 0x90]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x90]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp byte [ebp + 0x14], bl
jne 0x1069e0d
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
test eax, eax
jne 0x1069e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010692df
push eax
push 0x1011bd8
push 0xa9
push 0x1011a58
lea ecx, [ebp - 0x58]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x58]
jmp 0x1069dc5
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.010699e5
mov byte [ebp - 4], 1
mov dword [ebp + 8], ebx
cmp dword [ebp + 0xc], ebx
jne 0x1069e2c
mov eax, 0x8004
jmp 0x1069e3b
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0106bd8b
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1069e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010692df
push eax
push 0x1011b78
push 0xb0
push 0x1011a58
lea ecx, [ebp - 0x74]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x74]
jmp 0x1069dc5
push 0x10
call fcn.01067fb8
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x1069ea9
push 1
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0106dbf7
jmp 0x1069eab
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1069ee5
push 0x8007000e
push 0x10116f4
push 0xb3
push 0x1011a58
lea ecx, [ebp - 0xac]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0xac]
jmp 0x1069dc5
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.010699b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.010684b5
ret 0x14
Function at 0x1075a1d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1075a74
call fcn.010a4804
push dword [ebp + 8]
mov edi, eax
push edi
push 0x103
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01079fc8
push edi
push 0xce00ca
call fcn.0107ae44
jmp 0x1075ac8
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1075ab5
call fcn.010a4804
push dword [ebp + 8]
mov edi, eax
push edi
push 0x11e
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01079fc8
push edi
push 0xdb00ca
call fcn.0107ae44
jmp 0x1075abc
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jne 0x1075acf
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1077ca6
Capabilities:
Get user security identifier

Disassembly:
push 0x320
mov eax, 0x10a8c0d
call fcn.0106843c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x31c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x31c]
push eax
push 2
call fcn.0107baec
mov esi, eax
test esi, esi
je 0x1077ceb
push esi
push 0x7f500ca
jmp 0x1077dac
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x31c]
mov dword [ebp - 0x324], 0x100
push 0
mov dword [ebp - 0x328], 0x104
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1077d4e
call fcn.010a4804
mov esi, eax
push esi
push 0x80500ca
push dword [ebp - 0x31c]
call fcn.0107ae7f
jmp 0x1077db1
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.01097150
test eax, eax
jne 0x1077d74
call fcn.010a4804
mov esi, eax
push esi
push 0x80b00ca
jmp 0x1077dac
push edi
push dword [ebp - 0x320]
push 0x1017d68
call fcn.0109c200
mov esi, eax
test esi, esi
je 0x1077d93
push esi
push 0x81200ca
jmp 0x1077dac
push ebx
push 0
push 0x1017bf0
call fcn.0109c200
mov esi, eax
test esi, esi
je 0x1077db1
push esi
push 0x81800ca
call fcn.0107ae44
cmp dword [ebp - 0x320], 0
je 0x1077dc6
push dword [ebp - 0x320]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x31c]
call fcn.0102b669
mov eax, esi
call fcn.010684ce
ret 8