joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa11f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa269fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xa12002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a15dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa12002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a0d6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a1620b
push 0x10
call fcn.00a161d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa11fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a021c0
jmp 0xa11fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a11b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa11ff0
mov ecx, edi
call fcn.00a022c0
push edi
call fcn.00a161c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa12021
inc ebx
cmp ebx, 0x20
jb 0xa11f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa13250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa27808
push 0xa17288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xa13329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xa13329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00a161d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xa13329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xa13329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xa1332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00a13351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa13d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa13d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa13d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa13d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa13d94
push eax
push esi
call fcn.00a1620b
add esp, 8
pop esi
ret 0x10

Function at 0xa13da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa13e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa13e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa2c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a15dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa13dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa13e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa13ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa13eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa2c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a15dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa13eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa13e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa14000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa14131
push esi
call fcn.00a17145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a06080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa14131
push 0
push ebp
call fcn.00a063a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a06260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa1408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a062f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa14121
push 0xa2c918
push edi
call fcn.00a153f0
push eax
push ebx
push esi
call fcn.00a13f60
push 0xa2c8f8
push edi
call fcn.00a153f0
push eax
push ebx
push esi
call fcn.00a13f60
push 0xa2c8d8
push edi
call fcn.00a153f0
push eax
push ebx
push esi
call fcn.00a13f60
push 0xa2c8c0
push edi
call fcn.00a153f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a13f60
push 0xa2c8a0
push edi
call fcn.00a153f0
push eax
push ebx
push esi
call fcn.00a13f60
push 0xa2c888
push edi
call fcn.00a153f0
push eax
push ebx
push esi
call fcn.00a13f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa151b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a15140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a15140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a15140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a15140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa15bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa15c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa2787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa15c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa15c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40473a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x408088
call fcn.00404850
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x409494], ebx
jne 0x4044d5
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x409488
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40450f
cmp eax, esi
jne 0x404502
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x404512
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4044e9
xor esi, esi
inc esi
mov eax, dword [0x409484]
cmp eax, esi
jne 0x404525
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x404560
mov eax, dword [0x409484]
test eax, eax
jne 0x40455a
mov dword [0x409484], esi
push 0x406224
push 0x406218
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x404560
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40467a
mov dword [0x409138], esi
mov eax, dword [0x409484]
cmp eax, esi
jne 0x404584
push 0x406214
push 0x406204
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x409484], 2
cmp dword [ebp - 0x24], ebx
jne 0x404591
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x409498], ebx
je 0x4045b2
push 0x409498
call main
pop ecx
test eax, eax
je 0x4045b2
push ebx
push 2
push ebx
call dword [0x409498]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40460b
cmp al, bl
je 0x4045cb
cmp dword [ebp - 0x1c], ebx
jne 0x40460b
mov al, byte [esi]
cmp al, bl
je 0x4045db
cmp al, 0x20
ja 0x4045db
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4045cb
test byte [ebp - 0x40], 1
je 0x4045e7
movzx eax, word [ebp - 0x3c]
jmp 0x4045ea
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x409134], eax
cmp dword [0x409128], ebx
jne 0x404660
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x40461a
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x40462d
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4045b9
cmp dword [0x409138], ebx
jne 0x40466e
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x409134]
call fcn.00404895
ret
call main
jmp 0x4044a7

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 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4058cc
pop dword [ebp - 0x10]
mov eax, 0xf2b4ccd2
sub eax, 0xf2747406
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x3956a15b
add dword [ebp - 0x20], 0x14fba3f0
mov dword [ebp - 0x1c], 0x916ed456
sub dword [ebp - 0x1c], 0x5f3b8811
mov dword [ebp - 0x18], 0x1171af2a
add dword [ebp - 0x18], 0x3ada9504
mov dword [ebp - 0x14], 0xf7fbe4e3
add dword [ebp - 0x14], 0x8041b1d
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xdbdbc90f
sub dword [ebp - 0x20], 0x67695fb9
mov dword [ebp - 0x1c], 0xfccecc4d
add dword [ebp - 0x1c], 0x449d9528
mov dword [ebp - 0x18], 0x13659230
add dword [ebp - 0x18], 0x5009da3c
mov dword [ebp - 0x14], 0xffa061bf
sub dword [ebp - 0x14], 0xffa061bf
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x49c82d11
sub eax, 0x49875cc5
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x39f9c
push 0
call eax
mov ecx, 0x49b7
mov ebx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x10]
mov edi, 0xdfb02d04
add edi, 0x658d0aa6
xor dword [ebp - 8], 0x62467201
mov edx, dword [esi]
xor dword [ebp - 0xc], ebx
xor edx, edi
mov dword [ebx], edx
mov dword [ebp - 8], 0x2ece07fb
add ebx, 4
add esi, 0xb6391170
sub esi, 0xb639116c
loop 0x4059dd
add eax, 0x119af
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov dword [esp], 0x4add183a
mov edx, 0x4b2141f6
mov eax, dword [esp]
sub edx, eax
mov eax, dword [0x442a14]
push esi
push edi
mov esi, dword [edx]
mov edi, ecx
add esi, 0x1c71febe
cmp eax, 0xffffffff
jne 0x4017d1
sub esp, 0xc
mov dword [0x442a14], 0
xor edx, edx
call fcn.0040a6f0
add esp, 0xc
test eax, eax
je 0x4017cc
sub esp, 0xc
mov edx, 2
call fcn.0040a6f0
add esp, 0xc
test eax, eax
jne 0x4017cc
lea eax, [esi + esi]
mov ecx, 0x711a7cfa
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
test ecx, ecx
je 0x4017cc
mov eax, 0x38af16c9
sub eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x442a14], eax
jmp 0x4017d1
mov eax, dword [0x442a14]
test eax, eax
je 0x40186b
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 0x24
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0x10003
push dword [ebp + 8]
mov dword [esp + 0x40], 8
push edi
push 0
push 0x1fffff
push ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x10004
mov dword [esp + 0x60], 4
mov dword [esp + 0x68], 0
call eax
test eax, eax
jns 0x40185f
push eax
call dword [sym.imp.ADVAPI32.dll_LsaNtStatusToWinError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401bf0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x210], 0x1c1156dd
mov ecx, 0x1c558099
mov eax, dword [ebp - 0x210]
sub ecx, eax
push edi
mov edi, dword [ecx]
mov ecx, 0x5e4c0a26
mov dword [ebp - 0x210], 0x5e07e06a
mov eax, dword [ebp - 0x210]
sub ecx, eax
mov eax, dword [ecx]
lea esi, [eax*2 + 0x2ee992c8]
lea eax, [ebp - 0x214]
push eax
push 1
push 0
mov eax, 0x67202aa6
sub eax, esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401db7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
mov eax, 0x67202b22
sub eax, esi
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401db7
mov eax, dword [ebp - 0x21c]
cmp eax, 1
je 0x401cc3
cmp eax, 2
jne 0x401db7
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x401db7
test al, 1
jne 0x401db7
shr eax, 1
dec eax
cmp word [ebp + eax*2 - 0x20c], 0
jne 0x401db7
test eax, eax
je 0x401db7
lea ecx, [ebp + eax*2 - 0x20e]
lea ebx, [ebx]
cmp word [ecx], 0x5c
jne 0x401d0e
sub ecx, 2
sub eax, 1
jne 0x401d00
test eax, eax
je 0x401db7
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [edi + edi]
mov ecx, 0x383697ae
sub ecx, eax
lea eax, [ebp - 0x20c]
push ecx
push 0x104
push eax
call fcn.0041a0d3
add esp, 0xc
test eax, eax
jne 0x401db7
push 0x44
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00416710
add esp, 0xc
mov dword [ebp - 0x270], 0x44
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x270]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401db7
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x22c]
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004146e0
mov esp, ebp
pop ebp
ret
Function at 0x401e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x210], 0x4ed6b589
mov edx, 0x4f1adf45
mov eax, dword [ebp - 0x210]
mov esi, ecx
sub edx, eax
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov ebx, dword [edx]
call fcn.00416710
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.004158d2
mov edi, eax
add esp, 8
test edi, edi
jne 0x401edc
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
mov ecx, 0x383698a6
sub ecx, eax
add edi, 2
push str.unchecky
push ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
sub ecx, esi
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push edi
call fcn.0041a06a
add esp, 0x18
test eax, eax
jne 0x401ec6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
cmp ecx, 1
jbe 0x401f3a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
test al, 0x10
je 0x401f38
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004146e0
mov esp, ebp
pop ebp
ret

Function at 0x401f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov dword [ebp - 0xc], 0x38d50a28
mov ebx, edx
mov eax, dword [ebp - 0xc]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x402043
push esi
push edi
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40202d
push 0x44
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00416710
add esp, 0xc
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push dword [ebp - 8]
push 0x420
push edi
push edi
push edi
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40200e
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 4]
call esi
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 4]
call esi
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov edi, eax
call esi
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402050
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x44206c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0x77bb79f7
mov ecx, 0x77ffa3b3
mov eax, dword [ebp - 0x218]
sub ecx, eax
push esi
push 0x104
mov dword [ebp - 0x218], 0
mov eax, dword [ecx]
mov ecx, 0x3908a5bd
add eax, 0x1ccb7486
mov dword [ebp - 0x214], 0x34cecf80
sub ecx, eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x21c], ecx
mov ecx, 0x3512f93c
sub ecx, eax
lea eax, [ebp - 0x20c]
push eax
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x40227d
lea eax, [esi + esi]
mov ecx, 0x38369d9a
sub ecx, eax
mov eax, 0x104
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x20c]
lea eax, [eax + edx*2]
push eax
call fcn.0041a06a
add esp, 0xc
test eax, eax
jne 0x40227d
push ebx
lea ecx, [ebp - 0x20c]
call fcn.00402290
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40213a
test bl, 1
je 0x40213a
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x40213a
or ebx, 0xffffffff
push edi
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402252
mov ecx, edi
call fcn.00402410
test eax, eax
je 0x40224b
mov dword [ebp - 0x214], 0x1adbb562
mov ecx, 0x1b1fdf1e
mov eax, dword [ebp - 0x214]
sub ecx, eax
push 2
push 0
push 0
mov esi, dword [ecx]
add esi, 0x1b5b111c
push edi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402245
push 0
lea eax, [ebp - 0x210]
push eax
push 0x14
mov eax, 0x3798478b
sub eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402245
cmp dword [ebp - 0x210], 0x14
jne 0x402245
mov ecx, dword [ebp - 0x21c]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4021e1
push 0
lea eax, [ebp - 0x210]
sub esi, edx
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402245
cmp dword [ebp - 0x210], esi
jne 0x402245
push 0
lea eax, [ebp - 0x210]
push eax
push 0x10
mov eax, 0x379847a3
sub eax, dword [ebp - 0x214]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402245
cmp dword [ebp - 0x210], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jne 0x40224b
mov dword [ebp - 0x218], 1
jmp 0x40224b
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp ebx, 0xffffffff
je 0x402267
test bl, 1
je 0x402267
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
mov eax, dword [ebp - 0x218]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146e0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004146e0
mov esp, ebp
pop ebp
ret