joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082fb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402ff0
xor ebx, ebx
cmp dword [0x40e7ac], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4083d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40833b
xor eax, eax
jmp 0x408494
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x408334
push eax
call fcn.00402f8d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e7ac], eax
call esi
push eax
call fcn.00402f8d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e7b0], eax
call esi
push eax
call fcn.00402f8d
mov dword [0x40e7b4], eax
lea eax, [ebp - 8]
push eax
call fcn.004051f9
test eax, eax
pop ecx
pop ecx
je 0x40839e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034ca
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4083d0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402f8d
cmp eax, ebx
pop ecx
mov dword [0x40e7bc], eax
je 0x4083d0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f8d
pop ecx
mov dword [0x40e7b8], eax
mov eax, dword [0x40e7b8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x408449
cmp dword [0x40e7bc], esi
je 0x408449
push eax
call fcn.00402ff9
pop ecx
call eax
cmp eax, ebx
je 0x408416
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e7bc]
call fcn.00402ff9
pop ecx
call eax
test eax, eax
je 0x408416
test byte [ebp - 0x18], 1
jne 0x408449
lea eax, [ebp - 0xc]
push eax
call fcn.00405230
test eax, eax
pop ecx
je 0x408431
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034ca
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x408440
or dword [ebp + 0x10], 0x200000
jmp 0x40847a
or dword [ebp + 0x10], 0x40000
jmp 0x40847a
mov eax, dword [0x40e7b0]
cmp eax, esi
je 0x40847a
push eax
call fcn.00402ff9
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40847a
mov eax, dword [0x40e7b4]
cmp eax, esi
je 0x40847a
push dword [ebp - 4]
push eax
call fcn.00402ff9
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e7ac]
call fcn.00402ff9
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4049a8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407c30
test esi, esi
jne 0x4049de
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407db8
jmp 0x4049fc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040488c
mov edi, eax
test esi, esi
je 0x4049fc
cmp dword [ebx], 0
je 0x4049fc
dec esi
jmp 0x4049e5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404a30
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x530008], 0x8088405
inc edx
mov dword [ebx + 0x530008], edx
mul edx
mov eax, edx
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406d68
mov byte [esp], al
cmp byte [esp], 0
jne 0x406afc
test edi, edi
je 0x406afc
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406a33
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406a0e
cmp edi, 0xffffffff
je 0x4069cf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4069cf
mov byte [esp], 0
jmp 0x406afc
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406a0e
test ebx, ebx
jne 0x406a04
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402824
test eax, eax
jne 0x406a04
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406afc
call 0x406e8c
dec ebp
test ebp, ebp
jg 0x4069b4
cmp edi, 0xffffffff
je 0x406a33
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406a31
mov byte [esp], 0
jmp 0x406afc
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40697e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x406a33
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406b6c
mov edx, eax
mov ebx, dword [0x5368f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406a9a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406a98
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406a9a
xor edi, edi
cmp byte [esp], 0
je 0x406ac3
mov ebx, dword [esi]
test bl, 1
jne 0x406adc
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x406aa0
mov byte [esp + 1], 1
jmp 0x406adc
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x406ac3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406a4d
cmp byte [esp], 0
je 0x406afc
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40788c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x536058], 0
je 0x4078f3
cmp word [0x536344], 0xd7b2
jne 0x4078b5
cmp dword [0x53634c], 0
jbe 0x4078b5
mov eax, 0x536340
call dword [0x53635c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407920
call fcn.00408634
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x530032], 0
jne 0x40790f
push 0
push 0x5309c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407aec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x530034], 0
je 0x407b17
mov edx, edi
mov eax, esi
call dword [0x530034]
mov ebx, eax
jmp 0x407b28
mov eax, 8
call fcn.004045e8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x536059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407ab4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407b5d
mov edx, 8
mov eax, ebx
call fcn.00404604
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40a7f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a955
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407c30
cmp si, word [0x530a00]
jb 0x40a888
cmp si, word [0x530c00]
ja 0x40a888
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a888
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x530a00]
jae 0x40a862
mov edi, ebx
dec edi
jmp 0x40a883
cmp si, word [ebx*8 + 0x530a00]
jbe 0x40a872
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a883
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x530a04]
call fcn.0040a700
jmp 0x40a888
cmp edi, dword [ebp - 8]
jae 0x40a84c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a937
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a937
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408b70
push dword [ebp - 0x160]
push 0x40a970
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408b70
push dword [ebp - 0x164]
push 0x40a980
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408b70
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408da8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a95c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407c90
ret
Function at 0x40ab08
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ac0b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x538b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x538ba0]
jne 0x40ab54
mov eax, esi
mov edx, 0x538ba2
mov ecx, 0x55
call fcn.00408b70
push 0x538b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40abf5
push 0x538b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407c30
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40abc3
cmp byte [0x538b84], 0
je 0x40ab88
mov edx, esi
mov eax, ebx
call fcn.0040a9ec
jmp 0x40abc3
mov edx, esi
mov eax, ebx
call fcn.0040a7f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40abc3
cmp dword [esi], 0
je 0x40abac
mov eax, esi
mov edx, 0x40ac24
call fcn.00408cc8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a7f0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408cc8
push 0x538b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x538ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00408ac4
push eax
push 0x538ba2
call sub.kernel32.dll_lstrcpynW
push 0x538b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ac12
lea eax, [ebp - 4]
call fcn.00407c30
ret
Function at 0x41f8e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x41fa18
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x41fa28]
mov dl, 1
mov eax, esi
call fcn.0041fbac
test al, al
jne 0x41f935
mov dl, 1
mov eax, esi
call fcn.0041fb14
test al, al
je 0x41f9cb
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.0042033c
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.0042680c
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.00408ac4
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x41f9c6
test byte [ebp - 0xc], 1
je 0x41f991
or bl, 1
test byte [ebp - 0xc], 2
je 0x41f99a
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x41f9a3
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x41f9b7
dec eax
je 0x41f9bc
dec eax
je 0x41f9c1
dec eax
jne 0x41f9f2
or bl, 0x10
jmp 0x41f9f2
or bl, 4
jmp 0x41f9f2
or bl, 8
jmp 0x41f9f2
call fcn.004271b0
lea edx, [ebp - 0x428]
mov eax, dword [0x535098]
call fcn.0040bdbc
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41ac84]
call fcn.00425330
call fcn.00407328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fa1f
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00407c90
lea eax, [ebp - 4]
call fcn.00407c30
ret

Function at 0x41fb14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00408ac4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41fb7e
test ah, 4
je 0x41fb77
test bl, bl
jne 0x41fb3c
mov al, 1
jmp 0x41fba5
test al, 0x10
je 0x41fb44
xor eax, eax
jmp 0x41fba5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41fb68
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41fba5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41fba5
test al, 0x10
sete al
jmp 0x41fba5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41fb9f
cmp ebx, 3
je 0x41fb9f
cmp ebx, 0x7b
je 0x41fb9f
mov eax, esi
call fcn.0041fad4
test al, al
jne 0x41fba3
xor eax, eax
jmp 0x41fba5
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4251e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x425305
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00424fe8
mov esi, eax
mov eax, dword [0x534fec]
cmp byte [eax], 0
je 0x4252ad
mov eax, dword [0x534cfc]
call fcn.00404fc8
call fcn.0040473c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4251b0]
call fcn.0040a018
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x425320
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4252e9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x534c94]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x538c50]
call fcn.0040a334
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42530c
lea eax, [ebp - 4]
mov edx, dword [0x4251b0]
call fcn.0040a13c
ret

Function at 0x427054
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00408138
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040be50
mov edi, eax
cmp edi, 0x104
jbe 0x426ffb
mov eax, edi
add eax, eax
call fcn.004045e8
mov esi, eax
jmp 0x426ffd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040be50
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x427038
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x427022
mov eax, esp
cmp esi, eax
je 0x427045
mov eax, esi
call fcn.00404604
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x427080
cmp bl, 0
je 0x42707c
cmp bl, 0x41
jl 0x427077
cmp bl, 0x5a
jg 0x427077
or bl, 0x20
xor al, bl
inc esi
jmp 0x42705b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x426fbc

Function at 0x427888
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00408b70
add esp, 0x800
pop ebx
ret
Function at 0x451160
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4511fe
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4511c2
cmp byte [ebx + 0x10], 0
jne 0x4511c2
cmp byte [ebx + 0x3c], 0
jne 0x4511c2
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4511e3
lea edx, [ebp - 4]
mov eax, dword [0x534f74]
call fcn.0040bdbc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4405d4]
call fcn.00425330
call fcn.00407328
jmp 0x4511e3
lea edx, [ebp - 8]
mov eax, dword [0x534f74]
call fcn.0040bdbc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4405d4]
call fcn.00425330
call fcn.00407328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451205
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret

Function at 0x451b00
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x451b4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00451098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x451b67
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x451b70
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00451098
dec esi
jne 0x451b92
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x456974
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4569c6
test eax, edx
je 0x4569c9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x456989
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4569af
add ecx, 4
js 0x45699f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4569ac
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4569d5
test edx, edx
jne 0x45697c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x46c18c
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov edi, 0x53b0d4
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x46c305
push dword fs:[edx]
mov dword fs:[edx], esp
test esi, esi
jne 0x46c1c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c30f
call fcn.0046995c
push esi
push 0
push 0x100001
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46c1e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c30f
xor edx, edx
push ebp
push 0x46c2f4
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x46c2c2
push 0x64
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_WaitForInputIdle
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x46c0ec]
call fcn.0040a018
add esp, 4
push esi
push 0x46c11c
call sub.user32.dll_EnumWindows
mov dword [ebp - 0xc], 0x79
mov eax, dword [edi]
call fcn.00409e64
test eax, eax
je 0x46c2c2
mov eax, dword [edi]
call fcn.00409e64
mov esi, eax
dec esi
test esi, esi
jl 0x46c28a
inc esi
xor ebx, ebx
push 0
push 0
push 0x10
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
push 0
push 0
push 0x11
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
push 0
push 1
push 0x16
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
inc ebx
dec esi
jne 0x46c253
push 0x19
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
push 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x46c2b9
mov byte [ebp - 1], 1
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c30f
dec dword [ebp - 0xc]
jne 0x46c233
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c2fb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ea98
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 - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46ec53
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408058
mov eax, dword [ebp - 4]
call fcn.0046e3e8
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x46eaea
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00408f38
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0046f6d4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46ebc9
xor eax, eax
push ebp
push 0x46ebc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0046e688
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0046ec88
test al, al
je 0x46eba0
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407db8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x46eba0
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00408ac4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0046e5e8
test al, al
je 0x46eb9a
mov eax, dword [ebp - 8]
call fcn.00408ac4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00408b1c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0046ea98
dec ebx
cmp ebx, 0xffffffff
jne 0x46eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ebc9
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0046e688
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x53b0f8], 0
je 0x46ec09
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00408ac4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0046e674
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0046e5e8
mov ebx, eax
jmp 0x46ec30
mov eax, dword [ebp - 4]
call fcn.00408ac4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0046e674
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0046e5e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ec5a
lea eax, [ebp - 0x3c]
call fcn.00407c30
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret