joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b7a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
sub edi, dword [eax]
mov eax, dword [ebx]
sub edi, 0x10
cdq
push edx
push eax
mov edx, 0xfff0b9d8
sar edi, 4
call fcn.0040a86d
mov ecx, dword [ebx + 4]
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.0040a535
mov ecx, dword [ebx + 4]
push esi
push dword [ebp + 0xc]
call fcn.0040a535
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
cdq
push edx
push eax
call fcn.0040a535
add esp, 0x20
call fcn.0040446c
push 1
push 3
push dword [ebx + 4]
call fcn.00450428
test eax, eax
je 0x403c6f
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00406c46
mov esi, str.hwang
mov dword [esp], 0x7f2
lea edi, [esp + 0x2c]
lea eax, [esp + 0x3a]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004262f0
add esp, 0xc
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._s_r_n
push eax
call fcn.00406ba3
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push 1
add dword [eax + 0xc], 0xfffffff0
call fcn.004016ce
xor eax, eax
jmp 0x403c8a
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
push esi
call fcn.0040a3f4
pop ecx
mov ecx, dword [ebx + 4]
mov edx, edi
mov esi, eax
call fcn.0040a19d
mov eax, esi
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423822
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4066f7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.00406868
jmp 0x40674f
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004066f7
mov esi, eax
test esi, esi
jne 0x4067a3
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x406741
cmp dword [esp + 0xc], esi
je 0x406792
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0040667f
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x4067b4
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00423822
mov esp, ebp
pop ebp
ret 4
Function at 0x4067cc
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push edi
mov edi, ecx
jne 0x4067db
push 0xd
pop eax
jmp 0x406801
push dword [esp + 0xc]
call fcn.004293b5
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
ret 0xc

Function at 0x40794a
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x475078]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
push ebx
push ebp
mov dword [esp + 0x14], eax
mov ebp, ecx
xor eax, eax
mov ebx, dword [esp + 0x4c]
push esi
push edi
mov byte [esp + 0x20], al
lea edi, [esp + 0x21]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
stosd dword es:[edi], eax
mov esi, dword [esp + 0x5c]
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor edi, edi
lea eax, [esp + 0x20]
push edi
push edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0xc
push esi
mov edx, ebx
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], eax
call fcn.0044b4f4
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4079d6
mov eax, dword [eax]
push eax
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp dword [ebp], esi
je 0x407a0d
cmp dword [ebp], edi
je 0x407a01
cmp dword [ebp], 0xffffffff
je 0x407a01
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp], edi
test esi, esi
je 0x407a0d
cmp esi, 0xffffffff
je 0x407a0d
mov dword [ebp], esi
push edi
push 1
lea ecx, [esp + 0x3c]
call fcn.004016ce
cmp dword [ebp], edi
je 0x407a47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407a47
push edi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x407a43
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x407a4a
xor eax, eax
inc eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423822
add esp, 0x40
ret 0xc
Function at 0x41352f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 8], esi
call fcn.00431649
xor edi, edi
xorps xmm1, xmm1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
movzx eax, byte [esi]
test byte [eax + 0x4650c1], 8
je 0x413589
inc esi
movzx eax, byte [esi]
test byte [eax + 0x4650c1], 8
jne 0x413579
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.00413514
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
cmp byte [edx], 0x30
jne 0x4136b1
mov cl, byte [edx + 1]
cmp cl, 0x78
je 0x4135b1
cmp cl, 0x58
jne 0x4136b1
mov al, byte [ebp - 1]
add edx, 2
mov esi, edi
mov cl, byte [edx]
cmp cl, al
jne 0x4135c6
test esi, esi
jne 0x413616
inc esi
jmp 0x413613
movzx eax, cl
test byte [eax + 0x4650c1], 0x10
je 0x413616
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4135e3
cmp cl, 0x30
jne 0x4135e3
inc dword [ebp - 0x14]
jmp 0x41360b
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x1e
jg 0x41360a
movsx ecx, cl
call fcn.00413500
mulsd xmm1, qword [0x46a580]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
jmp 0x41360b
inc edi
mov al, byte [ebp - 1]
test esi, esi
je 0x413613
dec edi
inc edx
jmp 0x4135b9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
push 0
pop edi
add eax, ecx
je 0x4136b1
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov esi, eax
mov al, byte [edx]
shl esi, 2
cmp al, 0x70
je 0x413641
cmp al, 0x50
jne 0x41368a
inc edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
call fcn.00413514
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov al, byte [edx]
movzx ecx, al
test byte [ecx + 0x4650c1], 2
je 0x4136b1
imul ecx, edi, 0xa
movsx edi, al
add edi, 0xffffffd0
add edi, ecx
inc edx
movzx eax, byte [edx]
test byte [eax + 0x4650c1], 2
mov al, byte [edx]
jne 0x413661
cmp dword [ebp - 0x1c], 0
je 0x413683
neg edi
mov eax, dword [ebp - 0x18]
add esi, edi
mov dword [eax], edx
cmp dword [ebp - 0x24], 0
je 0x413697
xorps xmm1, xmmword [0x46a5e0]
push esi
push ecx
push ecx
movsd qword [esp], xmm1
call fcn.00431462
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
add esp, 0xc
jmp 0x4136b4
xorps xmm0, xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41bba2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00424a20
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1010], 0
lea eax, [ebp - 0x1008]
push esi
push edi
mov edi, 0x1000
mov dword [ebp - 0x100c], ecx
mov esi, edx
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], edi
mov edx, edi
lea ecx, [ebp - 0x1018]
call fcn.0040bd5b
push esi
push edi
push 1
push eax
call fcn.00433bb4
add dword [ebp - 0x1010], eax
add esp, 0x10
cmp eax, edi
je 0x41bbe1
lea ecx, [ebp - 0x1018]
call fcn.0040bdfd
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423822
mov esp, ebp
pop ebp
ret

Function at 0x41bc20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00424a20
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x1014], 0
lea eax, [ebp - 0x100c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x1010], ecx
mov edx, esi
mov dword [ebp - 0x101c], eax
lea ecx, [ebp - 0x101c]
mov dword [ebp - 0x1018], 0x1000
call fcn.0040bd5b
push edi
push esi
push 1
push eax
call fcn.00433bb4
add esp, 0x10
lea ecx, [ebp - 0x101c]
mov esi, eax
add dword [ebp - 0x1014], esi
call fcn.0040bdfd
mov ecx, dword [ebp - 8]
xor eax, eax
cmp eax, esi
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.00423822
mov esp, ebp
pop ebp
ret

Function at 0x41bf7b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ecx + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0xc]
sub esi, dword [eax]
sub esi, 0x10
mov dword [esp + 0xc], edx
push edi
sar esi, 4
mov dword [esp + 0xc], ecx
push 1
pop edi
sub esi, ebx
jne 0x41bfb5
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov edx, ebx
dec esi
call fcn.0040a2be
mov ecx, dword [esp + 0xc]
mov edx, ebx
cmp eax, 3
jne 0x41c028
call fcn.0040a052
mov ecx, dword [esp + 0xc]
mov edx, ebx
push 0
cmp dword [eax + 8], 0x13
jne 0x41bfea
call fcn.0040a3f4
pop ecx
push edx
push eax
push str._lld
jmp 0x41bffa
call fcn.0040a3b5
push ecx
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x1c]
call fcn.0040b2d1
add esp, 0x10
test edi, edi
je 0x41c00e
test eax, eax
jg 0x41c050
xor edi, edi
inc ebx
test esi, esi
jne 0x41bfb1
test edi, edi
jne 0x41bfa7
mov ecx, dword [esp + 0xc]
xor edx, edx
push edi
call fcn.0040b890
pop ecx
jmp 0x41bfaa
lea eax, [esp + 0x14]
push eax
call fcn.0040bb7d
pop ecx
test edi, edi
je 0x41c00e
push dword [esp + 0x10]
push dword [esp + 0x18]
push 1
push eax
call fcn.00434307
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x41c00e
xor edi, edi
inc edi
jmp 0x41c010

Function at 0x44099b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044081a

Function at 0x444b94
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00444854
Function at 0x44b0d7
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push 0x3c
mov eax, 0x4577e7
call fcn.004240ea
mov dword [ebp - 0x44], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x44b24d
push 0x2c
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x44b242
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
push 0x24
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], edi
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44b237
cmp dword [ebp - 0x30], 1
je 0x44b234
jmp 0x44b1bd
mov eax, dword [ebp - 0x1c]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x44b177
mov eax, ecx
jmp 0x44b181
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44b237
cmp dword [ebp - 0x30], 1
je 0x44b234
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
ja 0x44b237
cmp dword [ebp - 0x30], 3
je 0x44b160
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x48]
add ecx, dword [ebp - 0x44]
sub ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0044b255
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x34]
pop ecx
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x44b22b
mov esi, dword [ebp - 0x38]
jmp 0x44b237
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44b1f4
cmp dword [ebp - 0x30], 1
je 0x44b231
call esi
sub eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
ja 0x44b1f4
cmp dword [ebp - 0x30], 1
jne 0x44b1f9
mov esi, dword [ebp - 0x38]
xor edi, edi
inc edi
test ebx, ebx
je 0x44b242
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x44b24d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
call fcn.00424094
ret
Function at 0x44b255
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x50
mov eax, 0x457814
call fcn.004240ea
mov edi, edx
mov dword [ebp - 0x48], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
push esi
push esi
inc ebx
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x44b31a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x44b2ae
mov ebx, esi
jmp 0x44b31a
push dword [ebp - 0x38]
lea ecx, [ebp - 0x5c]
call fcn.004010cb
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x44], esi
push eax
push dword [ebp - 0x38]
push esi
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x44b318
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x3c], 0
jbe 0x44b31a
mov eax, dword [ebp - 0x48]
push 0x24
push dword [esi]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x44b318
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x44b361
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
lea ecx, [ebp - 0x5c]
call fcn.00401130
mov eax, ebx
call fcn.00424094
ret
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x44b311
cmp dword [ebp - 0x30], ebx
je 0x44b366
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x50]
cmp eax, dword [ebp + 8]
ja 0x44b311
cmp dword [ebp - 0x30], ebx
jne 0x44b32a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
inc edi
add esi, 0x24
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], esi
cmp edi, dword [ebp - 0x3c]
jb 0x44b2e2
jmp 0x44b31a
Function at 0x44b388
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x44b45c
push edi
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x44b44b
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call edi
test eax, eax
je 0x44b449
cmp dword [ebp - 0x24], 3
je 0x44b3fe
cmp dword [ebp - 0x24], 1
jne 0x44b446
push 3
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0044b46e
pop ecx
test eax, eax
je 0x44b449
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x44b449
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call edi
test eax, eax
je 0x44b449
push 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.0044b46e
cmp dword [ebp - 0x24], 4
pop ecx
jne 0x44b449
xor ebx, ebx
inc ebx
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x44b456
push esi
call edi
push dword [ebp - 0x34]
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00423822
mov esp, ebp
pop ebp
ret

Function at 0x44b46e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, edx
mov dword [esp + 0x14], ecx
call edi
mov ebp, dword [esi + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x44b4e1
mov eax, dword [esi + 0x18]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x44b4a6
mov eax, ecx
jmp 0x44b4b0
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401090
test eax, eax
je 0x44b4f0
cmp dword [esi + 0x14], ebp
jbe 0x44b4d6
call edi
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jmp 0x44b4e1
call edi
sub eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x18]
ja 0x44b4f0
cmp dword [esi + 4], ebx
je 0x44b48f
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
xor eax, eax
jmp 0x44b4e9
Function at 0x4501cb
Capabilities:
Open clipboard

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x475078]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x28
mov eax, 0x4582ea
call fcn.004240b6
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4502f4
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebp - 4], ebx
test eax, eax
js 0x4502e6
mov dword [ebp - 0x10], ebx
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_OleGetClipboard]
test eax, eax
jne 0x4502d6
or dword [ebp - 0x1c], 0xffffffff
lea edx, [ebp - 0x34]
push 0xf
pop eax
mov word [ebp - 0x28], ax
xor eax, eax
inc eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
push edx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4502d6
mov edi, dword [ebp - 0x30]
push ebx
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xffffffffffffffff
push edi
call ebx
cmp eax, 1
jne 0x4502ab
push 0x208
lea eax, [ebp]
push esi
push eax
call fcn.004262f0
add esp, 0xc
lea eax, [ebp]
push 0x104
push eax
push esi
push edi
call ebx
test eax, eax
je 0x4502ab
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
push 1
pop eax
cmove esi, eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
xor ebx, ebx
test esi, esi
je 0x4502d6
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4502d4
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4502d6
mov esi, ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4502e6
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.ole32.dll_OleUninitialize]
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 + 0x208]
xor ecx, ebp
call fcn.00423822
lea esp, [ebp + 0x20c]
pop ebp
ret

Function at 0x450319
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test edi, edi
jne 0x450352
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45035f
test al, 1
je 0x45035f
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test edi, edi
je 0x45035f
push 0
push esi
push 5
push 0x10
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
ret
Function at 0x450364
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x4503b7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4503a4
test al, 5
je 0x4503a4
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4503a4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x4503b7
test ebx, ebx
jne 0x4503c4
mov ecx, esi
call fcn.004501cb
mov ebx, eax
test ebx, ebx
jne 0x45036b
jmp 0x4503c4
push 0
push esi
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x450925
Capabilities:
Print debug messages

Disassembly:
push 0x838
mov eax, 0x45840b
call fcn.004240ea
mov esi, ecx
mov edx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x844]
call fcn.0040647b
pop ecx
xor ebx, ebx
lea edx, [ebp - 0x844]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x830], 0x10
mov ecx, dword [esi]
cmovae edx, dword [ebp - 0x844]
push ebx
call fcn.0040c0c8
pop ecx
test eax, eax
jne 0x450981
push ebx
push ebx
push dword [esi]
call fcn.00450428
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x450a49
mov edx, dword [esi]
lea ecx, [ebp - 0x82c]
push 0xffffffffffffffff
call fcn.00406c46
mov eax, dword [esi]
lea edi, [ebp - 0x814]
mov esi, str.hwang
mov dword [esp], 0x7f2
push ebx
add dword [eax + 0xc], 0xfffffff0
lea eax, [ebp - 0x806]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004262f0
add esp, 0xc
lea eax, [ebp - 0x82c]
cmp dword [ebp - 0x818], 8
cmovae eax, dword [ebp - 0x82c]
push eax
lea eax, [ebp - 0x808]
push str._s_r_n
push eax
call fcn.00406ba3
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x814]
add esp, 0xc
push eax
call ebx
mov esi, str.hwang
lea edi, [ebp - 0x814]
push 0x7f2
lea eax, [ebp - 0x806]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.004262f0
add esp, 0xc
lea eax, [ebp - 0x808]
push str.luaL_loadbuffer_failed__r_n
push eax
call fcn.00406ba3
pop ecx
pop ecx
lea eax, [ebp - 0x814]
push eax
call ebx
xor ebx, ebx
lea ecx, [ebp - 0x82c]
push ebx
push 1
call fcn.004016ce
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x844]
call fcn.00407174
mov eax, esi
call fcn.00424094
ret 4