joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aae0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48c630
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae650]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov eax, esi
call fcn.0043acb0
mov eax, esi
call fcn.0043b170
push 1
call fcn.0043bc80
xor edi, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], edi
call fcn.00461d7b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], edi
call fcn.00461d7b
mov ebx, dword [esp + 0x54]
lea eax, [esp + 0x30]
push 0x3b
push eax
mov byte [esp + 0x54], 1
call fcn.0043b400
mov eax, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x18], edi
test eax, eax
jle 0x43ac6f
test edi, edi
jl 0x43aca8
cmp edi, eax
jge 0x43aca8
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push 0x2c
lea ebx, [ecx + edi*4]
push edx
call fcn.0043b400
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
jle 0x43ac5e
cmp eax, 1
jle 0x43abaf
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
push eax
call fcn.00472556
add esp, 4
mov dword [esp + 0x54], eax
jmp 0x43abb7
mov dword [esp + 0x54], 0x64
mov ebx, 2
cmp dword [esp + 0x24], ebx
jle 0x43abe2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
push eax
call fcn.00472556
add esp, 4
cmp eax, 1
je 0x43abe4
cmp eax, ebx
jne 0x43abe2
mov ebx, 1
jmp 0x43abe4
xor ebx, ebx
cmp dword [esp + 0x24], 0
jle 0x43aca8
mov edx, dword [esp + 0x20]
mov ebp, dword [edx]
test esi, esi
jne 0x43abfd
xor eax, eax
jmp 0x43ac00
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x101f
push eax
call edi
push eax
call fcn.00458f88
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
push 1
mov edi, eax
call fcn.0043bc80
mov ecx, dword [esp + 0x54]
push 0xffffffffffffffff
push ecx
push ebx
push ebp
push edi
mov ecx, esi
call fcn.0045ec61
mov edi, eax
test edi, edi
jl 0x43ac4f
push 1
push esi
call fcn.0043c370
xor edx, edx
test edi, edi
mov edi, dword [esp + 0x18]
setge dl
or dword [esp + 0x14], edx
mov eax, dword [esp + 0x38]
inc edi
cmp edi, eax
mov dword [esp + 0x18], edi
jl 0x43ab62
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 0
call fcn.00461f58
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00461f58
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
call fcn.004555b6
int3
Function at 0x43ede0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
cmp dword [esi + 0x8c], 0
je 0x43ee43
cmp dword [esi + 0x80], 0
je 0x43ee49
mov ecx, dword [esi + 0xd0]
sub ecx, dword [esi + 0xcc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x43ee49
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x43f330
push 0
push 0
call fcn.00473466
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x43ee43
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x43ee43
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [esp + 8]
push ecx
push eax
call edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x43ee43
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
add esp, 8
ret

Function at 0x43eed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0045e249
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push 0x49a660
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x43ef7c
call fcn.0045e249
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x43ef7c
call fcn.0045e249
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x43ef7c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x43ef75
test ebx, ebx
je 0x43ef75
push edi
push eax
push ebx
call fcn.00477b80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
push edi
push esi
call fcn.0043e7e0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x4453c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48ede6
mov eax, dword fs:[0]
push eax
mov eax, 0x19214
call fcn.00475b10
mov eax, dword [0x4ae650]
xor eax, esp
mov dword [esp + 0x19210], eax
push ebx
push esi
push edi
mov eax, dword [0x4ae650]
xor eax, esp
push eax
lea eax, [esp + 0x19224]
mov dword fs:[0], eax
mov esi, ecx
xor ecx, ecx
push 0x191fc
push ecx
lea edx, [esp + 0x2c]
xor eax, eax
push edx
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], cx
call fcn.004738b0
add esp, 0xc
push esi
push 0xc900
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0x49d9a4
lea ecx, [esp + 0x18]
mov esi, eax
lea edi, [esp + 0x24]
mov dword [0x4b3760], 0
call fcn.00406160
mov dword [esp + 0x1922c], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 0xc]
lea esi, [esp + esi*2 + 0x20]
mov eax, edi
mov dword [esp + 0x18], edx
cmp eax, esi
jae 0x44559c
push edi
lea ecx, [esp + 0x14]
call fcn.00406160
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x19234], 1
call fcn.00408990
mov ecx, dword [esp + 0x14]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
je 0x44556f
mov eax, dword [eax]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4454d6
test dx, dx
je 0x4454d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4454d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4454b0
xor eax, eax
jmp 0x4454db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445500
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x445527
mov eax, dword [0x4b3760]
cmp eax, 0xc8
jae 0x445521
lea edx, [esp + 0x10]
lea ecx, [eax*4 + 0x4b3aa8]
push edx
call fcn.00405bc0
inc dword [0x4b3760]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
lea edi, [edi + ecx*2]
xor ecx, ecx
cmp cx, word [edi]
jne 0x445542
add edi, 2
xor edx, edx
cmp dx, word [edi]
je 0x445579
add eax, 0xfffffff0
mov byte [esp + 0x1922c], cl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445565
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, esi
jb 0x445474
jmp 0x44559c
push 0x80004005
call fcn.00406550
add eax, 0xfffffff0
mov byte [esp + 0x1922c], cl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44559c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1922c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4455c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x19224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19210]
xor ecx, esp
call fcn.00471ad7
add esp, 0x19220
ret
Function at 0x449570
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x491468
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ae650]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], vtable.CBrush.0
cmp dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jne 0x4495ea
mov eax, dword [0x4b6110]
cmp eax, 1
je 0x4495e3
cmp eax, 3
jne 0x4495ea
mov eax, 0x16
jmp 0x4495ef
mov eax, 4
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push eax
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.00454d52
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.00454daa
mov eax, dword [0x4b6110]
cmp eax, 1
je 0x449635
cmp eax, 3
jne 0x449648
mov edx, dword [esi + 4]
push 0xf
push 2
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawEdge]
push 7
call edi
cmp dword [esp + 0x3c], 0
jne 0x449667
mov edi, dword [ebx + 4]
mov edx, dword [ebx]
add edi, 4
add edx, 4
mov ecx, eax
call fcn.00449210
jmp 0x44967a
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx]
add ecx, 4
push ecx
add ebx, 5
mov ecx, eax
call fcn.00449100
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBrush.0
call fcn.00406650
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8
Function at 0x44a810
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4ae650]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
xor ebx, ebx
push 0x114
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [0x4b2e10], ebx
mov dword [0x4b2e14], 5
call fcn.004738b0
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [esp + 0x34], 0x114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44a877
lea ecx, [esp + 8]
push ecx
call eax
jmp 0x44a882
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp + 8]
cmp eax, 9
jg 0x44a8af
je 0x44a8a3
cmp eax, ebx
je 0x44a8b6
cmp eax, 6
jne 0x44a8b6
mov dword [0x4b2e10], 1
jmp 0x44a8c8
mov dword [0x4b2e10], 2
jmp 0x44a8c8
cmp eax, 0xffff
je 0x44a8be
mov dword [0x4b2e10], ebx
jmp 0x44a8c8
mov dword [0x4b2e10], 3
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x44a8f2
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00471ad7
add esp, 0x144
ret
push 0x11c
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.004738b0
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], 0x11c
call esi
test al, al
jne 0x44a92b
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x114
call esi
test eax, eax
je 0x44a8d9
mov eax, dword [esp + 0x3c]
sub eax, 1
je 0x44a9e4
sub eax, 1
je 0x44a94c
mov dword [0x4b2e14], 0xa
jmp 0x44aa1b
mov eax, dword [esp + 0x30]
cmp eax, 4
ja 0x44a95f
mov dword [0x4b2e14], 3
mov ecx, 5
cmp eax, ecx
jne 0x44a9a9
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x44a97f
mov dword [0x4b2e14], 4
jmp 0x44aa1b
cmp eax, 1
je 0x44a9a1
cmp eax, 2
jne 0x44aa1b
cmp byte [esp + 0x146], 1
mov dword [0x4b2e14], 6
jne 0x44aa1b
mov dword [0x4b2e14], ecx
jmp 0x44aa1b
cmp eax, 6
jne 0x44aa1b
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x44a9c2
mov dword [0x4b2e14], 7
jmp 0x44aa1b
cmp eax, 1
jne 0x44a9d3
mov dword [0x4b2e14], 8
jmp 0x44aa1b
cmp eax, 2
jne 0x44aa1b
mov dword [0x4b2e14], 9
jmp 0x44aa1b
cmp dword [esp + 0x30], 4
jne 0x44aa1b
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x44a9fb
mov dword [0x4b2e14], ebx
jmp 0x44aa1b
cmp eax, 0xa
jne 0x44aa0c
mov dword [0x4b2e14], 1
jmp 0x44aa1b
cmp eax, 0x5a
jne 0x44aa1b
mov dword [0x4b2e14], 2
mov ecx, dword [esp + 0x148]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00471ad7
add esp, 0x144
ret
Function at 0x453b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x4ae650]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
push esi
push 0x30
push edi
mov byte [esp + 0x10], 0x30
mov byte [esp + 0x11], 0x31
mov byte [esp + 0x12], 0x32
mov byte [esp + 0x13], 0x33
mov byte [esp + 0x14], 0x34
mov byte [esp + 0x15], 0x35
mov byte [esp + 0x16], 0x36
mov byte [esp + 0x17], 0x37
mov byte [esp + 0x18], 0x38
mov byte [esp + 0x19], 0x39
mov byte [esp + 0x1a], 0x41
mov byte [esp + 0x1b], 0x42
mov byte [esp + 0x1c], 0x43
mov byte [esp + 0x1d], 0x44
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x46
call fcn.004738b0
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 0xffffffff
mov byte [esi + edi], 0
js 0x453c39
lea ebx, [ebx]
test esi, esi
jle 0x453c39
movzx ecx, byte [eax + ebx]
and ecx, 0xf
movzx edx, byte [esp + ecx + 4]
dec esi
mov byte [edi + esi], dl
movzx ecx, byte [eax + ebx]
shr ecx, 4
movzx edx, byte [esp + ecx + 4]
dec esi
sub eax, 1
mov byte [edi + esi], dl
jns 0x453c10
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
mov eax, edi
call fcn.00471ad7
add esp, 0x14
ret

Function at 0x4563df
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x456403
cmp dword [edi + 0x54], 0
jne 0x456403
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0045e249
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.004563a0
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 0x45be19
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 0x45be60
call fcn.0045e249
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45be60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45be7c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0045b991
mov esi, eax
test edi, edi
je 0x45be7a
test ebx, ebx
je 0x45be7a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45c674
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x48b099
call fcn.00473d10
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x45c699
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45c6df
lea ecx, [ebp - 0x10]
call fcn.00406390
mov ecx, dword [esi + 0x50]
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.00455360
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004063e0
mov eax, esi
call fcn.00473de8
ret 8

Function at 0x460d78
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 0x460dc0
call fcn.0045e249
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x460dc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x460e03
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 0x460dec
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 0x460dec
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x460e00
mov ecx, dword [esi + 0x4c]
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 0x471ad7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ae650]
jne 0x471ae1
repz ret
jmp fcn.00477970
Function at 0x4823e2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004772d4
and dword [ebp - 4], 0
cmp dword [0x4b2cd8], 0
mov ebx, eax
jne 0x482493
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x482544
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x482544
push eax
call fcn.00477262
mov dword [esp], 0x49825c
push edi
mov dword [0x4b2cd8], eax
call esi
push eax
call fcn.00477262
mov dword [esp], 0x498248
push edi
mov dword [0x4b2cdc], eax
call esi
push eax
call fcn.00477262
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b2ce0], eax
call esi
push eax
call fcn.00477262
pop ecx
mov dword [0x4b2ce8], eax
test eax, eax
je 0x482493
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00477262
pop ecx
mov dword [0x4b2ce4], eax
mov eax, dword [0x4b2ce4]
cmp eax, ebx
je 0x4824eb
cmp dword [0x4b2ce8], ebx
je 0x4824eb
push eax
call fcn.004772dd
push dword [0x4b2ce8]
mov esi, eax
call fcn.004772dd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4824eb
test edi, edi
je 0x4824eb
call esi
test eax, eax
je 0x4824e2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4824e2
test byte [ebp - 0xc], 1
jne 0x4824eb
or dword [ebp + 0x10], 0x200000
jmp 0x482524
mov eax, dword [0x4b2cdc]
cmp eax, ebx
je 0x482524
push eax
call fcn.004772dd
pop ecx
test eax, eax
je 0x482524
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x482524
mov eax, dword [0x4b2ce0]
cmp eax, ebx
je 0x482524
push eax
call fcn.004772dd
pop ecx
test eax, eax
je 0x482524
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b2cd8]
call fcn.004772dd
pop ecx
test eax, eax
je 0x482544
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x482546
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001635
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
je 0x1001757
cmp dword [ebp + 0xc], edi
je 0x1001757
push edi
mov ebx, 0x1001280
push ebx
call fcn.01003212
mov esi, eax
inc esi
inc esi
lea eax, [esi + esi]
push eax
mov dword [ebp - 0x14], eax
call fcn.01003482
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100175f
push esi
push ebx
push eax
call fcn.01003b8b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push 0x100127c
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x10016ce
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
lea eax, [ebp - 8]
push eax
call fcn.010037e3
jmp 0x1001764
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
push 2
push edi
push 0x1001258
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x1001705
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
jmp 0x10016c0
push 4
pop ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x1001238
push dword [ebp - 4]
mov dword [ebp - 0xc], 7
call esi
cmp eax, edi
jne 0x10016eb
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x100121c
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call esi
cmp eax, edi
jne 0x10016eb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
call fcn.010037e3
xor eax, eax
inc eax
jmp 0x1001766
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10023f0
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp esi, ebx
je 0x1002523
push esi
call fcn.01001da2
test eax, eax
je 0x1002533
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x1002434
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
jmp 0x1002449
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1002523
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x100252e
push edi
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 8], eax
cmp eax, 1
jne 0x10024e1
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 1
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10024e6
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.01003482
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10024e6
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
call edi
mov dword [ebp - 8], eax
cmp eax, 1
jne 0x10024e1
mov eax, dword [esi + 0x1c]
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push ebx
push 1
push dword [eax]
movzx eax, word [esi + 0x24]
push dword [esi + 0x20]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jne 0x10024eb
call fcn.01002fe3
pop edi
cmp dword [ebp - 4], ebx
je 0x10024fa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x1002508
lea eax, [ebp - 0x10]
push eax
call fcn.010037e3
push dword [ebp + 8]
cmp dword [esi + 0x14], ebx
je 0x1002518
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x100251e
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [ebp - 8]
jmp 0x1002535
push 0x42b
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
xor eax, eax
pop esi
pop ebx
leave
ret 4