joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064b9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
xor edi, edi
inc eax
cmp dword [ebp + 8], eax
mov dword [ebp - 0xc], edi
jne 0x4064d9
mov ebx, dword [esi + 4]
mov dword [ebp - 0x10], edi
jmp 0x4064e9
cmp dword [ebp + 8], 2
jne 0x40665d
mov ebx, dword [esi + 8]
mov dword [ebp - 0x10], eax
cmp ebx, edi
jne 0x4064f4
xor eax, eax
jmp 0x406660
push 2
push 0xc
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x406517
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
push 0x1d
jmp 0x40665f
mov eax, dword [ebp - 0x20]
cmp eax, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
jbe 0x4064ed
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x406649
mov eax, dword [ebp - 0xc]
test byte [eax + 1], 0x10
jne 0x406635
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x406635
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0x14]
add ecx, 8
push eax
call fcn.004011ba
mov edi, dword [eax]
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x406575
cmp dword [edi + 0x18], eax
jmp 0x406578
cmp dword [edi + 0x14], eax
je 0x40658e
mov eax, dword [ebp - 0xc]
push dword [edi + 0xc]
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x406599
cmp dword [ebp - 0x14], 0
jne 0x406558
jmp 0x406635
mov eax, dword [edi + 0x10]
test ax, 0x200
je 0x4065bc
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
je 0x406659
dec dword [ebp - 8]
dec dword [ebp - 4]
jmp 0x406635
test ax, 0x100
je 0x4065dc
mov eax, dword [edi + 0x1c]
push dword [eax + 0xc]
push dword [ebp - 4]
push ebx
push esi
call fcn.00406ae3
mov edi, eax
test edi, edi
jne 0x4065fb
push 0x1f
jmp 0x40664b
test ax, 0x400
je 0x406635
mov eax, dword [edi + 0x1c]
push dword [eax + 0xc]
push dword [ebp - 4]
push ebx
push esi
call fcn.00406c90
mov edi, eax
test edi, edi
je 0x4065d8
inc dword [ebp - 8]
cmp dword [ebp + 8], 1
jne 0x406608
call fcn.00407d80
jmp 0x406613
cmp dword [ebp + 8], 2
jne 0x406613
call fcn.00407d9d
xor eax, eax
inc eax
cmp dword [ebp + 8], eax
mov ebx, edi
jne 0x406625
mov dword [esi + 4], edi
mov dword [esi + 0x30], eax
jmp 0x406635
cmp dword [ebp + 8], 2
jne 0x406635
mov dword [esi + 8], edi
mov dword [esi + 0x34], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x406524
jmp 0x4064ed
push 0x1d
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
mov eax, edi
jmp 0x406660
push 0x1e
jmp 0x40664b
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407b49
Capabilities:
Get domain controller name

Disassembly:
push 4
mov eax, 0x42ed65
call fcn.0041ae41
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 4]
push 0x4341b0
mov dword [ebp - 0x10], edi
call fcn.0040910e
mov ecx, dword [esi + 0x14]
cmp ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
je 0x407b83
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], edi
mov ebx, dword [ebp + 8]
cmp dword [ebx - 0xc], edi
je 0x407bde
lea eax, [ebp - 0x10]
push eax
push 0x80000000
push edi
push edi
push ebx
push edi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x407bde
mov eax, dword [ebp - 0x10]
push dword [eax + 0x1c]
lea ecx, [esi + 4]
call fcn.0040910e
cmp dword [ebp - 0x10], edi
je 0x407bbd
push dword [ebp - 0x10]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebx - 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
call fcn.00401128
xor eax, eax
jmp 0x407be9
lea ecx, [ebx - 0x10]
call fcn.00401128
push 0x2b
pop eax
call fcn.0041aee0
ret 0x10
Function at 0x409933
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43fb20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor eax, eax
push edi
push eax
push eax
mov dword [ebp - 0x48], eax
call esi
mov edi, eax
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4099b0
push ebx
push edi
call esi
xor esi, esi
test edi, edi
jbe 0x4099a6
mov eax, dword [ebx + esi*4]
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push eax
mov dword [ebp - 0x4c], eax
call sub.IMM32.dll_ImmGetIMEFileNameW
lea eax, [ebp - 0x44]
push 0x435d48
push eax
call fcn.00418f4c
test eax, eax
pop ecx
pop ecx
je 0x4099a0
inc esi
cmp esi, edi
jb 0x409973
jmp 0x4099a6
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418c19
leave
ret

Function at 0x40d755
Capabilities:
Get keyboard layout
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x438]
sub esp, 0x4b8
mov eax, dword [0x43fb20]
xor eax, ebp
mov dword [ebp + 0x434], eax
mov eax, dword [ebp + 0x440]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push eax
push 0xf003f
push esi
push str.Keyboard_LayoutPreload
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d887
cmp dword [ebp - 0x78], esi
mov edi, 0x434100
jbe 0x40d80e
lea ebx, [eax + 1]
push ebx
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.0041a16c
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x194]
push eax
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d807
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x74]
mov word [ebp + eax*2 + 0x194], si
lea eax, [ebp + 0x194]
push eax
call fcn.00418f4c
test eax, eax
pop ecx
pop ecx
je 0x40d87a
mov eax, ebx
cmp eax, dword [ebp - 0x78]
jb 0x40d7b8
mov eax, dword [ebp - 0x78]
inc eax
push eax
lea eax, [ebp + 0x394]
push edi
push eax
call fcn.0041a16c
push dword [ebp - 0x74]
call fcn.0041970d
add esp, 0x10
add eax, eax
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x394]
push 1
push esi
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x101
push dword [ebp - 0x74]
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
lea eax, [ebp - 0x80]
push eax
push 0x5dc
push esi
push str.HKEY_CURRENT_USERKeyboard_LayoutPreload
push esi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x40d883
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40d889
xor al, al
mov ecx, dword [ebp + 0x434]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418c19
add ebp, 0x438
leave
ret
Function at 0x40de7e
Capabilities:
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x188]
sub esp, 0x208
mov eax, dword [0x43fb20]
xor eax, ebp
mov dword [ebp + 0x184], eax
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x40e005
cmp byte [ebp + 0x190], bl
je 0x40dfdb
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0041a076
lea eax, [ebp - 0x7c]
push 0x5c
push eax
call fcn.004198f0
add esp, 0x10
cmp eax, ebx
je 0x40e005
add eax, 2
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.0041a076
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp - 0x7c]
push str._s.old
push eax
call fcn.0041a16c
lea eax, [ebp + 0x84]
push esi
push eax
call fcn.0041a076
lea eax, [ebp + 0x84]
push 0x5c
push eax
call fcn.004198f0
mov word [eax + 2], bx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.0041a04c
add esp, 0x2c
cmp dword [0x443ea0], ebx
je 0x40df39
lea eax, [ebp - 0x80]
push eax
call fcn.00409864
pop ecx
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x443ea0], ebx
je 0x40df69
push dword [ebp - 0x80]
call fcn.0040989d
cmp dword [0x443ea0], ebx
pop ecx
je 0x40df69
lea eax, [ebp - 0x80]
push eax
call fcn.00409864
pop ecx
lea eax, [ebp + 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [0x443ea0], ebx
je 0x40df88
push dword [ebp - 0x80]
call fcn.0040989d
pop ecx
lea eax, [ebp + 0x84]
push esi
push eax
call fcn.0041a076
lea eax, [ebp + 0x84]
push 0x5c
push eax
call fcn.004198f0
mov word [eax + 2], bx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.0041a04c
add esp, 0x18
cmp dword [0x443ea0], ebx
je 0x40dfcc
lea eax, [ebp - 0x80]
push eax
call fcn.00409864
pop ecx
push 4
push ebx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40dff4
cmp dword [0x443ea0], ebx
je 0x40dfed
lea eax, [ebp - 0x80]
push eax
call fcn.00409864
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x443ea0], ebx
je 0x40e005
push dword [ebp - 0x80]
call fcn.0040989d
pop ecx
mov ecx, dword [ebp + 0x184]
xor ecx, ebp
pop ebx
call fcn.00418c19
add ebp, 0x188
leave
ret

Function at 0x40e01b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
push 0x43b4c8
call fcn.0041d1dc
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x80
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x40e060
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e0a3
mov dword [ebp - 0x20], edi
push ebx
mov esi, 0x443da0
push esi
call fcn.0041a092
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x40e055
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x40e055
mov word [eax*2 + 0x443da0], bx
jmp 0x40e055
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.0041d221
ret
Function at 0x418c19
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fb20]
jne 0x418c23
repz ret
jmp fcn.0041db53

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41a3bb
call fcn.0041b1fa
mov dword [eax], esi
call fcn.0041b1e7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041e28a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41a397
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a3ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b20d
pop ecx
call fcn.0041b1e7
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41a411
test al, 1
je 0x41a411
test byte [esp + 0xc], 2
je 0x41a411
call fcn.0041b1fa
mov dword [eax], 5
call fcn.0041b1e7
mov dword [eax], 0xd
jmp 0x41a3e1
xor eax, eax
pop esi
ret
Function at 0x429983
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041f16d
xor ebx, ebx
cmp dword [0x443b0c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x429a58
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4299c3
xor eax, eax
jmp 0x429b1c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4299bc
push eax
call fcn.0041f10a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x443b0c], eax
call esi
push eax
call fcn.0041f10a
mov dword [esp], 0x43402c
push edi
mov dword [0x443b10], eax
call esi
push eax
call fcn.0041f10a
mov dword [0x443b14], eax
lea eax, [ebp - 8]
push eax
call fcn.0041d620
test eax, eax
pop ecx
pop ecx
je 0x429a26
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e18e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x429a58
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041f10a
cmp eax, ebx
pop ecx
mov dword [0x443b1c], eax
je 0x429a58
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f10a
pop ecx
mov dword [0x443b18], eax
mov eax, dword [0x443b18]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x429ad1
cmp dword [0x443b1c], esi
je 0x429ad1
push eax
call fcn.0041f176
pop ecx
call eax
cmp eax, ebx
je 0x429a9e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x443b1c]
call fcn.0041f176
pop ecx
call eax
test eax, eax
je 0x429a9e
test byte [ebp - 0x18], 1
jne 0x429ad1
lea eax, [ebp - 0xc]
push eax
call fcn.0041d657
test eax, eax
pop ecx
je 0x429ab9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e18e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x429ac8
or dword [ebp + 0x10], 0x200000
jmp 0x429b02
or dword [ebp + 0x10], 0x40000
jmp 0x429b02
mov eax, dword [0x443b10]
cmp eax, esi
je 0x429b02
push eax
call fcn.0041f176
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x429b02
mov eax, dword [0x443b14]
cmp eax, esi
je 0x429b02
push dword [ebp - 4]
push eax
call fcn.0041f176
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x443b0c]
call fcn.0041f176
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42df16
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43fb20]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042deab
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00419980
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42df65
cmp dword [ebp - 0x1c], 5
jb 0x42df7d
jmp 0x42df79
cmp dword [ebp - 0x10], 1
jne 0x42df7d
cmp dword [ebp - 0x1c], 4
ja 0x42df79
jne 0x42df7d
cmp dword [ebp - 0x18], 0
jbe 0x42df7d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4340c0
call fcn.0042dd7f
test eax, eax
jge 0x42df9e
mov byte [0x443b94], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418c19
add ebp, 0x78
leave
ret
Function at 0x405da2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x81b598]
jne 0x405dac
repz ret
jmp fcn.0040863a

Function at 0x407662
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x81b598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404aae
and dword [ebp - 0x14], 0
cmp dword [0x81f418], 0
mov dword [ebp - 0x18], eax
jne 0x407715
push 0x402240
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4077bd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402234
push ebx
call edi
test eax, eax
je 0x4077bd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402224
push ebx
mov dword [0x81f418], eax
call edi
push eax
call esi
push 0x402210
push ebx
mov dword [0x81f41c], eax
call edi
push eax
call esi
push 0x4021f4
push ebx
mov dword [0x81f420], eax
call edi
push eax
call esi
mov dword [0x81f428], eax
test eax, eax
je 0x407715
push 0x4021dc
push ebx
call edi
push eax
call esi
mov dword [0x81f424], eax
mov eax, dword [0x81f424]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40776e
cmp dword [0x81f428], ecx
je 0x40776e
push eax
call esi
push dword [0x81f428]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40776e
test ebx, ebx
je 0x40776e
call edi
test eax, eax
je 0x407765
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407765
test byte [ebp - 8], 1
jne 0x40776e
or dword [ebp + 0x10], 0x200000
jmp 0x4077a1
mov eax, dword [0x81f41c]
cmp eax, dword [ebp - 0x18]
je 0x4077a1
push eax
call esi
test eax, eax
je 0x4077a1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4077a1
mov eax, dword [0x81f420]
cmp eax, dword [ebp - 0x18]
je 0x4077a1
push eax
call esi
test eax, eax
je 0x4077a1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81f418]
call esi
test eax, eax
je 0x4077bd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4077bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405da2
leave
ret
Function at 0x800ad0
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1c24
call fcn.00408d50
cmp dword [0x2658390], 0x37
jne 0x800bc7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x402ad8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x402b14
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0x828]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [esp + 0xc]
push edx
push 0x402b58
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
lea ecx, [esp + 0x1424]
push ecx
push 0
push 0x402bd0
push 0x402c94
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x402c9c
push 0x402ca8
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov edx, dword [0x2658394]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x8244f4]
mov byte [edx + esi], cl
add esp, 0x1c24
ret
Function at 0x800bf0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x1a8
mov ecx, dword [esp + 0x1ac]
mov eax, dword [ecx]
mov edx, dword [0x81bdb4]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x81bdb0]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x81bdb8]
mov dword [esp + 0x1c], edx
mov edx, dword [0x81bdbc]
push edi
mov dword [esp + 0x18], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov ebp, 0x20
jmp 0x800c44
mov eax, dword [esp + 0x18]
mov ecx, eax
shr ecx, 5
add ecx, dword [esp + 0x24]
mov edx, eax
shl edx, 4
add edx, dword [esp + 0x28]
add eax, edi
xor ecx, edx
xor ecx, eax
sub esi, ecx
mov ecx, esi
shl ecx, 4
mov dword [0x2657314], 0
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
cmp dword [0x2658390], 0x1be
lea ebx, [edi + esi]
jne 0x800c99
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x20]
mov dword [0x2657318], 0xff6b3619
xor eax, ebx
xor dword [esp + 0x14], eax
mov dword [0x265731c], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
add edi, 0x61c88647
dec ebp
jne 0x800c40
cmp dword [0x2658390], 0x8d4
jne 0x800ce8
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x1bc]
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov dword [eax + 4], esi
cmp dword [0x2658390], 0x17
jne 0x800d16
push 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret 4
Function at 0x402f74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40300c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fec
xor eax, eax
push ebp
push 0x402fe5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c048], 0
je 0x403d31
cmp word [0x45c21c], 0xd7b2
jne 0x403cf9
cmp dword [0x45c224], 0
jbe 0x403cf9
mov eax, 0x45c218
call dword [0x45c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a030], 0
jne 0x403d4d
push 0
push 0x45a064
push 0x45a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret