joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45180c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x451841
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d20
jmp 0x45184b
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403c8c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452738
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x452770
mov eax, esi
call fcn.00439ee0
test al, al
je 0x452770
mov eax, dword [ebx + 0x74]
call fcn.00439be4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452770
push 0
mov eax, dword [ebx + 0x74]
call fcn.00439be4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x459b64
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
mov eax, dword [ebx + 0x6c]
sub edi, eax
mov edx, dword [ebx + 0x64]
sub edi, edx
test edi, edi
jne 0x459b94
mov ecx, dword [ebx + 0x64]
test ecx, ecx
jne 0x459b94
mov eax, dword [ebx + 0x6c]
test eax, eax
jne 0x459b94
mov edi, esi
jmp 0x459c28
cmp edi, 0xffffffff
jne 0x459b9f
dec edi
jmp 0x459c28
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
mov edx, dword [ebx + 0x64]
cmp eax, edx
ja 0x459c28
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00458c3c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x3c]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
mov ecx, dword [esp]
cmp esi, ecx
ja 0x459bf2
mov cx, word [esp]
sub cx, si
jmp 0x459bf4
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x459bd9
mov eax, esi
mov edx, eax
add edx, edx
mov ecx, dword [ebx + 0x38]
add edx, ecx
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
mov ecx, dword [esp]
cmp esi, ecx
ja 0x459c1e
mov cx, word [esp]
sub cx, si
jmp 0x459c20
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x459c05
add edi, esi
mov ebp, dword [ebx]
mov eax, dword [ebp + 4]
test eax, eax
je 0x459c90
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
add edx, ecx
mov eax, dword [ebx + 0x6c]
add edx, eax
mov ecx, edi
mov eax, ebp
call fcn.004598f4
add dword [ebx + 0x6c], eax
mov edx, dword [ebx + 0x6c]
cmp edx, 3
jb 0x459c79
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x64]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
mov edx, dword [ebx + 0x4c]
and eax, edx
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x6c]
cmp eax, 0x106
jae 0x459c90
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x459b6e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4621b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040407c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4621d1
test al, 0x10
jne 0x4621d5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4637dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403cd0
mov eax, dword [ebp - 0x10]
call fcn.004632a4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4636c6
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404100
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00463b3c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46379b
xor eax, eax
push ebp
push 0x463794
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00463470
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0046380c
test al, al
je 0x463772
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403d20
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x463772
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040407c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x46376c
mov eax, dword [ebp - 0x14]
call fcn.0040407c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403df0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00463674
dec ebx
cmp ebx, 0xffffffff
jne 0x463725
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46379b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00463470
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.0040407c
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0046345c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4637e4
lea eax, [ebp - 0x3c]
call fcn.00403c38
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403c5c
ret
Function at 0x46379b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4637dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403cd0
mov eax, dword [ebp - 0x10]
call fcn.004632a4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4636c6
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404100
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00463b3c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46379b
xor eax, eax
push ebp
push 0x463794
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00463470
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0046380c
test al, al
je 0x463772
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403d20
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x463772
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040407c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x46376c
mov eax, dword [ebp - 0x14]
call fcn.0040407c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403df0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00463674
dec ebx
cmp ebx, 0xffffffff
jne 0x463725
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46379b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00463470
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.0040407c
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0046345c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4637e4
lea eax, [ebp - 0x3c]
call fcn.00403c38
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403c5c
ret

Function at 0x46380c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402bcc
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x52d068]
cmp byte [edx + 8], 0
je 0x463870
mov edx, dword [0x52d050]
cmp dword [edx], 2
jne 0x463870
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x463a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004632b8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040407c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x463aae
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x52cb7c]
mov dl, 1
mov eax, dword [0x463144]
call fcn.0040c360
call fcn.00403684
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x463ab8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040407c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x463b10
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x52d078]
mov dl, 1
mov eax, dword [0x463144]
call fcn.0040c360
call fcn.00403684
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00463300
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4654c4
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
or ecx, ecx
je 0x4654e8
mov edx, eax
shl edx, 8
mov bl, byte [esi]
shr eax, 0x18
xor al, bl
mov eax, dword [eax*4 + 0x4fde9c]
xor eax, edx
inc esi
dec ecx
jne 0x4654cf
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret

Function at 0x465f30
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
and ax, 0xffff
cmp ax, 0xffff
jne 0x465f5f
mov eax, esi
call fcn.00404434
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x465f5f
push 0x20
push edi
call sub.kernel32.dll_SetFileAttributesW
push ebx
mov ecx, esi
mov dl, 1
mov eax, dword [0x46416c]
call fcn.004642d4
cmp dword [eax + 8], 0xffffffff
jne 0x465f7b
call fcn.00402eec
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x467398
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.0040406c
xor eax, eax
push ebp
push 0x467516
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x1a8]
mov edx, dword [ebp - 0xc]
mov ecx, 0xff
call fcn.00403e94
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0xa8]
mov cl, 0xf
call fcn.00402aa8
movzx esi, byte [ebp - 0xa8]
test esi, esi
jle 0x467500
cmp esi, 0xf
jle 0x467416
lea eax, [ebp - 0xa8]
mov edx, 0xf
call fcn.004029ac
mov esi, 0xf
inc esi
xor edi, edi
lea ebx, [ebp - 0x58]
mov eax, edi
cdq
idiv esi
mov al, byte [ebp + edx - 0xa8]
mov byte [ebx], al
inc edi
inc ebx
cmp edi, 0x40
jne 0x46741c
mov edi, 0x40
lea eax, [ebp - 0x58]
mov dl, byte [eax]
shl edx, 4
xor ecx, ecx
mov cl, byte [eax]
shr ecx, 4
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x467439
mov edi, 0x3f
lea eax, [ebp - 0x57]
mov dl, byte [eax]
xor dl, byte [eax - 1]
add dl, 0x17
mov byte [eax], dl
inc eax
dec edi
jne 0x467455
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
cmp ebx, 4
jne 0x467500
cmp dword [ebp - 0x14], 0x34127859
jne 0x467500
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
cmp ebx, 4
jl 0x467500
lea eax, [ebp - 0x58]
mov edx, 0x10
call fcn.00467330
cmp eax, dword [ebp - 0x18]
jne 0x467500
lea edx, [ebp - 0x98]
mov ecx, 0x40
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x4674f8
mov esi, ebx
dec esi
test esi, esi
jl 0x4674e8
inc esi
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x58]
mov cl, byte [eax]
sub cl, 0x11
xor cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
dec esi
jne 0x4674da
lea edx, [ebp - 0x98]
mov ecx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
test ebx, ebx
jg 0x4674b0
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46751d
lea eax, [ebp - 0xc]
call fcn.00403c38
ret

Function at 0x46765c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov ebp, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dl, 1
mov eax, dword [0x40fd28]
call fcn.00402ebc
mov esi, eax
push esi
push 0x467644
call sub.user32.dll_EnumWindows
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x4676dc
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.0041195c
cmp ebp, eax
je 0x4676d8
push 0x50
lea eax, [esp + 0xc]
push eax
mov edx, ebx
mov eax, esi
call fcn.0041195c
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x4676d8
lea eax, [esp + 8]
mov edx, dword [esp]
call fcn.004097b8
test eax, eax
jne 0x4676d8
mov edx, ebx
mov eax, esi
call fcn.0041195c
mov dword [esp + 4], eax
jmp 0x4676dc
inc ebx
dec edi
jne 0x467692
mov eax, esi
call fcn.00402eec
mov eax, dword [esp + 4]
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x467778
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor edx, edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4677fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x21
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x83]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4677e4
lea eax, [ebp - 0x83]
call fcn.0040968c
mov byte [ebp - 0x84], al
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00403e5c
mov eax, dword [ebp - 0x88]
mov edx, ebx
call fcn.00408910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467804
lea eax, [ebp - 0x88]
call fcn.00403c38
ret

Function at 0x467aac
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x467bc2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [esi]
mov eax, 0x467bd8
call fcn.004041a4
mov ebx, eax
test ebx, ebx
je 0x467ba1
cmp ebx, dword [ebp - 8]
je 0x467ba1
mov dword [ebp - 8], ebx
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00404100
mov edx, dword [esi]
mov eax, 0x467bd8
call fcn.004041a4
mov edi, eax
test edi, edi
je 0x467ba1
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, ebx
mov eax, dword [esi]
mov edx, ebx
call fcn.004040c0
mov ecx, edi
sub ecx, ebx
inc ecx
mov eax, esi
mov edx, ebx
call fcn.00404100
cmp dword [ebp - 4], 0
je 0x467ad8
push 0x467bd8
push dword [ebp - 4]
push 0x467bd8
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403f78
push 0x104
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
call fcn.00404088
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00403e68
mov eax, dword [ebp - 0x110]
mov edx, esi
mov ecx, ebx
call fcn.00404148
jmp 0x467ad8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467bc9
lea eax, [ebp - 0x110]
call fcn.00403c38
lea eax, [ebp - 4]
call fcn.00403c38
ret

Function at 0x467cec
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov edi, eax
mov esi, edx
mov ecx, ecx
shr ecx, 2
cld
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x467cf8
pop esi
pop edi
ret
Function at 0x46d678
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46d750
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x52e8e4], 0
jne 0x46d734
lea eax, [ebp - 4]
mov edx, 0x46d768
call fcn.00403cd0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040407c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46d734
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46d72d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46d717
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46d778
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46d717
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x52e8e4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d734
mov eax, dword [ebp - 0xc]
call fcn.0040275c
ret
mov ebx, dword [0x52e8e4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d757
lea eax, [ebp - 4]
call fcn.00403c38
ret

Function at 0x47a29c
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test bl, bl
je 0x47a2b9
test byte [esi + 0x20], 0x10
je 0x47a2b9
mov eax, 0x47a328
call fcn.0045881c
jmp 0x47a31a
cmp bl, byte [esi + 0x28]
je 0x47a31a
test bl, bl
je 0x47a2f2
test byte [esi + 0x20], 0x10
jne 0x47a317
mov cl, 1
mov dl, 1
mov eax, dword [0x47a010]
call fcn.00418a60
mov edi, eax
mov dword [esi + 0x48], edi
mov dword [edi + 0x30], esi
mov byte [edi + 0xe], 1
mov eax, edi
call fcn.00418b9c
mov eax, esi
call fcn.0047a34c
jmp 0x47a317
test byte [esi + 0x20], 0x10
jne 0x47a317
mov eax, dword [esi + 0x24]
push eax
call sub.winmm.dll_timeKillEvent
push 0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [esi + 0x48]
call fcn.00402eec
mov byte [esi + 0x28], bl
pop edi
pop esi
pop ebx
ret
Function at 0x48516c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x485174
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x485366
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48537c
mov eax, esi
call fcn.00482efc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403c8c
lea ecx, [ebp - 0x10]
mov edx, 0x485390
mov eax, esi
call fcn.00482efc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403c8c
lea ecx, [ebp - 0x14]
mov edx, 0x4853a8
mov eax, esi
call fcn.00482efc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403c8c
lea ecx, [ebp - 0x18]
mov edx, 0x4853c4
mov eax, esi
call fcn.00482efc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403c8c
lea ecx, [ebp - 0x1c]
mov edx, 0x4853e0
mov eax, esi
call fcn.00482efc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403c8c
lea ecx, [ebp - 0x24]
mov edx, 0x4853f8
mov eax, esi
call fcn.00482efc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408b54
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408f58
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x485410
mov eax, esi
call fcn.00482efc
mov eax, dword [ebp - 0x28]
call fcn.00482028
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x485420
mov eax, esi
call fcn.00482efc
mov eax, dword [ebp - 0x2c]
call fcn.00482028
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x485438
mov eax, esi
call fcn.00482efc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408f58
inc eax
je 0x485309
lea ecx, [ebp - 0x34]
mov edx, 0x485438
mov eax, esi
call fcn.00482efc
mov eax, dword [ebp - 0x34]
call fcn.00408f1c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a054
fstp qword [ebp - 0x3c]
wait
call fcn.0040a48c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x485324
lea ecx, [ebp - 0x40]
mov edx, 0x485438
mov eax, esi
call fcn.00482efc
mov eax, dword [ebp - 0x40]
call fcn.00482028
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x485448
mov eax, esi
call fcn.00482efc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48536d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403c5c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403c5c
ret