joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ad44
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x45ad67
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x45ad6a
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x45ad7d
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x45ad84
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x519be4]
test eax, eax
mov ecx, dword [0x519be0]
jne 0x45ad9e
test ecx, ecx
je 0x45adb3
mov eax, ecx
mov dword [0x519be4], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x45adb3
cmp edx, dword [ebp - 4]
jb 0x45adb3
cmp edx, dword [ebp - 8]
jbe 0x45ae87
mov eax, ecx
test ecx, ecx
jmp 0x45add7
test eax, eax
je 0x45add2
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x45add2
cmp ecx, dword [ebp - 4]
jb 0x45add2
cmp ecx, dword [ebp - 8]
jbe 0x45ae87
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x519be4], eax
jne 0x45adb9
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x45af22
cmp edi, 0x70000000
jb 0x45ae07
cmp edi, 0x80000000
ja 0x45ae07
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x45af22
cmp dword [ebp - 0x30], ebx
jne 0x45ae26
cmp dword [ebp - 0x34], ebx
jae 0x45ae39
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x45adf2
jmp 0x45af22
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
test eax, eax
mov dword [0x519be4], eax
je 0x45af22
mov ecx, dword [0x519be0]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x519be0], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x45ae79
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x45af27
cmp esi, dword [ebp - 8]
ja 0x45af27
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.00488a00
add esp, 0xc
mov eax, esi
jmp 0x45af29
cmp esi, 0x70000000
jb 0x45aecb
cmp esi, 0x80000000
ja 0x45aecb
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x45af27
cmp dword [ebp - 0x14], ebx
jne 0x45af19
cmp dword [ebp - 0x18], ebx
jb 0x45af19
mov ecx, esi
and ecx, 0xffff
je 0x45aefd
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
test eax, eax
mov dword [0x519be4], eax
jne 0x45ae55
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x45aeb6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45af4f
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x4e6780
call fcn.00488880
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x45afaa
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x45afa6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x45afa6
cmp word [eax + 0x14], 0
jne 0x45af9b
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x45afac
mov eax, ecx
jmp 0x45af95
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.004888bb
ret

Function at 0x45afc7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x519bec], edi
jne 0x45afea
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
push 0x519bec
call dword [sym.imp.KERNEL32.DLL_InterlockedCompareExchange]
test eax, eax
je 0x45aff1
mov eax, 0x10dd
jmp 0x45b035
push esi
mov esi, dword [0x519be0]
mov dword [0x519be8], edi
mov dword [0x519bfc], edi
mov dword [0x519bf8], edi
mov dword [0x519bf0], edi
mov dword [0x519bf4], edi
jmp 0x45b02e
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x45b018
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x45b038
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [0x519bec], eax
je 0x45b04e
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x519bfc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x45b099
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x45b08a
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x45b08a
call fcn.0045af2e
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.00460bb0
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x45b05d
mov dword [0x519bfc], ebx
call fcn.0045ad1d
mov esi, dword [0x519bf8]
cmp esi, ebx
je 0x45b0c6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.00460bb0
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x45b0ae
pop edi
pop esi
mov dword [0x519bf8], ebx
mov dword [0x519bec], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x45b319
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x519bf0]
test eax, eax
jne 0x45b389
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x45b335
xor eax, eax
jmp 0x45b388
push esi
push 8
call fcn.00460b81
mov esi, eax
test esi, esi
pop ecx
jne 0x45b349
push 8
pop edi
jmp 0x45b364
push edi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x45b375
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
mov edi, eax
call fcn.00460bb0
pop ecx
and dword [0x519bf4], 0
mov dword [0x519bf0], edi
mov eax, edi
jmp 0x45b387
mov eax, dword [0x519bf8]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x519bf8], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x45b5c9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [0x519bec], eax
je 0x45b5e5
mov eax, 0x10dd
jmp 0x45b6c1
mov eax, dword [0x519bf0]
test eax, eax
jne 0x45b6c1
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45b602
push 6
pop eax
jmp 0x45b6c0
cmp dword [edi], 0
push ebx
push esi
jne 0x45b616
push 6
pop eax
mov dword [0x519bf0], eax
jmp 0x45b6b8
push 0x18
call fcn.00460b81
mov esi, eax
test esi, esi
pop ecx
jne 0x45b629
push 8
pop edi
jmp 0x45b6a2
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0045afb2
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x45b697
cmp ecx, 0x17
ja 0x45b697
cmp dword [edi + 0x1c], eax
jne 0x45b697
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x45b66d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
jmp 0x45b6a2
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x519bfc]
mov dword [esi], eax
mov dword [0x519bfc], esi
xor eax, eax
jmp 0x45b6be
cmp dword [0x519be8], edx
push 9
pop edi
jne 0x45b6a8
mov dword [0x519bf0], edi
test esi, esi
je 0x45b6b3
push esi
call fcn.00460bb0
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x519bf4], edi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x45b6e2
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x4e67a0
call fcn.00488880
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x45b700
lea esi, [eax + 0x10000]
push 0x1c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00488a00
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
jbe 0x45b776
cmp dword [ebp - 0x2c], 0x1000
jne 0x45b752
test byte [ebp - 0x27], 1
jne 0x45b752
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
cmp word [esi], 0x5a4d
jne 0x45b74e
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x45b75d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
lea esi, [eax + ecx]
jmp 0x45b710
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004888bb
ret 4
xor eax, eax
jmp 0x45b763
Function at 0x45b77a
Capabilities:
Parse pe header

Disassembly:
push 0x20
push 0x4e67b8
call fcn.00488880
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
jne 0x45b79c
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp word [eax], 0x5a4d
je 0x45b7b0
push 0xc1
jmp 0x45b85f
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x28], esi
cmp dword [esi], 0x4550
je 0x45b7ca
push 0xbf
jmp 0x45b85f
mov ax, word [esi + 0x14]
cmp ax, bx
jne 0x45b7eb
xor esi, esi
push 0xc0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x45b86b
movzx eax, ax
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
movzx eax, word [esi + 6]
cmp ebx, eax
jae 0x45b7d3
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp - 0x20]
lea edi, [ecx + eax*8]
push str..detour
push edi
call fcn.00488a80
pop ecx
pop ecx
test eax, eax
jne 0x45b850
mov eax, dword [edi + 0xc]
test eax, eax
je 0x45b7d3
cmp dword [edi + 0x10], 0
je 0x45b7d3
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + ecx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x45b7d3
cmp dword [esi + 4], 0x727444
jne 0x45b7d3
cmp dword [esi + 8], 0
jne 0x45b84c
mov dword [esi + 8], eax
push 0
jmp 0x45b7da
inc ebx
jmp 0x45b7f5
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.004888bb
ret 4

Function at 0x45b97d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov eax, 0x150
cmp dword [esi], eax
jne 0x45ba5c
cmp dword [ebp + 0xc], eax
jb 0x45ba5c
and dword [ebp - 4], 0
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0x40
push dword [esi + 4]
call edi
test eax, eax
je 0x45ba56
push ebx
lea eax, [ebp - 8]
push eax
push 0x40
mov ebx, 0xf8
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x45ba47
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45b9e9
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 4
push eax
call edi
test eax, eax
je 0x45ba3a
push 0x40
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.00488b10
push ebx
lea eax, [esi + 0x54]
push eax
push dword [esi + 8]
call fcn.00488b10
mov eax, dword [esi + 0xc]
add esp, 0x18
test eax, eax
je 0x45ba20
push 4
lea ecx, [esi + 0x14c]
push ecx
push eax
call fcn.00488b10
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [ebp - 4], 1
je 0x45ba3a
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push 4
push eax
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push ebx
push dword [esi + 8]
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0x40
push dword [esi + 4]
call edi
pop ebx
mov eax, dword [ebp - 4]
pop edi
jmp 0x45ba69
push 0xc1
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop esi
leave
ret 8
Function at 0x4671c6
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 0x46720d
call fcn.00461486
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x46720d
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x467229
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00466cc6
mov esi, eax
test edi, edi
je 0x467227
test ebx, ebx
je 0x467227
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46946e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4694b3
push 0x4ec3d8
push 4
push eax
call fcn.004846bf
push eax
call fcn.00403ed0
add esp, 0x10
jmp 0x4694c9
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x469549
push edi
call fcn.004896c4
mov edi, dword [eax]
call fcn.004896c4
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0048558e
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004896c4
cmp dword [eax], 0
je 0x46951d
call fcn.004896c4
push dword [eax]
call fcn.00461509
pop ecx
jmp 0x469524
call fcn.004896c4
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x469549
cmp dword [ebp - 0x234], esi
jae 0x469549
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
jmp 0x46954b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004840ae
leave
ret
Function at 0x469a04
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push 0x4ec690
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00403b30
pop ecx
cmp eax, esi
je 0x469aee
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x469aee
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00488a00
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x469aee
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x469aee
cmp esi, 0x14
jge 0x469aee
push 0x10
push 0
push edi
call fcn.0048afae
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x469add
call fcn.004896c4
cmp dword [eax], 0x22
je 0x469add
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00488e71
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x469ab3
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.DLL_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x51b898], 0
jne 0x469b79
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x469ba2
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0046946e
pop ecx
pop ecx
test eax, eax
jne 0x469ba4
inc edi
cmp edi, esi
jl 0x469b7f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004840ae
leave
ret 8
Function at 0x46a961
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x46a9a9
call fcn.00461486
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x46a9a9
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x46a9ec
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x46a9d5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46a9d5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x68], 0
je 0x46a9e9
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46bd80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x46bda4
cmp dword [edi + 0x74], 0
jne 0x46bda4
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00461486
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0046bd41
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46da95
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0046d994
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x46dadf
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004655c5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00463b4b
jmp 0x46daea
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046ff5a
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x46e247
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4c584e
call fcn.00489270
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x46e26c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x46e2be
call fcn.00467e07
push eax
lea ecx, [ebp - 0x10]
call fcn.004041c0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004849f9
push eax
call fcn.00403ed0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401600
mov eax, esi
call fcn.00489348
ret 8

Function at 0x4840ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x510a50]
jne 0x4840b8
repz ret
jmp fcn.0048ca7b
Function at 0x49a056
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x510a50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048c4a3
and dword [ebp - 0x14], 0
cmp dword [0x51ca68], 0
mov dword [ebp - 0x18], eax
jne 0x49a109
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49a1b1
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4f1278
push ebx
call edi
test eax, eax
je 0x49a1b1
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x4f1268
push ebx
mov dword [0x51ca68], eax
call edi
push eax
call esi
push 0x4f1254
push ebx
mov dword [0x51ca6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x51ca70], eax
call edi
push eax
call esi
mov dword [0x51ca78], eax
test eax, eax
je 0x49a109
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x51ca74], eax
mov eax, dword [0x51ca74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x49a162
cmp dword [0x51ca78], ecx
je 0x49a162
push eax
call esi
push dword [0x51ca78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49a162
test ebx, ebx
je 0x49a162
call edi
test eax, eax
je 0x49a159
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x49a159
test byte [ebp - 8], 1
jne 0x49a162
or dword [ebp + 0x10], 0x200000
jmp 0x49a195
mov eax, dword [0x51ca6c]
cmp eax, dword [ebp - 0x18]
je 0x49a195
push eax
call esi
test eax, eax
je 0x49a195
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49a195
mov eax, dword [0x51ca70]
cmp eax, dword [ebp - 0x18]
je 0x49a195
push eax
call esi
test eax, eax
je 0x49a195
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x51ca68]
call esi
test eax, eax
je 0x49a1b1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49a1b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004840ae
leave
ret

Function at 0x4a0670
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
xor eax, eax
cmp ecx, edx
je 0x4a06a1
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movzx edi, word [ecx]
lea esi, [esi + edi - 0x61c88647]
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x4a0680
pop edi
pop esi
ret
Function at 0x4b3110
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, edx
je 0x4b313f
push esi
push edi
mov esi, ecx
mov edi, ecx
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [eax]
lea esi, [esi + edi - 0x61c88647]
inc eax
xor ecx, esi
cmp eax, edx
jne 0x4b3120
pop edi
pop esi
mov eax, 0x4e25
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 0x1e
imul edx, edx, 0x7fffd8ee
mov eax, ecx
sub eax, edx
add eax, 0x2710
ret