joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push edi
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42b161
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [edi + 0x214]
push edx
lea eax, [ebp - 8]
push eax
push esi
push str.APPLICATION_COMPLETED
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 4
push ecx
mov dword [ebp - 0x10], 1
mov dword [ebp + 8], ebx
call esi
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.REBOOT
push edx
mov dword [ebp + 8], ebx
call esi
xor eax, eax
cmp dword [ebp - 0xc], 1
lea ecx, [ebp + 8]
sete al
push ecx
mov ecx, dword [ebp - 4]
lea edx, [edi + 0x21c]
push edx
mov dword [ebp + 8], 0x28
mov dword [edi + 0x218], eax
lea eax, [ebp - 8]
push eax
push 0
push str.RESIDENCE
push ecx
call esi
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp - 4]
lea eax, [edi + 0x244]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.REGION
push edx
mov dword [ebp + 8], 0x3c
call esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x280]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.NOCPYDLG
push eax
mov dword [ebp + 8], ebx
call esi
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov dword [ebp - 0xc], 0
mov dword [ebp + 8], ebx
push str.LANGUAGE
push ecx
call esi
pop ebx
test eax, eax
je 0x42b254
xor esi, esi
jmp 0x42b257
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov dx, word [ebp - 0xc]
push eax
mov word [edi + 0x284], dx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42b280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42b30e
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x42b2bd
mov dword [ebp + 8], eax
cmp edi, 0xbc2
jne 0x42b2c4
mov dword [ebp + 8], 1
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea edx, [ebp + 8]
push edx
push 4
push 0
push str.APPLICATION_COMPLETED
push eax
call esi
mov eax, dword [ebp - 4]
push 4
xor ecx, ecx
lea edx, [ebp + 8]
push edx
cmp edi, 0xbc2
push 4
sete cl
push 0
push str.REBOOT
push eax
mov dword [ebp + 8], ecx
call esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x42bee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x4c], 0
mov eax, dword [ebp + 8]
jne 0x42bf0e
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bf08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop ebp
ret 4
mov ecx, dword [ecx + 0x50]
mov edx, dword [eax - 0xc]
push ecx
push 1
add edx, edx
push edx
push eax
call fcn.005344f5
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bf42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop ebp
ret 4

Function at 0x42d520
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
je 0x42d5d7
mov eax, dword [esi + 0x50]
test eax, eax
je 0x42d5d0
push eax
call fcn.005345dc
add esp, 4
cmp dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
je 0x42d58d
push 0
lea eax, [ebp - 4]
push eax
push 1
push str.D:_A_OICI_GA___BA__A_OICI_FR___WD__A_OICI_GA___SY_
mov dword [ebp - 4], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x42d57f
mov edx, dword [esi + 0x44]
lea ecx, [ebp - 4]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x42d58d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x34], 0
jg 0x42d59f
cmp dword [esi + 0x20], 0
jg 0x42d59f
cmp dword [esi + 0xc], 0
jle 0x42d5a6
mov ecx, esi
call fcn.0042d100
cmp dword [ebp + 8], 0
je 0x42d5d0
mov eax, dword [esi + 0x44]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esi + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esi + 0x4c], 0
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42d6a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x4c], eax
jne 0x42d84c
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.00531fb0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00531fb0
push str.uninst.ini
push edi
push 0x55d250
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.00533b0b
push str.uninst.ini
push ebx
push 0x55d250
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00533b0b
mov eax, dword [esi + 0x50]
lea edi, [esi + 0x50]
add esp, 0x40
test eax, eax
je 0x42d751
push eax
call fcn.005345dc
add esp, 4
mov dword [edi], 0
push str.w_ccsUNICODE
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0053470e
add esp, 0xc
test eax, eax
je 0x42d77f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 8
push 2
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x414]
lea ecx, [esi + 0x44]
lea edi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42d7a0
sub eax, edi
sar eax, 1
push eax
lea edx, [ebp - 0x414]
push edx
call fcn.00403290
lea eax, [ebp - 0x20c]
lea ecx, [esi + 0x40]
lea edi, [eax + 2]
jmp 0x42d7d0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42d7d0
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403290
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61a]
push edx
mov dword [esi + 0x4c], 1
mov word [ebp - 0x61c], cx
call fcn.00531fb0
push str._Uninstall_
push 0x5629d8
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00533b0b
add esp, 0x18
lea edx, [ebp - 0x61c]
mov ecx, esp
mov dword [ebp - 0x620], esp
push edx
call fcn.00405b90
mov ecx, esi
call fcn.0042bee0
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00531f97
mov esp, ebp
pop ebp
ret 8

Function at 0x43bb44
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 0x43bb8b
call fcn.00433e4b
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 0x43bb8b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43bba7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043b644
mov esi, eax
test edi, edi
je 0x43bba5
test ebx, ebx
je 0x43bba5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43ce87
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x558399
call fcn.00534927
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x43ceac
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43cefe
call fcn.0043e2f8
push eax
lea ecx, [ebp - 0x10]
call fcn.00402e40
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.00533b6b
push eax
call fcn.004029f0
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.00402b50
mov eax, esi
call fcn.005349ff
ret 8

Function at 0x43d5b2
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.0043d256
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43d5fc
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00439ce7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00437fb1
jmp 0x43d607
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004462c4
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43d60d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0043c75a
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x43d64a
call fcn.0043d256
mov dword [esi + 0xc], 1
jmp 0x43d64f
call fcn.0043d256
cmp dword [esi], 0
je 0x43d698
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x43d670
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00439ce7
jmp 0x43d682
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403040
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00437fb1
jmp 0x43d6bc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x43d6bc
push dword [esi]
push dword [ebp + 8]
call fcn.004462c4
pop esi
pop ebp
ret 0xc
Function at 0x43e0a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00433e4b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43e0d9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0043dcdd
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x43e137
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 0x43e15b
cmp dword [edi + 0x74], 0
jne 0x43e15b
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00433e4b
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.0043e0f8
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 0x4421ee
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x60c9c8]
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 0x442233
push 0x565250
push 4
push eax
call fcn.00532f33
push eax
call fcn.004029f0
add esp, 0x10
jmp 0x442249
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4422c9
push edi
call fcn.0053421b
mov edi, dword [eax]
call fcn.0053421b
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.00533b29
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0053421b
cmp dword [eax], 0
je 0x44229d
call fcn.0053421b
push dword [eax]
call fcn.00433006
pop ecx
jmp 0x4422a4
call fcn.0053421b
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4422c9
cmp dword [ebp - 0x234], esi
jae 0x4422c9
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4422cb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00531f97
leave
ret
Function at 0x44276a
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x60c9c8]
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 str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0043705c
pop ecx
cmp eax, esi
je 0x442854
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x442854
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.00531fb0
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 0x442854
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x442854
cmp esi, 0x14
jge 0x442854
push 0x10
push 0
push edi
call fcn.0053241b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x442843
call fcn.0053421b
cmp dword [eax], 0x22
je 0x442843
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00534a5b
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x442819
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 [0x60ffb8], 0
jne 0x4428df
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x442908
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004421ee
pop ecx
pop ecx
test eax, eax
jne 0x44290a
inc edi
cmp edi, esi
jl 0x4428e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00531f97
leave
ret 8

Function at 0x4483f0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x448425
xor eax, eax
jmp 0x448478
lea eax, [ebp - 0x210]
push eax
call fcn.00534a5b
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x448456
push 0x55f888
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005348b2
add esp, 0xc
test eax, eax
jne 0x448421
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005348b2
add esp, 0xc
test eax, eax
jne 0x448421
lea eax, [ebp - 0x210]
push eax
call fcn.0043705c
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00531f97
leave
ret
Function at 0x49ab6b
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x49aba2
lea edi, [eax + 8]
mov ecx, dword [eax + 4]
add ecx, eax
cmp edi, ecx
jae 0x49ab9d
movzx ecx, word [edi]
mov edx, ecx
and edx, 0xf000
jnp 0x12c2d42
lock add byte [eax], al
cmp edx, 0x3000
jne 0x49ab91
mov edx, dword [ebp + 0xc]
and ecx, 0xfff
add ecx, dword [ebp + 0xc]
sub edx, dword [esi + 0x34]
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x49ab99
cmp edx, ebx
jne 0x49acee
inc edi
inc edi
jmp 0x49ab60
add eax, dword [eax + 4]
jmp 0x49ab59
mov dword [ebp - 8], ebx
jmp 0x49abad
invalid
mov ch, 0x78
invalid

Function at 0x4bf54e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4bf568
call fcn.00433e4b
mov esi, dword [eax + 0xc]
push dword [0x61219c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4bf586
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4bf57e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4bf5b3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4bf580
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004bf47c
mov esi, eax
jmp 0x4bf5a5

Function at 0x50f3c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043a0d7
call fcn.004370e2
cmp eax, esi
pop esi
jne 0x50f3e4
mov ecx, 0x6102c8
jmp fcn.00448fe5
ret

Function at 0x512d6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x512d83
mov edi, dword [esi + 0xc]
jmp 0x512dc3
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x512d9c
call fcn.00434219
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x512db1
call fcn.00434219
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x512dc3
call fcn.00434219
call fcn.00433e4b
cmp dword [eax + 0x3c], 0
je 0x512dd8
push edi
mov ecx, ebx
call fcn.00511b92
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00512c85
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x512df6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x512e02
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x531f97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x60c9c8]
jne 0x531fa1
repz ret
jmp fcn.00539918
Function at 0x5442f8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x60c9c8]
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.0053923b
and dword [ebp - 0x14], 0
cmp dword [0x6147d0], 0
mov dword [ebp - 0x18], eax
jne 0x5443ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x544453
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x58a3c8
push ebx
call edi
test eax, eax
je 0x544453
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x58a3b8
push ebx
mov dword [0x6147d0], eax
call edi
push eax
call esi
push 0x58a3a4
push ebx
mov dword [0x6147d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6147d8], eax
call edi
push eax
call esi
mov dword [0x6147e0], eax
test eax, eax
je 0x5443ab
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6147dc], eax
mov eax, dword [0x6147dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x544404
cmp dword [0x6147e0], ecx
je 0x544404
push eax
call esi
push dword [0x6147e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x544404
test ebx, ebx
je 0x544404
call edi
test eax, eax
je 0x5443fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5443fb
test byte [ebp - 8], 1
jne 0x544404
or dword [ebp + 0x10], 0x200000
jmp 0x544437
mov eax, dword [0x6147d4]
cmp eax, dword [ebp - 0x18]
je 0x544437
push eax
call esi
test eax, eax
je 0x544437
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x544437
mov eax, dword [0x6147d8]
cmp eax, dword [ebp - 0x18]
je 0x544437
push eax
call esi
test eax, eax
je 0x544437
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6147d0]
call esi
test eax, eax
je 0x544453
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x544455
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00531f97
leave
ret