joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425f00
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x43f954]
sub esp, 0x14
push eax
call fcn.00412aa7
cmp dword [0x4508c4], 0
mov eax, dword [eax]
je 0x425f34
cmp dword [eax + 0x20], 0
jne 0x425f34
mov ecx, dword [eax + 0x14]
push 0
push ecx
mov dword [eax + 0x20], 5
call fcn.00425c60
add esp, 8
cmp dword [0x4508b4], 0
push esi
je 0x42609b
call fcn.0041cd70
call fcn.00413b00
cmp dword [0x4508bc], 0
je 0x425f68
push 0
call fcn.00422e90
add esp, 4
cmp dword [0x4508bc], 0
jne 0x425f55
call fcn.00413c10
mov eax, dword [0x4508e0]
test eax, eax
je 0x425fa5
cmp dword [0x4508e4], 0
je 0x425fa5
mov edx, dword [0x4508dc]
lea ecx, [edx*4]
push eax
lea esi, [esp + 8]
mov dword [esp + 8], 0x21
mov dword [esp + 0xc], ecx
call fcn.0041c4c0
add esp, 4
push edi
lea esi, [esp + 8]
mov dword [esp + 8], 1
call fcn.0041c440
mov edx, dword [0x43f95c]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edx
call esi
mov eax, dword [0x444788]
push eax
call esi
mov ecx, dword [0x439bcc]
push ecx
call esi
mov edx, dword [0x438f20]
push edx
call esi
mov eax, dword [0x450864]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push eax
call esi
mov ecx, dword [0x4508ac]
push 0
push ecx
call esi
mov edx, dword [0x4390c0]
push 0
push edx
call esi
mov eax, dword [0x43f95c]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
call esi
mov ecx, dword [0x444788]
push ecx
call esi
mov edx, dword [0x439bcc]
push edx
call esi
mov eax, dword [0x438f20]
push eax
call esi
mov eax, dword [0x43f95c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push eax
mov edi, eax
call esi
push edi
call sub.MSVCRT.dll_free
mov eax, dword [0x444788]
add esp, 4
push eax
mov edi, eax
call esi
push edi
call sub.MSVCRT.dll_free
mov eax, dword [0x439bcc]
add esp, 4
push eax
mov edi, eax
call esi
push edi
call sub.MSVCRT.dll_free
mov eax, dword [0x438f20]
add esp, 4
push eax
mov edi, eax
call esi
push edi
call sub.MSVCRT.dll_free
mov ecx, dword [0x444790]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [0x450860]
push edx
call esi
pop edi
jmp 0x4260b2
cmp dword [0x444994], 0
je 0x4260b2
mov eax, dword [0x438f24]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
mov ecx, dword [0x450868]
push ecx
call sub.MSVCRT.dll_free
mov edx, dword [0x439714]
push edx
call sub.MSVCRT.dll_free
mov eax, dword [0x4508d8]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 8
test eax, eax
je 0x4260e7
push eax
mov eax, dword [0x438ec8]
push 0
push eax
call esi
mov eax, dword [0x4508e0]
test eax, eax
je 0x4260fc
mov ecx, dword [0x438ec8]
push eax
push 0
push ecx
call esi
pop esi
add esp, 0x14
ret
Function at 0x405646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x405655
pop dword [ebp - 0x24]
mov eax, 0x82f27656
sub eax, 0x82b22001
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x18bc54eb
add dword [ebp - 0x34], 0x3595f060
mov dword [ebp - 0x30], 0x51a307e0
add dword [ebp - 0x30], 0xe0904465
mov dword [ebp - 0x2c], 0x3b77d3ad
add dword [ebp - 0x2c], 0x10d47081
mov dword [ebp - 0x28], 0x75a6d699
add dword [ebp - 0x28], 0x8a592967
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x63eaa706
sub dword [ebp - 0x34], 0xef783db0
mov dword [ebp - 0x30], 0x2ede9141
sub dword [ebp - 0x30], 0xed722fcc
mov dword [ebp - 0x2c], 0x9e324d9c
sub dword [ebp - 0x2c], 0x3ac2e130
mov dword [ebp - 0x28], 0x7639a56e
sub dword [ebp - 0x28], 0x7639a56e
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x34e47
push 0
call eax
mov ecx, 0x3fe4
mov esi, eax
mov edi, 0x436000
add edi, dword [ebp - 0x24]
mov edx, 0x7358f672
sub edx, 0x5fe167a1
mov dword [ebp - 0x1c], 0x7dacfcee
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0xad1b4f58
xor ebx, edx
xor dword [ebp - 8], esi
mov dword [esi], ebx
add esi, 4
add edi, 4
loop 0x405761
add eax, 0x645e8757
add eax, 0x9ba26b0c
mov ebx, eax
add eax, 0x2ece4a8d
add eax, 0xd131b578
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4058f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x10013680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1001368f
pop dword [ebp - 0x1c]
mov eax, 0x1001368f
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xadd681aa
sub dword [ebp - 0x2c], 0x5f843c5f
mov dword [ebp - 0x28], 0xb2b2edf6
sub dword [ebp - 0x28], 0x807fa1b1
mov dword [ebp - 0x24], 0xe7b539a3
sub dword [ebp - 0x24], 0x9b68f575
mov dword [ebp - 0x20], 0x7a4bbbae
add dword [ebp - 0x20], 0x85b44452
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x418b392d
add dword [ebp - 0x2c], 0x32e73029
mov dword [ebp - 0x28], 0xe80e7032
sub dword [ebp - 0x28], 0xa6a20ebd
mov dword [ebp - 0x24], 0x8bd7385a
add dword [ebp - 0x24], 0xd7983412
mov dword [ebp - 0x20], 0xcd638f72
sub dword [ebp - 0x20], 0xcd638f72
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x40bc5
push 0
call eax
mov ecx, 0x502a
xor edx, edx
add edx, eax
mov edi, 0x6965dd3e
add edi, 0xa69cd2c2
add edi, dword [ebp - 0x1c]
mov esi, 0xf14c4b25
add esi, 0xf41f93eb
xor dword [ebp - 0x14], 0xa854b5b0
mov ebx, dword [edi]
add dword [ebp - 4], 0xa87e9e63
sub ebx, esi
mov dword [ebp - 4], 0x7f7979a8
mov dword [edx], ebx
sub dword [ebp - 0xc], 0xa4073a9b
add edx, 4
add edi, 0x2d63831a
sub edi, 0x2d638316
loop 0x1001379e
add eax, 0x1337b
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10029bc
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001838
call fcn.01007e18
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [esi], fcn.0100291b
xor ebx, ebx
cmp dword [esi + 0x74], ebx
je 0x10029e3
push esi
mov ecx, dword [esi + 0x70]
call fcn.0100585d
push dword [esi + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [esi + 0x4c]
cmp dword [eax], ebx
je 0x10029fa
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea eax, [esi + 0x48]
cmp dword [eax], ebx
je 0x1002a08
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x1002a16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x50], ebx
je 0x1002a76
mov dword [ebp - 4], ebx
push dword [esi + 0x60]
call fcn.01002767
or dword [ebp - 4], 0xffffffff
jmp 0x1002a76
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x1002a83
push eax
call fcn.010083c1
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x1002aee
mov ecx, dword [esi + 0x6c]
imul ecx, ecx, 0x3e8
push ecx
push eax
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call edi
cmp eax, ebx
je 0x1002ae5
test byte [0x100a0bc], 8
je 0x1002acc
cmp byte [0x100a0b9], 2
jb 0x1002acc
push eax
push 0x10017a8
push 0x16
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
push ebx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x6c]
imul eax, eax, 0x3e8
push eax
push dword [esi + 0x50]
call edi
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.01002941
call fcn.01007e53
ret
Function at 0x1002b00
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x10018e0
push 0x80000002
mov esi, ecx
call edi
test eax, eax
je 0x1002b70
test byte [0x100a0bc], 8
je 0x1002d5c
cmp byte [0x100a0b9], 2
jb 0x1002d5c
push eax
push 0x10018e0
push 0x10017a8
push 0x17
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100280d
jmp 0x1002d5c
mov eax, dword [esi + 0x30]
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x1002bbf
test byte [0x100a0bc], 8
je 0x1002d53
cmp byte [0x100a0b9], 2
jb 0x1002d53
push eax
push dword [esi + 0x30]
push 0x10017a8
push 0x18
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.0100280d
jmp 0x1002d53
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea ebx, [esi + 0x68]
push ebx
lea eax, [ebp - 8]
push eax
push 0
push 0x10018a8
push dword [ebp - 0xc]
mov dword [ebp - 4], 4
call edi
test eax, eax
jne 0x1002bee
cmp dword [ebp - 8], 4
je 0x1002c1e
test byte [0x100a0bc], 8
je 0x1002c18
cmp byte [0x100a0b9], 3
jb 0x1002c18
push 0x10017a8
push 0x19
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
mov dword [ebx], 0xa
mov ebx, dword [ebx]
mov eax, dword [0x100a158]
cmp ebx, dword [eax + 0x74]
jbe 0x1002c62
test byte [0x100a0bc], 8
je 0x1002d4a
cmp byte [0x100a0b9], 2
jb 0x1002d4a
push ebx
push 0x10017a8
push 0x1a
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
jmp 0x1002d4a
lea eax, [ebp - 4]
push eax
lea ebx, [esi + 0x6c]
push ebx
lea eax, [ebp - 8]
push eax
push 0
push 0x1001874
push dword [ebp - 0xc]
mov dword [ebp - 4], 4
call edi
test eax, eax
jne 0x1002c8b
cmp dword [ebp - 8], 4
je 0x1002cbb
test byte [0x100a0bc], 8
je 0x1002cb5
cmp byte [0x100a0b9], 3
jb 0x1002cb5
push 0x10017a8
push 0x1b
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027af
mov dword [ebx], 0xa
mov ebx, dword [ebx]
mov eax, dword [0x100a158]
cmp ebx, dword [eax + 0x78]
jbe 0x1002ce6
test byte [0x100a0bc], 8
je 0x1002d4a
cmp byte [0x100a0b9], 2
jb 0x1002d4a
push ebx
push 0x10017a8
push 0x1c
jmp 0x1002c4c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov edi, 0x1001844
push edi
push dword [ebp - 0xc]
call fcn.010051ab
mov ebx, eax
test ebx, ebx
jne 0x1002d2f
test byte [0x100a0bc], 8
je 0x1002d4a
cmp byte [0x100a0b9], 2
jb 0x1002d4a
push edi
push 0x10017a8
push 0x1d
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027d5
jmp 0x1002d4a
push ebx
call fcn.0100552c
test eax, eax
mov dword [esi + 0x44], eax
je 0x1002d43
mov dword [ebp - 0x14], 1
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10051ab
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], 4
mov dword [ebp - 8], edi
xor esi, esi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1005265
cmp dword [ebp - 4], 7
je 0x10051f5
cmp dword [ebp - 4], 1
je 0x10051f5
cmp dword [ebp - 4], 2
jne 0x1005265
mov eax, dword [ebp - 8]
shr eax, 1
cmp ebx, edi
jne 0x1005217
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x1005265
inc esi
cmp esi, 2
jb 0x10051c5
jmp 0x100521c
mov word [ebx + eax*2 - 2], di
cmp dword [ebp - 4], 2
jne 0x100528b
xor esi, esi
and dword [ebp + 0xc], esi
mov dword [ebp + 8], 0x1f
mov eax, edi
shr eax, 1
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
shl eax, 1
cmp eax, edi
jbe 0x1005270
test esi, esi
jne 0x1005265
mov edi, eax
shr eax, 1
shl eax, 1
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
jne 0x1005280
mov dword [ebp + 8], 8
cmp dword [ebp + 8], 0
je 0x100528b
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor ebx, ebx
jmp 0x100529b
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp + 8], 0
pop ecx
mov ebx, esi
mov dword [ebp - 8], edi
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 2
jb 0x100522e
jmp 0x100525f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x100552c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100a140]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x100559f
test byte [0x100a0bc], 1
je 0x100569b
cmp byte [0x100a0b9], 2
jb 0x100569b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020dc
push 0x3b
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
jmp 0x100569b
mov edi, dword [sym.imp.KERNEL32.dll_SearchPathW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, ebx
jne 0x10055e3
test byte [0x100a0bc], 1
je 0x100569b
cmp byte [0x100a0b9], 2
jb 0x100569b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020dc
push 0x3c
jmp 0x1005589
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x214], eax
jne 0x1005634
test byte [0x100a0bc], 1
je 0x100569b
cmp byte [0x100a0b9], 2
jb 0x100569b
push dword [ebp - 0x218]
push 0x10020dc
push 0x3d
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010027d5
jmp 0x100569b
lea ecx, [ebp - 0x21c]
push ecx
push eax
push esi
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, ebx
je 0x100565e
dec esi
cmp eax, esi
ja 0x100565e
mov eax, dword [ebp - 0x214]
jmp 0x100569d
test byte [0x100a0bc], 1
je 0x100568f
cmp byte [0x100a0b9], 2
jb 0x100568f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10020dc
push 0x3e
push dword [0x100a0b4]
push dword [0x100a0b0]
call fcn.010050cb
push dword [ebp - 0x214]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b5b
leave
ret 4
Function at 0x10073a6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100a140]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
xor ebx, ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x2001d
push ebx
push ebx
push ebx
push 0x10024d8
push 0x80000002
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007524
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007524
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x10024c8
push 2
push ebx
push 0x10024a8
push dword [ebp - 0x64]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007524
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x1002498
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007524
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x100247c
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007524
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x1007524
jmp 0x1007499
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [edi + 8]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1007517
mov esi, dword [edi + 4]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.010072ca
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x1002470
push dword [ebp - 0x6c]
call esi
mov edi, dword [ebp - 0x68]
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x100245c
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x6c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
cmp edi, ebx
mov dword [ebp - 0x68], edi
jne 0x1007496
cmp dword [ebp - 0x64], ebx
je 0x1007532
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
je 0x1007540
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01007b5b
leave
ret 8
Function at 0x1007c73
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002580
call fcn.01007e18
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1007cae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007cae
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1007cc6
cmp eax, 0x20b
je 0x1007cb3
mov dword [ebp - 0x1c], edi
jmp 0x1007cda
cmp dword [ecx + 0x84], 0xe
jbe 0x1007cae
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1007cd4
cmp dword [ecx + 0x74], 0xe
jbe 0x1007cae
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100a190], 0xffffffff
or dword [0x100a194], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100a188]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100a184]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100a198], eax
call fcn.01007ea4
cmp dword [0x100a144], edi
jne 0x1007d35
push fcn.01007ea4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007e8d
push 0x100a010
push 0x100a00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100a180]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100a17c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100a008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010076c4
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1007dac
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1007de1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01007e53
ret
Function at 0x1008411
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 2
mov dword [ebp - 4], esi
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x100846b
test byte [0x100a07c], 8
je 0x1008530
cmp byte [0x100a079], 2
jb 0x1008530
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100258c
push 0x2d
push dword [0x100a074]
push dword [0x100a070]
call fcn.010050cb
jmp 0x1008530
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
je 0x10084b7
cmp eax, 0x7a
je 0x10084b7
test byte [0x100a07c], 8
je 0x100852f
cmp byte [0x100a079], 2
jb 0x100852f
call edi
push eax
push 0x100258c
push 0x2e
push dword [0x100a074]
push dword [0x100a070]
call fcn.010050cb
jmp 0x100852f
mov eax, dword [ebp - 4]
add eax, eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x10084e8
test byte [0x100a07c], 8
je 0x100852f
cmp byte [0x100a079], 3
jb 0x100852f
push dword [ebp - 4]
push 0x100258c
push 0x2f
jmp 0x10084a4
lea eax, [ebp - 4]
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x100852f
test byte [0x100a07c], 8
je 0x1008525
cmp byte [0x100a079], 2
jb 0x1008525
call edi
push eax
push 0x100258c
push 0x30
push dword [0x100a074]
push dword [0x100a070]
call fcn.010050cb
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret