joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454640
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4547eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4547cc
mov dl, 1
mov eax, dword [0x4121d4]
call fcn.00403204
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ff0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4547bb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00442628
test al, al
je 0x4547ae
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4547fc
lea eax, [ebp - 0x254]
call fcn.00408c84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4547ae
xor eax, eax
push ebp
push 0x4547a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454834
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454790
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404260
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x454790
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4547ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4546b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416520
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4547f2
lea eax, [ebp - 0x260]
call fcn.00403ff0
ret

Function at 0x455120
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x467bb4]
cmp byte [eax + 0xa5], 0
jne 0x455191
cmp dword [0x467bcc], 0
jne 0x455152
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4550dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x467bcc], eax
cmp dword [0x467bc8], 0
jne 0x45516d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x467bc8], eax
cmp dword [0x467bd0], 0
jne 0x455191
push esp
push 0
push 0
push 0x455080
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x467bd0], eax
pop edx
ret
Function at 0x455288
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45529f
add esp, 0xfffffff0
call fcn.00403540
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a950
mov eax, dword [0x4667e8]
cmp word [eax + 2], 0
jne 0x4552c7
mov eax, dword [0x4667e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004569f0
mov eax, dword [0x4668f0]
cmp word [eax + 2], 0
jne 0x4552e1
mov eax, dword [0x4668f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456be8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403204
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b70]
call fcn.00403204
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41cb34]
call fcn.00422870
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455468
mov eax, dword [0x46669c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422c40
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457198
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46669c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c544
test eax, eax
je 0x4553d6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408678
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c56c
test eax, eax
je 0x4553ea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404260
mov eax, dword [0x4664e8]
cmp byte [eax], 0
jne 0x45541e
mov eax, ebx
call fcn.00455590
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457374
mov eax, ebx
call fcn.00457d38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45545e
call fcn.00403598
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455810
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x467bb4]
cmp dword [eax + 0x30], 0
je 0x4558ba
cmp dword [ebx + 0x94], 0
jne 0x4558b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4557a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4558b4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45587a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4558b4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004141a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455889
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45641c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456451
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040e0
jmp 0x45645e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404044
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457550
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457591
mov eax, esi
call fcn.0043dc54
test al, al
je 0x457591
mov eax, dword [ebx + 0x84]
call fcn.0043d950
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457591
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d950
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4619a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fe4
xor eax, eax
push ebp
push 0x461a1e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp esi, 0xffffffff
jne 0x4619d3
mov eax, dword [ebp - 4]
call fcn.00404dc0
mov esi, eax
cmp edi, esi
jle 0x4619ed
mov ecx, 0x461a38
mov dl, 1
mov eax, dword [0x406eac]
call fcn.0040b794
call fcn.004039a8
xor ebx, ebx
mov edx, edi
mov eax, esi
sub eax, edx
jl 0x461a02
inc eax
mov ecx, dword [ebp - 4]
xor bl, byte [ecx + edx]
inc edx
dec eax
jne 0x4619f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461a25
lea eax, [ebp - 4]
mov edx, dword [0x461530]
call fcn.00404f80
ret
Function at 0x4010c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
ret
Function at 0x403aa0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x439df0
push 0x42a050
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46d624]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x403b3b
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x403b21
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x403b3b
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042a541
mov esp, ebp
pop ebp
ret

Function at 0x403b60
Capabilities:
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x439e10
push 0x42a050
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x46d624]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
mov byte [ebp - 0x120], al
push 0x103
push eax
lea eax, [ebp - 0x11f]
push eax
call fcn.0042a550
add esp, 0xc
mov dword [ebp - 0x12c], 0x104
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x403c3d
mov edx, 6
mov dword [ebp - 0x130], edx
lea ecx, [ebp - 0x120]
or eax, 0xffffffff
mov dword [ebp - 0x124], ecx
mov esi, edx
dec edx
mov dword [ebp - 0x130], edx
test esi, esi
je 0x403c1c
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4371f0]
inc ecx
jmp 0x403bf1
not eax
xor ecx, ecx
cmp eax, 0x39b5d60d
sete cl
mov esi, ecx
jmp 0x403c37
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042a541
mov esp, ebp
pop ebp
ret
Function at 0x403c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403cab
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403ce2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403cde
jmp 0x403cd0
cmp esi, eax
jae 0x403ce2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403cd0
cmp esi, eax
jb 0x403ce9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407830
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov 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 0x4082a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436358
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x46d624]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
push 0x43c0a0
xor esi, esi
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], esi
call fcn.004178e0
add esp, 8
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], esi
je 0x4083e7
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push 2
push eax
push 0x80000001
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00407ac0
mov ebx, dword [ebp - 0x44]
test eax, eax
jne 0x4083dc
test ebx, ebx
je 0x4083e7
push 0x437814
lea ecx, [ebp - 0x30]
call fcn.00408250
mov eax, edi
mov byte [ebp - 4], 3
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408340
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.00408130
push 1
push 0x437814
lea ecx, [ebp - 0x30]
call fcn.00408130
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
cmp esi, 8
jae 0x408376
lea eax, [ebp - 0x30]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408380
mov ecx, dword [ebp - 0x30]
sub eax, edx
sar eax, 1
cmp esi, 8
jae 0x40839a
lea ecx, [ebp - 0x30]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x34]
push edx
push ecx
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x1c], 8
jb 0x4083c8
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0042a03b
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], dx
test ebx, ebx
je 0x4083e7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40841c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40841c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042a541
mov esp, ebp
pop ebp
ret
Function at 0x4084c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x46d624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ntdll.dll
mov dword [ebp - 0x620], eax
call esi
test eax, eax
je 0x40865c
push ebx
push edi
push 0x43786c
push str.Kernel32.dll
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x437860
push 0x437854
mov edi, eax
call ebx
push eax
call esi
push 0x437840
push 0x437854
mov dword [ebp - 0x624], eax
call ebx
push eax
call esi
mov esi, eax
test edi, edi
je 0x40864b
mov ebx, dword [ebp - 0x624]
test ebx, ebx
je 0x40864b
test esi, esi
je 0x40864b
push 0x40
lea ecx, [ebp - 0x674]
push 0
push ecx
call fcn.0042a550
xor eax, eax
xor edx, edx
push 0x206
mov word [ebp - 0x648], dx
push eax
lea edx, [ebp - 0x20a]
xor ecx, ecx
push edx
mov dword [ebp - 0x678], 0x44
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov word [ebp - 0x20c], cx
call fcn.0042a550
add esp, 0x18
push 0
push 0x25
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x437838
lea ecx, [ebp - 0x20c]
push ecx
call ebx
push 0
lea edx, [ebp - 0x20c]
push edx
call esi
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x61a]
push ecx
mov word [ebp - 0x61c], ax
call fcn.0042a550
mov edx, dword [ebp - 0x620]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x437818
lea ecx, [ebp - 0x61c]
push 0x208
push ecx
call fcn.0042b44f
add esp, 0x20
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x678]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a541
mov esp, ebp
pop ebp
ret
jns 0x408683
daa
inc ebx
div dword [eax + 0x37]
xor byte [edi], 0xb
cwde
or bh, bl
xchg ebx, eax
ret
sal dword [bp + di - 0x3e2d], 0x7c
inc sp
or eax, 0xb7350ff8
mov dword [ebp + 0x29a26f70], 0x1cafc420
aaa
hlt
Function at 0x417670
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436390
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x46d624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x20]
xor ebx, ebx
push 0x43c670
xor esi, esi
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], ebx
call fcn.004178e0
add esp, 8
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 0xc], ebx
je 0x41779b
push 5
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x41779b
mov edx, dword [ebp - 0x20]
push 0x17
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x24], eax
cmp esi, ebx
je 0x417791
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push esi
call ebx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x41777d
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x11], cl
lea ecx, [ebp - 0x11]
push ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00405140
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
sub eax, edi
cmp eax, dword [ebp - 0x18]
jne 0x417770
test edi, edi
je 0x417770
lea edx, [ebp - 0x18]
push edx
push eax
push edi
push esi
call ebx
test eax, eax
je 0x417770
cmp dword [edi + 4], 2
je 0x417770
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 2
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea ecx, [ebp - 0x34]
call fcn.00404f80
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
xor ebx, ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4177cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4177cb
cmp esi, ebx
je 0x4177d6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4177e4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4363f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x46d624]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x46cd88
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004178e0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x418666
mov edi, dword [ebp + 8]
cmp ebx, 2
jge 0x418666
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test ebx, ebx
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41865d
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test edi, edi
jne 0x418629
lea eax, [edi + 0xd]
jmp 0x418649
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x437914
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x41865d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc ebx
jmp 0x4185e2
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4186a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418820
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43641b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x46d624]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.004054c0
add esp, 0xc
cmp eax, edi
je 0x4189c8
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x4189c8
lea ecx, [ebp - 0x230]
push str.ABA229B5_9BAB_42B8_8D16_E95C0AF12852_7a0d2883a28ef3a7da31b507b6627fae_
push ecx
call fcn.004056d0
add esp, 8
push 0x437938
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4189c8
push esi
call eax
cmp eax, edi
je 0x41894d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41894d
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.0042a550
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4189c8
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4189c8
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4189c8
push 0x437918
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.0042c146
add esp, 0xc
test eax, eax
jne 0x4189c8
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4189c8
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.0042c00e
mov edx, dword [ebp - 0x220]
push edx
call fcn.0042be5b
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.0042bc6c
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.0042ba64
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x4189f3
push eax
call fcn.0042a03b
add esp, 4
jmp 0x4189f3
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042a541
mov esp, ebp
pop ebp
ret