joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4baea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ec2b4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x24], esp
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.004b4270
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x30], bl
mov ebx, eax
call fcn.004bafc0
mov edx, dword [esp + 0x38]
add esp, 0x1c
mov dword [esp + 0x20], eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esp + 0x14], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.004b3a50
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret

Function at 0x4bafc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ec312
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], 0
cmp esi, ebx
je 0x4bb019
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4bafff
lea eax, [esp + 0x20]
mov edi, dword [esp + 0x30]
push eax
mov eax, dword [esi + 0x14]
mov ecx, esi
call fcn.0040f1a0
test eax, eax
je 0x4bb019
add esi, 0x38
cmp esi, ebx
jne 0x4baff0
mov dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x4bb035
mov eax, dword [esp + 0x20]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], cx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x4bb4c0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
push ebx
xor eax, eax
xor bl, bl
cmp eax, str.SeDebugPrivilege
je 0x4bb54b
cmp dword [esi], eax
jne 0x4bb4e9
push esi
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4bb54b
mov bl, 1
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, 1
jne 0x4bb533
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push 0
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bb533
mov al, 1
pop ebx
add esp, 0x18
ret
cmp bl, 1
jne 0x4bb54b
mov eax, dword [esi]
test eax, eax
je 0x4bb54b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor al, al
pop ebx
add esp, 0x18
ret
Function at 0x4bb7d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5f04e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
xor eax, eax
xor ebx, ebx
mov word [esp + 0x18], ax
mov ebp, 7
push ebx
mov eax, 0x622024
lea esi, [esp + 0x18]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
call fcn.0040f730
mov dword [esp + 0x3c], ebx
mov esi, edi
call fcn.004bc1d0
cmp al, 1
jne 0x4bb862
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x4bb856
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov word [esp + 0x18], dx
jmp 0x4bb912
push ebx
lea eax, [esp + 0x18]
push eax
push edi
xor edx, edx
xor ecx, ecx
call fcn.004bbe50
add esp, 0xc
mov esi, 8
cmp dword [esp + 0x28], ebx
je 0x4bb8c1
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x4bb88e
lea eax, [esp + 0x18]
push eax
call fcn.004bb7d0
add esp, 4
test al, al
jne 0x4bb8c1
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], esi
jb 0x4bb8b6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov word [esp + 0x18], dx
xor al, al
jmp 0x4bb914
push ebx
push edi
call fcn.005b9cfa
add esp, 8
test eax, eax
je 0x4bb8f0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4bb8f0
mov dword [esp + 0x3c], 0xffffffff
lea esi, [esp + 0x14]
call fcn.0040f810
xor al, al
jmp 0x4bb91c
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], esi
jb 0x4bb90b
mov eax, dword [esp + 0x18]
push eax
call fcn.004c4802
add esp, 4
xor ecx, ecx
mov word [esp + 0x18], cx
mov al, 1
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x2c
ret
Function at 0x4bd860
Capabilities:
Check os version

Disassembly:
push esi
mov eax, 0xffff
mov word [edi + 0x238], ax
push 0
lea esi, [edi + 0x280]
mov eax, 0x622024
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x234], 0
call fcn.0040f730
mov esi, edi
mov dword [edi], 0
call fcn.004be360
push 0x114
lea esi, [edi + 4]
push 0
push esi
call fcn.005bfee0
add esp, 0xc
push esi
mov dword [esi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4bd8e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6366f8
mov dword [edi], eax
call fcn.004a7cf0
add esp, 8
xor al, al
pop esi
ret
mov eax, dword [edi + 0x14]
cmp eax, 2
jne 0x4bd9cb
lea esi, [edi + 0x248]
push 0x14
mov eax, str.Microsoft_Windows_NT
mov dword [edi + 0x23c], 0x2000
call fcn.0040f730
mov eax, dword [edi + 8]
cmp eax, 3
jne 0x4bd933
push 0x19
mov eax, str.Microsoft_Windows_NT_3.51
mov dword [edi + 0x23c], 0x2011
call fcn.0040f730
jmp 0x4bda55
cmp eax, 4
jne 0x4bd94c
mov dword [edi + 0x23c], 0x2012
mov eax, str.Microsoft_Windows_NT_4.0
jmp 0x4bda4f
jbe 0x4bda55
cmp eax, 5
jne 0x4bd9bf
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4bd97f
mov eax, str.Microsoft_Windows_2000
push esi
mov dword [edi + 0x23c], 0x2020
call fcn.0040f7e0
mov eax, edi
call fcn.004bdad0
jmp 0x4bda55
cmp eax, 1
jne 0x4bd9a5
mov eax, str.Microsoft_Windows_XP
push esi
mov dword [edi + 0x23c], 0x2040
call fcn.0040f7e0
mov eax, edi
call fcn.004bdad0
jmp 0x4bda55
cmp eax, 2
jne 0x4bd9bf
mov eax, str.Microsoft_Windows_2003
push esi
mov dword [edi + 0x23c], 0x2080
call fcn.0040f7e0
mov eax, edi
call fcn.004bdad0
jmp 0x4bda55
cmp eax, 1
jne 0x4bda55
lea esi, [edi + 0x248]
push 0x17
mov eax, str.Microsoft_Windows_WIN32
mov dword [edi + 0x23c], 0x1000
call fcn.0040f730
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4bda08
mov dword [edi + 0x23c], 0x1001
mov eax, str.Microsoft_Windows_95
jmp 0x4bda4f
cmp eax, 0xa
jne 0x4bda3b
mov ecx, 0x41
push esi
cmp cx, word [edi + 0x1a]
jne 0x4bda2a
mov dword [edi + 0x23c], 0x1004
mov eax, str.Microsoft_Windows_98_SE
jmp 0x4bda50
mov dword [edi + 0x23c], 0x1002
mov eax, str.Microsoft_Windows_98
jmp 0x4bda50
cmp eax, 0x5a
jne 0x4bda55
mov dword [edi + 0x23c], 0x1008
mov eax, str.Microsoft_Windows_ME
push esi
call fcn.0040f7e0
cmp dword [edi + 0x260], 8
jb 0x4bda66
mov eax, dword [edi + 0x24c]
jmp 0x4bda6c
lea eax, [edi + 0x24c]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4bda71
sub ecx, esi
sar ecx, 1
lea esi, [edi + 0x264]
push ecx
call fcn.0040f730
cmp byte [edi + 0x244], 1
jne 0x4bdaa3
push 4
mov eax, str._x64
mov ecx, esi
call fcn.0040ec10
cmp dword [esi + 0x18], 8
jb 0x4bdaae
mov esi, dword [esi + 4]
jmp 0x4bdab1
add esi, 4
mov edx, dword [edi + 0x23c]
push edx
push esi
push str.CWindowsVersion::CheckWindowsVersion___:
call fcn.004a7cf0
add esp, 0xc
mov al, 1
pop esi
ret
Function at 0x4be6b0
Capabilities:
Resume thread
Terminate thread

Disassembly:
cmp byte [esi + 0x5c], 0
jne 0x4be6bc
or eax, 0xffffffff
ret 4
push ebp
push edi
xor edi, edi
cmp dword [esi + 0x58], edi
mov ebp, 8
jle 0x4be711
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4be73d
cmp dword [esi + 0x58], 0
jle 0x4be73d
push eax
call edi
cmp eax, 0xffffffff
je 0x4be73d
dec eax
mov dword [esi + 0x58], eax
cmp dword [esi + 0x48], ebp
jb 0x4be6f3
mov ecx, dword [esi + 0x34]
jmp 0x4be6f6
lea ecx, [esi + 0x34]
push eax
mov eax, dword [esi + 0x2c]
push ecx
push eax
push str.CWorkThread::WorkThreadResume___:
call fcn.004a7cf0
add esp, 0x10
cmp dword [esi + 0x58], 0
jg 0x4be6d0
xor edi, edi
mov eax, dword [esp + 0xc]
sub eax, 2
push ebx
mov byte [esi + 0x5c], 0
mov ebx, 1
je 0x4be79f
sub eax, ebx
je 0x4be754
cmp byte [esi + 0x69], bl
jne 0x4be744
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be7bb
pop edi
xor eax, eax
pop ebp
ret 4
mov ecx, dword [esi + 0x24]
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be7bb
mov ecx, dword [esi + 0x28]
cmp ecx, edi
je 0x4be77a
cmp byte [esi + 0x69], bl
jne 0x4be76d
mov eax, dword [esi + 0x6c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be7bb
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be7bb
cmp byte [esi + 0x69], bl
jne 0x4be78f
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x24]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be7bb
mov edx, dword [esi + 0x24]
or eax, 0xffffffff
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be7bb
mov ecx, dword [esi + 0x6c]
movzx edx, byte [esi + 0x69]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
lea eax, [esi + 0x24]
push eax
push esi
call fcn.004bec20
mov eax, dword [esp + 0x10]
cmp eax, 0x102
jne 0x4be841
cmp byte [esi + 0x69], bl
jne 0x4be841
mov ecx, dword [esi + 0x24]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, ebx
jne 0x4be822
cmp dword [esi + 0x48], ebp
jb 0x4be7e1
mov eax, dword [esi + 0x34]
jmp 0x4be7e4
lea eax, [esi + 0x34]
mov edx, dword [esi + 0x2c]
push eax
push edx
push 0x637660
call fcn.004a7cf0
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp eax, edi
je 0x4be841
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebx
jne 0x4be841
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
mov ecx, dword [esi + 0x20]
push 0x413
call fcn.004a9fc0
jmp 0x4be841
cmp dword [esi + 0x48], ebp
jb 0x4be82c
mov eax, dword [esi + 0x34]
jmp 0x4be82f
lea eax, [esi + 0x34]
mov edx, dword [esi + 0x2c]
push eax
push edx
push str.CWorkThread::WorkThreadStop___:
call fcn.004a7cf0
add esp, 0xc
mov eax, dword [esi + 0x28]
pop ebx
cmp eax, edi
je 0x4be850
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x60]
mov dword [esi + 0x24], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x28], edi
pop edi
pop ebp
ret 4
Function at 0x4be870
Capabilities:
Resume thread
Terminate thread

Disassembly:
cmp dword [esi + 0x24], 0
push ebp
lea ebp, [esi + 0x24]
jne 0x4be880
mov al, 1
pop ebp
ret 4
cmp dword [esi + 0x58], 0
push ebx
push edi
mov byte [esi + 0x5d], 1
mov ebx, 8
jle 0x4be8d6
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp]
test eax, eax
je 0x4be8fe
cmp dword [esi + 0x58], 0
jle 0x4be8fe
push eax
call edi
cmp eax, 0xffffffff
je 0x4be8fe
dec eax
mov dword [esi + 0x58], eax
cmp dword [esi + 0x48], ebx
jb 0x4be8ba
mov ecx, dword [esi + 0x34]
jmp 0x4be8bd
lea ecx, [esi + 0x34]
push eax
mov eax, dword [esi + 0x2c]
push ecx
push eax
push str.CWorkThread::WorkThreadResume___:
call fcn.004a7cf0
add esp, 0x10
cmp dword [esi + 0x58], 0
jg 0x4be897
mov eax, dword [esp + 0x10]
sub eax, 2
je 0x4be963
sub eax, 1
je 0x4be916
cmp byte [esi + 0x69], 1
jne 0x4be906
mov eax, dword [esi + 0x6c]
mov ecx, dword [ebp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be97c
pop edi
pop ebx
xor al, al
pop ebp
ret 4
mov ecx, dword [ebp]
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be97c
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4be93d
cmp byte [esi + 0x69], 1
jne 0x4be930
mov eax, dword [esi + 0x6c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be97c
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be97c
cmp byte [esi + 0x69], 1
jne 0x4be953
mov eax, dword [esi + 0x6c]
mov edx, dword [ebp]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be97c
mov edx, dword [ebp]
or eax, 0xffffffff
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4be97c
mov ecx, dword [esi + 0x6c]
movzx edx, byte [esi + 0x69]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push ebp
push esi
call fcn.004bec20
mov eax, dword [esp + 0x10]
cmp eax, 0x102
jne 0x4bea09
cmp byte [esi + 0x69], 1
jne 0x4bea09
mov eax, dword [ebp]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 1
jne 0x4be9ea
cmp dword [esi + 0x48], ebx
jb 0x4be9a8
mov eax, dword [esi + 0x34]
jmp 0x4be9ab
lea eax, [esi + 0x34]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
push 0x6377c0
call fcn.004a7cf0
mov eax, dword [esi + 0x20]
add esp, 0xc
test eax, eax
je 0x4bea09
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
cmp eax, 1
jne 0x4bea09
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
push edx
push eax
push 0x412
call fcn.004a9fc0
jmp 0x4bea09
cmp dword [esi + 0x48], ebx
jb 0x4be9f4
mov eax, dword [esi + 0x34]
jmp 0x4be9f7
lea eax, [esi + 0x34]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
push str.CWorkThread::WorkThreadCancel___:
call fcn.004a7cf0
add esp, 0xc
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x4bea19
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x28], edi
pop edi
pop ebx
mov al, 1
pop ebp
ret 4
Function at 0x4cc66f
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4cc69a
call fcn.004c8290
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4cc6bd
push eax
push dword [esi + 4]
call fcn.004cc5f5
push esi
push eax
mov ecx, 0x668e9c
call fcn.004cc29d
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4ccf26
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5dc170
call fcn.005bfc70
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004ccee6
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401780
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4ccf8c
push eax
push dword [esi + 8]
call fcn.004cc5f5
push dword [esi + 0xc]
mov ecx, 0x668e9c
push eax
call fcn.004cc29d
mov eax, esi
call fcn.005bfd48
ret 0x18

Function at 0x4d61dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4d6224
call fcn.004c8290
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4d6224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4d6240
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004d5d55
mov esi, eax
test edi, edi
je 0x4d623e
test ebx, ebx
je 0x4d623e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4d9466
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6656b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x4d949f
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x4d94c6
cmp dword [0x66afc0], 0
jne 0x4d94c6
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4d94b9
push 0x12
call esi
test bx, ax
je 0x4d94bd
mov eax, edi
jmp 0x4d9535
push edi
call fcn.005baf1c
pop ecx
jmp 0x4d9535
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005bfee0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4d94ef
call fcn.004c5890
call fcn.004c8a30
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7e8e
leave
ret 4
Function at 0x4e938a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x4e93a4
call fcn.004c5890
call fcn.004c8290
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4e93c4
xor eax, eax
jmp 0x4e94df
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4e93bd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4e93bd
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c47c8
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4e939f
cmp dword [ebp + 0x10], 0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 6]
lea edx, [eax + 6]
push ebx
push edx
je 0x4e9421
mov ecx, edi
call fcn.004e1f3f
jmp 0x4e9426
call fcn.004e1e29
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x4e9438
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x4e9453
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x4e94cb
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x4e94a2
lea eax, [esi + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
jne 0x4e9495
test eax, eax
jbe 0x4e9495
push eax
mov ecx, 0x661fe4
call fcn.00597fc0
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, word [esi + 6]
add dword [ebp - 4], 2
inc ebx
cmp ebx, eax
jl 0x4e946c
mov eax, dword [ebp + 8]
mov dword [edi + 0xbe0], eax
movzx ecx, word [esi + 6]
mov eax, dword [edi]
push 1
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 0x318]
mov ebx, eax
test ebx, ebx
jne 0x4e94cb
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.004c4802
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4eef08
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x4ef049
push esi
push edi
push 0x5fddc8
call fcn.004cab39
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x4eef98
mov esi, dword [ebx + 0x168]
jmp 0x4eef84
mov eax, esi
mov edi, dword [eax + 8]
mov esi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4eef84
push edi
call fcn.004d2e4f
push eax
push 0x662908
call fcn.004cab57
pop ecx
pop ecx
test eax, eax
je 0x4eef84
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x4eef84
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x4eef44
lea ecx, [ebx + 0x164]
call fcn.0053248c
jmp 0x4ef047
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x4ef047
jmp 0x4eefae
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.00547e95
mov esi, dword [eax]
test esi, esi
jne 0x4eefc7
xor ebx, ebx
jmp 0x4eefca
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ef03d
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4ef03d
test edi, edi
je 0x4ef00f
push esi
push 0x662908
call fcn.004cab57
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x608f6c
call fcn.004cab57
pop ecx
pop ecx
test eax, eax
je 0x4ef03d
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 4]
push 0
lea eax, [ebp + 8]
add esi, 0x164
push eax
mov ecx, esi
call fcn.004ee458
test eax, eax
jne 0x4ef03d
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.004ee3ec
cmp dword [ebp - 8], 0
jne 0x4eefab
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4f3629
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6656b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.004f30d7
mov ebx, eax
cmp ebx, esi
je 0x4f3696
lea ecx, [ebp - 0x20c]
call fcn.004cd5ae
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7e8e
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4f36b4
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004f3629
cmp eax, esi
jne 0x4f36fb
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 0x100
call ebx
test eax, eax
je 0x4f369e
lea ecx, [ebp - 0x20c]
call fcn.004cd5ae
push dword [ebp - 0x214]
mov ecx, edi
call fcn.004f3078
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.004cd5ae
mov eax, esi
jmp 0x4f3685
Function at 0x4f6c32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x66ad28], 0
mov dword [ebp - 4], ecx
jne 0x4f6c48
xor eax, eax
jmp 0x4f6c82
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4f6c58
call fcn.004c8290
mov esi, dword [eax + 0xc]
push edi
push dword [0x66baa8]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4f6c7e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4f6c86
xor eax, eax
pop edi
pop esi
leave
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4f6ca4
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4f6c80
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004f6b54
mov esi, eax
jmp 0x4f6c96