joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab64
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0040dc98
cmp byte [0x426795], 0
jne 0x40abf2
push 6
push dword [0x410014]
lea eax, [ebp - 0x820]
push eax
call fcn.0040750d
push eax
call fcn.0040d835
test eax, eax
jne 0x40abf2
push 0x40e848
call fcn.0040dc85
lea eax, [ebp - 0x820]
push eax
call fcn.00409939
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040965b
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40acbd
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x425671], 1
cmp dword [0x425680], ebx
je 0x40ace5
push 0x7d
call fcn.004093c8
push eax
push 2
push dword [0x425680]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x425680]
mov dword [0x425674], ebx
mov byte [0x425670], 1
cmp eax, ebx
je 0x40ad46
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x4267a4], ebx
jne 0x40ad14
cmp byte [0x426794], bl
je 0x40ad1c
cmp dword [0x425678], ebx
jne 0x40ad3e
push ebx
push 1
push 0x111
push dword [0x425680]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ad3e
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409cf4
cmp dword [0x425680], ebx
jne 0x40ad32
cmp byte [0x425688], bl
pop ebx
je 0x40ad54
jmp fcn.0040ab64
ret

Function at 0x40ad90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x425690], bl
je 0x40ae10
cmp word [0x424550], bx
je 0x40ae10
push esi
push 0x424550
lea esi, [ebp - 0x808]
call fcn.0040ad55
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40ae10
push dword [ebp + 8]
call fcn.00409939
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4
Function at 0x40ae15
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004012c0
cmp byte [0x425690], 0
je 0x40aebc
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040ad55
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40aebc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aeb3
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40ae97
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040cb78
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40afe4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x42566e], 0
mov eax, dword [ebp + 0xc]
mov dword [0x425560], eax
mov eax, dword [ebp + 0x10]
mov dword [0x425564], eax
mov eax, dword [ebp + 0x14]
mov dword [0x425558], eax
je 0x40b014
xor eax, eax
inc eax
jmp 0x40b03d
cmp byte [0x42566f], 0
je 0x40b022
push 2
pop eax
jmp 0x40b03d
push dword [ebp + 8]
push 0x40a2cd
push dword [0x425680]
push str.REPLACEFILEDLG
push dword [0x42555c]
call esi
dec eax
je 0x40b08f
dec eax
je 0x40b0a1
dec eax
je 0x40b088
dec eax
jne 0x40b06c
push dword [ebp + 8]
push 0x40a619
push dword [0x425680]
push str.RENAMEDLG
push dword [0x42555c]
call esi
test eax, eax
je 0x40afee
mov al, 0x52
jmp 0x40b09c
dec eax
je 0x40b07d
dec eax
mov al, 0x4e
jne 0x40b09c
mov byte [0x42566f], 1
jmp 0x40b09c
mov byte [0x425672], 1
mov al, 0x43
jmp 0x40b09c
mov byte [0x42566e], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40b09c
Function at 0x40c88a
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 1
call fcn.0040cefe
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42b708
call fcn.0040d932
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40c91a
push esi
call fcn.0040a92a
cmp byte [0x425691], bl
je 0x40c912
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40c907
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40c900
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c91a
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x424d58
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x42555c], edi
mov dword [0x425668], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x425668]
mov dword [0x424d54], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x424d50], eax
call fcn.0040dd08
push esi
mov ecx, 0x4267c4
call fcn.004093b1
lea ecx, [ebp - 0x58]
call fcn.0040527a
lea ecx, [ebp - 0x30]
call fcn.0040527a
push 0x64
call fcn.00409ffd
push 0x64
mov dword [ebp - 0x3c], eax
call fcn.00409ffd
push ebx
push 0x40c09d
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x58]
mov dword [0x42454c], eax
push str.STARTDLG
lea eax, [ebp - 0x30]
push edi
mov dword [0x424548], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x30]
mov dword [0x424548], ebx
mov dword [0x42454c], ebx
call fcn.0040529c
lea ecx, [ebp - 0x58]
call fcn.0040529c
lea ecx, [ebp - 8]
call fcn.0040dd62
cmp byte [0x425688], bl
je 0x40c9f5
call fcn.0040ab64
push 0x100
push ebx
push 0x425568
call fcn.0040965b
cmp dword [0x4267a4], ebx
jbe 0x40ca18
push dword [0x426798]
call fcn.0040945d
push dword [0x424d54]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x424d50]
cmp eax, ebx
je 0x40ca32
push eax
call esi
cmp dword [0x4267b8], ebx
jne 0x40ca51
cmp byte [0x425672], bl
je 0x40ca51
push 0xff
mov ecx, 0x4267b8
call fcn.004019b2
mov eax, dword [0x4267b0]
mov byte [0x425672], 1
cmp eax, ebx
je 0x40ca67
push eax
call fcn.0040ab25
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x4267ac]
cmp eax, ebx
ja 0x40ca7b
mov eax, dword [0x4267b8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d284
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x4224ac]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4100d0]
mov ecx, dword [0x4224b4]
mov dword [0x4224ac], eax
movzx eax, al
add eax, dword [0x4224b0]
imul eax, eax, 0x8088405
inc eax
mov dword [0x4224b0], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4100d0]
mov eax, dword [esp + 4]
mov dword [0x4224b4], ecx
ret 4

Function at 0x40d317
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040d2de
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409688
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040d264
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040d284
inc esi
cmp esi, 0xc
jl 0x40d336
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x411b48]
test byte [eax + 0x40], 2
movzx eax, byte [0x421bc7]
jne 0x40d371
movzx eax, byte [0x421bcf]
movzx ecx, cx
cmp ecx, eax
je 0x40d37d
or eax, 0xffffffff
jmp 0x40d3c2
mov ecx, dword [0x421b60]
mov eax, ecx
cdq
cmp edx, dword [0x410924]
push edi
jl 0x40d39f
mov edx, dword [0x410920]
jg 0x40d39b
cmp eax, edx
jbe 0x40d39f
mov edi, edx
jmp 0x40d3a1
mov edi, ecx
mov esi, dword [0x421b58]
jmp 0x40d3bb
dec edi
call fcn.0040d264
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040d284
inc esi
test edi, edi
jne 0x40d3a9
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40dbad
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x40ebf0
push 1
xor ebx, ebx
push ebx
push 0x40eca0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40dc7e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40ec90
push eax
call dword [ecx]
test eax, eax
jl 0x40dc75
cmp byte [ebp + 8], bl
je 0x40dc00
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40dc1d
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40dc2f
push 0x40e2f8
jmp 0x40dc32
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40dc47
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40dc58
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40dc6c
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c
Function at 0x40dc98
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x10002ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002b41
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002b02
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x10336c90
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10336e5d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a1000]
push edi
or ebp, 0xffffffff
jmp 0x10336cba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10336cc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10336cb0
mov eax, 1
add ebx, ebx
jne 0x10336cd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10336cc8
jne 0x10336ce4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10336cc8
xor ecx, ecx
sub eax, 3
jb 0x10336cf8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10336d6a
mov ebp, eax
add ebx, ebx
jne 0x10336d03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10336d10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10336d34
inc ecx
add ebx, ebx
jne 0x10336d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10336d15
jne 0x10336d31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10336d15
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10336d54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10336d45
jmp 0x10336cb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10336d54
add edi, ecx
jmp 0x10336cb6
pop esi
mov edi, esi
mov ecx, 0x9b4f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10336d72
cmp byte [edi], 0x22
jne 0x10336d72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10336d77
lea edi, [esi + 0x329000]
mov eax, dword [edi]
or eax, eax
je 0x10336def
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33ba64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x33bba4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10336da4
mov ecx, edi
jns 0x10336dd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x33bba8]
or eax, eax
je 0x10336de9
mov dword [ebx], eax
add ebx, 4
jmp 0x10336dc1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10336e20
cmp al, 0xef
ja 0x10336e13
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10336df5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10336e02
mov ebp, dword [esi + 0x33bbac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10336e54
sub esp, 0xffffff80
jmp 0x10150778
Function at 0x10001000
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 1
je 0x1000107d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push 4
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
cmp eax, ebx
jne 0x1000107d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
je 0x1000107d
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10001074
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10001081
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x100010f4
mov eax, dword [ebp - 8]
xor esi, esi
cmp word [eax + 4], bx
jbe 0x100010c6
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x100010c6
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100010ba
mov eax, dword [ebp - 0x10]
and dword [eax + 4], 0xfffeffd9
mov eax, dword [ebp - 8]
inc esi
movzx ecx, word [eax + 4]
cmp esi, ecx
jb 0x1000108c
push ebx
push dword [ebp - 8]
push ebx
push ebx
push 4
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop ebx
leave
ret 4

Function at 0x100010fc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
push dword [0x10020738]
xor esi, esi
mov dword [ebp - 0x10], ebx
call fcn.10007494
mov dword [0x10017a70], eax
mov eax, 0x20000
mov dword [0x10017b28], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x18
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10017a74
push fcn.1000715e
push ebx
push dword [0x10020748]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 2
push 0x10020764
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.10001910
cmp eax, ebx
je 0x10001175
mov dword [0x10020764], ebx
jmp 0x10001454
mov eax, dword [0x10017a74]
cmp eax, ebx
je 0x10001454
mov ecx, dword [ebp - 0x2c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
mov dword [0x10020760], ecx
call fcn.10002ff8
cmp eax, ebx
mov dword [0x10017b44], eax
je 0x10001454
mov eax, 0x10fc
push eax
mov dword [ebp - 8], eax
Function at 0x10001480
Capabilities:
Accept command line arguments
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push fcn.10006380
push 0x10006be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x28], edi
mov eax, 0x80
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
push eax
call fcn.10002ff8
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, edi
je fcn.10001544
push dword [ebp - 0x2c]
call fcn.10002ff8
mov dword [ebp - 0x28], eax
cmp eax, edi
je fcn.10001544
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1000153d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp eax, 0x7a
jne fcn.10001544
push dword [ebp - 0x24]
push dword [esi]
push 0
call ebx
push eax
call edi
mov dword [esi], eax
test eax, eax
je fcn.10001544
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push 0
call ebx
push eax
call edi
mov dword [ebp - 0x28], eax
test eax, eax
je fcn.10001544
jmp 0x100014e9
mov dword [ebp - 0x20], 1

Function at 0x10001720
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1000179c
push dword [ebp - 4]
call fcn.10002164
cmp eax, esi
je 0x100017a0
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x200
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x100017a0
cmp eax, esi
jne 0x10001793
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.10001720
test eax, eax
jne 0x10001752
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100017b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 1
pop eax
pop esi
leave
ret 8
Function at 0x10001a38
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x18]
xor ebx, ebx
movzx eax, di
shr eax, 4
inc eax
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10001a97
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001ac5
and edi, 0xf
movzx ebx, word [esi]
inc esi
mov eax, edi
inc esi
dec edi
test eax, eax
je 0x10001a88
lea esi, [esi + ebx*2]
jmp 0x10001a77
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jge 0x10001a9b
push 0x7a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor eax, eax
jmp 0x10001ac7
mov edi, dword [ebp + 0x10]
lea ecx, [eax + eax]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x10]
lea ecx, [ebx + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x10001c08
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x10001c8e
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
je 0x10001c91
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
je 0x10001c91
cmp dword [ebp - 0x20], 4
jne 0x10001c85
push dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
je 0x10001c7f
cmp ebx, dword [ebp - 0x10]
jb 0x10001c5d
cmp dword [ebp - 0x20], 4
je 0x10001c91
mov dword [ebp - 4], 1
jmp 0x10001c91
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10001e69
Capabilities:
Accept command line arguments
Create service
Modify service

Disassembly:
call esi
test eax, eax
je 0x10001e9b
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call fcn.10003a80
test eax, eax
jne 0x10001e9b
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jae 0x10001e90
push ebx
push edi
push dword [ebp - 4]
jmp fcn.10001e69
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10001f18
mov esi, dword [ebp + 8]
test esi, esi
jne fcn.10001ebb
push dword [ebp + 0x10]
call fcn.10002194
test eax, eax
je fcn.10001ebb
push 0x42d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
jmp 0x10001f18