joyce8/EMBER2024-capa huggingface dataset:
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 + 0x52e008], 0x8088405
inc edx
mov dword [ebx + 0x52e008], 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 [0x5348f8]
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 [0x534058], 0
je 0x4078f3
cmp word [0x534344], 0xd7b2
jne 0x4078b5
cmp dword [0x53434c], 0
jbe 0x4078b5
mov eax, 0x534340
call dword [0x53435c]
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.004084d8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52e032], 0
jne 0x40790f
push 0
push 0x52e9c2
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 [0x52e034], 0
je 0x407b17
mov edx, edi
mov eax, esi
call dword [0x52e034]
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 [0x534059], 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 0x40a498
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 0x40a5fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407c30
cmp si, word [0x52ea00]
jb 0x40a530
cmp si, word [0x52ec00]
ja 0x40a530
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a530
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x52ea00]
jae 0x40a50a
mov edi, ebx
dec edi
jmp 0x40a52b
cmp si, word [ebx*8 + 0x52ea00]
jbe 0x40a51a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a52b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x52ea04]
call fcn.0040a3a8
jmp 0x40a530
cmp edi, dword [ebp - 8]
jae 0x40a4f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a5df
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a5df
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.0040895c
push dword [ebp - 0x160]
push 0x40a618
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040895c
push dword [ebp - 0x164]
push 0x40a628
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040895c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a604
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407c90
ret
Function at 0x40a7b0
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 0x40a8b3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x536b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x536ba0]
jne 0x40a7fc
mov eax, esi
mov edx, 0x536ba2
mov ecx, 0x55
call fcn.0040895c
push 0x536b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a89d
push 0x536b88
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 0x40a86b
cmp byte [0x536b84], 0
je 0x40a830
mov edx, esi
mov eax, ebx
call fcn.0040a694
jmp 0x40a86b
mov edx, esi
mov eax, ebx
call fcn.0040a498
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a86b
cmp dword [esi], 0
je 0x40a854
mov eax, esi
mov edx, 0x40a8cc
call fcn.00408ab4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a498
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408ab4
push 0x536b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x536ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.004088b0
push eax
push 0x536ba2
call sub.kernel32.dll_lstrcpynW
push 0x536b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a8ba
lea eax, [ebp - 4]
call fcn.00407c30
ret
Function at 0x41ea1c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41ea34
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41ea3c
mov al, 1
jmp 0x41ea59
movzx esi, word [ebp]
mov eax, esi
call fcn.004104b0
test al, al
jne 0x41ea55
cmp si, 0x5f
je 0x41ea55
xor eax, eax
jmp 0x41ea57
mov al, 1
xor al, 1
test al, al
jne 0x41eae9
test bl, bl
je 0x41eaa9
mov eax, ebp
test eax, eax
je 0x41ea70
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41eae5
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0041053c
test al, al
jne 0x41ea9d
cmp di, 0x5f
je 0x41ea9d
cmp di, 0x2e
je 0x41ea9d
xor eax, eax
jmp 0x41ea9f
mov al, 1
test al, al
je 0x41eae9
inc esi
dec ebx
jne 0x41ea7d
jmp 0x41eae5
mov eax, ebp
test eax, eax
je 0x41eab4
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41eae5
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0041053c
test al, al
jne 0x41eadb
cmp di, 0x5f
je 0x41eadb
xor eax, eax
jmp 0x41eadd
mov al, 1
test al, al
je 0x41eae9
inc esi
dec ebx
jne 0x41eac1
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41f568
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 0x41f69c
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x41f6ac]
mov dl, 1
mov eax, esi
call fcn.0041f830
test al, al
jne 0x41f5b9
mov dl, 1
mov eax, esi
call fcn.0041f798
test al, al
je 0x41f64f
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.0041ffc0
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00426490
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.004088b0
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x41f64a
test byte [ebp - 0xc], 1
je 0x41f615
or bl, 1
test byte [ebp - 0xc], 2
je 0x41f61e
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x41f627
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x41f63b
dec eax
je 0x41f640
dec eax
je 0x41f645
dec eax
jne 0x41f676
or bl, 0x10
jmp 0x41f676
or bl, 4
jmp 0x41f676
or bl, 8
jmp 0x41f676
call fcn.00426e34
lea edx, [ebp - 0x428]
mov eax, dword [0x5330b0]
call fcn.0040ba50
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41a908]
call fcn.00424fb4
call fcn.00407328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f6a3
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00407c90
lea eax, [ebp - 4]
call fcn.00407c30
ret
Function at 0x424e64
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 0x424f89
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00424c6c
mov esi, eax
mov eax, dword [0x533004]
cmp byte [eax], 0
je 0x424f31
mov eax, dword [0x532d14]
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 [0x424e34]
call fcn.00409cc0
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 0x424fa4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x424f6d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x532cac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x536c50]
call fcn.00409fdc
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 0x424f90
lea eax, [ebp - 4]
mov edx, dword [0x424e34]
call fcn.00409de4
ret

Function at 0x426cd8
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.0040bae4
mov edi, eax
cmp edi, 0x104
jbe 0x426c7f
mov eax, edi
add eax, eax
call fcn.004045e8
mov esi, eax
jmp 0x426c81
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040bae4
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x426cbc
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 0x426ca6
mov eax, esp
cmp esi, eax
je 0x426cc9
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 0x426d04
cmp bl, 0
je 0x426d00
cmp bl, 0x41
jl 0x426cfb
cmp bl, 0x5a
jg 0x426cfb
or bl, 0x20
xor al, bl
inc esi
jmp 0x426cdf
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x426c40

Function at 0x42750c
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.0040895c
add esp, 0x800
pop ebx
ret
Function at 0x450de4
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x450e82
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x450e46
cmp byte [ebx + 0x10], 0
jne 0x450e46
cmp byte [ebx + 0x3c], 0
jne 0x450e46
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 0x450e67
lea edx, [ebp - 4]
mov eax, dword [0x532f8c]
call fcn.0040ba50
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x440258]
call fcn.00424fb4
call fcn.00407328
jmp 0x450e67
lea edx, [ebp - 8]
mov eax, dword [0x532f8c]
call fcn.0040ba50
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x440258]
call fcn.00424fb4
call fcn.00407328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450e89
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret

Function at 0x451784
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 0x4517d2
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.00450d1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4517eb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4517f4
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.00450d1c
dec esi
jne 0x451816
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x45656c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4565be
test eax, edx
je 0x4565c1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x456581
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 0x4565a7
add ecx, 4
js 0x456597
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4565a4
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 0x4565cd
test edx, edx
jne 0x456574
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x46bc64
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, 0x5390d4
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x46bddd
push dword fs:[edx]
mov dword fs:[edx], esp
test esi, esi
jne 0x46bc99
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46bde7
call fcn.00469434
push esi
push 0
push 0x100001
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46bcc1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46bde7
xor edx, edx
push ebp
push 0x46bdcc
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x46bd9a
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 [0x46bbc4]
call fcn.00409cc0
add esp, 4
push esi
push 0x46bbf4
call sub.user32.dll_EnumWindows
mov dword [ebp - 0xc], 0x79
mov eax, dword [edi]
call fcn.00409b0c
test eax, eax
je 0x46bd9a
mov eax, dword [edi]
call fcn.00409b0c
mov esi, eax
dec esi
test esi, esi
jl 0x46bd62
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 0x46bd2b
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 0x46bd91
mov byte [ebp - 1], 1
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46bde7
dec dword [ebp - 0xc]
jne 0x46bd0b
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 0x46bdd3
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 0x46e638
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 0x46e7f3
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.0046df88
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x46e68a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00408d24
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.0046f274
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46e769
xor eax, eax
push ebp
push 0x46e762
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0046e228
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0046e828
test al, al
je 0x46e740
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 0x46e740
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.004088b0
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.0046e188
test al, al
je 0x46e73a
mov eax, dword [ebp - 8]
call fcn.004088b0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00408908
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0046e638
dec ebx
cmp ebx, 0xffffffff
jne 0x46e6e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e769
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0046e228
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5390f8], 0
je 0x46e7a9
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.004088b0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0046e214
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0046e188
mov ebx, eax
jmp 0x46e7d0
mov eax, dword [ebp - 4]
call fcn.004088b0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0046e214
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0046e188
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e7fa
lea eax, [ebp - 0x3c]
call fcn.00407c30
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret
Function at 0x46eb04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46ebbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046e828
test al, al
je 0x46eb9e
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407db8
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x46eb9e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004088b0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.004088b0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00408908
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x46eb57
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ebc3
lea eax, [ebp - 0x2c]
call fcn.00407c30
lea eax, [ebp - 4]
call fcn.00407c30
ret

Function at 0x46f150
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
movzx eax, byte [ebp + 8]
call fcn.0046dfa0
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.004088b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0046e188
test al, al
jne 0x46f1b8
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x532ea4]
mov dl, 1
mov eax, dword [0x46cd74]
call fcn.004251b8
call fcn.00407328
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46f1c4
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.004088b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0046e188
test al, al
jne 0x46f225
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5331a8]
mov dl, 1
mov eax, dword [0x46cd74]
call fcn.004251b8
call fcn.00407328
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046dfd0
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