joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052e3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422550], 0x44
push eax
xor eax, eax
push 0x422550
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40531e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053a8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040564a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4053de
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fc8], eax
jmp 0x405563
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4053f9
test eax, eax
je 0x40550e
test cl, 2
je 0x40550e
mov esi, 0x421550
push ebx
push esi
call fcn.00405a76
cmp dword [ebp + 8], 0
je 0x405418
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40541e
push ebx
call fcn.004055b0
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405504
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405594
cmp byte [eax], 0
je 0x40546f
cmp byte [ebp - 0x18], 0
je 0x40546f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405485
mov al, byte [esi + 1]
test al, al
je 0x4054e3
cmp al, 0x2e
jne 0x405485
cmp byte [esi + 2], 0
je 0x4054e3
push esi
push edi
call fcn.00405a76
test byte [ebp - 0x148], 0x10
je 0x4054aa
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054e3
push dword [ebp + 0xc]
push ebx
call fcn.004053a8
jmp 0x4054e3
push ebx
call fcn.0040572e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054db
test byte [ebp + 0xc], 4
je 0x4054d3
push ebx
push 0xfffffffffffffff1
call fcn.00404e21
push 0
push ebx
call fcn.004057c4
jmp 0x4054e3
inc dword [0x423fc8]
jmp 0x4054e3
push ebx
push 0xfffffffffffffff2
call fcn.00404e21
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40544d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40550e
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405563
cmp dword [ebp - 8], esi
jne 0x405523
inc dword [0x423fc8]
jmp 0x405563
push ebx
call fcn.00405d6d
test eax, eax
je 0x405563
push ebx
call fcn.00405569
push ebx
call fcn.0040572e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40555b
test byte [ebp + 0xc], 4
je 0x40551b
push ebx
push 0xfffffffffffffff1
call fcn.00404e21
push esi
push ebx
call fcn.004057c4
jmp 0x405563
push ebx
push 0xffffffffffffffe5
call fcn.00404e21
pop esi
pop ebx
leave
ret 8
Function at 0x40564a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421950
push esi
call fcn.00405a76
push esi
call fcn.004055fd
mov edi, eax
test edi, edi
jne 0x40566b
xor eax, eax
jmp 0x4056bd
push edi
call fcn.00405cd4
test byte [0x423f54], 0x80
je 0x405684
mov al, byte [edi]
test al, al
je 0x405667
cmp al, 0x5c
je 0x405667
sub edi, esi
jmp 0x40569c
call fcn.00405d6d
test eax, eax
je 0x405696
test byte [eax], 0x10
je 0x405667
push esi
call fcn.004055b0
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405688
call fcn.00405569
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 0x40572e
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 0x40574a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40574d
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 0x40577c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4057c0
test edi, edi
jne 0x405787
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057ba
Function at 0x4057c4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d94
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4057e8
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405921
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226d8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226d8
je 0x40582c
push 1
push 0
push esi
call fcn.0040574d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405927
cmp eax, edi
jg 0x405927
mov esi, 0x422150
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405927
cmp eax, edi
jg 0x405927
push esi
push ebp
push str._s_s_r_n
push 0x421d50
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f4c]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a98
push 4
push 0xc0000000
push esi
call fcn.0040574d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405921
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40591a
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40591a
cmp edi, dword [esp + 0x18]
jne 0x40591a
push str._Rename__r_n
push esi
call fcn.004056c2
test eax, eax
jne 0x40592e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a76
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d50
push eax
call fcn.0040570e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423fd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093b8
push eax
call fcn.004056c2
test eax, eax
je 0x4058e5
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405955
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x40594a
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058e7
Function at 0x405e00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422adc], 0
push esi
jne 0x405e37
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405e11
mov dword [ecx*4 + 0x422ad8], eax
inc ecx
cmp ecx, 0x100
jl 0x405e0c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e68
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ad8]
xor eax, esi
inc ecx
dec edx
jne 0x405e4a
pop edi
not eax
pop esi
ret 0xc
Function at 0x1002968
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
mov esi, dword [eax + 0xc]
add esi, 0xc
mov esi, dword [esi]
cmp dword [esi + 0x30], 0
je 0x1002975
cmp dword [esp + 8], 0
je 0x1002992
push dword [esi + 0x30]
call fcn.010029ba
cmp dword [esp + 8], eax
jne 0x1002975
mov eax, dword [esi + 0x18]
pop esi
ret 4

Function at 0x1008d16
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x220]
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x78]
mov eax, dword [ecx + edi + 0x1c]
mov ebx, dword [ecx + edi + 0x20]
add eax, edi
mov ebp, dword [ecx + edi + 0x24]
add ebx, edi
mov dword [esp + 0x10], eax
add ebp, edi
jmp 0x1008d4c
lea ebx, [ebx + 4]
lea ebp, [ebp + 2]
mov esi, dword [ebx]
lea eax, [esp + 0x14]
push 0x208
push eax
add esi, edi
call fcn.0100a514
lea eax, [esp + 0x14]
push eax
push esi
call fcn.01009533
push dword [esp + 0x228]
lea eax, [esp + 0x18]
push eax
call fcn.01009eef
movzx ecx, word [ebp]
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + ecx*4]
add ecx, edi
cmp dword [esp + 0x224], eax
jne 0x1008d46
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x20c
ret 0xc

Function at 0x1009631
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
jmp 0x1009638
dec eax
test al, 3
jne 0x1009637
xor ecx, ecx
test eax, eax
je 0x1009656
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
xor dword [ecx + edx], esi
add ecx, 4
cmp ecx, eax
jb 0x100964b
pop esi
ret 0x10

Function at 0x100a4c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + 0x10], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 0x11], al
mov eax, ecx
mov byte [ebp + 0x13], cl
xor ecx, ecx
shr eax, 8
mov edx, ecx
mov byte [ebp + 0x12], al
cmp dword [ebp + 0xc], ecx
jbe 0x100a510
push esi
mov esi, dword [ebp + 8]
mov al, byte [ebp + ecx + 0x10]
xor byte [edx + esi], al
lea eax, [ecx + 1]
xor ecx, ecx
inc edx
cmp eax, 4
cmovne ecx, eax
cmp edx, dword [ebp + 0xc]
jb 0x100a4f7
pop esi
pop ebp
ret 0xc
Function at 0x1033453
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp byte [esi + 4], 0
mov dword [esi], 0x1001664
je 0x1033502
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push edi
push 0x1001618
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 5
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call edi
push eax
call dword [sym.imp.USER32.dll_FlashWindow]
mov edi, dword [sym.imp.USER32.dll_MessageBeep]
push 0xffffffffffffffff
call edi
push 0x10015b8
call fcn.010b57ed
pop ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
call fcn.010b57a6
movzx eax, ax
cmp ax, 0xd
je 0x10334cb
push 0xffffffffffffffff
call edi
jmp 0x10334b7
push 0x10015b4
call fcn.010b57ed
cmp dword [esi + 0x20], 8
pop ecx
jb 0x10334e1
mov eax, dword [esi + 0xc]
jmp 0x10334e4
lea eax, [esi + 0xc]
push eax
call ebx
push 0x1001584
call fcn.010b57ed
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ebx
jmp 0x103350d
push 0x1001520
call fcn.010b57ed
pop ecx
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x103351c
push eax
call fcn.010b551a
pop ecx
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x103352b
push eax
call fcn.010b551a
pop ecx
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x103353a
push eax
call fcn.010b551a
pop ecx
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 1
lea ecx, [esi + 8]
call fcn.01032f16
pop esi
ret
Function at 0x1038995
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2b4
mov eax, 0x10ccd4a
call fcn.010b53c2
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x29c], edi
call fcn.01036ab1
mov dword [ebp - 4], edi
mov edi, dword [esi + 0x14]
push edi
mov ebx, 0x1002650
push ebx
mov ecx, esi
mov dword [ebp - 0x29c], 1
call fcn.01035b55
lea ecx, [edi - 1]
push 3
pop edi
cmp ecx, eax
je 0x1038a11
push ebx
lea eax, [ebp - 0x2c0]
push esi
push eax
call fcn.010377ae
add esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 0x29c], edi
jmp 0x1038a13
mov eax, esi
push eax
lea ecx, [ebp - 0x48]
call fcn.0103376e
test byte [ebp - 0x29c], 2
mov dword [ebp - 4], edi
je 0x1038a3e
and dword [ebp - 0x29c], 0xfffffffd
push 0
push 1
lea ecx, [ebp - 0x2c0]
call fcn.01032f16
push dword [ebp - 0x2a4]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.010377fa
add esp, 0xc
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 4
jae 0x1038a61
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1038abf
push dword [ebp + 0x14]
lea eax, [ebp - 0x298]
push esi
push dword [ebp - 0x2a0]
push eax
call fcn.010383fe
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1038aaa
push dword [ebp + 0x14]
lea eax, [ebp - 0x298]
push esi
push dword [ebp - 0x2a0]
push eax
call fcn.010383fe
lea eax, [ebp - 0x298]
push eax
push ebx
call edi
test eax, eax
jne 0x1038a94
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.01032f16
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.01032f16
mov eax, dword [ebp - 0x2a0]
call fcn.010b5454
ret 0x10
Function at 0x1038c2d
Capabilities:
Check if file exists

Disassembly:
push 0x88
mov eax, 0x10ccded
call fcn.010b534f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x1038c4a
mov eax, dword [eax + 4]
jmp 0x1038c4d
add eax, 4
xor esi, esi
push esi
push 0x2000000
push 3
push esi
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, 0x10024b4
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
cmp eax, 0xffffffff
jne 0x1038d54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 2
jb 0x1038c9f
cmp eax, 3
ja 0x1038c9f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.010350c3
xor al, al
jmp 0x1038d61
push esi
push 7
lea ecx, [ebp - 0x2c]
call fcn.01033bfc
push 0x1002758
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.01033c5d
push dword [ebp - 0x18]
lea eax, [ebp - 0x5c]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x78]
push 0x100268c
push eax
mov byte [ebp - 4], 2
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.01033bb7
push esi
push 1
lea ecx, [ebp - 0x78]
call fcn.01032f16
push esi
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.01032f16
push dword [ebp + 8]
lea eax, [ebp - 0x94]
push 0x1002740
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.01033bb7
push esi
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.01032f16
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x40]
push eax
call fcn.010b4e4c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.010350c3
mov al, 1
call fcn.010b543b
ret 4
Function at 0x103a1aa
Capabilities:
Delete directory

Disassembly:
push 0x4c
mov eax, 0x10cd206
call fcn.010b534f
mov esi, dword [ebp + 8]
push esi
call fcn.01038c2d
test al, al
je 0x103a296
cmp dword [esi + 0x18], 8
jb 0x103a1d2
mov eax, dword [esi + 4]
jmp 0x103a1d5
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ebx, ebx
cmp eax, ebx
jne 0x103a296
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 7
lea ecx, [ebp - 0x20]
mov edi, eax
call fcn.01033bfc
push 0x1002e30
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.01033c5d
push edi
lea eax, [ebp - 0x58]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x3c]
push 0x1002e0c
push eax
mov byte [ebp - 4], 1
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.01032f16
push esi
lea eax, [ebp - 0x58]
push 0x1002740
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.01032f16
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x34]
push eax
call fcn.010b4e4c
call fcn.010b543b
ret 4
Function at 0x103b950
Capabilities:
Check os version

Disassembly:
push 0x16c
mov eax, 0x10cd6a7
call fcn.010b53c2
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
cmp eax, ebx
jne 0x103ba1f
push ebx
push 7
lea ecx, [ebp - 0x15c]
call fcn.01033bfc
push 0x1003a98
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], ebx
call fcn.01033c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x148]
push 0x1003a7c
push eax
mov byte [ebp - 4], 1
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 2
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x148]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], bl
call fcn.01032f16
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x140]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x140]
push eax
call fcn.010b4e4c
push 5
pop eax
cmp dword [ebp - 0x128], eax
jae 0x103ba33
xor eax, eax
inc eax
call fcn.010b5454
ret
jne 0x103ba5b
cmp dword [ebp - 0x124], ebx
jne 0x103ba41
push 2
jmp 0x103ba77
cmp dword [ebp - 0x124], 1
jne 0x103ba4e
push 3
jmp 0x103ba77
cmp dword [ebp - 0x124], 2
jne 0x103ba7a
push 4
jmp 0x103ba77
cmp dword [ebp - 0x128], 6
jne 0x103ba7a
cmp dword [ebp - 0x124], ebx
je 0x103ba2d
cmp dword [ebp - 0x124], 1
jne 0x103ba7a
push 6
pop eax
jmp 0x103ba2d
push ebx
push 0x18
lea ecx, [ebp - 0x140]
call fcn.01033bfc
jmp 0x103ba0e
Function at 0x103d018
Capabilities:
Delete registry key

Disassembly:
push 0x4c
mov eax, 0x10cd9d1
call fcn.010b534f
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push edi
push dword [ebp + 8]
call fcn.0103cd2f
test al, al
je 0x103d14b
cmp dword [edi + 0x18], 8
jb 0x103d046
mov eax, dword [edi + 4]
jmp 0x103d049
lea eax, [edi + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp esi, ebx
je 0x103d14b
push ebx
push 7
lea ecx, [ebp - 0x20]
call fcn.01033bfc
push 0x1004528
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.01033c5d
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x3c]
push 0x100450c
push eax
mov byte [ebp - 4], 1
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.01033bb7
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x3c]
call fcn.01032f16
push ebx
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.01032f16
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
call fcn.0103c59a
push eax
lea eax, [ebp - 0x58]
push 0x1002314
push eax
mov byte [ebp - 4], 3
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.01033bb7
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.01032f16
push ebx
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.01032f16
push edi
lea eax, [ebp - 0x58]
push 0x1002304
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.01033bb7
push ebx
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.01032f16
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x34]
push eax
call fcn.010b4e4c
call fcn.010b543b
ret 8
Function at 0x103e621
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x103e6ac
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x100513c
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x103e693
push 1
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
jne 0x103e697
xor eax, eax
jmp 0x103e6aa
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8

Function at 0x103ef7a
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x10cdfdc
call fcn.010b534f
mov esi, ecx
mov ecx, dword [esi + 0x18]
cmp ecx, 0xffffffff
je 0x103f0d5
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
je 0x103f0d5
push ebx
lea edx, [ebp + 0xc]
push edx
lea eax, [edi + edi]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x103f09e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.010350c3
push ebx
push 7
lea ecx, [ebp - 0x20]
call fcn.01033bfc
push 0x100c918
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.01033c5d
add esi, 0x1c
push esi
lea eax, [ebp - 0x3c]
push 0x100c8c0
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.01032f16
mov esi, 0x1004638
push esi
lea ecx, [ebp - 0x20]
call fcn.01033c5d
push edi
lea eax, [ebp - 0x58]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x3c]
push 0x1002a94
push eax
mov byte [ebp - 4], 2
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.01032f16
push esi
lea ecx, [ebp - 0x20]
call fcn.01033c5d
push 0x100c650
lea ecx, [ebp - 0x20]
call fcn.01033c5d
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x34]
push eax
call fcn.010b4e4c
cmp dword [esi + 0xc], ebx
je 0x103f0d5
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.01037157
cmp dword [eax + 0x18], 8
jb 0x103f0ba
mov eax, dword [eax + 4]
jmp 0x103f0bd
add eax, 4
push eax
push 0x100c648
call fcn.010b57ed
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.01032f16
call fcn.010b543b
ret 8