joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a46
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0x260], eax
mov esi, str.D7F77FF8_15D8_4321_8DBF_BDBDE16EE4F0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x1c]
push 1
push esi
mov dword [ebp - 0x25c], eax
call fcn.00418620
pop ecx
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.004072bf
push 0x10
lea esi, [ebx + 0x14]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00414ef0
add esp, 0xc
xor edi, edi
push 0x10
push edi
push esi
call fcn.004154f0
mov eax, dword [ebp - 0x260]
add esp, 0xc
test eax, eax
je 0x406c5b
cmp dword [ebp + 0xc], 1
jb 0x406c5b
mov edx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00407d33
pop ecx
pop ecx
test eax, eax
jne 0x406c5b
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041564a
add esp, 0xc
test eax, eax
jne 0x406c5b
mov ecx, dword [ebx + 8]
cmp dword [ebp + 0xc], ecx
jne 0x406c5b
cmp dword [ebx], 0x4752434d
jne 0x406c5b
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x406c5e
mov esi, dword [eax]
mov dword [eax], ecx
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x406c5e
mov edx, dword [ebx + 8]
mov dword [ebp - 0x26c], edx
cmp edx, esi
jbe 0x406b4f
mov edi, 0xea
jmp 0x406c5e
cmp edx, 1
jb 0x406c54
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x406c54
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x406c54
test edx, edx
jle 0x406c5e
sub dword [ebp - 0x260], eax
mov ch, byte [ebp - 0x37]
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x25c], edi
jle 0x406bbe
lea ecx, [ebp - 0x258]
call fcn.004073e5
mov byte [ebx], al
lea ecx, [ebp - 0x258]
inc ebx
call fcn.004073e5
mov byte [esi], al
inc esi
inc edi
cmp edi, dword [ebp - 0x48]
jl 0x406b8b
mov ch, byte [ebp - 0x37]
xor edi, edi
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x264]
mov edx, dword [ebp - 0x260]
mov cl, byte [edx + eax]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x26c]
add eax, esi
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x48]
dec eax
test eax, eax
jle 0x406c29
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x44]
sub eax, esi
dec eax
add eax, dword [ebp - 0x25c]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x25c]
add eax, ebx
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x25c]
mov edi, dword [ebp - 0x270]
sub cl, byte [eax]
xor cl, byte [edi + eax]
dec eax
dec dword [ebp - 0x268]
cmp dword [ebp - 0x268], 0
jg 0x406c12
xor edi, edi
sub cl, byte [esi]
xor cl, byte [ebx]
mov eax, dword [ebp - 0x264]
xor cl, ch
xor ch, cl
mov byte [ebp - 0x37], ch
mov byte [eax], cl
inc eax
sub edx, 1
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x26c], edx
jne 0x406b7f
jmp 0x406c5e
mov edi, 0x1771
jmp 0x406c5e
push 0xd
pop edi
lea ecx, [ebp - 0x258]
call fcn.004073aa
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041352c
leave
ret 0x18
Function at 0x407463
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x407daa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov ebx, str.D7F77FF8_15D8_4321_8DBF_BDBDE16EE4F0
push edi
mov edi, dword [ebp + 0x14]
push 1
push ebx
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x24c], esi
call fcn.00418620
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x248]
call fcn.004072bf
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x407ede
test edi, edi
je 0x407ede
mov eax, dword [ebp + 0xc]
cmp eax, 1
jb 0x407ede
sub ecx, edi
mov dword [ebp - 0x250], eax
mov esi, edi
mov dword [ebp + 8], ecx
mov edi, ecx
mov al, byte [edi + esi]
lea ecx, [ebp - 0x248]
xor byte [ebp - 0x27], al
call fcn.004073e5
mov bl, al
lea ecx, [ebp - 0x248]
xor bl, byte [ebp - 0x27]
call fcn.004073e5
mov bh, al
xor eax, eax
inc eax
add bh, bl
cmp dword [ebp - 0x38], eax
jle 0x407e70
mov edi, eax
lea ecx, [ebp - 0x248]
call fcn.004073e5
lea ecx, [ebp - 0x248]
xor bh, al
call fcn.004073e5
add bh, al
inc edi
cmp edi, dword [ebp - 0x38]
jl 0x407e4a
mov edi, dword [ebp + 8]
xor eax, eax
inc eax
mov byte [esi], bh
inc esi
sub dword [ebp - 0x250], 1
jne 0x407e1b
mov esi, dword [ebp - 0x24c]
mov ebx, dword [ebp + 0xc]
push 0x10
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
mov dword [esi], 0x4752434d
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 4
xor esi, esi
push esi
push eax
mov dword [ebp - 0x24c], eax
call fcn.004154f0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x14]
push eax
mov edx, ebx
call fcn.00407d33
pop ecx
pop ecx
test eax, eax
jne 0x407ede
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24c]
call fcn.00414ef0
add esp, 0xc
jmp 0x407ee3
mov esi, 0x1770
lea ecx, [ebp - 0x248]
call fcn.004073aa
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041352c
leave
ret 0x18
Function at 0x4081f2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x44c]
test eax, eax
je 0x408218
xor ecx, ecx
cmp cx, word [eax]
je 0x408218
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408241
mov eax, dword [esi + 0x450]
test eax, eax
je 0x4082e4
xor ecx, ecx
cmp cx, word [eax]
je 0x4082e4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4082e4
lea eax, [ebp - 4]
push eax
push 1
push str.Enable
push ecx
mov ecx, esi
call fcn.004080e2
test eax, eax
jne 0x408261
mov eax, dword [ebp - 4]
mov dword [esi + 0x454], eax
lea eax, [ebp - 8]
push eax
push 0x25800
push str.MaxSize
push ecx
mov ecx, esi
call fcn.004080e2
test eax, eax
jne 0x408284
mov eax, dword [ebp - 8]
mov dword [esi + 0x43c], eax
lea eax, [ebp - 0xc]
push eax
push 3
push str.MaxEntries
push ecx
mov ecx, esi
call fcn.004080e2
test eax, eax
jne 0x4082a4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x440], eax
lea eax, [ebp - 0x10]
push eax
push 3
push str.Severity
push ecx
mov ecx, esi
call fcn.004080e2
test eax, eax
jne 0x4082c4
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x444], eax
lea eax, [ebp - 0x14]
push eax
push 0x10
push str.Options
push ecx
mov ecx, esi
call fcn.004080e2
test eax, eax
jne 0x4082e4
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x448], eax
xor eax, eax
pop esi
leave
ret
Function at 0x40b58a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x446054]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 4]
or eax, 0x2001f
mov dword [esp + 0x10], ebx
push eax
push ecx
push dword [edi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
call fcn.0040b4ff
mov esi, eax
test esi, esi
je 0x40b5f0
cmp dword [esp + 0xc], ebx
je 0x40b5e9
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40b67f
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40b634
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040b58a
mov esi, eax
test esi, esi
jne 0x40b696
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call ebx
test eax, eax
je 0x40b60b
cmp dword [esp + 0xc], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40b65e
push dword [esp + 0xc]
call esi
and dword [esp + 0xc], 0
push dword [esp + 0x1c]
and dword [esp + 0x14], 0
mov ecx, edi
call fcn.0040b746
cmp dword [esp + 0xc], 0
mov edi, eax
je 0x40b67d
push dword [esp + 0xc]
call esi
mov eax, edi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041352c
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0xc], 0
jmp 0x40b5dd
Function at 0x40c0f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x430ab0
call fcn.00414111
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40c175
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40c175
call fcn.0040a8e3
mov esi, eax
jmp 0x40c26c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40c198
call fcn.0040a8e3
jmp 0x40c25f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40c18e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x40c1cb
mov esi, 0x8007000e
jmp 0x40c261
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.0040af45
cmp eax, 0x400
jbe 0x40c1ec
push eax
lea ecx, [ebp - 0x418]
call fcn.0040a8be
jmp 0x40c20e
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40c20e
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40c1c1
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40c18e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040bfb1
mov esi, eax
test edi, edi
je 0x40c26c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40c285
lea ecx, [ebp - 0x418]
call fcn.0040a8a9
mov eax, esi
call fcn.00414063
ret 0x10
Function at 0x40fbdb
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, edx
test edi, edi
jne 0x40fbf2
mov eax, 0x80004003
jmp 0x40fcad
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [edi], ecx
push eax
push ecx
push str.Everyone
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40fca0
mov eax, dword [ebp - 4]
xor ecx, ecx
push 0x432800
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413c55
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40fc99
push dword [ebp - 8]
call fcn.00418770
mov dword [edi], eax
pop ecx
test eax, eax
je 0x40fc8b
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push str.Everyone
push 0
call esi
test eax, eax
je 0x40fc77
xor esi, esi
jmp 0x40fc90
call fcn.0040a8e3
push dword [edi]
mov esi, eax
call fcn.004185f8
and dword [edi], 0
pop ecx
jmp 0x40fc90
mov esi, 0x8007000e
push ebx
call fcn.004139f5
pop ecx
jmp 0x40fca9
mov esi, 0x8007000e
jmp 0x40fca9
mov ecx, eax
call fcn.0040b7ee
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret

Function at 0x41137b
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push eax
xor edi, edi
lea eax, [ebp - 0x204]
push edi
push dword [ebp + 0xc]
push 0xff
push 0x100
push eax
call fcn.004067fd
push dword [eax + 4]
push dword [eax]
call fcn.0041da36
xor eax, eax
add esp, 0x20
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
cmp dword [esi + 0x260], edi
jne 0x4113e1
push eax
call fcn.0041e3f0
pop ecx
lea eax, [esi + 0x40]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x411410
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041352c
leave
ret
Function at 0x41141e
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4314fc
mov eax, dword fs:[0]
push eax
mov eax, 0x1820
call fcn.004147a0
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004119aa
test eax, eax
je 0x4115da
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4114c2
push ecx
lea edx, [ebp - 0x810]
mov ecx, 0xd80a
call fcn.00411cd8
pop ecx
test eax, eax
jne 0x4114a7
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0041defe
push eax
call fcn.0040b3cd
add esp, 0x10
push edi
push 0x448858
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4115dd
push 0x10020
push 0x448858
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4114fd
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
lea edx, [ebp - 0x810]
mov ecx, 0xd80c
call fcn.00411cd8
pop ecx
test eax, eax
jne 0x4114a7
push str.Could_not_open_service
jmp 0x41148d
lea eax, [ebp - 0x182c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x411577
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x411577
cmp eax, 0x425
jne 0x41152e
cmp dword [ebp - 0x1828], 3
je 0x411577
push ecx
lea edx, [ebp - 0x1010]
mov ecx, 0xd80e
call fcn.00411cd8
pop ecx
test eax, eax
jne 0x411563
push str.Could_not_stop_service
lea eax, [ebp - 0x1010]
push 0x400
push eax
call fcn.0041defe
push eax
call fcn.0040b3cd
add esp, 0x10
push edi
push 0x448858
lea eax, [ebp - 0x1010]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
test edi, edi
jne 0x4115da
push ecx
lea edx, [ebp - 0x1810]
mov ecx, 0xd80d
call fcn.00411cd8
pop ecx
test eax, eax
jne 0x4115c5
push str.Could_not_delete_service
lea eax, [ebp - 0x1810]
push 0x400
push eax
call fcn.0041defe
push eax
call fcn.0040b3cd
add esp, 0x10
push 0
push 0x448858
lea eax, [ebp - 0x1810]
push eax
push 0
jmp 0x4114b5
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041352c
leave
ret
Function at 0x4115fc
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431526
mov eax, dword fs:[0]
push eax
mov eax, 0x1214
call fcn.004147a0
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004119aa
test eax, eax
je 0x41163f
xor eax, eax
inc eax
jmp 0x4116f1
mov esi, 0x104
lea eax, [ebp - 0x21a]
push esi
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4116ef
cmp eax, esi
je 0x4116ef
push 0x22
pop ecx
mov word [ebp - 0x21c], cx
mov word [ebp + eax*2 - 0x21a], cx
lea eax, [eax*2 + 4]
cmp eax, 0x20c
jae 0x4117af
push 0xf003f
push ebx
xor ecx, ecx
push ebx
mov word [ebp + eax - 0x21c], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x41170b
push ecx
lea edx, [ebp - 0xa1c]
mov ecx, 0xd80a
call fcn.00411cd8
pop ecx
test eax, eax
jne 0x4116db
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0xa1c]
push 0x400
push eax
call fcn.0041defe
push eax
call fcn.0040b3cd
add esp, 0x10
lea eax, [ebp - 0xa1c]
push ebx
push 0x448858
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041352c
leave
ret
push ebx
push ebx
push str.RPCSS
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push 1
push 3
push 0x10
push 0xf01ff
push 0x448a80
push 0x448858
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x411784
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
lea edx, [ebp - 0x121c]
mov ecx, 0xd80b
call fcn.00411cd8
pop ecx
test eax, eax
jne 0x411779
push str.Could_not_start_service
lea eax, [ebp - 0x121c]
push 0x400
push eax
call fcn.0041defe
push eax
call fcn.0040b3cd
add esp, 0x10
lea eax, [ebp - 0x121c]
jmp 0x4116e1
lea ecx, [ebp - 0x1220]
mov dword [ebp - 0x1220], 0x448c80
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x411637
call fcn.00413b25
int3
Function at 0x4119e7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4309ee
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
push edi
mov eax, dword [0x446054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4487f8]
xor esi, esi
mov edx, dword [0x4487fc]
inc esi
jmp 0x411a41
test esi, esi
js 0x411b1f
mov ecx, dword [eax]
test ecx, ecx
je 0x411a3e
push ecx
call fcn.00411b6b
mov edx, dword [0x4487fc]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
cmp eax, edx
jb 0x411a1f
test esi, esi
js 0x411b1f
jne 0x411b1b
xor esi, esi
cmp byte [edi + 0x3c], 0
je 0x411ad5
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x411ace
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push 0x411b37
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x411a9b
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x30], esi
test esi, esi
je 0x411ace
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x411ac2
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
mov edi, dword [ebp - 0x10]
add ecx, ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x411ac5
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411add
mov esi, 0x80004005
jmp 0x411ae1
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x411b1f
mov edi, dword [0x4487f8]
xor eax, eax
mov ecx, dword [0x4487fc]
jmp 0x411b15
test eax, eax
jne 0x411b1f
mov edx, dword [edi]
test edx, edx
je 0x411b12
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x411b12
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
mov ecx, dword [0x4487fc]
add edi, 4
cmp edi, ecx
jb 0x411af1
jmp 0x411b1f
mov byte [edi + 0x3c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret 4

Function at 0x412355
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push str.LocalService
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4123bf
cmp dword [ebp + 0x10], 1
je 0x412394
cmp dword [ebp + 0x10], 2
jne 0x4123af
mov ecx, dword [ebp - 4]
test esi, esi
je 0x4123b9
test ecx, ecx
je 0x4123b4
test cl, 1
jne 0x4123af
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x4123b9
push 0xd
pop eax
jmp 0x4123bf
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x423de3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4363b8
push 0x4363b0
push str.FlsAlloc
push 0x1e
call fcn.00423ccc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423e17
push dword [ebp + 8]
mov ecx, esi
call dword [0x43231c]
call esi
jmp 0x423e1d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x423e61
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4363c8
push 0x4363c0
push str.FlsGetValue
push 0x20
call fcn.00423ccc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423e98
push dword [ebp + 8]
mov ecx, esi
call dword [0x43231c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x429479
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4294c4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00429618
test al, al
jne 0x4294be
sub edx, 2
cmp edx, edi
jne 0x4294a4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4294e6
lea eax, [edi + 2]
cmp edx, eax
je 0x4294e6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004293c5
add esp, 0x10
jmp 0x4295e0
push esi
lea ecx, [ebp - 0x255]
call fcn.00429618
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x429529
push dword [ebp - 0x25c]
jmp 0x4294d6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x429566
cmp word [ebp - 0x226], 0
je 0x429587
cmp word [ebp - 0x226], ax
jne 0x429566
cmp word [ebp - 0x224], 0
je 0x429587
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004293c5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4295d3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x429540
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4295bb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4295e0
push 0x4291f5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042ee60
add esp, 0x10
jmp 0x4295b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041352c
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219